Interface ExternalKeyServiceAsync
-
- All Implemented Interfaces:
public interface ExternalKeyServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceExternalKeyServiceAsync.WithRawResponseA view of ExternalKeyServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract ExternalKeyServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract ExternalKeyServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
create
CompletableFuture<BetaExternalKey> create(ExternalKeyCreateParams params)
Create an external key config owned by the caller's organization.
-
create
abstract CompletableFuture<BetaExternalKey> create(ExternalKeyCreateParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<BetaExternalKey> retrieve(String externalKeyId)
Retrieve a single external key config in the caller's organization by ID.
-
retrieve
CompletableFuture<BetaExternalKey> retrieve(String externalKeyId, ExternalKeyRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<BetaExternalKey> retrieve(String externalKeyId, ExternalKeyRetrieveParams params)
-
retrieve
abstract CompletableFuture<BetaExternalKey> retrieve(ExternalKeyRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<BetaExternalKey> retrieve(ExternalKeyRetrieveParams params)
-
retrieve
CompletableFuture<BetaExternalKey> retrieve(String externalKeyId, RequestOptions requestOptions)
-
update
CompletableFuture<BetaExternalKey> update(String externalKeyId)
Partially update an external key config. Omitted fields are left unchanged.
display_nameis always editable.geoandprovider_configcannot be changed once any workspace references this config, because previously encrypted data requires the original key identity to decrypt.
-
update
CompletableFuture<BetaExternalKey> update(String externalKeyId, ExternalKeyUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<BetaExternalKey> update(String externalKeyId, ExternalKeyUpdateParams params)
-
update
abstract CompletableFuture<BetaExternalKey> update(ExternalKeyUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<BetaExternalKey> update(ExternalKeyUpdateParams params)
-
update
CompletableFuture<BetaExternalKey> update(String externalKeyId, RequestOptions requestOptions)
-
list
CompletableFuture<ExternalKeyListPageAsync> list()
List external key configs in the caller's organization.
Results are ordered by creation time (newest first). Use the
next_pagecursor from the response to fetch subsequent pages.
-
list
abstract CompletableFuture<ExternalKeyListPageAsync> list(ExternalKeyListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<ExternalKeyListPageAsync> list(ExternalKeyListParams params)
-
list
CompletableFuture<ExternalKeyListPageAsync> list(RequestOptions requestOptions)
-
delete
CompletableFuture<ExternalKeyDeleteResponse> delete(String externalKeyId)
Delete an external key config.
The request is rejected if any workspace still references this config.
-
delete
CompletableFuture<ExternalKeyDeleteResponse> delete(String externalKeyId, ExternalKeyDeleteParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<ExternalKeyDeleteResponse> delete(String externalKeyId, ExternalKeyDeleteParams params)
-
delete
abstract CompletableFuture<ExternalKeyDeleteResponse> delete(ExternalKeyDeleteParams params, RequestOptions requestOptions)
-
delete
CompletableFuture<ExternalKeyDeleteResponse> delete(ExternalKeyDeleteParams params)
-
delete
CompletableFuture<ExternalKeyDeleteResponse> delete(String externalKeyId, RequestOptions requestOptions)
-
validate
CompletableFuture<ExternalKeyValidateResponse> validate(String externalKeyId)
Validate an external key config against the customer's KMS.
Anthropic performs an encrypt/decrypt roundtrip against the configured KMS key and waits up to 30 seconds for the result. The response status is
successif the roundtrip succeeded, orfailurewith an error message if it failed or timed out.
-
validate
CompletableFuture<ExternalKeyValidateResponse> validate(String externalKeyId, ExternalKeyValidateParams params, RequestOptions requestOptions)
-
validate
CompletableFuture<ExternalKeyValidateResponse> validate(String externalKeyId, ExternalKeyValidateParams params)
-
validate
abstract CompletableFuture<ExternalKeyValidateResponse> validate(ExternalKeyValidateParams params, RequestOptions requestOptions)
-
validate
CompletableFuture<ExternalKeyValidateResponse> validate(ExternalKeyValidateParams params)
-
validate
CompletableFuture<ExternalKeyValidateResponse> validate(String externalKeyId, RequestOptions requestOptions)
-
-
-
-