外部キー
外部キーを作成
外部キーの一覧を取得
外部キーを取得
外部キーを更新
外部キーを削除
外部キーを検証
Models
BetaAWSExternalKeyConfig object{ kms_arn, type, region, role_arn }
kms_arn: stringFull ARN of the AWS KMS key. On Claude Platform on AWS the key must be a single-Region key in your organization's own AWS account; cross-account keys, multi-Region keys, and alias ARNs are rejected.
Full ARN of the AWS KMS key. On Claude Platform on AWS the key must be a single-Region key in your organization's own AWS account; cross-account keys, multi-Region keys, and alias ARNs are rejected.
AWS region. Derived from kms_arn if omitted.
IAM role ARN. Deprecated — Anthropic reaches the KMS key through its own intermediate role (or, on Claude Platform on AWS, with credentials AWS issues for the Workspace); this field is ignored.
BetaAzureExternalKeyConfig object{ key_name, tenant_id, type, 2 more }
Name of the key within the vault.
Azure AD tenant ID.
Key Vault data-plane URI — https://{vault-name}.vault.azure.net or https://{hsm-name}.managedhsm.azure.net.
Azure AD application (client) ID. Omit to use Anthropic's multitenant app. Provide only if using a single-tenant app registration in the customer's directory.
BetaAzureExternalKeyConfigParam object{ key_name, tenant_id, type, 2 more }Azure Key Vault provider configuration.
Azure Key Vault provider configuration.
Name of the key within the vault.
Azure AD tenant ID.
Key Vault data-plane URI — https://{vault-name}.vault.azure.net or https://{hsm-name}.managedhsm.azure.net.
Azure AD application (client) ID. Omit to use Anthropic's multitenant app. Provide only if using a single-tenant app registration in the customer's directory.
BetaExternalKey object{ id, attachment, created_at, 5 more }CMEK external key config belonging to the caller's organization.
CMEK external key config belonging to the caller's organization.
Configs are organization-scoped. Workspaces attach to a config; once any workspace references it, the provider fields become effectively immutable (existing encrypted data needs the config for decrypt).
BetaExternalKeyAttachedAttachment object{ type }
type: "attached"
BetaExternalKeyUnattachedAttachment object{ type }
type: "unattached"
BetaGCPExternalKeyConfig object{ key_name, type }
Full resource name of the Cloud KMS key.
ExternalKeyDeleteResponse object{ id, type }
ID of the deleted External Key.
type: "external_key_deleted"
ExternalKeyValidateResponse object{ error, status, type }Result of a validation roundtrip against the customer's KMS.
Result of a validation roundtrip against the customer's KMS.
HTTP 200 for both outcomes — the operation completed; status says
whether the key works.
Error message when status is failure. Null otherwise.
status: "failure" or "success"success — encrypt/decrypt roundtrip succeeded. failure — the roundtrip failed or timed out; see error.
success — encrypt/decrypt roundtrip succeeded. failure — the roundtrip failed or timed out; see error.