Package com.datadog.api.client.v1.api
Class AuthenticationApi
java.lang.Object
com.datadog.api.client.v1.api.AuthenticationApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class AuthenticationApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the API client.voidsetApiClient(ApiClient apiClient) Set the API client.validate()Validate API key.Validate API key.Check if the API key (not the APP key) is valid.Validate API key.
-
Constructor Details
-
AuthenticationApi
public AuthenticationApi() -
AuthenticationApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
validate
Validate API key.- Returns:
- AuthenticationValidationResponse
- Throws:
ApiException- if fails to make API call
-
validateAsync
Validate API key.- Returns:
- CompletableFuture<AuthenticationValidationResponse>
-
validateWithHttpInfo
Check if the API key (not the APP key) is valid. If invalid, a 403 is returned.- Returns:
- ApiResponse<AuthenticationValidationResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Authentication error - 429 Too many requests -
-
validateWithHttpInfoAsync
Validate API key.- Returns:
- CompletableFuture<ApiResponse<AuthenticationValidationResponse>>
-