@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ServiceAccountsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceAccountsApi.ListServiceAccountApplicationKeysOptionalParameters
Manage optional parameters to listServiceAccountApplicationKeys.
|
| Constructor and Description |
|---|
ServiceAccountsApi() |
ServiceAccountsApi(ApiClient apiClient) |
public ServiceAccountsApi()
public ServiceAccountsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic UserResponse createServiceAccount(ServiceAccountCreateRequest body) throws ApiException
See createServiceAccountWithHttpInfo(com.datadog.api.client.v2.model.ServiceAccountCreateRequest).
body - (required)ApiException - if fails to make API callpublic CompletableFuture<UserResponse> createServiceAccountAsync(ServiceAccountCreateRequest body)
See createServiceAccountWithHttpInfoAsync(com.datadog.api.client.v2.model.ServiceAccountCreateRequest).
body - (required)public ApiResponse<UserResponse> createServiceAccountWithHttpInfo(ServiceAccountCreateRequest body) throws ApiException
body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<UserResponse>> createServiceAccountWithHttpInfoAsync(ServiceAccountCreateRequest body)
See createServiceAccountWithHttpInfo(com.datadog.api.client.v2.model.ServiceAccountCreateRequest).
body - (required)public ApplicationKeyResponse createServiceAccountApplicationKey(String serviceAccountId, ApplicationKeyCreateRequest body) throws ApiException
serviceAccountId - The ID of the service account. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<ApplicationKeyResponse> createServiceAccountApplicationKeyAsync(String serviceAccountId, ApplicationKeyCreateRequest body)
serviceAccountId - The ID of the service account. (required)body - (required)public ApiResponse<ApplicationKeyResponse> createServiceAccountApplicationKeyWithHttpInfo(String serviceAccountId, ApplicationKeyCreateRequest body) throws ApiException
serviceAccountId - The ID of the service account. (required)body - (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | Created | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> createServiceAccountApplicationKeyWithHttpInfoAsync(String serviceAccountId, ApplicationKeyCreateRequest body)
serviceAccountId - The ID of the service account. (required)body - (required)public void deleteServiceAccountApplicationKey(String serviceAccountId, String appKeyId) throws ApiException
See deleteServiceAccountApplicationKeyWithHttpInfo(java.lang.String, java.lang.String).
serviceAccountId - The ID of the service account. (required)appKeyId - The ID of the application key. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteServiceAccountApplicationKeyAsync(String serviceAccountId, String appKeyId)
See deleteServiceAccountApplicationKeyWithHttpInfoAsync(java.lang.String, java.lang.String).
serviceAccountId - The ID of the service account. (required)appKeyId - The ID of the application key. (required)public ApiResponse<Void> deleteServiceAccountApplicationKeyWithHttpInfo(String serviceAccountId, String appKeyId) throws ApiException
serviceAccountId - The ID of the service account. (required)appKeyId - The ID of the application key. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteServiceAccountApplicationKeyWithHttpInfoAsync(String serviceAccountId, String appKeyId)
See deleteServiceAccountApplicationKeyWithHttpInfo(java.lang.String, java.lang.String).
serviceAccountId - The ID of the service account. (required)appKeyId - The ID of the application key. (required)public PartialApplicationKeyResponse getServiceAccountApplicationKey(String serviceAccountId, String appKeyId) throws ApiException
See getServiceAccountApplicationKeyWithHttpInfo(java.lang.String, java.lang.String).
serviceAccountId - The ID of the service account. (required)appKeyId - The ID of the application key. (required)ApiException - if fails to make API callpublic CompletableFuture<PartialApplicationKeyResponse> getServiceAccountApplicationKeyAsync(String serviceAccountId, String appKeyId)
See getServiceAccountApplicationKeyWithHttpInfoAsync(java.lang.String, java.lang.String).
serviceAccountId - The ID of the service account. (required)appKeyId - The ID of the application key. (required)public ApiResponse<PartialApplicationKeyResponse> getServiceAccountApplicationKeyWithHttpInfo(String serviceAccountId, String appKeyId) throws ApiException
serviceAccountId - The ID of the service account. (required)appKeyId - The ID of the application key. (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<PartialApplicationKeyResponse>> getServiceAccountApplicationKeyWithHttpInfoAsync(String serviceAccountId, String appKeyId)
See getServiceAccountApplicationKeyWithHttpInfo(java.lang.String, java.lang.String).
serviceAccountId - The ID of the service account. (required)appKeyId - The ID of the application key. (required)public ListApplicationKeysResponse listServiceAccountApplicationKeys(String serviceAccountId) throws ApiException
serviceAccountId - The ID of the service account. (required)ApiException - if fails to make API callpublic CompletableFuture<ListApplicationKeysResponse> listServiceAccountApplicationKeysAsync(String serviceAccountId)
serviceAccountId - The ID of the service account. (required)public ListApplicationKeysResponse listServiceAccountApplicationKeys(String serviceAccountId, ServiceAccountsApi.ListServiceAccountApplicationKeysOptionalParameters parameters) throws ApiException
serviceAccountId - The ID of the service account. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<ListApplicationKeysResponse> listServiceAccountApplicationKeysAsync(String serviceAccountId, ServiceAccountsApi.ListServiceAccountApplicationKeysOptionalParameters parameters)
serviceAccountId - The ID of the service account. (required)parameters - Optional parameters for the request.public ApiResponse<ListApplicationKeysResponse> listServiceAccountApplicationKeysWithHttpInfo(String serviceAccountId, ServiceAccountsApi.ListServiceAccountApplicationKeysOptionalParameters parameters) throws ApiException
serviceAccountId - The ID of the service account. (required)parameters - Optional parameters for the request.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<ListApplicationKeysResponse>> listServiceAccountApplicationKeysWithHttpInfoAsync(String serviceAccountId, ServiceAccountsApi.ListServiceAccountApplicationKeysOptionalParameters parameters)
serviceAccountId - The ID of the service account. (required)parameters - Optional parameters for the request.public PartialApplicationKeyResponse updateServiceAccountApplicationKey(String serviceAccountId, String appKeyId, ApplicationKeyUpdateRequest body) throws ApiException
serviceAccountId - The ID of the service account. (required)appKeyId - The ID of the application key. (required)body - (required)ApiException - if fails to make API callpublic CompletableFuture<PartialApplicationKeyResponse> updateServiceAccountApplicationKeyAsync(String serviceAccountId, String appKeyId, ApplicationKeyUpdateRequest body)
serviceAccountId - The ID of the service account. (required)appKeyId - The ID of the application key. (required)body - (required)public ApiResponse<PartialApplicationKeyResponse> updateServiceAccountApplicationKeyWithHttpInfo(String serviceAccountId, String appKeyId, ApplicationKeyUpdateRequest body) throws ApiException
serviceAccountId - The ID of the service account. (required)appKeyId - The ID of the application key. (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<PartialApplicationKeyResponse>> updateServiceAccountApplicationKeyWithHttpInfoAsync(String serviceAccountId, String appKeyId, ApplicationKeyUpdateRequest body)
serviceAccountId - The ID of the service account. (required)appKeyId - The ID of the application key. (required)body - (required)Copyright © 2024. All rights reserved.