Checks whether Key Management Service (KMS) keys are authorized to an ApsaraDB for MongoDB instance.
Operation description
Before you enable Transparent Data Encryption (TDE) by calling the ModifyDBInstanceTDE operation, you can call this operation to check whether KMS keys are authorized to ApsaraDB for MongoDB instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:CheckCloudResourceAuthorized |
get |
*dbinstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The ID of the instance. |
dds-bp18f7d6b6a7**** |
| TargetRegionId |
string |
Yes |
The region ID of the instance. You can call the DescribeDBInstanceAttribute operation to query the region ID of the instance. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AuthorizationState |
integer |
Indicates whether KMS keys are authorized to ApsaraDB for MongoDB instances. Valid values:
|
1 |
| RequestId |
string |
The ID of the request. |
A0181AC4-F186-46ED-87CA-100C70B86729 |
| RoleArn |
string |
The role information of the authorized Alibaba Resource Name (ARN). Note
This parameter is returned only when the value of the AuthorizationState parameter is 1. |
acs:ram::140****:role/aliyunrdsinstanceencryptiondefaultrole |
Examples
Success response
JSON format
{
"AuthorizationState": 1,
"RequestId": "A0181AC4-F186-46ED-87CA-100C70B86729",
"RoleArn": "acs:ram::140****:role/aliyunrdsinstanceencryptiondefaultrole"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.