Checks whether a service-linked role has been created.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:CheckServiceLinkedRole |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID of the cluster. Note
You can call the DescribeRegions operation to query the most recent region list. |
cn-beijing |
| ServiceName |
string |
No |
The name of the service. |
ads.aliyuncs.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
BA0F6761-7A8C-59F8-9624-FB56788C0EDF |
| HasServiceLinkedRole |
boolean |
Indicates whether a service-linked role (SLR) has been created. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "BA0F6761-7A8C-59F8-9624-FB56788C0EDF",
"HasServiceLinkedRole": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.