machinesGet
Get all machines accessible by the user.
Returns a list of machines the authenticated user has access to.
/machines
Usage and SDK Samples
curl -X GET\
-H "Authorization: Bearer [[accessToken]]"\
-H "Accept: application/json"\
"https://virtserver.swaggerhub.com/ARTEMISPONTSUL_1/ArtemisDataAPI/1.0.0/machines"
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AuthenticatedApi;
import java.io.File;
import java.util.*;
public class AuthenticatedApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
AuthenticatedApi apiInstance = new AuthenticatedApi();
try {
inline_response_200_2 result = apiInstance.machinesGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticatedApi#machinesGet");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AuthenticatedApi;
public class AuthenticatedApiExample {
public static void main(String[] args) {
AuthenticatedApi apiInstance = new AuthenticatedApi();
try {
inline_response_200_2 result = apiInstance.machinesGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthenticatedApi#machinesGet");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
AuthenticatedApi *apiInstance = [[AuthenticatedApi alloc] init];
// Get all machines accessible by the user.
[apiInstance machinesGetWithCompletionHandler:
^(inline_response_200_2 output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var ArtemisGuardDataApi = require('artemis_guard_data_api');
var defaultClient = ArtemisGuardDataApi.ApiClient.instance;
var api = new ArtemisGuardDataApi.AuthenticatedApi()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.machinesGet(callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class machinesGetExample
{
public void main()
{
var apiInstance = new AuthenticatedApi();
try
{
// Get all machines accessible by the user.
inline_response_200_2 result = apiInstance.machinesGet();
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AuthenticatedApi.machinesGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAuthenticatedApi();
try {
$result = $api_instance->machinesGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthenticatedApi->machinesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AuthenticatedApi;
my $api_instance = WWW::SwaggerClient::AuthenticatedApi->new();
eval {
my $result = $api_instance->machinesGet();
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthenticatedApi->machinesGet: $@\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.AuthenticatedApi()
try:
# Get all machines accessible by the user.
api_response = api_instance.machines_get()
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthenticatedApi->machinesGet: %s\n" % e)