Revokes the permissions on a network instance that is attached to a Cloud Enterprise Network (CEN) instance.

Usage notes

  • RevokeInstanceFromCen is a Virtual Private Cloud (VPC) operation. Therefore, you must use vpc.aliyuncs.com as the domain name when you call this operation. The API version is 2016-04-28.
  • You cannot repeatedly call the RevokeInstanceFromCen operation to revoke the permissions on a network instance that is attached to a CEN instance within the specified period of time. The network instance can be a VPC, virtual border router (VBR), or a Cloud Connect Network (CCN) instance.

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 RevokeInstanceFromCen

The operation that you want to perform. Set the value to RevokeInstanceFromCen.

RegionId String Yes cn-hangzhou

The ID of the region where the network instance is deployed.

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

InstanceId String Yes vpc-uf6o8d1dj8sjwxi6o****

The ID of the network instance.

InstanceType String Yes VPC

The type of the network instance. Valid values:

  • VPC: a VPC
  • VBR: a VBR
  • CCN: a CCN instance
CenId String Yes cen-7qthudw0ll6jmc****

The ID of the CEN instance to which the network instance is attached.

CenOwnerId Long Yes 123456789

The user ID (UID) of the Alibaba Cloud account to which the CEN instance belongs.

ClientToken String No 0c593ea1-3bea-11e9-b96b-88e9fe637760

The client token that is used to ensure the idempotence of the request.

You can use the client to generate the value, but you must make sure that it is unique among different requests. The client token can contain only ASCII characters.

Note If you do not set this parameter, the system uses RequestId as ClientToken. The value of RequestId for each API request may be different.

Response parameters

Parameter Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=RevokeInstanceFromCen
&RegionId=cn-hangzhou
&InstanceId=vpc-uf6o8d1dj8sjwxi6o****
&InstanceType=VPC
&CenId=cen-7qthudw0ll6jmc****
&CenOwnerId=123456789
&ClientToken=0c593ea1-3bea-11e9-b96b-88e9fe637760
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<RevokeInstanceFromCenResponse>
    <RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E</RequestId>
</RevokeInstanceFromCenResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}

Error codes

For a list of error codes, visit the API Error Center.