@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class KeyManagementApi extends Object
| Constructor and Description |
|---|
KeyManagementApi() |
KeyManagementApi(ApiClient apiClient) |
public KeyManagementApi()
public KeyManagementApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic ApiKeyResponse createAPIKey(ApiKey body) throws ApiException
See createAPIKeyWithHttpInfo(com.datadog.api.client.v1.model.ApiKey).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<ApiKeyResponse> createAPIKeyAsync(ApiKey body)
See createAPIKeyWithHttpInfoAsync(com.datadog.api.client.v1.model.ApiKey).
body - (required)public ApiResponse<ApiKeyResponse> createAPIKeyWithHttpInfo(ApiKey body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApiKeyResponse>> createAPIKeyWithHttpInfoAsync(ApiKey body)
See createAPIKeyWithHttpInfo(com.datadog.api.client.v1.model.ApiKey).
body - (required)public ApplicationKeyResponse createApplicationKey(ApplicationKey body) throws ApiException
See createApplicationKeyWithHttpInfo(com.datadog.api.client.v1.model.ApplicationKey).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationKeyResponse> createApplicationKeyAsync(ApplicationKey body)
See createApplicationKeyWithHttpInfoAsync(com.datadog.api.client.v1.model.ApplicationKey).
body - (required)public ApiResponse<ApplicationKeyResponse> createApplicationKeyWithHttpInfo(ApplicationKey body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> createApplicationKeyWithHttpInfoAsync(ApplicationKey body)
See createApplicationKeyWithHttpInfo(com.datadog.api.client.v1.model.ApplicationKey).
body - (required)public ApiKeyResponse deleteAPIKey(String key) throws ApiException
key - The specific API key you are working with. (required)ApiException - if fails to make API callpublic CompletableFuture<ApiKeyResponse> deleteAPIKeyAsync(String key)
key - The specific API key you are working with. (required)public ApiResponse<ApiKeyResponse> deleteAPIKeyWithHttpInfo(String key) throws ApiException
key - The specific API key you are working with. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApiKeyResponse>> deleteAPIKeyWithHttpInfoAsync(String key)
key - The specific API key you are working with. (required)public ApplicationKeyResponse deleteApplicationKey(String key) throws ApiException
key - The specific APP key you are working with. (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationKeyResponse> deleteApplicationKeyAsync(String key)
See deleteApplicationKeyWithHttpInfoAsync(java.lang.String).
key - The specific APP key you are working with. (required)public ApiResponse<ApplicationKeyResponse> deleteApplicationKeyWithHttpInfo(String key) throws ApiException
key - The specific APP key you are working with. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> deleteApplicationKeyWithHttpInfoAsync(String key)
key - The specific APP key you are working with. (required)public ApiKeyResponse getAPIKey(String key) throws ApiException
key - The specific API key you are working with. (required)ApiException - if fails to make API callpublic CompletableFuture<ApiKeyResponse> getAPIKeyAsync(String key)
key - The specific API key you are working with. (required)public ApiResponse<ApiKeyResponse> getAPIKeyWithHttpInfo(String key) throws ApiException
key - The specific API key you are working with. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApiKeyResponse>> getAPIKeyWithHttpInfoAsync(String key)
key - The specific API key you are working with. (required)public ApplicationKeyResponse getApplicationKey(String key) throws ApiException
key - The specific APP key you are working with. (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationKeyResponse> getApplicationKeyAsync(String key)
key - The specific APP key you are working with. (required)public ApiResponse<ApplicationKeyResponse> getApplicationKeyWithHttpInfo(String key) throws ApiException
key - The specific APP key you are working with. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> getApplicationKeyWithHttpInfoAsync(String key)
key - The specific APP key you are working with. (required)public ApiKeyListResponse listAPIKeys() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ApiKeyListResponse> listAPIKeysAsync()
public ApiResponse<ApiKeyListResponse> listAPIKeysWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApiKeyListResponse>> listAPIKeysWithHttpInfoAsync()
public ApplicationKeyListResponse listApplicationKeys() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<ApplicationKeyListResponse> listApplicationKeysAsync()
public ApiResponse<ApplicationKeyListResponse> listApplicationKeysWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApplicationKeyListResponse>> listApplicationKeysWithHttpInfoAsync()
public ApiKeyResponse updateAPIKey(String key, ApiKey body) throws ApiException
See updateAPIKeyWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.ApiKey).
key - The specific API key you are working with. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<ApiKeyResponse> updateAPIKeyAsync(String key, ApiKey body)
See updateAPIKeyWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v1.model.ApiKey).
key - The specific API key you are working with. (required)body - (required)public ApiResponse<ApiKeyResponse> updateAPIKeyWithHttpInfo(String key, ApiKey body) throws ApiException
key - The specific API key you are working with. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApiKeyResponse>> updateAPIKeyWithHttpInfoAsync(String key, ApiKey body)
See updateAPIKeyWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.ApiKey).
key - The specific API key you are working with. (required)body - (required)public ApplicationKeyResponse updateApplicationKey(String key, ApplicationKey body) throws ApiException
See updateApplicationKeyWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.ApplicationKey).
key - The specific APP key you are working with. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationKeyResponse> updateApplicationKeyAsync(String key, ApplicationKey body)
key - The specific APP key you are working with. (required)body - (required)public ApiResponse<ApplicationKeyResponse> updateApplicationKeyWithHttpInfo(String key, ApplicationKey body) throws ApiException
key - The specific APP key you are working with. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 409 | Conflict | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> updateApplicationKeyWithHttpInfoAsync(String key, ApplicationKey body)
See updateApplicationKeyWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.ApplicationKey).
key - The specific APP key you are working with. (required)body - (required)Copyright © 2024. All rights reserved.