GetTenantRolePolicy
Queries the policy of a specified tenant role. Returns an empty policy document if no policy is set.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:GetTenantRolePolicy |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/tenants/roles/{roleName}/policy HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| roleName |
string |
No |
The name of the tenant role. You can query the name by calling ListAllTenantRoles. |
example_reader |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| tenantId |
string |
No |
The MaxCompute tenant ID. If omitted, the tenant of the current caller is used. |
1234567890123456 |
| region |
string |
No |
The region ID. If omitted, the region of the current request is used. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The unique identifier of the API request. Provide this identifier when troubleshooting API call issues. |
0be3e0aa16667684362147582e038f |
| data |
string |
The JSON string of the policy. |
{"Statement":[],"Version":"1"} |
Examples
Success response
JSON format
{
"requestId": "0be3e0aa16667684362147582e038f",
"data": "{\"Statement\":[],\"Version\":\"1\"}"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.