Class ServiceAccountsApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to listServiceAccountAccessTokens.static classManage optional parameters to listServiceAccountApplicationKeys. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a service account.createServiceAccountAccessToken(String serviceAccountId, ServiceAccountAccessTokenCreateRequest body) Create an access token for a service account.createServiceAccountAccessTokenAsync(String serviceAccountId, ServiceAccountAccessTokenCreateRequest body) Create an access token for a service account.createServiceAccountAccessTokenWithHttpInfo(String serviceAccountId, ServiceAccountAccessTokenCreateRequest body) Create an access token for a service account.createServiceAccountAccessTokenWithHttpInfoAsync(String serviceAccountId, ServiceAccountAccessTokenCreateRequest body) Create an access token for a service account.createServiceAccountApplicationKey(String serviceAccountId, ApplicationKeyCreateRequest body) Create an application key for this service account.createServiceAccountApplicationKeyAsync(String serviceAccountId, ApplicationKeyCreateRequest body) Create an application key for this service account.createServiceAccountApplicationKeyWithHttpInfo(String serviceAccountId, ApplicationKeyCreateRequest body) Create an application key for this service account.createServiceAccountApplicationKeyWithHttpInfoAsync(String serviceAccountId, ApplicationKeyCreateRequest body) Create an application key for this service account.Create a service account.Create a service account for your organization.Create a service account.voiddeleteServiceAccountApplicationKey(String serviceAccountId, String appKeyId) Delete an application key for this service account.deleteServiceAccountApplicationKeyAsync(String serviceAccountId, String appKeyId) Delete an application key for this service account.deleteServiceAccountApplicationKeyWithHttpInfo(String serviceAccountId, String appKeyId) Delete an application key owned by this service account.deleteServiceAccountApplicationKeyWithHttpInfoAsync(String serviceAccountId, String appKeyId) Delete an application key for this service account.Get the API client.getServiceAccountAccessToken(String serviceAccountId, String tokenId) Get an access token for a service account.getServiceAccountAccessTokenAsync(String serviceAccountId, String tokenId) Get an access token for a service account.getServiceAccountAccessTokenWithHttpInfo(String serviceAccountId, String tokenId) Get a specific access token for a service account by its ID.getServiceAccountAccessTokenWithHttpInfoAsync(String serviceAccountId, String tokenId) Get an access token for a service account.getServiceAccountApplicationKey(String serviceAccountId, String appKeyId) Get one application key for this service account.getServiceAccountApplicationKeyAsync(String serviceAccountId, String appKeyId) Get one application key for this service account.getServiceAccountApplicationKeyWithHttpInfo(String serviceAccountId, String appKeyId) Get an application key owned by this service account.getServiceAccountApplicationKeyWithHttpInfoAsync(String serviceAccountId, String appKeyId) Get one application key for this service account.listServiceAccountAccessTokens(String serviceAccountId) List access tokens for a service account.listServiceAccountAccessTokens(String serviceAccountId, ServiceAccountsApi.ListServiceAccountAccessTokensOptionalParameters parameters) List access tokens for a service account.listServiceAccountAccessTokensAsync(String serviceAccountId) List access tokens for a service account.listServiceAccountAccessTokensAsync(String serviceAccountId, ServiceAccountsApi.ListServiceAccountAccessTokensOptionalParameters parameters) List access tokens for a service account.listServiceAccountAccessTokensWithHttpInfo(String serviceAccountId, ServiceAccountsApi.ListServiceAccountAccessTokensOptionalParameters parameters) List all access tokens for a specific service account.listServiceAccountAccessTokensWithHttpInfoAsync(String serviceAccountId, ServiceAccountsApi.ListServiceAccountAccessTokensOptionalParameters parameters) List access tokens for a service account.listServiceAccountApplicationKeys(String serviceAccountId) List application keys for this service account.listServiceAccountApplicationKeys(String serviceAccountId, ServiceAccountsApi.ListServiceAccountApplicationKeysOptionalParameters parameters) List application keys for this service account.listServiceAccountApplicationKeysAsync(String serviceAccountId) List application keys for this service account.listServiceAccountApplicationKeysAsync(String serviceAccountId, ServiceAccountsApi.ListServiceAccountApplicationKeysOptionalParameters parameters) List application keys for this service account.listServiceAccountApplicationKeysWithHttpInfo(String serviceAccountId, ServiceAccountsApi.ListServiceAccountApplicationKeysOptionalParameters parameters) List all application keys available for this service account.listServiceAccountApplicationKeysWithHttpInfoAsync(String serviceAccountId, ServiceAccountsApi.ListServiceAccountApplicationKeysOptionalParameters parameters) List application keys for this service account.voidrevokeServiceAccountAccessToken(String serviceAccountId, String tokenId) Revoke an access token for a service account.revokeServiceAccountAccessTokenAsync(String serviceAccountId, String tokenId) Revoke an access token for a service account.revokeServiceAccountAccessTokenWithHttpInfo(String serviceAccountId, String tokenId) Revoke a specific access token for a service account.revokeServiceAccountAccessTokenWithHttpInfoAsync(String serviceAccountId, String tokenId) Revoke an access token for a service account.voidsetApiClient(ApiClient apiClient) Set the API client.updateServiceAccountAccessToken(String serviceAccountId, String tokenId, ServiceAccountAccessTokenUpdateRequest body) Update an access token for a service account.updateServiceAccountAccessTokenAsync(String serviceAccountId, String tokenId, ServiceAccountAccessTokenUpdateRequest body) Update an access token for a service account.updateServiceAccountAccessTokenWithHttpInfo(String serviceAccountId, String tokenId, ServiceAccountAccessTokenUpdateRequest body) Update a specific access token for a service account.updateServiceAccountAccessTokenWithHttpInfoAsync(String serviceAccountId, String tokenId, ServiceAccountAccessTokenUpdateRequest body) Update an access token for a service account.updateServiceAccountApplicationKey(String serviceAccountId, String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key for this service account.updateServiceAccountApplicationKeyAsync(String serviceAccountId, String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key for this service account.updateServiceAccountApplicationKeyWithHttpInfo(String serviceAccountId, String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key owned by this service account.updateServiceAccountApplicationKeyWithHttpInfoAsync(String serviceAccountId, String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key for this service account.
-
Constructor Details
-
ServiceAccountsApi
public ServiceAccountsApi() -
ServiceAccountsApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createServiceAccount
Create a service account.See
createServiceAccountWithHttpInfo(com.datadog.api.client.v2.model.ServiceAccountCreateRequest).- Parameters:
body- (required)- Returns:
- UserResponse
- Throws:
ApiException- if fails to make API call
-
createServiceAccountAsync
Create a service account.See
createServiceAccountWithHttpInfoAsync(com.datadog.api.client.v2.model.ServiceAccountCreateRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<UserResponse>
-
createServiceAccountWithHttpInfo
public ApiResponse<UserResponse> createServiceAccountWithHttpInfo(ServiceAccountCreateRequest body) throws ApiException Create a service account for your organization.- Parameters:
body- (required)- Returns:
- ApiResponse<UserResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 201 OK - 400 Bad Request - 403 Authentication error - 429 Too many requests -
-
createServiceAccountWithHttpInfoAsync
public CompletableFuture<ApiResponse<UserResponse>> createServiceAccountWithHttpInfoAsync(ServiceAccountCreateRequest body) Create a service account.See
createServiceAccountWithHttpInfo(com.datadog.api.client.v2.model.ServiceAccountCreateRequest).- Parameters:
body- (required)- Returns:
- CompletableFuture<ApiResponse<UserResponse>>
-
createServiceAccountAccessToken
public ServiceAccessTokenCreateResponse createServiceAccountAccessToken(String serviceAccountId, ServiceAccountAccessTokenCreateRequest body) throws ApiException Create an access token for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)body- (required)- Returns:
- ServiceAccessTokenCreateResponse
- Throws:
ApiException- if fails to make API call
-
createServiceAccountAccessTokenAsync
public CompletableFuture<ServiceAccessTokenCreateResponse> createServiceAccountAccessTokenAsync(String serviceAccountId, ServiceAccountAccessTokenCreateRequest body) Create an access token for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)body- (required)- Returns:
- CompletableFuture<ServiceAccessTokenCreateResponse>
-
createServiceAccountAccessTokenWithHttpInfo
public ApiResponse<ServiceAccessTokenCreateResponse> createServiceAccountAccessTokenWithHttpInfo(String serviceAccountId, ServiceAccountAccessTokenCreateRequest body) throws ApiException Create an access token for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)body- (required)- Returns:
- ApiResponse<ServiceAccessTokenCreateResponse>
- 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 - 404 Not Found - 429 Too many requests -
-
createServiceAccountAccessTokenWithHttpInfoAsync
public CompletableFuture<ApiResponse<ServiceAccessTokenCreateResponse>> createServiceAccountAccessTokenWithHttpInfoAsync(String serviceAccountId, ServiceAccountAccessTokenCreateRequest body) Create an access token for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<ServiceAccessTokenCreateResponse>>
-
createServiceAccountApplicationKey
public ApplicationKeyResponse createServiceAccountApplicationKey(String serviceAccountId, ApplicationKeyCreateRequest body) throws ApiException Create an application key for this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)body- (required)- Returns:
- ApplicationKeyResponse
- Throws:
ApiException- if fails to make API call
-
createServiceAccountApplicationKeyAsync
public CompletableFuture<ApplicationKeyResponse> createServiceAccountApplicationKeyAsync(String serviceAccountId, ApplicationKeyCreateRequest body) Create an application key for this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)body- (required)- Returns:
- CompletableFuture<ApplicationKeyResponse>
-
createServiceAccountApplicationKeyWithHttpInfo
public ApiResponse<ApplicationKeyResponse> createServiceAccountApplicationKeyWithHttpInfo(String serviceAccountId, ApplicationKeyCreateRequest body) throws ApiException Create an application key for this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)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 -
-
createServiceAccountApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<ApplicationKeyResponse>> createServiceAccountApplicationKeyWithHttpInfoAsync(String serviceAccountId, ApplicationKeyCreateRequest body) Create an application key for this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<ApplicationKeyResponse>>
-
deleteServiceAccountApplicationKey
public void deleteServiceAccountApplicationKey(String serviceAccountId, String appKeyId) throws ApiException Delete an application key for this service account.See
deleteServiceAccountApplicationKeyWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
serviceAccountId- The ID of the service account. (required)appKeyId- The ID of the application key. (required)- Throws:
ApiException- if fails to make API call
-
deleteServiceAccountApplicationKeyAsync
public CompletableFuture<Void> deleteServiceAccountApplicationKeyAsync(String serviceAccountId, String appKeyId) Delete an application key for this service account.See
deleteServiceAccountApplicationKeyWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
serviceAccountId- The ID of the service account. (required)appKeyId- The ID of the application key. (required)- Returns:
- CompletableFuture
-
deleteServiceAccountApplicationKeyWithHttpInfo
public ApiResponse<Void> deleteServiceAccountApplicationKeyWithHttpInfo(String serviceAccountId, String appKeyId) throws ApiException Delete an application key owned by this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)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 -
-
deleteServiceAccountApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteServiceAccountApplicationKeyWithHttpInfoAsync(String serviceAccountId, String appKeyId) Delete an application key for this service account.See
deleteServiceAccountApplicationKeyWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
serviceAccountId- The ID of the service account. (required)appKeyId- The ID of the application key. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getServiceAccountAccessToken
public ServiceAccessTokenResponse getServiceAccountAccessToken(String serviceAccountId, String tokenId) throws ApiException Get an access token for a service account.See
getServiceAccountAccessTokenWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
serviceAccountId- The ID of the service account. (required)tokenId- The ID of the access token. (required)- Returns:
- ServiceAccessTokenResponse
- Throws:
ApiException- if fails to make API call
-
getServiceAccountAccessTokenAsync
public CompletableFuture<ServiceAccessTokenResponse> getServiceAccountAccessTokenAsync(String serviceAccountId, String tokenId) Get an access token for a service account.See
getServiceAccountAccessTokenWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
serviceAccountId- The ID of the service account. (required)tokenId- The ID of the access token. (required)- Returns:
- CompletableFuture<ServiceAccessTokenResponse>
-
getServiceAccountAccessTokenWithHttpInfo
public ApiResponse<ServiceAccessTokenResponse> getServiceAccountAccessTokenWithHttpInfo(String serviceAccountId, String tokenId) throws ApiException Get a specific access token for a service account by its ID.- Parameters:
serviceAccountId- The ID of the service account. (required)tokenId- The ID of the access token. (required)- Returns:
- ApiResponse<ServiceAccessTokenResponse>
- 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 -
-
getServiceAccountAccessTokenWithHttpInfoAsync
public CompletableFuture<ApiResponse<ServiceAccessTokenResponse>> getServiceAccountAccessTokenWithHttpInfoAsync(String serviceAccountId, String tokenId) Get an access token for a service account.See
getServiceAccountAccessTokenWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
serviceAccountId- The ID of the service account. (required)tokenId- The ID of the access token. (required)- Returns:
- CompletableFuture<ApiResponse<ServiceAccessTokenResponse>>
-
getServiceAccountApplicationKey
public PartialApplicationKeyResponse getServiceAccountApplicationKey(String serviceAccountId, String appKeyId) throws ApiException Get one application key for this service account.See
getServiceAccountApplicationKeyWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
serviceAccountId- The ID of the service account. (required)appKeyId- The ID of the application key. (required)- Returns:
- PartialApplicationKeyResponse
- Throws:
ApiException- if fails to make API call
-
getServiceAccountApplicationKeyAsync
public CompletableFuture<PartialApplicationKeyResponse> getServiceAccountApplicationKeyAsync(String serviceAccountId, String appKeyId) Get one application key for this service account.See
getServiceAccountApplicationKeyWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
serviceAccountId- The ID of the service account. (required)appKeyId- The ID of the application key. (required)- Returns:
- CompletableFuture<PartialApplicationKeyResponse>
-
getServiceAccountApplicationKeyWithHttpInfo
public ApiResponse<PartialApplicationKeyResponse> getServiceAccountApplicationKeyWithHttpInfo(String serviceAccountId, String appKeyId) throws ApiException Get an application key owned by this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)appKeyId- The ID of the application key. (required)- Returns:
- ApiResponse<PartialApplicationKeyResponse>
- 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 -
-
getServiceAccountApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<PartialApplicationKeyResponse>> getServiceAccountApplicationKeyWithHttpInfoAsync(String serviceAccountId, String appKeyId) Get one application key for this service account.See
getServiceAccountApplicationKeyWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
serviceAccountId- The ID of the service account. (required)appKeyId- The ID of the application key. (required)- Returns:
- CompletableFuture<ApiResponse<PartialApplicationKeyResponse>>
-
listServiceAccountAccessTokens
public ListServiceAccessTokensResponse listServiceAccountAccessTokens(String serviceAccountId) throws ApiException List access tokens for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)- Returns:
- ListServiceAccessTokensResponse
- Throws:
ApiException- if fails to make API call
-
listServiceAccountAccessTokensAsync
public CompletableFuture<ListServiceAccessTokensResponse> listServiceAccountAccessTokensAsync(String serviceAccountId) List access tokens for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)- Returns:
- CompletableFuture<ListServiceAccessTokensResponse>
-
listServiceAccountAccessTokens
public ListServiceAccessTokensResponse listServiceAccountAccessTokens(String serviceAccountId, ServiceAccountsApi.ListServiceAccountAccessTokensOptionalParameters parameters) throws ApiException List access tokens for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)parameters- Optional parameters for the request.- Returns:
- ListServiceAccessTokensResponse
- Throws:
ApiException- if fails to make API call
-
listServiceAccountAccessTokensAsync
public CompletableFuture<ListServiceAccessTokensResponse> listServiceAccountAccessTokensAsync(String serviceAccountId, ServiceAccountsApi.ListServiceAccountAccessTokensOptionalParameters parameters) List access tokens for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ListServiceAccessTokensResponse>
-
listServiceAccountAccessTokensWithHttpInfo
public ApiResponse<ListServiceAccessTokensResponse> listServiceAccountAccessTokensWithHttpInfo(String serviceAccountId, ServiceAccountsApi.ListServiceAccountAccessTokensOptionalParameters parameters) throws ApiException List all access tokens for a specific service account.- Parameters:
serviceAccountId- The ID of the service account. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<ListServiceAccessTokensResponse>
- 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 -
-
listServiceAccountAccessTokensWithHttpInfoAsync
public CompletableFuture<ApiResponse<ListServiceAccessTokensResponse>> listServiceAccountAccessTokensWithHttpInfoAsync(String serviceAccountId, ServiceAccountsApi.ListServiceAccountAccessTokensOptionalParameters parameters) List access tokens for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ListServiceAccessTokensResponse>>
-
listServiceAccountApplicationKeys
public ListApplicationKeysResponse listServiceAccountApplicationKeys(String serviceAccountId) throws ApiException List application keys for this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)- Returns:
- ListApplicationKeysResponse
- Throws:
ApiException- if fails to make API call
-
listServiceAccountApplicationKeysAsync
public CompletableFuture<ListApplicationKeysResponse> listServiceAccountApplicationKeysAsync(String serviceAccountId) List application keys for this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)- Returns:
- CompletableFuture<ListApplicationKeysResponse>
-
listServiceAccountApplicationKeys
public ListApplicationKeysResponse listServiceAccountApplicationKeys(String serviceAccountId, ServiceAccountsApi.ListServiceAccountApplicationKeysOptionalParameters parameters) throws ApiException List application keys for this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)parameters- Optional parameters for the request.- Returns:
- ListApplicationKeysResponse
- Throws:
ApiException- if fails to make API call
-
listServiceAccountApplicationKeysAsync
public CompletableFuture<ListApplicationKeysResponse> listServiceAccountApplicationKeysAsync(String serviceAccountId, ServiceAccountsApi.ListServiceAccountApplicationKeysOptionalParameters parameters) List application keys for this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ListApplicationKeysResponse>
-
listServiceAccountApplicationKeysWithHttpInfo
public ApiResponse<ListApplicationKeysResponse> listServiceAccountApplicationKeysWithHttpInfo(String serviceAccountId, ServiceAccountsApi.ListServiceAccountApplicationKeysOptionalParameters parameters) throws ApiException List all application keys available for this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)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 -
-
listServiceAccountApplicationKeysWithHttpInfoAsync
public CompletableFuture<ApiResponse<ListApplicationKeysResponse>> listServiceAccountApplicationKeysWithHttpInfoAsync(String serviceAccountId, ServiceAccountsApi.ListServiceAccountApplicationKeysOptionalParameters parameters) List application keys for this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ListApplicationKeysResponse>>
-
revokeServiceAccountAccessToken
public void revokeServiceAccountAccessToken(String serviceAccountId, String tokenId) throws ApiException Revoke an access token for a service account.See
revokeServiceAccountAccessTokenWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
serviceAccountId- The ID of the service account. (required)tokenId- The ID of the access token. (required)- Throws:
ApiException- if fails to make API call
-
revokeServiceAccountAccessTokenAsync
public CompletableFuture<Void> revokeServiceAccountAccessTokenAsync(String serviceAccountId, String tokenId) Revoke an access token for a service account.See
revokeServiceAccountAccessTokenWithHttpInfoAsync(java.lang.String, java.lang.String).- Parameters:
serviceAccountId- The ID of the service account. (required)tokenId- The ID of the access token. (required)- Returns:
- CompletableFuture
-
revokeServiceAccountAccessTokenWithHttpInfo
public ApiResponse<Void> revokeServiceAccountAccessTokenWithHttpInfo(String serviceAccountId, String tokenId) throws ApiException Revoke a specific access token for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)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 -
-
revokeServiceAccountAccessTokenWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> revokeServiceAccountAccessTokenWithHttpInfoAsync(String serviceAccountId, String tokenId) Revoke an access token for a service account.See
revokeServiceAccountAccessTokenWithHttpInfo(java.lang.String, java.lang.String).- Parameters:
serviceAccountId- The ID of the service account. (required)tokenId- The ID of the access token. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
updateServiceAccountAccessToken
public ServiceAccessTokenResponse updateServiceAccountAccessToken(String serviceAccountId, String tokenId, ServiceAccountAccessTokenUpdateRequest body) throws ApiException Update an access token for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)tokenId- The ID of the access token. (required)body- (required)- Returns:
- ServiceAccessTokenResponse
- Throws:
ApiException- if fails to make API call
-
updateServiceAccountAccessTokenAsync
public CompletableFuture<ServiceAccessTokenResponse> updateServiceAccountAccessTokenAsync(String serviceAccountId, String tokenId, ServiceAccountAccessTokenUpdateRequest body) Update an access token for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)tokenId- The ID of the access token. (required)body- (required)- Returns:
- CompletableFuture<ServiceAccessTokenResponse>
-
updateServiceAccountAccessTokenWithHttpInfo
public ApiResponse<ServiceAccessTokenResponse> updateServiceAccountAccessTokenWithHttpInfo(String serviceAccountId, String tokenId, ServiceAccountAccessTokenUpdateRequest body) throws ApiException Update a specific access token for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)tokenId- The ID of the access token. (required)body- (required)- Returns:
- ApiResponse<ServiceAccessTokenResponse>
- 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 -
-
updateServiceAccountAccessTokenWithHttpInfoAsync
public CompletableFuture<ApiResponse<ServiceAccessTokenResponse>> updateServiceAccountAccessTokenWithHttpInfoAsync(String serviceAccountId, String tokenId, ServiceAccountAccessTokenUpdateRequest body) Update an access token for a service account.- Parameters:
serviceAccountId- The ID of the service account. (required)tokenId- The ID of the access token. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<ServiceAccessTokenResponse>>
-
updateServiceAccountApplicationKey
public PartialApplicationKeyResponse updateServiceAccountApplicationKey(String serviceAccountId, String appKeyId, ApplicationKeyUpdateRequest body) throws ApiException Edit an application key for this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)appKeyId- The ID of the application key. (required)body- (required)- Returns:
- PartialApplicationKeyResponse
- Throws:
ApiException- if fails to make API call
-
updateServiceAccountApplicationKeyAsync
public CompletableFuture<PartialApplicationKeyResponse> updateServiceAccountApplicationKeyAsync(String serviceAccountId, String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key for this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)appKeyId- The ID of the application key. (required)body- (required)- Returns:
- CompletableFuture<PartialApplicationKeyResponse>
-
updateServiceAccountApplicationKeyWithHttpInfo
public ApiResponse<PartialApplicationKeyResponse> updateServiceAccountApplicationKeyWithHttpInfo(String serviceAccountId, String appKeyId, ApplicationKeyUpdateRequest body) throws ApiException Edit an application key owned by this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)appKeyId- The ID of the application key. (required)body- (required)- Returns:
- ApiResponse<PartialApplicationKeyResponse>
- 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 -
-
updateServiceAccountApplicationKeyWithHttpInfoAsync
public CompletableFuture<ApiResponse<PartialApplicationKeyResponse>> updateServiceAccountApplicationKeyWithHttpInfoAsync(String serviceAccountId, String appKeyId, ApplicationKeyUpdateRequest body) Edit an application key for this service account.- Parameters:
serviceAccountId- The ID of the service account. (required)appKeyId- The ID of the application key. (required)body- (required)- Returns:
- CompletableFuture<ApiResponse<PartialApplicationKeyResponse>>
-