Skip to content

Latest commit

 

History

History
376 lines (292 loc) · 13.9 KB

NetPeeringApi.md

File metadata and controls

376 lines (292 loc) · 13.9 KB

NetPeeringApi

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

Method HTTP request Description
acceptNetPeering POST /AcceptNetPeering
createNetPeering POST /CreateNetPeering
deleteNetPeering POST /DeleteNetPeering
readNetPeerings POST /ReadNetPeerings
rejectNetPeering POST /RejectNetPeering

acceptNetPeering

AcceptNetPeeringResponse acceptNetPeering(acceptNetPeeringRequest)

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.NetPeeringApi;

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");

    NetPeeringApi apiInstance = new NetPeeringApi(defaultClient);
    AcceptNetPeeringRequest acceptNetPeeringRequest = new AcceptNetPeeringRequest(); // AcceptNetPeeringRequest | 
    try {
      AcceptNetPeeringResponse result = apiInstance.acceptNetPeering(acceptNetPeeringRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling NetPeeringApi#acceptNetPeering");
      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
acceptNetPeeringRequest AcceptNetPeeringRequest [optional]

Return type

AcceptNetPeeringResponse

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). -
400 The HTTP 400 response (Bad Request). -
401 The HTTP 401 response (Unauthorized). -
409 The HTTP 409 response (Conflict). -
500 The HTTP 500 response (Internal Server Error). -

createNetPeering

CreateNetPeeringResponse createNetPeering(createNetPeeringRequest)

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.NetPeeringApi;

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");

    NetPeeringApi apiInstance = new NetPeeringApi(defaultClient);
    CreateNetPeeringRequest createNetPeeringRequest = new CreateNetPeeringRequest(); // CreateNetPeeringRequest | 
    try {
      CreateNetPeeringResponse result = apiInstance.createNetPeering(createNetPeeringRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling NetPeeringApi#createNetPeering");
      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
createNetPeeringRequest CreateNetPeeringRequest [optional]

Return type

CreateNetPeeringResponse

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). -
400 The HTTP 400 response (Bad Request). -
401 The HTTP 401 response (Unauthorized). -
500 The HTTP 500 response (Internal Server Error). -

deleteNetPeering

DeleteNetPeeringResponse deleteNetPeering(deleteNetPeeringRequest)

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.NetPeeringApi;

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");

    NetPeeringApi apiInstance = new NetPeeringApi(defaultClient);
    DeleteNetPeeringRequest deleteNetPeeringRequest = new DeleteNetPeeringRequest(); // DeleteNetPeeringRequest | 
    try {
      DeleteNetPeeringResponse result = apiInstance.deleteNetPeering(deleteNetPeeringRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling NetPeeringApi#deleteNetPeering");
      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
deleteNetPeeringRequest DeleteNetPeeringRequest [optional]

Return type

DeleteNetPeeringResponse

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). -
400 The HTTP 400 response (Bad Request). -
401 The HTTP 401 response (Unauthorized). -
409 The HTTP 409 response (Conflict). -
500 The HTTP 500 response (Internal Server Error). -

readNetPeerings

ReadNetPeeringsResponse readNetPeerings(readNetPeeringsRequest)

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.NetPeeringApi;

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");

    NetPeeringApi apiInstance = new NetPeeringApi(defaultClient);
    ReadNetPeeringsRequest readNetPeeringsRequest = new ReadNetPeeringsRequest(); // ReadNetPeeringsRequest | 
    try {
      ReadNetPeeringsResponse result = apiInstance.readNetPeerings(readNetPeeringsRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling NetPeeringApi#readNetPeerings");
      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
readNetPeeringsRequest ReadNetPeeringsRequest [optional]

Return type

ReadNetPeeringsResponse

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). -
400 The HTTP 400 response (Bad Request). -
401 The HTTP 401 response (Unauthorized). -
500 The HTTP 500 response (Internal Server Error). -

rejectNetPeering

RejectNetPeeringResponse rejectNetPeering(rejectNetPeeringRequest)

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.NetPeeringApi;

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");

    NetPeeringApi apiInstance = new NetPeeringApi(defaultClient);
    RejectNetPeeringRequest rejectNetPeeringRequest = new RejectNetPeeringRequest(); // RejectNetPeeringRequest | 
    try {
      RejectNetPeeringResponse result = apiInstance.rejectNetPeering(rejectNetPeeringRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling NetPeeringApi#rejectNetPeering");
      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
rejectNetPeeringRequest RejectNetPeeringRequest [optional]

Return type

RejectNetPeeringResponse

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). -
400 The HTTP 400 response (Bad Request). -
401 The HTTP 401 response (Unauthorized). -
409 The HTTP 409 response (Conflict). -
500 The HTTP 500 response (Internal Server Error). -