Queries whether a PolarDB-X instance is authorized to use Key Management Service (KMS).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardbx:CheckCloudResourceAuthorized |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The ID of the region in which the instance resides. |
cn-hangzhou |
| DBInstanceName |
string |
Yes |
The instance ID. |
pxc-******** |
| RoleArn |
string |
No |
The global resource descriptor ARN (Alibaba Cloud Resource Name) of the authorized role. After the authorization of the role is complete, the related KMS can be used. Format: acs:ram::$accountID:role/$roleName.
|
acs:ram::123456789012****:role/AliyunRdsInstanceEncryptionDefaultRole |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A501A191-BD70-5E50-98A9-C2A486A82**** |
| Data |
object |
The response body. |
|
| AuthorizationState |
string |
The authorization status. Valid values:
|
0 |
| RoleArn |
string |
The global resource descriptor ARN (Alibaba Cloud Resource Name) of the authorized role. After the authorization of the role is complete, the related KMS can be used. Format: acs:ram::$accountID:role/$roleName. |
acs:ram::123456789012****:role/AliyunRdsInstanceEncryptionDefaultRole |
Examples
Success response
JSON format
{
"RequestId": "A501A191-BD70-5E50-98A9-C2A486A82****",
"Data": {
"AuthorizationState": "0",
"RoleArn": "acs:ram::123456789012****:role/AliyunRdsInstanceEncryptionDefaultRole"
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | IncorrectEngineVersion | The current engine version does not support the operation. | The current engine version does not support the operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.