Claude Platform Docs

페더레이션 규칙 워크스페이스 추가

$ ant beta:organization:federation:rules:workspaces add
POST/v1/organizations/federation_rules/{federation_rule_id}/workspaces

org:admin 범위가 있는 OAuth 액세스 토큰이 필요합니다. 이 토큰은 ant auth login --scope org:admin 또는 워크로드 ID 페더레이션 규칙에서 얻을 수 있으며, Admin API 키는 허용되지 않습니다. Admin API로 WIF 관리를 참조하세요.

워크스페이스에 대해 페더레이션 규칙을 활성화합니다.

멱등성을 가지며, 다시 활성화하면 기존 활성화가 반환됩니다. 규칙과 워크스페이스는 모두 조직에 속해야 합니다. 활성화 시 규칙의 대상 서비스 계정이 이 워크스페이스의 멤버인지는 확인되지 않습니다. 대상이 멤버가 아니면 이 워크스페이스로의 토큰 교환이 거부됩니다(기본 워크스페이스에는 암묵적으로 멤버입니다). 보관된 규칙은 400으로 거부됩니다. OAuth 호출자는 oauth_scope가 workspace:developer 또는 workspace:inference인 규칙만 관리할 수 있으며, 다른 범위에는 Console 세션이 필요합니다.

Parameters
--federation-rule-id: string⁠Path parameter

ID of the federation rule.

--workspace-id: string

Tagged ID of the workspace to enable this rule for.

--beta: optional array of AnthropicBeta⁠Header parameter

Optional header to specify the beta version(s) you want to use.

Returns
beta_federation_rule_workspace: object{ type: "federation_rule_workspace", created_at, created_by_actor_id, 3 more }
type: "federation_rule_workspace"
created_at: string

When this workspace was enabled for the rule.

formatdate-time
created_by_actor_id: string

Tagged ID (user_... or svac_...) of the actor that enabled this workspace for the rule, if known.

federation_rule_id: string

Tagged ID of the federation rule.

workspace_id: string

Tagged ID of the workspace this rule is enabled for.

workspace_name: string

Workspace display name. Populated when listing; null in the enable response.

페더레이션 규칙 워크스페이스 추가
ant beta:organization:federation:rules:workspaces add \
  --api-key my-anthropic-api-key \
  --federation-rule-id federation_rule_id \
  --workspace-id workspace_id
Returns Examples
Response 200
{
  "created_at": "2024-10-30T23:58:27.427722Z",
  "created_by_actor_id": "created_by_actor_id",
  "federation_rule_id": "federation_rule_id",
  "type": "federation_rule_workspace",
  "workspace_id": "workspace_id",
  "workspace_name": "workspace_name"
}