You can call this operation to associate private zones with Virtual Private Clouds (VPCs) or disassociate private zones from VPCs.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | BindZoneVpc | The operation that you want to perform. Set the value to BindZoneVpc. |
ZoneId | String | Yes | AgIDE0OQ_149 | The ID of the private zone. |
Lang | String | No | en | The language of the specific content returned in the response. |
UserClientIp | String | No | 1.1.1.1 | The IP address of the client. |
Vpcs.N.RegionId | String | No | cn-beijing | The ID of the region where the VPC is deployed. |
Vpcs.N.VpcId | String | No | daily-vpc-id | The ID of the VPC. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 46973D4C-E3E4-4ABA-9190-9A9DE406C7E | The ID of the request. |
Examples
Sample requests
http://pvtz.aliyuncs.com/?Action=BindZoneVpc&ZoneId=AgIDE0OQ_149&Vpcs.1.VpcId=daily-vpc-id&<Common request parameters>
Sample success responses
XML
format
<BindZoneVpcResponse> <RequestId>12FE6E98-3885-423E-B18B-88CC17052A31</RequestId></BindZoneVpcResponse>
JSON
format
{“RequestId”:”CC7C8C8C-F415-4FA5-9FA6-7894E07B27E4”}
Error codes
For a list of error codes, visit the API Error Center.