All Products
Search
Document Center

Virtual Private Cloud:RevokeInstanceFromVbr

Last Updated:Nov 13, 2024

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.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
vpc:RevokeInstanceFromVbrupdate
  • VPC
    acs:vpc:{#regionId}:{#AccountId}:vpc/{#VpcId}
    none
none

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 code has changedView Change Details