All URIs are relative to https://api.eu-west-2.outscale.com/api/v1
CreateApiAccessRuleResponse createApiAccessRule(createApiAccessRuleRequest)
// 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.ApiAccessRuleApi;
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: ApiKeyAuthSec
ApiKeyAuth ApiKeyAuthSec = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuthSec");
ApiKeyAuthSec.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuthSec.setApiKeyPrefix("Token");
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
ApiAccessRuleApi apiInstance = new ApiAccessRuleApi(defaultClient);
CreateApiAccessRuleRequest createApiAccessRuleRequest = new CreateApiAccessRuleRequest(); // CreateApiAccessRuleRequest |
try {
CreateApiAccessRuleResponse result = apiInstance.createApiAccessRule(createApiAccessRuleRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApiAccessRuleApi#createApiAccessRule");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
CreateApiAccessRuleResponse
ApiKeyAuthSec, BasicAuth
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Status code |
Description |
Response headers |
200 |
The HTTP 200 response (OK). |
- |
DeleteApiAccessRuleResponse deleteApiAccessRule(deleteApiAccessRuleRequest)
// 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.ApiAccessRuleApi;
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: ApiKeyAuthSec
ApiKeyAuth ApiKeyAuthSec = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuthSec");
ApiKeyAuthSec.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuthSec.setApiKeyPrefix("Token");
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
ApiAccessRuleApi apiInstance = new ApiAccessRuleApi(defaultClient);
DeleteApiAccessRuleRequest deleteApiAccessRuleRequest = new DeleteApiAccessRuleRequest(); // DeleteApiAccessRuleRequest |
try {
DeleteApiAccessRuleResponse result = apiInstance.deleteApiAccessRule(deleteApiAccessRuleRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApiAccessRuleApi#deleteApiAccessRule");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
DeleteApiAccessRuleResponse
ApiKeyAuthSec, BasicAuth
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Status code |
Description |
Response headers |
200 |
The HTTP 200 response (OK). |
- |
ReadApiAccessRulesResponse readApiAccessRules(readApiAccessRulesRequest)
// 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.ApiAccessRuleApi;
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: ApiKeyAuthSec
ApiKeyAuth ApiKeyAuthSec = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuthSec");
ApiKeyAuthSec.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuthSec.setApiKeyPrefix("Token");
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
ApiAccessRuleApi apiInstance = new ApiAccessRuleApi(defaultClient);
ReadApiAccessRulesRequest readApiAccessRulesRequest = new ReadApiAccessRulesRequest(); // ReadApiAccessRulesRequest |
try {
ReadApiAccessRulesResponse result = apiInstance.readApiAccessRules(readApiAccessRulesRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApiAccessRuleApi#readApiAccessRules");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
ReadApiAccessRulesResponse
ApiKeyAuthSec, BasicAuth
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Status code |
Description |
Response headers |
200 |
The HTTP 200 response (OK). |
- |
UpdateApiAccessRuleResponse updateApiAccessRule(updateApiAccessRuleRequest)
// 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.ApiAccessRuleApi;
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: ApiKeyAuthSec
ApiKeyAuth ApiKeyAuthSec = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuthSec");
ApiKeyAuthSec.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuthSec.setApiKeyPrefix("Token");
// Configure HTTP basic authorization: BasicAuth
HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
ApiAccessRuleApi apiInstance = new ApiAccessRuleApi(defaultClient);
UpdateApiAccessRuleRequest updateApiAccessRuleRequest = new UpdateApiAccessRuleRequest(); // UpdateApiAccessRuleRequest |
try {
UpdateApiAccessRuleResponse result = apiInstance.updateApiAccessRule(updateApiAccessRuleRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ApiAccessRuleApi#updateApiAccessRule");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
UpdateApiAccessRuleResponse
ApiKeyAuthSec, BasicAuth
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Status code |
Description |
Response headers |
200 |
The HTTP 200 response (OK). |
- |