UpdateKmsInstanceBindVpc
Updates the VPCs configured for a KMS instance.
Operation description
-
For details about the permission policies that must be granted to a Resource Access Management (RAM) user or RAM role to call this API operation, see Access control.
-
If your self-managed applications are deployed in multiple VPCs in the same region, you can configure VPCs other than the VPC to which the KMS instance belongs (the VPC specified when the KMS instance is enabled) for the KMS instance. This topic describes how to configure these VPCs.
These VPCs can belong to the same Alibaba Cloud account or different Alibaba Cloud accounts. After the configuration is complete, the self-managed applications in these VPCs can access the specified KMS instance.
NoteIf the VPCs belong to different Alibaba Cloud accounts, you must first configure resource sharing to share the vSwitches of the other Alibaba Cloud accounts with the Alibaba Cloud account to which the KMS instance belongs. For more information, see Access a KMS instance from multiple VPCs in the same region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kms:UpdateKmsInstanceBindVpc |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| KmsInstanceId |
string |
Yes |
The ID of the KMS instance. |
kst-phzz64f722a1buamw0**** |
| BindVpcs |
string |
Yes |
The VPC configurations. Each VPC includes the following information:
Format: |
[{"VpcId":"vpc-bp1go9qvmj78j4f4c****","VSwitchId":"vsw-bp16c5pvvcf0fp5b9****","RegionId":"cn-hangzhou","VpcOwnerId":120708975881****},{"VpcId":"vpc-bp14c07ucxg6h1xjm****","VSwitchId":"vsw-bp1wujtnspi1l3gvu****","RegionId":"cn-hangzhou","VpcOwnerId":119285303511****}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. The ID is a unique identifier generated by Alibaba Cloud for the request and can be used for troubleshooting. |
d3eca5c8-a856-4347-8eb6-e1898c3fda2e |
Examples
Success response
JSON format
{
"RequestId": "d3eca5c8-a856-4347-8eb6-e1898c3fda2e"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.