外部キーを更新
POST/v1/organizations/external_keys/{external_key_id}
外部キー設定を部分的に更新します。省略されたフィールドは変更されません。
display_nameは常に編集可能です。geoとprovider_configは、いずれかのワークスペースがこの設定を参照すると
変更できなくなります。以前に暗号化されたデータを復号するには、元のキーIDが必要なためです。
Parameters
Returns
外部キーを更新
using System;
using Anthropic.Models.Organization.ExternalKeys;
ExternalKeyUpdateParams parameters = new()
{
ExternalKeyID = "external_key_id"
};
var externalKey = await client.Organization.ExternalKeys.Update(parameters);
Console.WriteLine(externalKey);Response 200
{
"id": "ekey_01SDCCSbTxrXDpWc1phhtcfK",
"attachment": {
"type": "attached"
},
"created_at": "2024-10-30T23:58:27.427722Z",
"display_name": "prod-us-key",
"geo": "us",
"provider_config": {
"kms_arn": "arn:aws:kms:us-east-1:111122223333:key/abcd1234-5678-90ab-cdef-000011112222",
"type": "aws",
"region": "us-east-1",
"role_arn": "arn:aws:iam::111122223333:role/anthropic-cmek"
},
"type": "external_key",
"updated_at": "2024-10-30T23:58:27.427722Z",
"user_profile_id": "uprof_01SDCCSbTxrXDpWc1phhtcfK"
}Returns Examples
Response 200
{
"id": "ekey_01SDCCSbTxrXDpWc1phhtcfK",
"attachment": {
"type": "attached"
},
"created_at": "2024-10-30T23:58:27.427722Z",
"display_name": "prod-us-key",
"geo": "us",
"provider_config": {
"kms_arn": "arn:aws:kms:us-east-1:111122223333:key/abcd1234-5678-90ab-cdef-000011112222",
"type": "aws",
"region": "us-east-1",
"role_arn": "arn:aws:iam::111122223333:role/anthropic-cmek"
},
"type": "external_key",
"updated_at": "2024-10-30T23:58:27.427722Z",
"user_profile_id": "uprof_01SDCCSbTxrXDpWc1phhtcfK"
}