All Products
Search
Document Center

Virtual Private Cloud:RevokeInstanceFromVbr

Last Updated:Dec 01, 2023

Revokes the permissions granted to a virtual border router (VBR) on a virtual private cloud (VPC).

debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

debugging

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The ID of the region where the VPC is deployed.

You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
VbrOwnerUidstringYes

The ID of the Alibaba Cloud account to which the VBR belongs.

1210123456123456
VbrInstanceIdsarrayNo

The IDs of the VBRs for which you want to revoke the permissions.

stringNo

The VBR ID. You can specify multiple VBRs and separate them with commas (,).

  • If you set GrantType to ALL, this parameter is optional. Permissions on the VPC are revoked for all VBRs in the specified region.
  • If you set GrantType to Specify, this parameter is required. Permissions on the VPC are revoked for the specified VBRs.
vbr-m5ex0xf63xk8s5bob****,vbr-bp1h6efd7a5g66xxd****
InstanceIdstringYes

The VPC ID.

vpc-bp1brjuegjc88v3u9****
GrantTypestringYes

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.
ALL
VbrRegionNostringYes

The ID of the region where the VBR is deployed.

cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object

The returned data.

RequestIdstring

The request ID.

45B7AA4A-4658-5FFC-90DD-9B8729F301BB

Examples

Sample success responses

JSONformat

{
  "RequestId": "45B7AA4A-4658-5FFC-90DD-9B8729F301BB"
}

Error codes

HTTP status codeError codeError messageDescription
400Instance.StatusErrorThe status of instance error. -
400InvalidParam.NotNullThe parameter must not be null.A required parameter is not specified.
400Parameter.IllegalThe parameter is illegal.The parameter is invalid.
404Instance.NotExistThe instance not exist.-
404EcGrantRelation.NotExistThe ec grant relation not exist.The Express Connect circuit is not authorized.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-09-21API Description Update,The error codes of the API operation change.see changesets
Change itemChange content
API DescriptionAPI Description Update
Error CodesThe error codes of the API operation change.
    delete Error Codes: 400
    delete Error Codes: 404