Checks whether a service-linked role is authorized for an account.
Operation description
Checks for a service-linked role by name.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductName |
string |
No |
The name of the service-linked role (SLR) for the cloud product. |
AliyunServiceRoleForEventBridgeConnectVPC |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Message |
string |
The returned message. If the request is successful, `Success` is returned. If the request fails, an error message is returned. |
Success |
| RequestId |
string |
The request ID. |
34AD682D-5B91-5773-8132-AA38C130**** |
| Data |
object |
The returned data. |
|
| StsRoleName |
string |
The name of the service-linked role. |
AliyunServiceRoleForEventBridgeConnectVPC |
| CheckPass |
boolean |
Indicates whether the service-linked role exists. |
true |
| Code |
string |
The status code. A value of `Success` indicates that the request is successful. For more information about other error codes, see Error codes. Success: The request is successful. Other codes indicate that the request failed. For more information about error codes, see Error codes. |
Success |
| Success |
boolean |
Indicates whether the request was successful. `true`: The request was successful. `false`: The request failed. |
true |
Examples
Success response
JSON format
{
"Message": "Success",
"RequestId": "34AD682D-5B91-5773-8132-AA38C130****",
"Data": {
"StsRoleName": "AliyunServiceRoleForEventBridgeConnectVPC",
"CheckPass": true
},
"Code": "Success",
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | ServiceNotEnable | Service not enable |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.