Class KeyManagementApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to getAPIKey.static classManage optional parameters to getApplicationKey.static classManage optional parameters to listAPIKeys.static classManage optional parameters to listApplicationKeys.static classManage optional parameters to listCurrentUserApplicationKeys.static classManage optional parameters to listPersonalAccessTokens. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an API key.Create an API key.Create an API key.Create an API key.Create an application key for current user.Create an application key for current user.Create an application key for current userCreate an application key for current user.Create a personal access token.Create a personal access token.Create a personal access token for the current user.Create a personal access token.voiddeleteAPIKey(String apiKeyId) Delete an API key.deleteAPIKeyAsync(String apiKeyId) Delete an API key.deleteAPIKeyWithHttpInfo(String apiKeyId) Delete an API key.deleteAPIKeyWithHttpInfoAsync(String apiKeyId) Delete an API key.voiddeleteApplicationKey(String appKeyId) Delete an application key.deleteApplicationKeyAsync(String appKeyId) Delete an application key.deleteApplicationKeyWithHttpInfo(String appKeyId) Delete an application keydeleteApplicationKeyWithHttpInfoAsync(String appKeyId) Delete an application key.voiddeleteCurrentUserApplicationKey(String appKeyId) Delete an application key owned by current user.deleteCurrentUserApplicationKeyAsync(String appKeyId) Delete an application key owned by current user.Delete an application key owned by current userDelete an application key owned by current user.Get the API client.Get API key.getAPIKey(String apiKeyId, KeyManagementApi.GetAPIKeyOptionalParameters parameters) Get API key.getAPIKeyAsync(String apiKeyId) Get API key.getAPIKeyAsync(String apiKeyId, KeyManagementApi.GetAPIKeyOptionalParameters parameters) Get API key.getAPIKeyWithHttpInfo(String apiKeyId, KeyManagementApi.GetAPIKeyOptionalParameters parameters) Get an API key.getAPIKeyWithHttpInfoAsync(String apiKeyId, KeyManagementApi.GetAPIKeyOptionalParameters parameters) Get API key.getApplicationKey(String appKeyId) Get an application key.getApplicationKey(String appKeyId, KeyManagementApi.GetApplicationKeyOptionalParameters parameters) Get an application key.getApplicationKeyAsync(String appKeyId) Get an application key.getApplicationKeyAsync(String appKeyId, KeyManagementApi.GetApplicationKeyOptionalParameters parameters) Get an application key.getApplicationKeyWithHttpInfo(String appKeyId, KeyManagementApi.GetApplicationKeyOptionalParameters parameters) Get an application key for your org.getApplicationKeyWithHttpInfoAsync(String appKeyId, KeyManagementApi.GetApplicationKeyOptionalParameters parameters) Get an application key.getCurrentUserApplicationKey(String appKeyId) Get one application key owned by current user.getCurrentUserApplicationKeyAsync(String appKeyId) Get one application key owned by current user.Get an application key owned by current user.Get one application key owned by current user.getPersonalAccessToken(String tokenId) Get a personal access token.getPersonalAccessTokenAsync(String tokenId) Get a personal access token.getPersonalAccessTokenWithHttpInfo(String tokenId) Get a specific personal access token by its ID.Get a personal access token.Get all API keys.Get all API keys.Get all API keys.Get all API keys.List all API keys available for your account.Get all API keys.Get all application keys.Get all application keys.Get all application keys.Get all application keys.List all application keys available for your orglistApplicationKeysWithHttpInfoAsync(KeyManagementApi.ListApplicationKeysOptionalParameters parameters) Get all application keys.Get all application keys owned by current user.listCurrentUserApplicationKeys(KeyManagementApi.ListCurrentUserApplicationKeysOptionalParameters parameters) Get all application keys owned by current user.Get all application keys owned by current user.listCurrentUserApplicationKeysAsync(KeyManagementApi.ListCurrentUserApplicationKeysOptionalParameters parameters) Get all application keys owned by current user.listCurrentUserApplicationKeysWithHttpInfo(KeyManagementApi.ListCurrentUserApplicationKeysOptionalParameters parameters) List all application keys available for current userlistCurrentUserApplicationKeysWithHttpInfoAsync(KeyManagementApi.ListCurrentUserApplicationKeysOptionalParameters parameters) Get all application keys owned by current user.Get all access tokens.Get all access tokens.Get all access tokens.listPersonalAccessTokensAsync(KeyManagementApi.ListPersonalAccessTokensOptionalParameters parameters) Get all access tokens.listPersonalAccessTokensWithHttpInfo(KeyManagementApi.ListPersonalAccessTokensOptionalParameters parameters) List all access tokens for the organization.listPersonalAccessTokensWithHttpInfoAsync(KeyManagementApi.ListPersonalAccessTokensOptionalParameters parameters) Get all access tokens.voidrevokePersonalAccessToken(String tokenId) Revoke a personal access token.revokePersonalAccessTokenAsync(String tokenId) Revoke a personal access token.Revoke a specific personal access token.Revoke a personal access token.voidsetApiClient(ApiClient apiClient) Set the API client.updateAPIKey(String apiKeyId, APIKeyUpdateRequest body) Edit an API key.updateAPIKeyAsync(String apiKeyId, APIKeyUpdateRequest body) Edit an API key.updateAPIKeyWithHttpInfo(String apiKeyId, APIKeyUpdateRequest body) Update an API key.updateAPIKeyWithHttpInfoAsync(String apiKeyId, APIKeyUpdateRequest body) Edit an API key.updateApplicationKey(String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key.updateApplicationKeyAsync(String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key.updateApplicationKeyWithHttpInfo(String appKeyId, ApplicationKeyUpdateRequest body) Edit an application keyupdateApplicationKeyWithHttpInfoAsync(String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key.updateCurrentUserApplicationKey(String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key owned by current user.updateCurrentUserApplicationKeyAsync(String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key owned by current user.Edit an application key owned by current user.Edit an application key owned by current user.updatePersonalAccessToken(String tokenId, PersonalAccessTokenUpdateRequest body) Update a personal access token.updatePersonalAccessTokenAsync(String tokenId, PersonalAccessTokenUpdateRequest body) Update a personal access token.Update a specific personal access token.Update a personal access token.validate()Validate API key.Validate API and application keys.Validate API and application keys.Check that the API key and application key used for the request are both valid.Validate API and application keys.Validate API key.Check if the API key is valid.Validate API 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.v2.model.APIKeyCreateRequest).- Parameters:
body- (required)- Returns:
- APIKeyResponse
- Throws:
ApiException- if fails to make API call
-
createAPIKeyAsync
Create an API key.See
createAPIKeyWithHttpInfoAsync(com.datadog.api.client.v2.model.APIKeyCreateRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<APIKeyResponse>
-
createAPIKeyWithHttpInfo
public ApiResponse<APIKeyResponse> createAPIKeyWithHttpInfo(APIKeyCreateRequest body) throws ApiException Create an API key.- Parameters:
body- (required)- Returns:
- ApiResponse<APIKeyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
createAPIKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<APIKeyResponse>> createAPIKeyWithHttpInfoAsync(APIKeyCreateRequest body) Create an API key.See
createAPIKeyWithHttpInfo(com.datadog.api.client.v2.model.APIKeyCreateRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<APIKeyResponse>>
-
createCurrentUserApplicationKey
public ApplicationKeyResponse createCurrentUserApplicationKey(ApplicationKeyCreateRequest body) throws ApiException Create an application key for current user.- Parameters:
body- (required)- Returns:
- ApplicationKeyResponse
- Throws:
ApiException- if fails to make API call
-
createCurrentUserApplicationKeyAsync
public CompletableFuture<ApplicationKeyResponse> createCurrentUserApplicationKeyAsync(ApplicationKeyCreateRequest body) Create an application key for current user.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApplicationKeyResponse>
-
createCurrentUserApplicationKeyWithHttpInfo
public ApiResponse<ApplicationKeyResponse> createCurrentUserApplicationKeyWithHttpInfo(ApplicationKeyCreateRequest body) throws ApiException Create an application key for current user- Parameters:
body- (required)- Returns:
- ApiResponse<ApplicationKeyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
createCurrentUserApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> createCurrentUserApplicationKeyWithHttpInfoAsync(ApplicationKeyCreateRequest body) Create an application key for current user.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<ApplicationKeyResponse>>
-
createPersonalAccessToken
public PersonalAccessTokenCreateResponse createPersonalAccessToken(PersonalAccessTokenCreateRequest body) throws ApiException Create a personal access token.- Parameters:
body- (required)- Returns:
- PersonalAccessTokenCreateResponse
- Throws:
ApiException- if fails to make API call
-
createPersonalAccessTokenAsync
public CompletableFuture<PersonalAccessTokenCreateResponse> createPersonalAccessTokenAsync(PersonalAccessTokenCreateRequest body) Create a personal access token.- Parameters:
body- (required)- Returns:
- CompletableFuture<PersonalAccessTokenCreateResponse>
-
createPersonalAccessTokenWithHttpInfo
public ApiResponse<PersonalAccessTokenCreateResponse> createPersonalAccessTokenWithHttpInfo(PersonalAccessTokenCreateRequest body) throws ApiException Create a personal access token for the current user.- Parameters:
body- (required)- Returns:
- ApiResponse<PersonalAccessTokenCreateResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 Created - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
createPersonalAccessTokenWithHttpInfoAsync
public CompletableFuture<ApiResponse<PersonalAccessTokenCreateResponse>> createPersonalAccessTokenWithHttpInfoAsync(PersonalAccessTokenCreateRequest body) Create a personal access token.- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<PersonalAccessTokenCreateResponse>>
-
deleteAPIKey
Delete an API key.- Parameters:
apiKeyId- The ID of the API key. (required)- Throws:
ApiException- if fails to make API call
-
deleteAPIKeyAsync
Delete an API key.- Parameters:
apiKeyId- The ID of the API key. (required)- Returns:
- CompletableFuture
-
deleteAPIKeyWithHttpInfo
Delete an API key.- Parameters:
apiKeyId- The ID of the API key. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteAPIKeyWithHttpInfoAsync
Delete an API key.- Parameters:
apiKeyId- The ID of the API key. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deleteApplicationKey
Delete an application key.- Parameters:
appKeyId- The ID of the application key. (required)- Throws:
ApiException- if fails to make API call
-
deleteApplicationKeyAsync
Delete an application key.See
deleteApplicationKeyWithHttpInfoAsync(java.lang.String).- Parameters:
appKeyId- The ID of the application key. (required)- Returns:
- CompletableFuture
-
deleteApplicationKeyWithHttpInfo
Delete an application key- Parameters:
appKeyId- The ID of the application key. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteApplicationKeyWithHttpInfoAsync
Delete an application key.- Parameters:
appKeyId- The ID of the application key. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deleteCurrentUserApplicationKey
Delete an application key owned by current user.See
deleteCurrentUserApplicationKeyWithHttpInfo(java.lang.String).- Parameters:
appKeyId- The ID of the application key. (required)- Throws:
ApiException- if fails to make API call
-
deleteCurrentUserApplicationKeyAsync
Delete an application key owned by current user.See
deleteCurrentUserApplicationKeyWithHttpInfoAsync(java.lang.String).- Parameters:
appKeyId- The ID of the application key. (required)- Returns:
- CompletableFuture
-
deleteCurrentUserApplicationKeyWithHttpInfo
public ApiResponse<Void> deleteCurrentUserApplicationKeyWithHttpInfo(String appKeyId) throws ApiException Delete an application key owned by current user- Parameters:
appKeyId- The ID of the application key. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
deleteCurrentUserApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteCurrentUserApplicationKeyWithHttpInfoAsync(String appKeyId) Delete an application key owned by current user.See
deleteCurrentUserApplicationKeyWithHttpInfo(java.lang.String).- Parameters:
appKeyId- The ID of the application key. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getAPIKey
Get API key.- Parameters:
apiKeyId- The ID of the API key. (required)- Returns:
- APIKeyResponse
- Throws:
ApiException- if fails to make API call
-
getAPIKeyAsync
Get API key.- Parameters:
apiKeyId- The ID of the API key. (required)- Returns:
- CompletableFuture<APIKeyResponse>
-
getAPIKey
public APIKeyResponse getAPIKey(String apiKeyId, KeyManagementApi.GetAPIKeyOptionalParameters parameters) throws ApiException Get API key.- Parameters:
apiKeyId- The ID of the API key. (required)parameters- Optional parameters for the request.- Returns:
- APIKeyResponse
- Throws:
ApiException- if fails to make API call
-
getAPIKeyAsync
public CompletableFuture<APIKeyResponse> getAPIKeyAsync(String apiKeyId, KeyManagementApi.GetAPIKeyOptionalParameters parameters) Get API key.- Parameters:
apiKeyId- The ID of the API key. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<APIKeyResponse>
-
getAPIKeyWithHttpInfo
public ApiResponse<APIKeyResponse> getAPIKeyWithHttpInfo(String apiKeyId, KeyManagementApi.GetAPIKeyOptionalParameters parameters) throws ApiException Get an API key.- Parameters:
apiKeyId- The ID of the API key. (required)parameters- Optional parameters for the request.- 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
public CompletableFuture<ApiResponse<APIKeyResponse>> getAPIKeyWithHttpInfoAsync(String apiKeyId, KeyManagementApi.GetAPIKeyOptionalParameters parameters) Get API key.- Parameters:
apiKeyId- The ID of the API key. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<APIKeyResponse>>
-
getApplicationKey
Get an application key.- Parameters:
appKeyId- The ID of the application key. (required)- Returns:
- ApplicationKeyResponse
- Throws:
ApiException- if fails to make API call
-
getApplicationKeyAsync
Get an application key.- Parameters:
appKeyId- The ID of the application key. (required)- Returns:
- CompletableFuture<ApplicationKeyResponse>
-
getApplicationKey
public ApplicationKeyResponse getApplicationKey(String appKeyId, KeyManagementApi.GetApplicationKeyOptionalParameters parameters) throws ApiException Get an application key.- Parameters:
appKeyId- The ID of the application key. (required)parameters- Optional parameters for the request.- Returns:
- ApplicationKeyResponse
- Throws:
ApiException- if fails to make API call
-
getApplicationKeyAsync
public CompletableFuture<ApplicationKeyResponse> getApplicationKeyAsync(String appKeyId, KeyManagementApi.GetApplicationKeyOptionalParameters parameters) Get an application key.- Parameters:
appKeyId- The ID of the application key. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApplicationKeyResponse>
-
getApplicationKeyWithHttpInfo
public ApiResponse<ApplicationKeyResponse> getApplicationKeyWithHttpInfo(String appKeyId, KeyManagementApi.GetApplicationKeyOptionalParameters parameters) throws ApiException Get an application key for your org.- Parameters:
appKeyId- The ID of the application key. (required)parameters- Optional parameters for the request.- 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 - 429 Too many requests -
-
getApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> getApplicationKeyWithHttpInfoAsync(String appKeyId, KeyManagementApi.GetApplicationKeyOptionalParameters parameters) Get an application key.- Parameters:
appKeyId- The ID of the application key. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ApplicationKeyResponse>>
-
getCurrentUserApplicationKey
Get one application key owned by current user.See
getCurrentUserApplicationKeyWithHttpInfo(java.lang.String).- Parameters:
appKeyId- The ID of the application key. (required)- Returns:
- ApplicationKeyResponse
- Throws:
ApiException- if fails to make API call
-
getCurrentUserApplicationKeyAsync
Get one application key owned by current user.See
getCurrentUserApplicationKeyWithHttpInfoAsync(java.lang.String).- Parameters:
appKeyId- The ID of the application key. (required)- Returns:
- CompletableFuture<ApplicationKeyResponse>
-
getCurrentUserApplicationKeyWithHttpInfo
public ApiResponse<ApplicationKeyResponse> getCurrentUserApplicationKeyWithHttpInfo(String appKeyId) throws ApiException Get an application key owned by current user. Thekeyfield is not returned for organizations in One-Time Read mode.- Parameters:
appKeyId- The ID of the application key. (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 -
-
getCurrentUserApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> getCurrentUserApplicationKeyWithHttpInfoAsync(String appKeyId) Get one application key owned by current user.See
getCurrentUserApplicationKeyWithHttpInfo(java.lang.String).- Parameters:
appKeyId- The ID of the application key. (required)- Returns:
- CompletableFuture<ApiResponse<ApplicationKeyResponse>>
-
getPersonalAccessToken
Get a personal access token.- Parameters:
tokenId- The ID of the access token. (required)- Returns:
- PersonalAccessTokenResponse
- Throws:
ApiException- if fails to make API call
-
getPersonalAccessTokenAsync
Get a personal access token.See
getPersonalAccessTokenWithHttpInfoAsync(java.lang.String).- Parameters:
tokenId- The ID of the access token. (required)- Returns:
- CompletableFuture<PersonalAccessTokenResponse>
-
getPersonalAccessTokenWithHttpInfo
public ApiResponse<PersonalAccessTokenResponse> getPersonalAccessTokenWithHttpInfo(String tokenId) throws ApiException Get a specific personal access token by its ID.- Parameters:
tokenId- The ID of the access token. (required)- Returns:
- ApiResponse<PersonalAccessTokenResponse>
- 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 -
-
getPersonalAccessTokenWithHttpInfoAsync
public CompletableFuture<ApiResponse<PersonalAccessTokenResponse>> getPersonalAccessTokenWithHttpInfoAsync(String tokenId) Get a personal access token.- Parameters:
tokenId- The ID of the access token. (required)- Returns:
- CompletableFuture<ApiResponse<PersonalAccessTokenResponse>>
-
listAPIKeys
Get all API keys.- Returns:
- APIKeysResponse
- Throws:
ApiException- if fails to make API call
-
listAPIKeysAsync
Get all API keys.- Returns:
- CompletableFuture<APIKeysResponse>
-
listAPIKeys
public APIKeysResponse listAPIKeys(KeyManagementApi.ListAPIKeysOptionalParameters parameters) throws ApiException Get all API keys.- Parameters:
parameters- Optional parameters for the request.- Returns:
- APIKeysResponse
- Throws:
ApiException- if fails to make API call
-
listAPIKeysAsync
public CompletableFuture<APIKeysResponse> listAPIKeysAsync(KeyManagementApi.ListAPIKeysOptionalParameters parameters) Get all API keys.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<APIKeysResponse>
-
listAPIKeysWithHttpInfo
public ApiResponse<APIKeysResponse> listAPIKeysWithHttpInfo(KeyManagementApi.ListAPIKeysOptionalParameters parameters) throws ApiException List all API keys available for your account.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<APIKeysResponse>
- 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 -
-
listAPIKeysWithHttpInfoAsync
public CompletableFuture<ApiResponse<APIKeysResponse>> listAPIKeysWithHttpInfoAsync(KeyManagementApi.ListAPIKeysOptionalParameters parameters) Get all API keys.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<APIKeysResponse>>
-
listApplicationKeys
Get all application keys.- Returns:
- ListApplicationKeysResponse
- Throws:
ApiException- if fails to make API call
-
listApplicationKeysAsync
Get all application keys.- Returns:
- CompletableFuture<ListApplicationKeysResponse>
-
listApplicationKeys
public ListApplicationKeysResponse listApplicationKeys(KeyManagementApi.ListApplicationKeysOptionalParameters parameters) throws ApiException Get all application keys.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ListApplicationKeysResponse
- Throws:
ApiException- if fails to make API call
-
listApplicationKeysAsync
public CompletableFuture<ListApplicationKeysResponse> listApplicationKeysAsync(KeyManagementApi.ListApplicationKeysOptionalParameters parameters) Get all application keys.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ListApplicationKeysResponse>
-
listApplicationKeysWithHttpInfo
public ApiResponse<ListApplicationKeysResponse> listApplicationKeysWithHttpInfo(KeyManagementApi.ListApplicationKeysOptionalParameters parameters) throws ApiException List all application keys available for your org- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<ListApplicationKeysResponse>
- 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 -
-
listApplicationKeysWithHttpInfoAsync
public CompletableFuture<ApiResponse<ListApplicationKeysResponse>> listApplicationKeysWithHttpInfoAsync(KeyManagementApi.ListApplicationKeysOptionalParameters parameters) Get all application keys.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ListApplicationKeysResponse>>
-
listCurrentUserApplicationKeys
Get all application keys owned by current user.- Returns:
- ListApplicationKeysResponse
- Throws:
ApiException- if fails to make API call
-
listCurrentUserApplicationKeysAsync
Get all application keys owned by current user.- Returns:
- CompletableFuture<ListApplicationKeysResponse>
-
listCurrentUserApplicationKeys
public ListApplicationKeysResponse listCurrentUserApplicationKeys(KeyManagementApi.ListCurrentUserApplicationKeysOptionalParameters parameters) throws ApiException Get all application keys owned by current user.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ListApplicationKeysResponse
- Throws:
ApiException- if fails to make API call
-
listCurrentUserApplicationKeysAsync
public CompletableFuture<ListApplicationKeysResponse> listCurrentUserApplicationKeysAsync(KeyManagementApi.ListCurrentUserApplicationKeysOptionalParameters parameters) Get all application keys owned by current user.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ListApplicationKeysResponse>
-
listCurrentUserApplicationKeysWithHttpInfo
public ApiResponse<ListApplicationKeysResponse> listCurrentUserApplicationKeysWithHttpInfo(KeyManagementApi.ListCurrentUserApplicationKeysOptionalParameters parameters) throws ApiException List all application keys available for current user- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<ListApplicationKeysResponse>
- 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 -
-
listCurrentUserApplicationKeysWithHttpInfoAsync
public CompletableFuture<ApiResponse<ListApplicationKeysResponse>> listCurrentUserApplicationKeysWithHttpInfoAsync(KeyManagementApi.ListCurrentUserApplicationKeysOptionalParameters parameters) Get all application keys owned by current user.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ListApplicationKeysResponse>>
-
listPersonalAccessTokens
Get all access tokens.- Returns:
- ListPersonalAccessTokensResponse
- Throws:
ApiException- if fails to make API call
-
listPersonalAccessTokensAsync
Get all access tokens.- Returns:
- CompletableFuture<ListPersonalAccessTokensResponse>
-
listPersonalAccessTokens
public ListPersonalAccessTokensResponse listPersonalAccessTokens(KeyManagementApi.ListPersonalAccessTokensOptionalParameters parameters) throws ApiException Get all access tokens.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ListPersonalAccessTokensResponse
- Throws:
ApiException- if fails to make API call
-
listPersonalAccessTokensAsync
public CompletableFuture<ListPersonalAccessTokensResponse> listPersonalAccessTokensAsync(KeyManagementApi.ListPersonalAccessTokensOptionalParameters parameters) Get all access tokens.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ListPersonalAccessTokensResponse>
-
listPersonalAccessTokensWithHttpInfo
public ApiResponse<ListPersonalAccessTokensResponse> listPersonalAccessTokensWithHttpInfo(KeyManagementApi.ListPersonalAccessTokensOptionalParameters parameters) throws ApiException List all access tokens for the organization.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<ListPersonalAccessTokensResponse>
- 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 -
-
listPersonalAccessTokensWithHttpInfoAsync
public CompletableFuture<ApiResponse<ListPersonalAccessTokensResponse>> listPersonalAccessTokensWithHttpInfoAsync(KeyManagementApi.ListPersonalAccessTokensOptionalParameters parameters) Get all access tokens.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ListPersonalAccessTokensResponse>>
-
revokePersonalAccessToken
Revoke a personal access token.See
revokePersonalAccessTokenWithHttpInfo(java.lang.String).- Parameters:
tokenId- The ID of the access token. (required)- Throws:
ApiException- if fails to make API call
-
revokePersonalAccessTokenAsync
Revoke a personal access token.See
revokePersonalAccessTokenWithHttpInfoAsync(java.lang.String).- Parameters:
tokenId- The ID of the access token. (required)- Returns:
- CompletableFuture
-
revokePersonalAccessTokenWithHttpInfo
Revoke a specific personal access token.- Parameters:
tokenId- The ID of the access token. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
revokePersonalAccessTokenWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> revokePersonalAccessTokenWithHttpInfoAsync(String tokenId) Revoke a personal access token.See
revokePersonalAccessTokenWithHttpInfo(java.lang.String).- Parameters:
tokenId- The ID of the access token. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
updateAPIKey
Edit an API key.See
updateAPIKeyWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.APIKeyUpdateRequest).- Parameters:
apiKeyId- The ID of the API key. (required)body- (required)- Returns:
- APIKeyResponse
- Throws:
ApiException- if fails to make API call
-
updateAPIKeyAsync
public CompletableFuture<APIKeyResponse> updateAPIKeyAsync(String apiKeyId, APIKeyUpdateRequest body) Edit an API key.See
updateAPIKeyWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v2.model.APIKeyUpdateRequest).- Parameters:
apiKeyId- The ID of the API key. (required)body- (required)- Returns:
- CompletableFuture<APIKeyResponse>
-
updateAPIKeyWithHttpInfo
public ApiResponse<APIKeyResponse> updateAPIKeyWithHttpInfo(String apiKeyId, APIKeyUpdateRequest body) throws ApiException Update an API key.- Parameters:
apiKeyId- The ID of the API key. (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 apiKeyId, APIKeyUpdateRequest body) Edit an API key.See
updateAPIKeyWithHttpInfo(java.lang.String, com.datadog.api.client.v2.model.APIKeyUpdateRequest).- Parameters:
apiKeyId- The ID of the API key. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<APIKeyResponse>>
-
updateApplicationKey
public ApplicationKeyResponse updateApplicationKey(String appKeyId, ApplicationKeyUpdateRequest body) throws ApiException Edit an application key.- Parameters:
appKeyId- The ID of the application key. (required)body- (required)- Returns:
- ApplicationKeyResponse
- Throws:
ApiException- if fails to make API call
-
updateApplicationKeyAsync
public CompletableFuture<ApplicationKeyResponse> updateApplicationKeyAsync(String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key.- Parameters:
appKeyId- The ID of the application key. (required)body- (required)- Returns:
- CompletableFuture<ApplicationKeyResponse>
-
updateApplicationKeyWithHttpInfo
public ApiResponse<ApplicationKeyResponse> updateApplicationKeyWithHttpInfo(String appKeyId, ApplicationKeyUpdateRequest body) throws ApiException Edit an application key- Parameters:
appKeyId- The ID of the application key. (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 - 429 Too many requests -
-
updateApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> updateApplicationKeyWithHttpInfoAsync(String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key.- Parameters:
appKeyId- The ID of the application key. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<ApplicationKeyResponse>>
-
updateCurrentUserApplicationKey
public ApplicationKeyResponse updateCurrentUserApplicationKey(String appKeyId, ApplicationKeyUpdateRequest body) throws ApiException Edit an application key owned by current user.- Parameters:
appKeyId- The ID of the application key. (required)body- (required)- Returns:
- ApplicationKeyResponse
- Throws:
ApiException- if fails to make API call
-
updateCurrentUserApplicationKeyAsync
public CompletableFuture<ApplicationKeyResponse> updateCurrentUserApplicationKeyAsync(String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key owned by current user.- Parameters:
appKeyId- The ID of the application key. (required)body- (required)- Returns:
- CompletableFuture<ApplicationKeyResponse>
-
updateCurrentUserApplicationKeyWithHttpInfo
public ApiResponse<ApplicationKeyResponse> updateCurrentUserApplicationKeyWithHttpInfo(String appKeyId, ApplicationKeyUpdateRequest body) throws ApiException Edit an application key owned by current user. Thekeyfield is not returned for organizations in One-Time Read mode.- Parameters:
appKeyId- The ID of the application key. (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 - 429 Too many requests -
-
updateCurrentUserApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> updateCurrentUserApplicationKeyWithHttpInfoAsync(String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key owned by current user.- Parameters:
appKeyId- The ID of the application key. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<ApplicationKeyResponse>>
-
updatePersonalAccessToken
public PersonalAccessTokenResponse updatePersonalAccessToken(String tokenId, PersonalAccessTokenUpdateRequest body) throws ApiException Update a personal access token.- Parameters:
tokenId- The ID of the access token. (required)body- (required)- Returns:
- PersonalAccessTokenResponse
- Throws:
ApiException- if fails to make API call
-
updatePersonalAccessTokenAsync
public CompletableFuture<PersonalAccessTokenResponse> updatePersonalAccessTokenAsync(String tokenId, PersonalAccessTokenUpdateRequest body) Update a personal access token.- Parameters:
tokenId- The ID of the access token. (required)body- (required)- Returns:
- CompletableFuture<PersonalAccessTokenResponse>
-
updatePersonalAccessTokenWithHttpInfo
public ApiResponse<PersonalAccessTokenResponse> updatePersonalAccessTokenWithHttpInfo(String tokenId, PersonalAccessTokenUpdateRequest body) throws ApiException Update a specific personal access token.- Parameters:
tokenId- The ID of the access token. (required)body- (required)- Returns:
- ApiResponse<PersonalAccessTokenResponse>
- 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 -
-
updatePersonalAccessTokenWithHttpInfoAsync
public CompletableFuture<ApiResponse<PersonalAccessTokenResponse>> updatePersonalAccessTokenWithHttpInfoAsync(String tokenId, PersonalAccessTokenUpdateRequest body) Update a personal access token.- Parameters:
tokenId- The ID of the access token. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<PersonalAccessTokenResponse>>
-
validate
Validate API key.- Returns:
- ValidateV2Response
- Throws:
ApiException- if fails to make API call
-
validateAsync
Validate API key.- Returns:
- CompletableFuture<ValidateV2Response>
-
validateWithHttpInfo
Check if the API key is valid. Returns the organization UUID, API key ID, and associated scopes.- Returns:
- ApiResponse<ValidateV2Response>
- 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 -
-
validateWithHttpInfoAsync
Validate API key.- Returns:
- CompletableFuture<ApiResponse<ValidateV2Response>>
-
validateAPIKey
Validate API and application keys.- Returns:
- ValidateAPIKeyResponse
- Throws:
ApiException- if fails to make API call
-
validateAPIKeyAsync
Validate API and application keys.- Returns:
- CompletableFuture<ValidateAPIKeyResponse>
-
validateAPIKeyWithHttpInfo
Check that the API key and application key used for the request are both valid. Returns{"status": "ok"}on success,401or403otherwise. Useful as a lightweight authentication probe before issuing other API calls that require full credentials.- Returns:
- ApiResponse<ValidateAPIKeyResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 401 Unauthorized - 403 Forbidden - 429 Too many requests -
-
validateAPIKeyWithHttpInfoAsync
Validate API and application keys.- Returns:
- CompletableFuture<ApiResponse<ValidateAPIKeyResponse>>
-