Claude Platform Docs

외부 키 목록 조회

beta.organization.external_keys.list(**kwargs) -> PageCursor<BetaExternalKey>
GET/v1/organizations/external_keys

호출자의 조직에 있는 외부 키 구성을 나열합니다.

결과는 생성 시간순(최신순)으로 정렬됩니다. 다음 페이지를 가져오려면 응답의 next_page 커서를 사용하세요.

Parameters
limit: Integer⁠Query parameter

Number of results per page.

minimum1
maximum100
page: String⁠Query parameter

Opaque cursor from a previous response's next_page.

Returns
class BetaExternalKey { type: :external_key, id, attachment, 5 more }

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).

외부 키 목록 조회
require "anthropic"

anthropic = Anthropic::Client.new(api_key: "my-anthropic-api-key")

page = anthropic.beta.organization.external_keys.list

puts(page)
Returns Examples
Response 200
{
  "data": [
    {
      "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"
    }
  ],
  "next_page": "next_page"
}