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
-
-
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.
-
retrieve
CompletableFuture<ServiceAccountWorkspaceMember> retrieve(String serviceAccountId, ServiceAccountRetrieveParams 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.Retrieve a service account's membership in a workspace.
Returns the membership record, including the service account's
workspace_rolein this workspace. Archived workspaces return 400. For the default workspace, returns the implicit (implicit: true) membership when no explicit membership exists; an explicitly added membership is returned with its assigned role. An archived service account returns 404.
-
retrieve
CompletableFuture<ServiceAccountWorkspaceMember> retrieve(String serviceAccountId, ServiceAccountRetrieveParams params, RequestOptions requestOptions)
-
retrieve
CompletableFuture<ServiceAccountWorkspaceMember> retrieve(ServiceAccountRetrieveParams params)
-
retrieve
abstract CompletableFuture<ServiceAccountWorkspaceMember> retrieve(ServiceAccountRetrieveParams params, RequestOptions requestOptions)
-
update
CompletableFuture<ServiceAccountWorkspaceMember> update(String serviceAccountId, ServiceAccountUpdateParams 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.Change a service account's role in a workspace.
The new
workspace_rolereplaces the current one. Only explicit memberships can be updated; to set a role on the implicit default-workspace membership, add the service account explicitly withPOST /workspaces/{workspace_id}/service_accounts. Archived workspaces return 400. Archived service accounts cannot be updated and are rejected.
-
update
CompletableFuture<ServiceAccountWorkspaceMember> update(String serviceAccountId, ServiceAccountUpdateParams params, RequestOptions requestOptions)
-
update
abstract CompletableFuture<ServiceAccountWorkspaceMember> update(ServiceAccountUpdateParams params, RequestOptions requestOptions)
-
list
CompletableFuture<ServiceAccountListPageAsync> list(String workspaceId)
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 the service accounts that are members of a workspace.
Each entry includes the service account's
workspace_role. Uselimitand thenext_pagecursor to paginate. Archived workspaces return 400; useGET /service_accounts/{id}/workspacesto audit memberships of an archived workspace. The implicit default-workspace membership is not included in this list. Memberships of archived service accounts are omitted from the results.
-
list
CompletableFuture<ServiceAccountListPageAsync> list(String workspaceId, ServiceAccountListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<ServiceAccountListPageAsync> list(String workspaceId, ServiceAccountListParams params)
-
list
abstract CompletableFuture<ServiceAccountListPageAsync> list(ServiceAccountListParams params, RequestOptions requestOptions)
-
list
CompletableFuture<ServiceAccountListPageAsync> list(String workspaceId, RequestOptions requestOptions)
-
add
CompletableFuture<ServiceAccountWorkspaceMember> add(String workspaceId, ServiceAccountAddParams 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.Add a service account to a workspace with the given
workspace_role.The role determines what the service account can do in the workspace and which workspace-scoped permissions it can be granted when authenticating through federation. Every service account is already an implicit
workspace_usermember of the default workspace; adding it explicitly assigns a chosen role. If the service account is already an explicit member of the workspace, itsworkspace_roleis replaced with the value supplied here. Archived workspaces return 400. Archived service accounts cannot be added and are rejected.
-
add
CompletableFuture<ServiceAccountWorkspaceMember> add(String workspaceId, ServiceAccountAddParams params, RequestOptions requestOptions)
-
add
abstract CompletableFuture<ServiceAccountWorkspaceMember> add(ServiceAccountAddParams params, RequestOptions requestOptions)
-
remove
CompletableFuture<ServiceAccountRemoveResponse> remove(String serviceAccountId, ServiceAccountRemoveParams 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.Remove a service account from a workspace.
Removal is idempotent (returns 200 even if the membership was already removed). A DELETE against the implicit default-workspace membership returns 200 but is a no-op and the membership persists; deleting an explicit default-workspace row reverts to the implicit
workspace_usermembership. Archived workspaces return 400.
-
remove
CompletableFuture<ServiceAccountRemoveResponse> remove(String serviceAccountId, ServiceAccountRemoveParams params, RequestOptions requestOptions)
-
remove
abstract CompletableFuture<ServiceAccountRemoveResponse> remove(ServiceAccountRemoveParams params, RequestOptions requestOptions)
-
-
-
-