Query role information
Queries information about a specific role via OpenAPI.
The new Qoder CN documentation site is now available. Content on this site may not reflect the latest product features and changes. Visit docs.qoder.cn for the latest product documentation.
|
Supported editions |
Enterprise Dedicated Edition, Enterprise Standard Edition |
Service endpoints
Get the service endpoint and replace {domain}
in the API request syntax with your
endpoint
.
Authorization
|
Product |
Resource |
Required permission |
|
organization management |
Organization role |
Read-only |
Request syntax
GET https://{domain}/oapi/v1/platform/organizations/{organizationId}/roles/{id}
Request |
Enterprise Standard EditionExample
Enterprise Dedicated EditionExample
|
Request headers |
|
|
The access token. See Access token for details. Example: pt-0fh3****0fbG_35af****0484. |
|
Request parameters |
|
|
organizationId Organization ID.You can go to the Basic Information page in the organization management console to obtain the organization ID (organizationId). |
|
|
id The role ID. You can obtain this ID by calling the ListRoles operation. |
Response parameters |
Response example
|
|
id The unique ID of the role. |
|
|
name The name of the role. |
|
|
organizationId The ID of the organization. |
|
|
permissions A list of permissions granted to the role. |
Error codes
For more information, see Error code center.