English ← MyDocs

权限

列出合规角色权限

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

列出合规角色权限

路径参数

  • org_uuid: string

    组织 UUID

  • role_id: string

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

查询参数

  • limit: optional number

    最大结果数(默认值:500,最大值:1000)

  • page: optional string

    来自先前响应 next_page 字段的不透明分页令牌。传递此值以检索下一页结果。客户端应将此值视为不透明字符串,不要尝试解析或解释其内容,因为格式可能会在不另行通知的情况下更改。

请求头参数

  • "x-api-key": optional string

返回值

  • data: array of object { action, resource_id, resource_type }

    权限列表

    • action: string

      对资源允许的操作

    • resource_id: string

      权限适用的资源标识符

    • resource_type: string

      权限适用的资源类型

  • has_more: boolean

    是否存在更多记录超出当前结果集

  • next_page: string

    用于检索下一页的令牌。在下一次请求中将此值用作 'page' 参数

示例

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

响应

{
  "data": [
    {
      "action": "action",
      "resource_id": "resource_id",
      "resource_type": "resource_type"
    }
  ],
  "has_more": true,
  "next_page": "next_page"
}

领域类型

Permission List Response

  • PermissionListResponse object { action, resource_id, resource_type }

    角色授予的权限。

    • action: string

      对资源允许的操作

    • resource_id: string

      权限适用的资源标识符

    • resource_type: string

      权限适用的资源类型