Checks whether a user is authorized to use Key Management Service (KMS).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:CheckKMSAuthorized |
get |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. Note
Call the DescribeRegions operation to query information about the available regions of the destination account, including region IDs. |
cn-hangzhou |
| DBClusterId |
string |
Yes |
The cluster ID. Note
Call the DescribeDBClusters operation to query information about all clusters in the destination region, including cluster IDs. |
pc-************ |
| TDERegion |
string |
No |
The region where the transparent data encryption (TDE) key is located. |
cn-beijing |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AuthorizationState |
integer |
The authorization status. Valid values:
|
0 |
| RequestId |
string |
The request ID. |
A7E6A8FD-C50B-46B2-BA85-D8B8D3****** |
| RoleArn |
string |
The Global Resource Descriptor of the role. It specifies the role. For more information, see RAM role overview. |
acs:ram::1406926*****:role/aliyunrdsinstanceencryptiondefaultrole |
| DBClusterId |
string |
The cluster ID. |
pc-************ |
Examples
Success response
JSON format
{
"AuthorizationState": 0,
"RequestId": "A7E6A8FD-C50B-46B2-BA85-D8B8D3******",
"RoleArn": "acs:ram::1406926*****:role/aliyunrdsinstanceencryptiondefaultrole",
"DBClusterId": "pc-************"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | UnsupportedKmsService.NotEnabled | KMS service is not enabled. | Key Management Service is not enabled. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.