組織
取得目前組織
OrganizationInfo organization().retrieve(params = OrganizationRetrieveParams.none(), requestOptions = RequestOptions.none())擷取與已驗證 API 金鑰相關聯之組織的資訊。
Models
Errors
組織API 金鑰
列出 API 金鑰
ApiKeyListPage organization().apiKeys().list(params = ApiKeyListParams.none(), requestOptions = RequestOptions.none())擷取 API 金鑰(Admin API)
ApiKey organization().apiKeys().retrieve(params = ApiKeyRetrieveParams.none(), requestOptions = RequestOptions.none())依 ID 查詢並擷取您組織中單一 API 金鑰的資訊。此 Admin API 端點需要 Admin API 金鑰,適用於以程式方式管理金鑰,且絕不會傳回金鑰的秘密值。若要檢視或建立您自己的 API 金鑰,請前往 Claude Console 中的 API 金鑰。
組織外部金鑰
建立外部金鑰
ExternalKey organization().externalKeys().create(params, requestOptions = RequestOptions.none())建立由呼叫者組織擁有的外部金鑰設定。
列出外部金鑰
ExternalKeyListPage organization().externalKeys().list(params = ExternalKeyListParams.none(), requestOptions = RequestOptions.none())列出呼叫者組織中的外部金鑰設定。
取得外部金鑰
ExternalKey organization().externalKeys().retrieve(params = ExternalKeyRetrieveParams.none(), requestOptions = RequestOptions.none())依 ID 擷取呼叫者組織中的單一外部金鑰設定。
更新外部金鑰
ExternalKey organization().externalKeys().update(params = ExternalKeyUpdateParams.none(), requestOptions = RequestOptions.none())部分更新外部金鑰設定。省略的欄位將保持不變。
刪除外部金鑰
ExternalKeyDeleteResponse organization().externalKeys().delete(params = ExternalKeyDeleteParams.none(), requestOptions = RequestOptions.none())刪除外部金鑰設定。
驗證外部金鑰
ExternalKeyValidateResponse organization().externalKeys().validate(params = ExternalKeyValidateParams.none(), requestOptions = RequestOptions.none())針對客戶的 KMS 驗證外部金鑰設定。
組織聯合簽發者
建立聯合簽發者
FederationIssuer organization().federation().issuers().create(params, requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出聯合簽發者
IssuerListPage organization().federation().issuers().list(params = IssuerListParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
取得聯合簽發者
FederationIssuer organization().federation().issuers().retrieve(params = IssuerRetrieveParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
更新聯合簽發者
FederationIssuer organization().federation().issuers().update(params = IssuerUpdateParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
封存聯合簽發者
FederationIssuer organization().federation().issuers().archive(params = IssuerArchiveParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
組織聯合規則
建立聯合規則
FederationRule organization().federation().rules().create(params, requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出聯合規則
RuleListPage organization().federation().rules().list(params = RuleListParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
取得聯合規則
FederationRule organization().federation().rules().retrieve(params = RuleRetrieveParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
更新聯合規則
FederationRule organization().federation().rules().update(params = RuleUpdateParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
封存聯合規則
FederationRule organization().federation().rules().archive(params = RuleArchiveParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
組織聯合規則工作區
新增聯合規則工作區
FederationRuleWorkspace organization().federation().rules().workspaces().add(params, requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出聯合規則工作區
WorkspaceListPage organization().federation().rules().workspaces().list(params = WorkspaceListParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
移除聯合規則工作區
WorkspaceRemoveResponse organization().federation().rules().workspaces().remove(params, requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
組織邀請
建立邀請
OrganizationInvite organization().invites().create(params, requestOptions = RequestOptions.none())透過電子郵件邀請使用者加入組織。
列出邀請
InviteListPage organization().invites().list(params = InviteListParams.none(), requestOptions = RequestOptions.none())列出組織的邀請。
取得邀請
OrganizationInvite organization().invites().retrieve(params = InviteRetrieveParams.none(), requestOptions = RequestOptions.none())依 ID 擷取邀請。
刪除邀請
InviteDeleteResponse organization().invites().delete(params = InviteDeleteParams.none(), requestOptions = RequestOptions.none())刪除待處理的邀請。
組織服務帳戶
建立服務帳戶
ServiceAccount organization().serviceAccounts().create(params, requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出服務帳戶
ServiceAccountListPage organization().serviceAccounts().list(params = ServiceAccountListParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
取得服務帳戶
ServiceAccount organization().serviceAccounts().retrieve(params = ServiceAccountRetrieveParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
更新服務帳戶
ServiceAccount organization().serviceAccounts().update(params = ServiceAccountUpdateParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
封存服務帳戶
ServiceAccount organization().serviceAccounts().archive(params = ServiceAccountArchiveParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
組織服務帳戶工作區
將工作區新增至服務帳戶
ServiceAccountWorkspaceMember organization().serviceAccounts().workspaces().add(params, requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
列出服務帳戶的工作區
WorkspaceListPage organization().serviceAccounts().workspaces().list(params = WorkspaceListParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
從服務帳戶移除工作區
WorkspaceRemoveResponse organization().serviceAccounts().workspaces().remove(params, requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
組織使用者
列出使用者
UserListPage organization().users().list(params = UserListParams.none(), requestOptions = RequestOptions.none())列出組織的成員。
取得使用者
OrganizationUser organization().users().retrieve(params = UserRetrieveParams.none(), requestOptions = RequestOptions.none())依使用者 ID 擷取組織成員。
更新使用者
OrganizationUser organization().users().update(params, requestOptions = RequestOptions.none())更新成員的組織角色。
移除使用者
UserRemoveResponse organization().users().remove(params = UserRemoveParams.none(), requestOptions = RequestOptions.none())從組織中移除成員。
組織工作區
列出工作區
WorkspaceListPage organization().workspaces().list(params = WorkspaceListParams.none(), requestOptions = RequestOptions.none())組織工作區速率限制
列出工作區速率限制
RateLimitListPage organization().workspaces().rateLimits().list(params = RateLimitListParams.none(), requestOptions = RequestOptions.none())列出工作區的速率限制。
設定工作區速率限制
WorkspaceRateLimit organization().workspaces().rateLimits().update(params, requestOptions = RequestOptions.none())為工作區中的單一速率限制群組設定或清除速率限制覆寫。
組織工作區成員
列出工作區成員
MemberListPage organization().workspaces().members().list(params = MemberListParams.none(), requestOptions = RequestOptions.none())建立工作區成員
WorkspaceMember organization().workspaces().members().add(params, requestOptions = RequestOptions.none())取得工作區成員
WorkspaceMember organization().workspaces().members().retrieve(params, requestOptions = RequestOptions.none())更新工作區成員
WorkspaceMember organization().workspaces().members().update(params, requestOptions = RequestOptions.none())刪除工作區成員
MemberRemoveResponse organization().workspaces().members().remove(params, requestOptions = RequestOptions.none())組織工作區服務帳戶
列出服務帳戶工作區成員
ServiceAccountListPage organization().workspaces().serviceAccounts().list(params = ServiceAccountListParams.none(), requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
建立服務帳戶工作區成員
ServiceAccountWorkspaceMember organization().workspaces().serviceAccounts().add(params, requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
取得服務帳戶工作區成員
ServiceAccountWorkspaceMember organization().workspaces().serviceAccounts().retrieve(params, requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
更新服務帳戶工作區成員
ServiceAccountWorkspaceMember organization().workspaces().serviceAccounts().update(params, requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合(workload identity federation)規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
刪除服務帳戶工作區成員
ServiceAccountRemoveResponse organization().workspaces().serviceAccounts().remove(params, requestOptions = RequestOptions.none())需要具有 org:admin 範圍的 OAuth 存取權杖,可透過 ant auth login --scope org:admin 或工作負載身分聯合規則取得;不接受 Admin API 金鑰。請參閱使用 Admin API 管理 WIF。
組織速率限制
列出組織速率限制
RateLimitListPage organization().rateLimits().list(params = RateLimitListParams.none(), requestOptions = RequestOptions.none())列出您組織的 Messages API 速率限制。
組織合規設定
取得合規設定
OrganizationComplianceSettings organization().complianceSettings().retrieve(params = ComplianceSettingRetrieveParams.none(), requestOptions = RequestOptions.none())擷取您組織的合規設定。
更新合規設定
OrganizationComplianceSettings organization().complianceSettings().update(params, requestOptions = RequestOptions.none())更新您組織的合規設定。
組織分析摘要
取得活動摘要
SummaryListPage organization().analytics().summaries().list(params, requestOptions = RequestOptions.none())取得指定日期範圍內的全組織活動摘要。
組織分析使用者
列出使用者活動
UserListPage organization().analytics().users().list(params = UserListParams.none(), requestOptions = RequestOptions.none())取得指定日期的每位使用者活動,採用游標式分頁。
組織分析應用程式聊天專案
取得聊天專案用量
ProjectListPage organization().analytics().apps().chat().projects().list(params = ProjectListParams.none(), requestOptions = RequestOptions.none())取得指定日期的每個專案活動,並支援以游標為基礎的分頁。
組織分析連接器
取得連接器使用量
ConnectorListPage organization().analytics().connectors().list(params = ConnectorListParams.none(), requestOptions = RequestOptions.none())取得指定日期的每個連接器用量,採用游標式分頁。
組織分析外掛程式
取得外掛程式使用量
PluginListPage organization().analytics().plugins().list(params = PluginListParams.none(), requestOptions = RequestOptions.none())取得指定日期的每個外掛程式安裝與呼叫用量,採用分頁。
組織分析技能
取得技能使用量
SkillListPage organization().analytics().skills().list(params = SkillListParams.none(), requestOptions = RequestOptions.none())取得指定日期的每項技能用量,採用游標式分頁。
組織分析Artifacts
取得 Artifact 活動
ArtifactListPage organization().analytics().artifacts().list(params, requestOptions = RequestOptions.none())取得指定日期的 artifact 建立活動,依 MIME 類型細分。
組織支出限制有效
列出有效支出限制
EffectiveListPage organization().spendLimits().effective().list(params = EffectiveListParams.none(), requestOptions = RequestOptions.none())列出每位成員的有效支出限制及本期至今的支出。
組織支出限制提高請求
列出支出限制提高請求
IncreaseRequestListPage organization().spendLimits().increaseRequests().list(params = IncreaseRequestListParams.none(), requestOptions = RequestOptions.none())列出支出限制提高請求,最新的在前。
取得支出限制提高請求
SpendLimitIncreaseRequest organization().spendLimits().increaseRequests().retrieve(params = IncreaseRequestRetrieveParams.none(), requestOptions = RequestOptions.none())擷取支出限制提高請求。
核准支出限制提高請求
IncreaseRequestApproveResponse organization().spendLimits().increaseRequests().approve(params, requestOptions = RequestOptions.none())核准待處理的支出限制提高請求。
拒絕支出限制提高請求
SpendLimitIncreaseRequest organization().spendLimits().increaseRequests().deny(params = IncreaseRequestDenyParams.none(), requestOptions = RequestOptions.none())拒絕待處理的支出限制提高請求。
組織RBAC 群組
建立 RBAC 群組
RbacGroup organization().rbacGroups().create(params, requestOptions = RequestOptions.none())在 Claude Enterprise 租戶中建立 RBAC 群組。透過 API 建立的群組其來源類型為 "direct"。
列出 RBAC 群組
RbacGroupListPage organization().rbacGroups().list(params = RbacGroupListParams.none(), requestOptions = RequestOptions.none())列出 Claude Enterprise 租戶中的 RBAC 群組。
取得 RBAC 群組
RbacGroup organization().rbacGroups().retrieve(params = RbacGroupRetrieveParams.none(), requestOptions = RequestOptions.none())依 ID 擷取 RBAC 群組。
更新 RBAC 群組
RbacGroup organization().rbacGroups().update(params = RbacGroupUpdateParams.none(), requestOptions = RequestOptions.none())更新 RBAC 群組的名稱。當租用戶中的組織使用 SCIM 佈建時,由身分識別提供者佈建的群組(來源類型為 "scim")無法透過 API 修改。
刪除 RBAC 群組
DeletedRbacGroup organization().rbacGroups().delete(params = RbacGroupDeleteParams.none(), requestOptions = RequestOptions.none())刪除 RBAC 群組。當租用戶中的組織使用 SCIM 佈建時,由身分識別提供者佈建的群組(來源類型為 "scim")無法透過 API 刪除。
組織RBAC 群組成員
列出 RBAC 群組成員
MemberListPage organization().rbacGroups().members().list(params = MemberListParams.none(), requestOptions = RequestOptions.none())列出 RBAC 群組的成員。
新增 RBAC 群組成員
RbacGroupMember organization().rbacGroups().members().add(params, requestOptions = RequestOptions.none())將使用者新增至 RBAC 群組。當租用戶中的組織使用 SCIM 佈建時,由身分識別提供者佈建的群組(來源類型為 "scim")其成員資格無法透過 API 修改。
移除 RBAC 群組成員
DeletedRbacGroupMember organization().rbacGroups().members().remove(params, requestOptions = RequestOptions.none())從 RBAC 群組中移除使用者。當租用戶中的組織使用 SCIM 佈建時,由身分識別提供者佈建的群組(來源類型為 "scim")其成員資格無法透過 API 修改。
組織RBAC 角色
列出 RBAC 角色
RbacRoleListPage organization().rbacRoles().list(params = RbacRoleListParams.none(), requestOptions = RequestOptions.none())列出組織中的 RBAC 角色。
取得 RBAC 角色
RbacRole organization().rbacRoles().retrieve(params = RbacRoleRetrieveParams.none(), requestOptions = RequestOptions.none())依 ID 擷取 RBAC 角色。
組織RBAC 角色權限
列出 RBAC 角色權限
PermissionListPage organization().rbacRoles().permissions().list(params = PermissionListParams.none(), requestOptions = RequestOptions.none())列出 RBAC 角色所授予的權限。