Skip to content

Latest commit

 

History

History
288 lines (220 loc) · 11.2 KB

DirectLinkInterfaceApi.md

File metadata and controls

288 lines (220 loc) · 11.2 KB

DirectLinkInterfaceApi

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

Method HTTP request Description
createDirectLinkInterface POST /CreateDirectLinkInterface
deleteDirectLinkInterface POST /DeleteDirectLinkInterface
readDirectLinkInterfaces POST /ReadDirectLinkInterfaces
updateDirectLinkInterface POST /UpdateDirectLinkInterface

createDirectLinkInterface

CreateDirectLinkInterfaceResponse createDirectLinkInterface(createDirectLinkInterfaceRequest)

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.auth.*;
import io.github.outscale.osc_sdk_java.client.models.*;
import io.github.outscale.osc_sdk_java.client.api.DirectLinkInterfaceApi;

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")
    
    // Configure API key authorization: ApiKeyAuth
    ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    ApiKeyAuth.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //ApiKeyAuth.setApiKeyPrefix("Token");

    DirectLinkInterfaceApi apiInstance = new DirectLinkInterfaceApi(defaultClient);
    CreateDirectLinkInterfaceRequest createDirectLinkInterfaceRequest = new CreateDirectLinkInterfaceRequest(); // CreateDirectLinkInterfaceRequest | 
    try {
      CreateDirectLinkInterfaceResponse result = apiInstance.createDirectLinkInterface(createDirectLinkInterfaceRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling DirectLinkInterfaceApi#createDirectLinkInterface");
      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
createDirectLinkInterfaceRequest CreateDirectLinkInterfaceRequest [optional]

Return type

CreateDirectLinkInterfaceResponse

Authorization

ApiKeyAuth

HTTP request headers

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

HTTP response details

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

deleteDirectLinkInterface

DeleteDirectLinkInterfaceResponse deleteDirectLinkInterface(deleteDirectLinkInterfaceRequest)

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.auth.*;
import io.github.outscale.osc_sdk_java.client.models.*;
import io.github.outscale.osc_sdk_java.client.api.DirectLinkInterfaceApi;

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")
    
    // Configure API key authorization: ApiKeyAuth
    ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    ApiKeyAuth.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //ApiKeyAuth.setApiKeyPrefix("Token");

    DirectLinkInterfaceApi apiInstance = new DirectLinkInterfaceApi(defaultClient);
    DeleteDirectLinkInterfaceRequest deleteDirectLinkInterfaceRequest = new DeleteDirectLinkInterfaceRequest(); // DeleteDirectLinkInterfaceRequest | 
    try {
      DeleteDirectLinkInterfaceResponse result = apiInstance.deleteDirectLinkInterface(deleteDirectLinkInterfaceRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling DirectLinkInterfaceApi#deleteDirectLinkInterface");
      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
deleteDirectLinkInterfaceRequest DeleteDirectLinkInterfaceRequest [optional]

Return type

DeleteDirectLinkInterfaceResponse

Authorization

ApiKeyAuth

HTTP request headers

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

HTTP response details

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

readDirectLinkInterfaces

ReadDirectLinkInterfacesResponse readDirectLinkInterfaces(readDirectLinkInterfacesRequest)

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.auth.*;
import io.github.outscale.osc_sdk_java.client.models.*;
import io.github.outscale.osc_sdk_java.client.api.DirectLinkInterfaceApi;

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")
    
    // Configure API key authorization: ApiKeyAuth
    ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    ApiKeyAuth.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //ApiKeyAuth.setApiKeyPrefix("Token");

    DirectLinkInterfaceApi apiInstance = new DirectLinkInterfaceApi(defaultClient);
    ReadDirectLinkInterfacesRequest readDirectLinkInterfacesRequest = new ReadDirectLinkInterfacesRequest(); // ReadDirectLinkInterfacesRequest | 
    try {
      ReadDirectLinkInterfacesResponse result = apiInstance.readDirectLinkInterfaces(readDirectLinkInterfacesRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling DirectLinkInterfaceApi#readDirectLinkInterfaces");
      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
readDirectLinkInterfacesRequest ReadDirectLinkInterfacesRequest [optional]

Return type

ReadDirectLinkInterfacesResponse

Authorization

ApiKeyAuth

HTTP request headers

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

HTTP response details

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

updateDirectLinkInterface

UpdateDirectLinkInterfaceResponse updateDirectLinkInterface(updateDirectLinkInterfaceRequest)

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.auth.*;
import io.github.outscale.osc_sdk_java.client.models.*;
import io.github.outscale.osc_sdk_java.client.api.DirectLinkInterfaceApi;

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")
    
    // Configure API key authorization: ApiKeyAuth
    ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
    ApiKeyAuth.setApiKey("YOUR API KEY");
    // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
    //ApiKeyAuth.setApiKeyPrefix("Token");

    DirectLinkInterfaceApi apiInstance = new DirectLinkInterfaceApi(defaultClient);
    UpdateDirectLinkInterfaceRequest updateDirectLinkInterfaceRequest = new UpdateDirectLinkInterfaceRequest(); // UpdateDirectLinkInterfaceRequest | 
    try {
      UpdateDirectLinkInterfaceResponse result = apiInstance.updateDirectLinkInterface(updateDirectLinkInterfaceRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling DirectLinkInterfaceApi#updateDirectLinkInterface");
      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
updateDirectLinkInterfaceRequest UpdateDirectLinkInterfaceRequest [optional]

Return type

UpdateDirectLinkInterfaceResponse

Authorization

ApiKeyAuth

HTTP request headers

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

HTTP response details

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