All Products
Search
Document Center

Database Backup:InitializeDbsServiceLinkedRole

Last Updated:Sep 16, 2022

Grants the AliyunServiceRoleForDBS role to Database Backup (DBS).

Operation Description

DBS can assume the AliyunServiceRoleForDBS role to obtain the permissions required to connect to databases installed on Alibaba Cloud Elastic Compute Service (ECS) instances or databases that you purchase from Alibaba Cloud, such as ApsaraDB RDS, ApsaraDB for MongoDB, ApsaraDB for Redis, and PolarDB databases. For more information, see Get started with DBS.

Authorization information

The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All resources is used in the Resource type column of the operation.
  • Condition keyword: refers to the condition keyword defined by the cloud product itself.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operateaccess levelResource typeconditional keywordAssociation operation
dbs:InitializeDbsServiceLinkedRoleRead
      without
    without

    Request parameters

    ParameterTypeRequiredDescriptionExample
    The current API does not require request parameters

    Response parameters

    ParameterTypeDescriptionExample
    object
    Datastring

    The value is null.

    null
    RequestIdstring

    The ID of the request.

    4F1888AC-1138-4995-B9FE-D2734F61C058
    Successstring

    Indicates whether the request is successful.

    true
    ErrorCodestring

    The error code.

    Param.NotFound
    ErrMessagestring

    The error message.

    The specified parameter %s value is not valid.

    Example

    Request example

    http(s)://dbs-api.cn-hangzhou.aliyuncs.com/?Action=InitializeDbsServiceLinkedRole
    &<Common request parameters>
    

    Normal return example

    JSONFormat

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

    XMLFormat

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

    Error codes

    For a list of error codes, visit the API error center.