Queries whether ApsaraDB RDS is authorized to access Alibaba Cloud resources in ApsaraDB for MyBase.

Before you create a dedicated cluster, make sure that you authorize ApsaraDB RDS to access Alibaba Cloud resources in ApsaraDB for MyBase. After you authorize ApsaraDB RDS, you can view the AliyunRDSDedicatedHostGroupRole role on the RAM Roles page in the Resource Access Management (RAM) console. If you want to use ApsaraDB for MyBase dedicated clusters, retain the AliyunRDSDedicatedHostGroupRole role. If this role is deleted, you must authorize ApsaraDB RDS again to create a dedicated cluster.

Debugging

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 No CheckUserIfAuthoriseMyBaseSystemRole

The operation that you want to perform. Set the value to CheckUserIfAuthoriseMyBaseSystemRole.

Region String Yes cn-hangzhou

The ID of the region. You can call the DescribeRegions operation to query the region ID.

RegionId String Yes cn-hangzhou

The ID of the region. You can call the DescribeRegions operation to query the region ID.

ZoneId String Yes cn-hangzhou-b

The ID of the zone. You can call the DescribeRegions operation to query the zone ID.

RamRoleName String No AliyunRDSDedicatedHostGroupRole

The name of the RAM role. This parameter is used to check whether ApsaraDB RDS is granted the specified RAM role. ApsaraDB for MyBase requires this RAM role to provide services based on ApsaraDB RDS. Set the value to AliyunRDSDedicatedHostGroupRole.

Response parameters

Parameter Type Example Description
AliUid String 118818529712****

The ID of the Alibaba Cloud account.

RequestId String D5C887C7-EAF1-40B7-88FE-2C45D4DB2F3C

The ID of the request.

RoleName String AliyunRDSDedicatedHostGroupRole

The name of the RAM role.

Examples

Sample requests

http(s)://cddc.aliyuncs.com/?Action=CheckUserIfAuthoriseMyBaseSystemRole
&RegionId=cn-hangzhou
&ZoneId=cn-hangzhou-b
&<Common request parameters>

Sample success responses

XML format

<CheckUserIfAuthoriseMyBaseSystemRoleResponse>
  <RoleName>AliyunRDSDedicatedHostGroupRole</RoleName>
  <RequestId>D5C887C7-EAF1-40B7-88FE-2C45D4DB2F3C</RequestId>
  <AliUid>118818529712****</AliUid>
</CheckUserIfAuthoriseMyBaseSystemRoleResponse>

JSON format

{
    "RoleName": "AliyunRDSDedicatedHostGroupRole",
    "RequestId": "D5C887C7-EAF1-40B7-88FE-2C45D4DB2F3C",
    "AliUid": "118818529712****"
}

Error codes

HttpCode Error code Error message Description
500 AccessForbidden The specified access ID has insufficient permission. The error message returned because you are not authorized to perform this operation.

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