CheckRamRole
Checks whether a specified Resource Access Management (RAM) role under the current account can be assumed by MaxCompute.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
odps:CheckRamRole |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/ramRole/{roleName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| roleName |
string |
Yes |
The name of the RAM role to check. |
example_role |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| check |
string |
No |
The check mode flag. Pass this query parameter to select the role check operation. |
NoUse |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
PopResult |
||
| requestId |
string |
The ID of the request. You can use the request ID to query request logs and troubleshoot issues. |
A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF |
| data |
boolean |
The check result. A value of true indicates that MaxCompute can assume the specified role. A value of false indicates that MaxCompute cannot assume the role. |
Examples
Success response
JSON format
{
"requestId": "A9E5C7F4-42AC-4FFA-9019-B6B2B57983EF",
"data": false
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.