Associates a virtual private cloud (VPC) with a forwarding rule.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | BindResolverRuleVpc |
The operation that you want to perform. Set the value to BindResolverRuleVpc. |
Lang | String | No | en |
The language. |
RuleId | String | Yes | hra0** |
The ID of the forwarding rule. |
Vpc.N.VpcId | String | No | vpc-kqk1i2o2ajsksl-vpc-test |
The ID of the VPC. |
Vpc.N.RegionId | String | No | cn-hangzhou |
The ID of the region. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 12FE6E98-3885-423E-B18B-88CC17052A31 |
The ID of the request. |
Examples
Sample request
http(s)://pvtz.aliyuncs.com/?Action=BindResolverRuleVpc
&RuleId=hra0ip
&Vpc.1.RegionId=cn-hangzhou
&Vpc.1.VpcId=vpc-kqk1i2o2ajsksl-vpc-test
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<RequestId>12FE6E98-3885-423E-B18B-88CC17052A31</RequestId>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "12FE6E98-3885-423E-B18B-88CC17052A31"
}
Error codes
For a list of error codes, visit the API Error Center.