Skip to content

Latest commit

 

History

History
351 lines (268 loc) · 13.1 KB

NetAccessPointApi.md

File metadata and controls

351 lines (268 loc) · 13.1 KB

NetAccessPointApi

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

Method HTTP request Description
createNetAccessPoint POST /CreateNetAccessPoint
deleteNetAccessPoint POST /DeleteNetAccessPoint
readNetAccessPointServices POST /ReadNetAccessPointServices
readNetAccessPoints POST /ReadNetAccessPoints
updateNetAccessPoint POST /UpdateNetAccessPoint

createNetAccessPoint

CreateNetAccessPointResponse createNetAccessPoint(createNetAccessPointRequest)

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

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

    NetAccessPointApi apiInstance = new NetAccessPointApi(defaultClient);
    CreateNetAccessPointRequest createNetAccessPointRequest = new CreateNetAccessPointRequest(); // CreateNetAccessPointRequest | 
    try {
      CreateNetAccessPointResponse result = apiInstance.createNetAccessPoint(createNetAccessPointRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling NetAccessPointApi#createNetAccessPoint");
      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
createNetAccessPointRequest CreateNetAccessPointRequest [optional]

Return type

CreateNetAccessPointResponse

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). -

deleteNetAccessPoint

DeleteNetAccessPointResponse deleteNetAccessPoint(deleteNetAccessPointRequest)

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

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

    NetAccessPointApi apiInstance = new NetAccessPointApi(defaultClient);
    DeleteNetAccessPointRequest deleteNetAccessPointRequest = new DeleteNetAccessPointRequest(); // DeleteNetAccessPointRequest | 
    try {
      DeleteNetAccessPointResponse result = apiInstance.deleteNetAccessPoint(deleteNetAccessPointRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling NetAccessPointApi#deleteNetAccessPoint");
      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
deleteNetAccessPointRequest DeleteNetAccessPointRequest [optional]

Return type

DeleteNetAccessPointResponse

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). -

readNetAccessPointServices

ReadNetAccessPointServicesResponse readNetAccessPointServices(readNetAccessPointServicesRequest)

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

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

    NetAccessPointApi apiInstance = new NetAccessPointApi(defaultClient);
    ReadNetAccessPointServicesRequest readNetAccessPointServicesRequest = new ReadNetAccessPointServicesRequest(); // ReadNetAccessPointServicesRequest | 
    try {
      ReadNetAccessPointServicesResponse result = apiInstance.readNetAccessPointServices(readNetAccessPointServicesRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling NetAccessPointApi#readNetAccessPointServices");
      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
readNetAccessPointServicesRequest ReadNetAccessPointServicesRequest [optional]

Return type

ReadNetAccessPointServicesResponse

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). -

readNetAccessPoints

ReadNetAccessPointsResponse readNetAccessPoints(readNetAccessPointsRequest)

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

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

    NetAccessPointApi apiInstance = new NetAccessPointApi(defaultClient);
    ReadNetAccessPointsRequest readNetAccessPointsRequest = new ReadNetAccessPointsRequest(); // ReadNetAccessPointsRequest | 
    try {
      ReadNetAccessPointsResponse result = apiInstance.readNetAccessPoints(readNetAccessPointsRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling NetAccessPointApi#readNetAccessPoints");
      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
readNetAccessPointsRequest ReadNetAccessPointsRequest [optional]

Return type

ReadNetAccessPointsResponse

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). -

updateNetAccessPoint

UpdateNetAccessPointResponse updateNetAccessPoint(updateNetAccessPointRequest)

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

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

    NetAccessPointApi apiInstance = new NetAccessPointApi(defaultClient);
    UpdateNetAccessPointRequest updateNetAccessPointRequest = new UpdateNetAccessPointRequest(); // UpdateNetAccessPointRequest | 
    try {
      UpdateNetAccessPointResponse result = apiInstance.updateNetAccessPoint(updateNetAccessPointRequest);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling NetAccessPointApi#updateNetAccessPoint");
      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
updateNetAccessPointRequest UpdateNetAccessPointRequest [optional]

Return type

UpdateNetAccessPointResponse

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). -