Class KeyManagementApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAPIKey(ApiKey body) Create an API key.createAPIKeyAsync(ApiKey body) Create an API key.Creates an API key with a given name.Create an API key.Create an application key.Create an application key.Create an application key with a given name.Create an application key.deleteAPIKey(String key) Delete an API key.deleteAPIKeyAsync(String key) Delete an API key.Delete a given API key.Delete an API key.Delete an application key.Delete an application key.Delete a given application key.Delete an application key.Get the API client.Get API key.getAPIKeyAsync(String key) Get API key.Get a given API key.Get API key.getApplicationKey(String key) Get an application key.Get an application key.Get a given application key.Get an application key.Get all API keys.Get all API keys.Get all API keys available for your account.Get all API keys.Get all application keys.Get all application keys.Get all application keys available for your Datadog account.Get all application keys.voidsetApiClient(ApiClient apiClient) Set the API client.updateAPIKey(String key, ApiKey body) Edit an API key.updateAPIKeyAsync(String key, ApiKey body) Edit an API key.updateAPIKeyWithHttpInfo(String key, ApiKey body) Edit an API key name.updateAPIKeyWithHttpInfoAsync(String key, ApiKey body) Edit an API key.updateApplicationKey(String key, ApplicationKey body) Edit an application key.updateApplicationKeyAsync(String key, ApplicationKey body) Edit an application key.updateApplicationKeyWithHttpInfo(String key, ApplicationKey body) Edit an application key name.Edit an application key.
-
Constructor Details
-
KeyManagementApi
public KeyManagementApi() -
KeyManagementApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createAPIKey
Create an API key.See
createAPIKeyWithHttpInfo(com.datadog.api.client.v1.model.ApiKey).- Parameters:
body- (required)- Returns:
- ApiKeyResponse
- Throws:
ApiException- if fails to make API call
-
createAPIKeyAsync
Create an API key.See
createAPIKeyWithHttpInfoAsync(com.datadog.api.client.v1.model.ApiKey).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiKeyResponse>
-
createAPIKeyWithHttpInfo
Creates an API key with a given name.Note: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the V2 Key Management endpoints instead.
- Parameters:
body- (required)- Returns:
- ApiResponse<ApiKeyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
createAPIKeyWithHttpInfoAsync
Create an API key.See
createAPIKeyWithHttpInfo(com.datadog.api.client.v1.model.ApiKey).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<ApiKeyResponse>>
-
createApplicationKey
Create an application key.See
createApplicationKeyWithHttpInfo(com.datadog.api.client.v1.model.ApplicationKey).- Parameters:
body- (required)- Returns:
- ApplicationKeyResponse
- Throws:
ApiException- if fails to make API call
-
createApplicationKeyAsync
Create an application key.See
createApplicationKeyWithHttpInfoAsync(com.datadog.api.client.v1.model.ApplicationKey).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApplicationKeyResponse>
-
createApplicationKeyWithHttpInfo
public ApiResponse<ApplicationKeyResponse> createApplicationKeyWithHttpInfo(ApplicationKey body) throws ApiException Create an application key with a given name. This endpoint is disabled for organizations in One-Time Read mode.Note: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the V2 Key Management endpoints instead.
- Parameters:
body- (required)- Returns:
- ApiResponse<ApplicationKeyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 409 Conflict - 429 Too many requests -
-
createApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> createApplicationKeyWithHttpInfoAsync(ApplicationKey body) Create an application key.See
createApplicationKeyWithHttpInfo(com.datadog.api.client.v1.model.ApplicationKey).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<ApplicationKeyResponse>>
-
deleteAPIKey
Delete an API key.- Parameters:
key- The specific API key you are working with. (required)- Returns:
- ApiKeyResponse
- Throws:
ApiException- if fails to make API call
-
deleteAPIKeyAsync
Delete an API key.- Parameters:
key- The specific API key you are working with. (required)- Returns:
- CompletableFuture<ApiKeyResponse>
-
deleteAPIKeyWithHttpInfo
Delete a given API key.Note: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the V2 Key Management endpoints instead.
- Parameters:
key- The specific API key you are working with. (required)- Returns:
- ApiResponse<ApiKeyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteAPIKeyWithHttpInfoAsync
Delete an API key.- Parameters:
key- The specific API key you are working with. (required)- Returns:
- CompletableFuture<ApiResponse<ApiKeyResponse>>
-
deleteApplicationKey
Delete an application key.- Parameters:
key- The specific APP key you are working with. (required)- Returns:
- ApplicationKeyResponse
- Throws:
ApiException- if fails to make API call
-
deleteApplicationKeyAsync
Delete an application key.See
deleteApplicationKeyWithHttpInfoAsync(java.lang.String).- Parameters:
key- The specific APP key you are working with. (required)- Returns:
- CompletableFuture<ApplicationKeyResponse>
-
deleteApplicationKeyWithHttpInfo
public ApiResponse<ApplicationKeyResponse> deleteApplicationKeyWithHttpInfo(String key) throws ApiException Delete a given application key. This endpoint is disabled for organizations in One-Time Read mode.Note: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the V2 Key Management endpoints instead.
- Parameters:
key- The specific APP key you are working with. (required)- Returns:
- ApiResponse<ApplicationKeyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> deleteApplicationKeyWithHttpInfoAsync(String key) Delete an application key.- Parameters:
key- The specific APP key you are working with. (required)- Returns:
- CompletableFuture<ApiResponse<ApplicationKeyResponse>>
-
getAPIKey
Get API key.- Parameters:
key- The specific API key you are working with. (required)- Returns:
- ApiKeyResponse
- Throws:
ApiException- if fails to make API call
-
getAPIKeyAsync
Get API key.- Parameters:
key- The specific API key you are working with. (required)- Returns:
- CompletableFuture<ApiKeyResponse>
-
getAPIKeyWithHttpInfo
Get a given API key.Note: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the V2 Key Management endpoints instead.
- Parameters:
key- The specific API key you are working with. (required)- Returns:
- ApiResponse<ApiKeyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getAPIKeyWithHttpInfoAsync
Get API key.- Parameters:
key- The specific API key you are working with. (required)- Returns:
- CompletableFuture<ApiResponse<ApiKeyResponse>>
-
getApplicationKey
Get an application key.- Parameters:
key- The specific APP key you are working with. (required)- Returns:
- ApplicationKeyResponse
- Throws:
ApiException- if fails to make API call
-
getApplicationKeyAsync
Get an application key.- Parameters:
key- The specific APP key you are working with. (required)- Returns:
- CompletableFuture<ApplicationKeyResponse>
-
getApplicationKeyWithHttpInfo
public ApiResponse<ApplicationKeyResponse> getApplicationKeyWithHttpInfo(String key) throws ApiException Get a given application key. This endpoint is disabled for organizations in One-Time Read mode.Note: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the V2 Key Management endpoints instead.
- Parameters:
key- The specific APP key you are working with. (required)- Returns:
- ApiResponse<ApplicationKeyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> getApplicationKeyWithHttpInfoAsync(String key) Get an application key.- Parameters:
key- The specific APP key you are working with. (required)- Returns:
- CompletableFuture<ApiResponse<ApplicationKeyResponse>>
-
listAPIKeys
Get all API keys.- Returns:
- ApiKeyListResponse
- Throws:
ApiException- if fails to make API call
-
listAPIKeysAsync
Get all API keys.- Returns:
- CompletableFuture<ApiKeyListResponse>
-
listAPIKeysWithHttpInfo
Get all API keys available for your account.Note: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the V2 Key Management endpoints instead.
- Returns:
- ApiResponse<ApiKeyListResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 429 Too many requests -
-
listAPIKeysWithHttpInfoAsync
Get all API keys.- Returns:
- CompletableFuture<ApiResponse<ApiKeyListResponse>>
-
listApplicationKeys
Get all application keys.- Returns:
- ApplicationKeyListResponse
- Throws:
ApiException- if fails to make API call
-
listApplicationKeysAsync
Get all application keys.- Returns:
- CompletableFuture<ApplicationKeyListResponse>
-
listApplicationKeysWithHttpInfo
public ApiResponse<ApplicationKeyListResponse> listApplicationKeysWithHttpInfo() throws ApiExceptionGet all application keys available for your Datadog account. This endpoint is disabled for organizations in One-Time Read mode.Note: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the V2 Key Management endpoints instead.
- Returns:
- ApiResponse<ApplicationKeyListResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 429 Too many requests -
-
listApplicationKeysWithHttpInfoAsync
public CompletableFuture<ApiResponse<ApplicationKeyListResponse>> listApplicationKeysWithHttpInfoAsync()Get all application keys.- Returns:
- CompletableFuture<ApiResponse<ApplicationKeyListResponse>>
-
updateAPIKey
Edit an API key.See
updateAPIKeyWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.ApiKey).- Parameters:
key- The specific API key you are working with. (required)body- (required)- Returns:
- ApiKeyResponse
- Throws:
ApiException- if fails to make API call
-
updateAPIKeyAsync
Edit an API key.See
updateAPIKeyWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v1.model.ApiKey).- Parameters:
key- The specific API key you are working with. (required)body- (required)- Returns:
- CompletableFuture<ApiKeyResponse>
-
updateAPIKeyWithHttpInfo
public ApiResponse<ApiKeyResponse> updateAPIKeyWithHttpInfo(String key, ApiKey body) throws ApiException Edit an API key name.Note: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the V2 Key Management endpoints instead.
- Parameters:
key- The specific API key you are working with. (required)body- (required)- Returns:
- ApiResponse<ApiKeyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
updateAPIKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ApiKeyResponse>> updateAPIKeyWithHttpInfoAsync(String key, ApiKey body) Edit an API key.See
updateAPIKeyWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.ApiKey).- Parameters:
key- The specific API key you are working with. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<ApiKeyResponse>>
-
updateApplicationKey
public ApplicationKeyResponse updateApplicationKey(String key, ApplicationKey body) throws ApiException Edit an application key.See
updateApplicationKeyWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.ApplicationKey).- Parameters:
key- The specific APP key you are working with. (required)body- (required)- Returns:
- ApplicationKeyResponse
- Throws:
ApiException- if fails to make API call
-
updateApplicationKeyAsync
public CompletableFuture<ApplicationKeyResponse> updateApplicationKeyAsync(String key, ApplicationKey body) Edit an application key.- Parameters:
key- The specific APP key you are working with. (required)body- (required)- Returns:
- CompletableFuture<ApplicationKeyResponse>
-
updateApplicationKeyWithHttpInfo
public ApiResponse<ApplicationKeyResponse> updateApplicationKeyWithHttpInfo(String key, ApplicationKey body) throws ApiException Edit an application key name. This endpoint is disabled for organizations in One-Time Read mode.Note: This endpoint is disabled for the Government sites (US1-FED and US2-FED). Use the V2 Key Management endpoints instead.
- Parameters:
key- The specific APP key you are working with. (required)body- (required)- Returns:
- ApiResponse<ApplicationKeyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 409 Conflict - 429 Too many requests -
-
updateApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> updateApplicationKeyWithHttpInfoAsync(String key, ApplicationKey body) Edit an application key.See
updateApplicationKeyWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.ApplicationKey).- Parameters:
key- The specific APP key you are working with. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<ApplicationKeyResponse>>
-