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. abstract WorkspaceServiceworkspaces()ServiceAccountcreate(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 ServiceAccountcreate(ServiceAccountCreateParams params, RequestOptions requestOptions)ServiceAccountretrieve(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.ServiceAccountretrieve(String serviceAccountId, ServiceAccountRetrieveParams params, RequestOptions requestOptions)ServiceAccountretrieve(String serviceAccountId, ServiceAccountRetrieveParams params)abstract ServiceAccountretrieve(ServiceAccountRetrieveParams params, RequestOptions requestOptions)ServiceAccountretrieve(ServiceAccountRetrieveParams params)ServiceAccountretrieve(String serviceAccountId, RequestOptions requestOptions)ServiceAccountupdate(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.ServiceAccountupdate(String serviceAccountId, ServiceAccountUpdateParams params, RequestOptions requestOptions)ServiceAccountupdate(String serviceAccountId, ServiceAccountUpdateParams params)abstract ServiceAccountupdate(ServiceAccountUpdateParams params, RequestOptions requestOptions)ServiceAccountupdate(ServiceAccountUpdateParams params)ServiceAccountupdate(String serviceAccountId, RequestOptions requestOptions)ServiceAccountListPagelist()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 ServiceAccountListPagelist(ServiceAccountListParams params, RequestOptions requestOptions)ServiceAccountListPagelist(ServiceAccountListParams params)ServiceAccountListPagelist(RequestOptions requestOptions)ServiceAccountarchive(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.ServiceAccountarchive(String serviceAccountId, ServiceAccountArchiveParams params, RequestOptions requestOptions)ServiceAccountarchive(String serviceAccountId, ServiceAccountArchiveParams params)abstract ServiceAccountarchive(ServiceAccountArchiveParams params, RequestOptions requestOptions)ServiceAccountarchive(ServiceAccountArchiveParams params)ServiceAccountarchive(String serviceAccountId, 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.
-
workspaces
abstract WorkspaceService workspaces()
-
create
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 ServiceAccount create(ServiceAccountCreateParams params, RequestOptions requestOptions)
-
retrieve
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
ServiceAccount retrieve(String serviceAccountId, ServiceAccountRetrieveParams params, RequestOptions requestOptions)
-
retrieve
ServiceAccount retrieve(String serviceAccountId, ServiceAccountRetrieveParams params)
-
retrieve
abstract ServiceAccount retrieve(ServiceAccountRetrieveParams params, RequestOptions requestOptions)
-
retrieve
ServiceAccount retrieve(ServiceAccountRetrieveParams params)
-
retrieve
ServiceAccount retrieve(String serviceAccountId, RequestOptions requestOptions)
-
update
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
ServiceAccount update(String serviceAccountId, ServiceAccountUpdateParams params, RequestOptions requestOptions)
-
update
ServiceAccount update(String serviceAccountId, ServiceAccountUpdateParams params)
-
update
abstract ServiceAccount update(ServiceAccountUpdateParams params, RequestOptions requestOptions)
-
update
ServiceAccount update(ServiceAccountUpdateParams params)
-
update
ServiceAccount update(String serviceAccountId, RequestOptions requestOptions)
-
list
ServiceAccountListPage 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 ServiceAccountListPage list(ServiceAccountListParams params, RequestOptions requestOptions)
-
list
ServiceAccountListPage list(ServiceAccountListParams params)
-
list
ServiceAccountListPage list(RequestOptions requestOptions)
-
archive
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
ServiceAccount archive(String serviceAccountId, ServiceAccountArchiveParams params, RequestOptions requestOptions)
-
archive
ServiceAccount archive(String serviceAccountId, ServiceAccountArchiveParams params)
-
archive
abstract ServiceAccount archive(ServiceAccountArchiveParams params, RequestOptions requestOptions)
-
archive
ServiceAccount archive(ServiceAccountArchiveParams params)
-
archive
ServiceAccount archive(String serviceAccountId, RequestOptions requestOptions)
-
-
-
-