Revokes the permissions that a virtual border router (VBR) has on a virtual private cloud (VPC).

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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 (,).

  • If you set GrantType to ALL, VbrInstanceIds can be left empty. Permissions on the VPC are revoked for all VBRs in the specified region.
  • If you set GrantType to Specify, VbrInstanceIds must be assigned a value. Permissions on the VPC are revoked for the specified VBRs.
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:

  • ALL: Permissions on the VPC are revoked for all VBRs in the specified region. VbrInstanceIds can be left empty.
  • Specify: Permissions on the VPC are revoked for the specified VBRs. VbrInstanceIds must be assigned a value.
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.