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

When DBS accesses cloud databases (such as RDS, MongoDB, Redis, and PolarDB) purchased by Alibaba Cloud or self-built databases on ECS, you need to obtain access permissions through service association roles (AliyunServiceRoleForDBS). For more information, see Enable DBS service .


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 system specifies the parameters. 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 that is returned.

ErrorCode String Param.NotFound

The error code returned.

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

The ID of the request.

Success String true

Indicates whether the request is successful.


Sample requests

     http(s):// &<Public request parameters> 

Sample success responses

XML format

     <InitializeDbsServiceLinkedRoleResponse> <RequestId>1FB42980-238F-43DC-942D-097562C01B5B</RequestId> <ErrorCode>Success</ErrorCode> <Success>true</Success> </InitializeDbsServiceLinkedRoleResponse> 

JSON format

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

Error code

Go to the Error Center View more error codes.