CheckCloudResourceAuthorized
Queries whether a Key Management Service (KMS) key is authorized for a MongoDB instance.
Operation description
Before you invoke the ModifyDBInstanceTDE operation to enable transparent data encryption (TDE), invoke this operation to query the authorization of the KMS key for the MongoDB instance.
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 instance ID. |
dds-bp18f7d6b6a7**** |
| TargetRegionId |
string |
Yes |
The region ID of the instance. You can call the DescribeDBInstanceAttribute operation to query the region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AuthorizationState |
integer |
The authorization status. Valid values:
|
1 |
| RequestId |
string |
The request ID. |
A0181AC4-F186-46ED-87CA-100C70B86729 |
| RoleArn |
string |
The information about the role that is authorized to access Alibaba Cloud resources. Note
The response includes this parameter only when the return value of AuthorizationState 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.