English ← MyDocs

获取合规角色

get /v1/compliance/organizations/{org_uuid}/roles/{role_id}

获取合规角色

路径参数

  • org_uuid: string

    组织 UUID

  • role_id: string

    角色 ID(标签 ID,例如 rbac_role_abc123)

请求头参数

  • "x-api-key": optional string

返回值

  • id: string

    角色标识符(标签 ID)

  • created_at: string

    角色创建时间戳(ISO 8601)

  • description: string

    角色描述

  • name: string

    角色名称

  • updated_at: string

    角色最后更新时间戳(ISO 8601)

示例

curl https://api.anthropic.com/v1/compliance/organizations/$ORG_UUID/roles/$ROLE_ID \
    -H "Authorization: Bearer $ANTHROPIC_COMPLIANCE_API_KEY"

响应

{
  "id": "id",
  "created_at": "created_at",
  "description": "description",
  "name": "name",
  "updated_at": "updated_at"
}