You can call this operation to grant the AliyunServiceRoleForDBS role to Database Backup (DBS).

DBS must assume the AliyunServiceRoleForDBS role to obtain required permissions to connect to databases hosted on Alibaba Cloud Elastic Compute Service (ECS) instances or database that you purchase from Alibaba Cloud, such as ApsaraDB RDS, ApsaraDB for MongoDB, ApsaraDB for Redis, and PolarDB databases. For more information, see Service-linked roles.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes InitializeDbsServiceLinkedRole

The operation that you want to perform. Valid values: InitializeDbsServiceLinkedRole.

Response parameters

Parameter Type Example Description
Data String null

The value is null.

ErrMessage String The specified parameter %s value is not valid.

The error message.

ErrorCode String Param.NotFound

The error code.

RequestId String 4F1888AC-1138-4995-B9FE-D2734F61C058

The ID of the request.

Success String true

Indicates whether the request was successful.


Sample requests

&<Common Request Parameters>

Sample success responses

XML format


JSON format

	"RequestId": "1FB42980-238F-43DC-942D-097562C01B5B",
	"ErrorCode": "Success",
	"Success": true

Error codes

For a list of error codes, visit the API Error Center.