Berechtigungen einer RBAC-Rolle auflisten
GET/v1/organizations/rbac_roles/{rbac_role_id}/permissions
Listet die Berechtigungen auf, die eine RBAC-Rolle gewährt.
Die RBAC Roles API steht nur Claude Enterprise-Organisationen zur Verfügung.
Parameters
Returns
Berechtigungen einer RBAC-Rolle auflisten
package main
import (
"context"
"fmt"
"github.com/anthropics/anthropic-sdk-go"
"github.com/anthropics/anthropic-sdk-go/option"
)
func main() {
client := anthropic.NewClient(
option.WithAPIKey("my-anthropic-api-key"),
)
page, err := client.Beta.Organization.RBACRoles.Permissions.List(
context.TODO(),
"rbac_role_id",
anthropic.BetaOrganizationRBACRolePermissionListParams{},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", page)
}Response 200
{
"data": [
{
"action": "use",
"resource": {
"organization_id": "3c4f5e6d-7a8b-49c0-9d1e-2f3a4b5c6d7e",
"type": "organization"
},
"type": "rbac_role_permission"
}
],
"has_more": true,
"next_page": "eyJjdXJzb3IiOiAicmJhY19yb2xlXzAxIn0"
}Returns Examples
Response 200
{
"data": [
{
"action": "use",
"resource": {
"organization_id": "3c4f5e6d-7a8b-49c0-9d1e-2f3a4b5c6d7e",
"type": "organization"
},
"type": "rbac_role_permission"
}
],
"has_more": true,
"next_page": "eyJjdXJzb3IiOiAicmJhY19yb2xlXzAxIn0"
}