All URIs are relative to https://api.eu-west-2.outscale.com/api/v1
CreateLoadBalancerResponse createLoadBalancer(createLoadBalancerRequest)
// 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 .LoadBalancerApi ;
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");
LoadBalancerApi apiInstance = new LoadBalancerApi (defaultClient );
CreateLoadBalancerRequest createLoadBalancerRequest = new CreateLoadBalancerRequest (); // CreateLoadBalancerRequest |
try {
CreateLoadBalancerResponse result = apiInstance .createLoadBalancer (createLoadBalancerRequest );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling LoadBalancerApi#createLoadBalancer" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
CreateLoadBalancerResponse
ApiKeyAuth
HTTP request headers
Content-Type : application/json
Accept : application/json
Status code
Description
Response headers
200
The HTTP 200 response (OK).
-
CreateLoadBalancerTagsResponse createLoadBalancerTags(createLoadBalancerTagsRequest)
// 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 .LoadBalancerApi ;
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");
LoadBalancerApi apiInstance = new LoadBalancerApi (defaultClient );
CreateLoadBalancerTagsRequest createLoadBalancerTagsRequest = new CreateLoadBalancerTagsRequest (); // CreateLoadBalancerTagsRequest |
try {
CreateLoadBalancerTagsResponse result = apiInstance .createLoadBalancerTags (createLoadBalancerTagsRequest );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling LoadBalancerApi#createLoadBalancerTags" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
CreateLoadBalancerTagsResponse
ApiKeyAuth
HTTP request headers
Content-Type : application/json
Accept : application/json
Status code
Description
Response headers
200
The HTTP 200 response (OK).
-
DeleteLoadBalancerResponse deleteLoadBalancer(deleteLoadBalancerRequest)
// 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 .LoadBalancerApi ;
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");
LoadBalancerApi apiInstance = new LoadBalancerApi (defaultClient );
DeleteLoadBalancerRequest deleteLoadBalancerRequest = new DeleteLoadBalancerRequest (); // DeleteLoadBalancerRequest |
try {
DeleteLoadBalancerResponse result = apiInstance .deleteLoadBalancer (deleteLoadBalancerRequest );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling LoadBalancerApi#deleteLoadBalancer" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
DeleteLoadBalancerResponse
ApiKeyAuth
HTTP request headers
Content-Type : application/json
Accept : application/json
Status code
Description
Response headers
200
The HTTP 200 response (OK).
-
DeleteLoadBalancerTagsResponse deleteLoadBalancerTags(deleteLoadBalancerTagsRequest)
// 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 .LoadBalancerApi ;
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");
LoadBalancerApi apiInstance = new LoadBalancerApi (defaultClient );
DeleteLoadBalancerTagsRequest deleteLoadBalancerTagsRequest = new DeleteLoadBalancerTagsRequest (); // DeleteLoadBalancerTagsRequest |
try {
DeleteLoadBalancerTagsResponse result = apiInstance .deleteLoadBalancerTags (deleteLoadBalancerTagsRequest );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling LoadBalancerApi#deleteLoadBalancerTags" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
DeleteLoadBalancerTagsResponse
ApiKeyAuth
HTTP request headers
Content-Type : application/json
Accept : application/json
Status code
Description
Response headers
200
The HTTP 200 response (OK).
-
deregisterVmsInLoadBalancer
DeregisterVmsInLoadBalancerResponse deregisterVmsInLoadBalancer(deregisterVmsInLoadBalancerRequest)
// 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 .LoadBalancerApi ;
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");
LoadBalancerApi apiInstance = new LoadBalancerApi (defaultClient );
DeregisterVmsInLoadBalancerRequest deregisterVmsInLoadBalancerRequest = new DeregisterVmsInLoadBalancerRequest (); // DeregisterVmsInLoadBalancerRequest |
try {
DeregisterVmsInLoadBalancerResponse result = apiInstance .deregisterVmsInLoadBalancer (deregisterVmsInLoadBalancerRequest );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling LoadBalancerApi#deregisterVmsInLoadBalancer" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
DeregisterVmsInLoadBalancerResponse
ApiKeyAuth
HTTP request headers
Content-Type : application/json
Accept : application/json
Status code
Description
Response headers
200
The HTTP 200 response (OK).
-
linkLoadBalancerBackendMachines
LinkLoadBalancerBackendMachinesResponse linkLoadBalancerBackendMachines(linkLoadBalancerBackendMachinesRequest)
// 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 .LoadBalancerApi ;
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");
LoadBalancerApi apiInstance = new LoadBalancerApi (defaultClient );
LinkLoadBalancerBackendMachinesRequest linkLoadBalancerBackendMachinesRequest = new LinkLoadBalancerBackendMachinesRequest (); // LinkLoadBalancerBackendMachinesRequest |
try {
LinkLoadBalancerBackendMachinesResponse result = apiInstance .linkLoadBalancerBackendMachines (linkLoadBalancerBackendMachinesRequest );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling LoadBalancerApi#linkLoadBalancerBackendMachines" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
LinkLoadBalancerBackendMachinesResponse
ApiKeyAuth
HTTP request headers
Content-Type : application/json
Accept : application/json
Status code
Description
Response headers
200
The HTTP 200 response (OK).
-
ReadLoadBalancerTagsResponse readLoadBalancerTags(readLoadBalancerTagsRequest)
// 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 .LoadBalancerApi ;
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");
LoadBalancerApi apiInstance = new LoadBalancerApi (defaultClient );
ReadLoadBalancerTagsRequest readLoadBalancerTagsRequest = new ReadLoadBalancerTagsRequest (); // ReadLoadBalancerTagsRequest |
try {
ReadLoadBalancerTagsResponse result = apiInstance .readLoadBalancerTags (readLoadBalancerTagsRequest );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling LoadBalancerApi#readLoadBalancerTags" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
ReadLoadBalancerTagsResponse
ApiKeyAuth
HTTP request headers
Content-Type : application/json
Accept : application/json
Status code
Description
Response headers
200
The HTTP 200 response (OK).
-
ReadLoadBalancersResponse readLoadBalancers(readLoadBalancersRequest)
// 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 .LoadBalancerApi ;
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");
LoadBalancerApi apiInstance = new LoadBalancerApi (defaultClient );
ReadLoadBalancersRequest readLoadBalancersRequest = new ReadLoadBalancersRequest (); // ReadLoadBalancersRequest |
try {
ReadLoadBalancersResponse result = apiInstance .readLoadBalancers (readLoadBalancersRequest );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling LoadBalancerApi#readLoadBalancers" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
ReadLoadBalancersResponse
ApiKeyAuth
HTTP request headers
Content-Type : application/json
Accept : application/json
Status code
Description
Response headers
200
The HTTP 200 response (OK).
-
ReadVmsHealthResponse readVmsHealth(readVmsHealthRequest)
// 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 .LoadBalancerApi ;
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");
LoadBalancerApi apiInstance = new LoadBalancerApi (defaultClient );
ReadVmsHealthRequest readVmsHealthRequest = new ReadVmsHealthRequest (); // ReadVmsHealthRequest |
try {
ReadVmsHealthResponse result = apiInstance .readVmsHealth (readVmsHealthRequest );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling LoadBalancerApi#readVmsHealth" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
ReadVmsHealthResponse
ApiKeyAuth
HTTP request headers
Content-Type : application/json
Accept : application/json
Status code
Description
Response headers
200
The HTTP 200 response (OK).
-
registerVmsInLoadBalancer
RegisterVmsInLoadBalancerResponse registerVmsInLoadBalancer(registerVmsInLoadBalancerRequest)
// 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 .LoadBalancerApi ;
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");
LoadBalancerApi apiInstance = new LoadBalancerApi (defaultClient );
RegisterVmsInLoadBalancerRequest registerVmsInLoadBalancerRequest = new RegisterVmsInLoadBalancerRequest (); // RegisterVmsInLoadBalancerRequest |
try {
RegisterVmsInLoadBalancerResponse result = apiInstance .registerVmsInLoadBalancer (registerVmsInLoadBalancerRequest );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling LoadBalancerApi#registerVmsInLoadBalancer" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
RegisterVmsInLoadBalancerResponse
ApiKeyAuth
HTTP request headers
Content-Type : application/json
Accept : application/json
Status code
Description
Response headers
200
The HTTP 200 response (OK).
-
unlinkLoadBalancerBackendMachines
UnlinkLoadBalancerBackendMachinesResponse unlinkLoadBalancerBackendMachines(unlinkLoadBalancerBackendMachinesRequest)
// 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 .LoadBalancerApi ;
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");
LoadBalancerApi apiInstance = new LoadBalancerApi (defaultClient );
UnlinkLoadBalancerBackendMachinesRequest unlinkLoadBalancerBackendMachinesRequest = new UnlinkLoadBalancerBackendMachinesRequest (); // UnlinkLoadBalancerBackendMachinesRequest |
try {
UnlinkLoadBalancerBackendMachinesResponse result = apiInstance .unlinkLoadBalancerBackendMachines (unlinkLoadBalancerBackendMachinesRequest );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling LoadBalancerApi#unlinkLoadBalancerBackendMachines" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
UnlinkLoadBalancerBackendMachinesResponse
ApiKeyAuth
HTTP request headers
Content-Type : application/json
Accept : application/json
Status code
Description
Response headers
200
The HTTP 200 response (OK).
-
UpdateLoadBalancerResponse updateLoadBalancer(updateLoadBalancerRequest)
// 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 .LoadBalancerApi ;
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");
LoadBalancerApi apiInstance = new LoadBalancerApi (defaultClient );
UpdateLoadBalancerRequest updateLoadBalancerRequest = new UpdateLoadBalancerRequest (); // UpdateLoadBalancerRequest |
try {
UpdateLoadBalancerResponse result = apiInstance .updateLoadBalancer (updateLoadBalancerRequest );
System .out .println (result );
} catch (ApiException e ) {
System .err .println ("Exception when calling LoadBalancerApi#updateLoadBalancer" );
System .err .println ("Status code: " + e .getCode ());
System .err .println ("Reason: " + e .getResponseBody ());
System .err .println ("Response headers: " + e .getResponseHeaders ());
e .printStackTrace ();
}
}
}
UpdateLoadBalancerResponse
ApiKeyAuth
HTTP request headers
Content-Type : application/json
Accept : application/json
Status code
Description
Response headers
200
The HTTP 200 response (OK).
-