列出 RBAC 角色
GET/v1/organizations/rbac_roles
列出组织中的 RBAC 角色。
RBAC 角色 API 仅适用于 Claude Enterprise 组织。
Parameters
Returns
列出 RBAC 角色
using System;
using Anthropic.Models.Beta.Organization.RbacRoles;
RbacRoleListParams parameters = new();
var page = await client.Beta.Organization.RbacRoles.List(parameters);
await foreach (var item in page.Paginate())
{
Console.WriteLine(item);
}Response 200
{
"data": [
{
"id": "rbac_role_016J8xVtKpDq3Wy9ZmN2hR4s",
"created_at": "2024-10-30T23:58:27.427722Z",
"display_name": "Project Editor",
"type": "rbac_role",
"updated_at": "2024-10-30T23:58:27.427722Z"
}
],
"has_more": true,
"next_page": "eyJjdXJzb3IiOiAicmJhY19yb2xlXzAxIn0"
}Returns Examples
Response 200
{
"data": [
{
"id": "rbac_role_016J8xVtKpDq3Wy9ZmN2hR4s",
"created_at": "2024-10-30T23:58:27.427722Z",
"display_name": "Project Editor",
"type": "rbac_role",
"updated_at": "2024-10-30T23:58:27.427722Z"
}
],
"has_more": true,
"next_page": "eyJjdXJzb3IiOiAicmJhY19yb2xlXzAxIn0"
}