All Products
Document Center

ApsaraDB RDS:CheckServiceLinkedRole

Last Updated:May 29, 2023

You can call the CheckServiceLinkedRole operation to check whether a service-linked role (SLR) is created.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • 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 Key: the condition key that is defined by the cloud service.
  • 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.
OperationAccess levelResource typeCondition keyAssociated operation
  • RDS
  • RDS

Request parameters


The region ID of the instance.

NoteThe configuration of the RegionId parameter does not affect your query results. You can configure any region for this parameter. You can call the DescribeRegions operation to query the most recent region list.

The name of the SLR.

NoteFor more information about the SLRs supported by ApsaraDB RDS, see Service-linked roles.

The ID of the resource group to which the instance belongs.


Response parameters


Indicates whether an SLR is created.


The ID of the request.



Sample success responses


  "HasServiceLinkedRole": "true",
  "RequestId": "AB44DC0A-7E77-442A-97A9-C6418694CB22"

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterGroupId.MalformedSpecified parameterGroupId is not valid.The parameter template ID that is specified by the parameterGroupId parameter is invalid. You can call the DescribeParameterGroups operation to query the IDs of parameter templates.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-07-27The error codes of the API operation change.,The input parameters of the API operation change.
Change itemChange content
Error CodesThe error codes of the API operation change.
    delete Error Codes: 400
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: ResourceGroupId
2022-06-20Add Operation