Grants the service-linked role (AliyunServiceRoleForDBS) to Database Backup (DBS).
Operation description
DBS uses the service-linked role (AliyunServiceRoleForDBS) to obtain the required access permissions to connect to ApsaraDB databases, such as RDS, MongoDB, Redis, and PolarDB, or self-managed databases on ECS instances. For more information, see Activate the Database Backup service.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dbs:InitializeDbsServiceLinkedRole |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
This API has no request parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The following table describes the response parameters. |
||
| Data |
string |
An empty value. |
null |
| RequestId |
string |
The request ID. |
4F1888AC-1138-4995-B9FE-D2734F61C058 |
| Success |
string |
Indicates whether the request was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code. |
EntityAlreadyExists.Role |
| ErrMessage |
string |
The error message. |
EntityAlreadyExists.Role : The role already exists:AliyunServiceRoleForDBS\r\nRequestId : 73******-3B4D-501A-9505-FA8B9****** |
Examples
Success response
JSON format
{
"Data": "null",
"RequestId": "4F1888AC-1138-4995-B9FE-D2734F61C058",
"Success": "true",
"ErrorCode": "EntityAlreadyExists.Role",
"ErrMessage": "EntityAlreadyExists.Role : The role already exists:AliyunServiceRoleForDBS\\r\\nRequestId : 73******-3B4D-501A-9505-FA8B9******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | Request.Forbidden | Have no Permissions |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.