Revokes the permissions that a virtual border router (VBR) has on a virtual private cloud (VPC).
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | RevokeInstanceFromVbr | The operation that you want to perform. Set the value to RevokeInstanceFromVbr. |
| RegionId | String | Yes | cn-hangzhou | The ID of the region where the VPC is deployed. You can call the DescribeRegions operation to query the most recent region list. |
| VbrOwnerUid | String | Yes | 1210123456123456 | The ID of the Alibaba Cloud account to which the VBR belongs. |
| VbrInstanceIds | Array of String | No | vbr-m5ex0xf63xk8s5bob****,vbr-bp1h6efd7a5g66xxd**** | The ID of the VBR. You can specify multiple VBRs and separate them with commas (,).
|
| InstanceId | String | Yes | vpc-bp1brjuegjc88v3u9**** | The ID of the VPC. |
| GrantType | String | Yes | ALL | The VBRs for which you want to revoke permissions on the VPC. Valid values:
|
| VbrRegionNo | String | Yes | cn-hangzhou | The ID of the region where the VBR is deployed. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | 45B7AA4A-4658-5FFC-90DD-9B8729F301BB | The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=RevokeInstanceFromVbr
&RegionId=cn-hangzhou
&VbrOwnerUid=1210123456123456
&VbrInstanceIds=["vbr-m5ex0xf63xk8s5bob****,vbr-bp1h6efd7a5g66xxd****"]
&InstanceId=vpc-bp1brjuegjc88v3u9****
&GrantType=ALL
&VbrRegionNo=cn-hangzhou
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<RevokeInstanceFromVbrResponse>
<RequestId>45B7AA4A-4658-5FFC-90DD-9B8729F301BB</RequestId>
</RevokeInstanceFromVbrResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "45B7AA4A-4658-5FFC-90DD-9B8729F301BB"
}
Error codes
| HttpCode | Error code | Error message | Description |
|---|---|---|---|
| 400 | InvalidParam.NotNull | The parameter must not be null. | The error message returned because one or more parameters are not set. |
| 400 | Parameter.Illegal | The parameter is illegal. | The error message returned because a parameter is set to an invalid value. |
| 404 | Instance.NotExist | The instance not exist. | The error message returned because the specified VPC does not exist. |
For a list of error codes, visit the API Error Center.