外部キー
Models
AWSExternalKeyConfig object{ type: "aws", kms_arn, region, role_arn }
kms_arn: stringFull ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
Full ARN of the AWS KMS key. On Claude Platform on AWS, alias ARNs are rejected, and your organization's own key must be a single-Region key in your organization's AWS account.
AWS region. Derived from kms_arn if omitted.
IAM role ARN. Deprecated; this field is ignored.
AzureExternalKeyConfig object{ type: "azure", key_name, tenant_id, 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.
AzureExternalKeyConfigParam object{ type: "azure", key_name, tenant_id, 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.
ExternalKey object{ type: "external_key", id, attachment, 6 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).
ExternalKeyAttachedAttachment object{ type: "attached" }
type: "attached"
ExternalKeyChangedErrorDetails object{ error_code }The external key changed while the request was validating it. Send the request again.
The external key changed while the request was validating it. Send the request again.
ExternalKeyInWorkspacePolicyErrorDetails object{ error_code }The External Key can't be deleted or reconfigured while the organization's Workspace Policy lists it as an allowed key.
The External Key can't be deleted or reconfigured while the organization's Workspace Policy lists it as an allowed key.
ExternalKeyUnattachedAttachment object{ type: "unattached" }
type: "unattached"
ExternalKeyValidationFailedErrorDetails object{ error_code }The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
The External Key failed Anthropic's validation, so the request was refused. The message gives the reason, if there is one.
ExternalKeyValidationTimedOutErrorDetails object{ error_code }Anthropic's validation of the External Key did not finish in time, so the request was refused. Wait a moment, then send the request again.
Anthropic's validation of the External Key did not finish in time, so the request was refused. Wait a moment, then send the request again.
GCPExternalKeyConfig object{ type: "gcp", key_name }
Full resource name of the Cloud KMS key.
ExternalKeyDeleteResponse object{ type: "external_key_deleted", id }
type: "external_key_deleted"
ID of the deleted External Key.
ExternalKeyValidateResponse object{ type: "external_key_validation", error, status }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.
type: "external_key_validation"
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.