Skip to content

Latest commit

 

History

History
108 lines (78 loc) · 3.64 KB

CloudLocationsControllerApi.md

File metadata and controls

108 lines (78 loc) · 3.64 KB

CloudLocationsControllerApi

All URIs are relative to https://api.flexify.io

Method HTTP request Description
getAutoDeployAvailableLocationsForCurrentUser GET /backend/rest/cloud-locations/auto-deploy getAutoDeployAvailableLocationsForCurrentUser
getExistingAvailableLocationsForCurrentUser GET /backend/rest/cloud-locations getExistingAvailableLocationsForCurrentUser

getAutoDeployAvailableLocationsForCurrentUser

List<CloudLocation> getAutoDeployAvailableLocationsForCurrentUser()

getAutoDeployAvailableLocationsForCurrentUser

Example

// Import classes:
//import io.flexify.apiclient.handler.ApiClient;
//import io.flexify.apiclient.handler.ApiException;
//import io.flexify.apiclient.handler.Configuration;
//import io.flexify.apiclient.handler.auth.*;
//import io.flexify.apiclient.api.CloudLocationsControllerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");

CloudLocationsControllerApi apiInstance = new CloudLocationsControllerApi();
try {
    List<CloudLocation> result = apiInstance.getAutoDeployAvailableLocationsForCurrentUser();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling CloudLocationsControllerApi#getAutoDeployAvailableLocationsForCurrentUser");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<CloudLocation>

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json;charset=UTF-8

getExistingAvailableLocationsForCurrentUser

List<CloudLocation> getExistingAvailableLocationsForCurrentUser()

getExistingAvailableLocationsForCurrentUser

Example

// Import classes:
//import io.flexify.apiclient.handler.ApiClient;
//import io.flexify.apiclient.handler.ApiException;
//import io.flexify.apiclient.handler.Configuration;
//import io.flexify.apiclient.handler.auth.*;
//import io.flexify.apiclient.api.CloudLocationsControllerApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: Bearer
ApiKeyAuth Bearer = (ApiKeyAuth) defaultClient.getAuthentication("Bearer");
Bearer.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Bearer.setApiKeyPrefix("Token");

CloudLocationsControllerApi apiInstance = new CloudLocationsControllerApi();
try {
    List<CloudLocation> result = apiInstance.getExistingAvailableLocationsForCurrentUser();
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling CloudLocationsControllerApi#getExistingAvailableLocationsForCurrentUser");
    e.printStackTrace();
}

Parameters

This endpoint does not need any parameter.

Return type

List<CloudLocation>

Authorization

Bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json;charset=UTF-8