Interface ServiceAccountService
-
- All Implemented Interfaces:
public interface ServiceAccountService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceServiceAccountService.WithRawResponseA view of ServiceAccountService that provides access to raw HTTP responses for each method.
-
Method Summary
Modifier and Type Method Description abstract ServiceAccountService.WithRawResponsewithRawResponse()Returns a view of this service that provides access to raw HTTP responses for each method. abstract ServiceAccountServicewithOptions(Consumer<ClientOptions.Builder> modifier)Returns a view of this service with the given option modifications applied. ServiceAccountWorkspaceMemberretrieve(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.ServiceAccountWorkspaceMemberretrieve(String serviceAccountId, ServiceAccountRetrieveParams params, RequestOptions requestOptions)ServiceAccountWorkspaceMemberretrieve(ServiceAccountRetrieveParams params)abstract ServiceAccountWorkspaceMemberretrieve(ServiceAccountRetrieveParams params, RequestOptions requestOptions)ServiceAccountWorkspaceMemberupdate(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.ServiceAccountWorkspaceMemberupdate(String serviceAccountId, ServiceAccountUpdateParams params, RequestOptions requestOptions)ServiceAccountWorkspaceMemberupdate(ServiceAccountUpdateParams params)abstract ServiceAccountWorkspaceMemberupdate(ServiceAccountUpdateParams params, RequestOptions requestOptions)ServiceAccountListPagelist(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.ServiceAccountListPagelist(String workspaceId, ServiceAccountListParams params, RequestOptions requestOptions)ServiceAccountListPagelist(String workspaceId, ServiceAccountListParams params)abstract ServiceAccountListPagelist(ServiceAccountListParams params, RequestOptions requestOptions)ServiceAccountListPagelist(ServiceAccountListParams params)ServiceAccountListPagelist(String workspaceId, RequestOptions requestOptions)ServiceAccountWorkspaceMemberadd(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.ServiceAccountWorkspaceMemberadd(String workspaceId, ServiceAccountAddParams params, RequestOptions requestOptions)ServiceAccountWorkspaceMemberadd(ServiceAccountAddParams params)abstract ServiceAccountWorkspaceMemberadd(ServiceAccountAddParams params, RequestOptions requestOptions)ServiceAccountRemoveResponseremove(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.ServiceAccountRemoveResponseremove(String serviceAccountId, ServiceAccountRemoveParams params, RequestOptions requestOptions)ServiceAccountRemoveResponseremove(ServiceAccountRemoveParams params)abstract ServiceAccountRemoveResponseremove(ServiceAccountRemoveParams params, RequestOptions requestOptions)-
-
Method Detail
-
withRawResponse
abstract ServiceAccountService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract ServiceAccountService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
retrieve
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
ServiceAccountWorkspaceMember retrieve(String serviceAccountId, ServiceAccountRetrieveParams params, RequestOptions requestOptions)
-
retrieve
ServiceAccountWorkspaceMember retrieve(ServiceAccountRetrieveParams params)
-
retrieve
abstract ServiceAccountWorkspaceMember retrieve(ServiceAccountRetrieveParams params, RequestOptions requestOptions)
-
update
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
ServiceAccountWorkspaceMember update(String serviceAccountId, ServiceAccountUpdateParams params, RequestOptions requestOptions)
-
update
ServiceAccountWorkspaceMember update(ServiceAccountUpdateParams params)
-
update
abstract ServiceAccountWorkspaceMember update(ServiceAccountUpdateParams params, RequestOptions requestOptions)
-
list
ServiceAccountListPage 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
ServiceAccountListPage list(String workspaceId, ServiceAccountListParams params, RequestOptions requestOptions)
-
list
ServiceAccountListPage list(String workspaceId, ServiceAccountListParams params)
-
list
abstract ServiceAccountListPage list(ServiceAccountListParams params, RequestOptions requestOptions)
-
list
ServiceAccountListPage list(ServiceAccountListParams params)
-
list
ServiceAccountListPage list(String workspaceId, RequestOptions requestOptions)
-
add
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
ServiceAccountWorkspaceMember add(String workspaceId, ServiceAccountAddParams params, RequestOptions requestOptions)
-
add
ServiceAccountWorkspaceMember add(ServiceAccountAddParams params)
-
add
abstract ServiceAccountWorkspaceMember add(ServiceAccountAddParams params, RequestOptions requestOptions)
-
remove
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
ServiceAccountRemoveResponse remove(String serviceAccountId, ServiceAccountRemoveParams params, RequestOptions requestOptions)
-
remove
ServiceAccountRemoveResponse remove(ServiceAccountRemoveParams params)
-
remove
abstract ServiceAccountRemoveResponse remove(ServiceAccountRemoveParams params, RequestOptions requestOptions)
-
-
-
-