getAccessStatus
Returns the current client's authenticated identity.
/access
Usage and SDK Samples
curl -X GET\
-H "Accept: application/json"\
"/efm/api/access"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AccessApi;
import java.io.File;
import java.util.*;
public class AccessApiExample {
public static void main(String[] args) {
AccessApi apiInstance = new AccessApi();
try {
CurrentUser result = apiInstance.getAccessStatus();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccessApi#getAccessStatus");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AccessApi;
public class AccessApiExample {
public static void main(String[] args) {
AccessApi apiInstance = new AccessApi();
try {
CurrentUser result = apiInstance.getAccessStatus();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AccessApi#getAccessStatus");
e.printStackTrace();
}
}
}
AccessApi *apiInstance = [[AccessApi alloc] init];
// Returns the current client's authenticated identity.
[apiInstance getAccessStatusWithCompletionHandler:
^(CurrentUser output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ClouderaEdgeFlowManagerRestApi = require('cloudera_edge_flow_manager_rest_api');
var api = new ClouderaEdgeFlowManagerRestApi.AccessApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.getAccessStatus(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class getAccessStatusExample
{
public void main()
{
var apiInstance = new AccessApi();
try
{
// Returns the current client's authenticated identity.
CurrentUser result = apiInstance.getAccessStatus();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AccessApi.getAccessStatus: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAccessApi();
try {
$result = $api_instance->getAccessStatus();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AccessApi->getAccessStatus: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccessApi;
my $api_instance = WWW::SwaggerClient::AccessApi->new();
eval {
my $result = $api_instance->getAccessStatus();
print Dumper($result);
};
if ($@) {
warn "Exception when calling AccessApi->getAccessStatus: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AccessApi()
try:
# Returns the current client's authenticated identity.
api_response = api_instance.get_access_status()
pprint(api_response)
except ApiException as e:
print("Exception when calling AccessApi->getAccessStatus: %s\n" % e)