Skip to content

Latest commit

 

History

History
71 lines (52 loc) · 2.25 KB

LocationApi.md

File metadata and controls

71 lines (52 loc) · 2.25 KB

LocationApi

All URIs are relative to https://api.eu-west-2.outscale.com/api/v1

Method HTTP request Description
readLocations POST /ReadLocations

readLocations

ReadLocationsResponse readLocations(readLocationsRequest)

Example

// Import classes:
import io.github.outscale.osc_sdk_java.client.ApiClient;
import io.github.outscale.osc_sdk_java.client.ApiException;
import io.github.outscale.osc_sdk_java.client.Configuration;
import io.github.outscale.osc_sdk_java.client.models.*;
import io.github.outscale.osc_sdk_java.client.api.LocationApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://api.eu-west-2.outscale.com/api/v1");
    // Configure AWS Signature V4 authorization
    defaultClient.setAWS4Configuration("YOUR_ACCESS_KEY", "YOUR_SECRET_KEY", "REGION", "SERVICE")

    LocationApi apiInstance = new LocationApi(defaultClient);
    ReadLocationsRequest readLocationsRequest = new ReadLocationsRequest(); // ReadLocationsRequest | 
    try {
      ReadLocationsResponse result = apiInstance.readLocations(readLocationsRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling LocationApi#readLocations");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}

Parameters

Name Type Description Notes
readLocationsRequest ReadLocationsRequest [optional]

Return type

ReadLocationsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 The HTTP 200 response (OK). -