Interface ServiceAccountServiceAsync
-
- All Implemented Interfaces:
public interface ServiceAccountServiceAsync
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceServiceAccountServiceAsync.WithRawResponseA view of ServiceAccountServiceAsync that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract ServiceAccountServiceAsync.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract ServiceAccountServiceAsyncwithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. abstract WorkspaceServiceAsyncworkspaces()CompletableFuture<ServiceAccount>create(ServiceAccountCreateParams params)Requires an OAuth access token with the org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted.abstract CompletableFuture<ServiceAccount>create(ServiceAccountCreateParams params, RequestOptions requestOptions)CompletableFuture<ServiceAccount>retrieve(String serviceAccountId)Requires an OAuth access token with the org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted.CompletableFuture<ServiceAccount>retrieve(String serviceAccountId, ServiceAccountRetrieveParams params, RequestOptions requestOptions)CompletableFuture<ServiceAccount>retrieve(String serviceAccountId, ServiceAccountRetrieveParams params)abstract CompletableFuture<ServiceAccount>retrieve(ServiceAccountRetrieveParams params, RequestOptions requestOptions)CompletableFuture<ServiceAccount>retrieve(ServiceAccountRetrieveParams params)CompletableFuture<ServiceAccount>retrieve(String serviceAccountId, RequestOptions requestOptions)CompletableFuture<ServiceAccount>update(String serviceAccountId)Requires an OAuth access token with the org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted.CompletableFuture<ServiceAccount>update(String serviceAccountId, ServiceAccountUpdateParams params, RequestOptions requestOptions)CompletableFuture<ServiceAccount>update(String serviceAccountId, ServiceAccountUpdateParams params)abstract CompletableFuture<ServiceAccount>update(ServiceAccountUpdateParams params, RequestOptions requestOptions)CompletableFuture<ServiceAccount>update(ServiceAccountUpdateParams params)CompletableFuture<ServiceAccount>update(String serviceAccountId, RequestOptions requestOptions)CompletableFuture<ServiceAccountListPageAsync>list()Requires an OAuth access token with the org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted.abstract CompletableFuture<ServiceAccountListPageAsync>list(ServiceAccountListParams params, RequestOptions requestOptions)CompletableFuture<ServiceAccountListPageAsync>list(ServiceAccountListParams params)CompletableFuture<ServiceAccountListPageAsync>list(RequestOptions requestOptions)CompletableFuture<ServiceAccount>archive(String serviceAccountId)Requires an OAuth access token with the org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted.CompletableFuture<ServiceAccount>archive(String serviceAccountId, ServiceAccountArchiveParams params, RequestOptions requestOptions)CompletableFuture<ServiceAccount>archive(String serviceAccountId, ServiceAccountArchiveParams params)abstract CompletableFuture<ServiceAccount>archive(ServiceAccountArchiveParams params, RequestOptions requestOptions)CompletableFuture<ServiceAccount>archive(ServiceAccountArchiveParams params)CompletableFuture<ServiceAccount>archive(String serviceAccountId, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract ServiceAccountServiceAsync.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract ServiceAccountServiceAsync withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
workspaces
abstract WorkspaceServiceAsync workspaces()
-
create
CompletableFuture<ServiceAccount> create(ServiceAccountCreateParams params)
Requires an OAuth access token with the
org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted. See /docs/en/manage-claude/wif-admin-api.Create a service account.
A service account is a named workload identity that federation rules target.
organization_roleisdeveloper(default) oradmin; a rule may only be created or retargeted to grantorg:adminscope when the target'sorganization_roleisadmin. Creating anadmin-role service account requires an interactive credential (a user OAuth token or a Console session) — a workload may only createdeveloper-role service accounts.
-
create
abstract CompletableFuture<ServiceAccount> create(ServiceAccountCreateParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<ServiceAccount> retrieve(String serviceAccountId)
Requires an OAuth access token with the
org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted. See /docs/en/manage-claude/wif-admin-api.Retrieve a service account by its ID (
svac_...).
-
retrieve
CompletableFuture<ServiceAccount> retrieve(String serviceAccountId, ServiceAccountRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<ServiceAccount> retrieve(String serviceAccountId, ServiceAccountRetrieveParams params)
-
retrieve
abstract CompletableFuture<ServiceAccount> retrieve(ServiceAccountRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<ServiceAccount> retrieve(ServiceAccountRetrieveParams params)
-
retrieve
CompletableFuture<ServiceAccount> retrieve(String serviceAccountId, RequestOptions requestOptions)
-
update
CompletableFuture<ServiceAccount> update(String serviceAccountId)
Requires an OAuth access token with the
org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted. See /docs/en/manage-claude/wif-admin-api.Update a service account.
Only
descriptionandorganization_roleare mutable;namecannot be changed. Archived service accounts cannot be updated; this returns 400. Settingorganization_roletoadmin(even when unchanged) requires an interactive credential (a user OAuth token or a Console session).
-
update
CompletableFuture<ServiceAccount> update(String serviceAccountId, ServiceAccountUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<ServiceAccount> update(String serviceAccountId, ServiceAccountUpdateParams params)
-
update
abstract CompletableFuture<ServiceAccount> update(ServiceAccountUpdateParams params, RequestOptions requestOptions)
-
update
CompletableFuture<ServiceAccount> update(ServiceAccountUpdateParams params)
-
update
CompletableFuture<ServiceAccount> update(String serviceAccountId, RequestOptions requestOptions)
-
list
CompletableFuture<ServiceAccountListPageAsync> list()
Requires an OAuth access token with the
org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted. See /docs/en/manage-claude/wif-admin-api.List service accounts in the caller's organization.
Results are ordered by creation time, newest first. Use
limitand thenext_pagecursor to paginate; setinclude_archived=trueto include archived service accounts.
-
list
abstract CompletableFuture<ServiceAccountListPageAsync> list(ServiceAccountListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<ServiceAccountListPageAsync> list(RequestOptions requestOptions)
-
archive
CompletableFuture<ServiceAccount> archive(String serviceAccountId)
Requires an OAuth access token with the
org:adminscope, fromant auth login --scope org:adminor a workload identity federation rule; Admin API keys are not accepted. See /docs/en/manage-claude/wif-admin-api.Archive a service account.
Idempotent; re-archiving returns the service account with its original
archived_at. Rejected with 400 if any live (non-archived) federation rule still targets this service account, same as issuer archival; archive those rules first or change their target to another service account.
-
archive
CompletableFuture<ServiceAccount> archive(String serviceAccountId, ServiceAccountArchiveParams params, RequestOptions requestOptions)
-
archive
CompletableFuture<ServiceAccount> archive(String serviceAccountId, ServiceAccountArchiveParams params)
-
archive
abstract CompletableFuture<ServiceAccount> archive(ServiceAccountArchiveParams params, RequestOptions requestOptions)
-
archive
CompletableFuture<ServiceAccount> archive(ServiceAccountArchiveParams params)
-
archive
CompletableFuture<ServiceAccount> archive(String serviceAccountId, RequestOptions requestOptions)
-
-
-
-