edit-icon download-icon

GrantInstanceToCen

Last Updated: Mar 28, 2018

Description

Authorize CEN to attach the network that belongs to another account.

Note: This API is an API of VPC. Therefore, the endpoint of the API is vpc.aliyuncs.com and the API version is 2016-04-28.

Request parameters

Name Type Required Description
Action String Yes

The action to perform. Valid value:

GrantInstanceToCen

RegionId String Yes The ID of the region where the network is located.
InstanceId String Yes The ID of the network to authorize.
InstanceType String Yes

The type of the network. Valid value:

VPC | VBR

Note: Ensure that the network to attach is not used in Express Connect.

CenId String Yes The ID of the CEN instance to which the network is attached.
CenOwnerId String Yes The account ID of the CEN instance to which the authorized network is attached.
ClientToken String No A client token used to ensure the idempotence of requests. For more information, see Ensure idempotence.

Response parameters

Name Type Description
RequestId String The ID of the request.

Error codes

See Common error codes.

Examples

Request example

  1. http://vpc.aliyuncs.com/?Action=GrantInstanceToCen
  2. &CenId=cen-wvzsvi8ujffj95h1i4
  3. &CenOwnerId=1086496381294461
  4. &InstanceId=vpc-t4nsmy2lskkven1nfawzg
  5. &RegionId=ap-southeast-1
  6. &InstanceType=VPC
  7. &<Common parameters>

Response example

XML format

  1. <?xml version='1.0' encoding='UTF-8'?>
  2. <GrantInstanceToCenResponse>
  3. <RequestId>0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50</RequestId>
  4. </GrantInstanceToCenResponse>

JSON format

  1. {
  2. "RequestId": "0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50"
  3. }
Thank you! We've received your feedback.