RBAC-Rolle abrufen
GET/v1/organizations/rbac_roles/{rbac_role_id}
Ruft eine RBAC-Rolle anhand ihrer ID ab.
Die RBAC Roles API steht nur Claude Enterprise-Organisationen zur Verfügung.
Parameters
Returns
RBAC-Rolle abrufen
package com.anthropic.example;
import com.anthropic.client.AnthropicClient;
import com.anthropic.client.okhttp.AnthropicOkHttpClient;
import com.anthropic.models.beta.organization.rbacroles.BetaRbacRole;
import com.anthropic.models.beta.organization.rbacroles.RbacRoleRetrieveParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
AnthropicClient client = AnthropicOkHttpClient.fromEnv();
BetaRbacRole betaRbacRole = client.beta().organization().rbacRoles().retrieve("rbac_role_id");
}
}Response 200
{
"id": "rbac_role_016J8xVtKpDq3Wy9ZmN2hR4s",
"created_at": "2024-10-30T23:58:27.427722Z",
"display_name": "Project Editor",
"name": "Project Editor",
"type": "rbac_role",
"updated_at": "2024-10-30T23:58:27.427722Z"
}Returns Examples
Response 200
{
"id": "rbac_role_016J8xVtKpDq3Wy9ZmN2hR4s",
"created_at": "2024-10-30T23:58:27.427722Z",
"display_name": "Project Editor",
"name": "Project Editor",
"type": "rbac_role",
"updated_at": "2024-10-30T23:58:27.427722Z"
}