edit-icon download-icon

CreateCen

Last Updated: Mar 28, 2018

Description

Create a CEN instance. After you create a CEN instance, you can attach networks to it.

Request parameters

Name Type Required Description
Action String Yes

The action to perform. Valid value:

CreateCen

Name String No

The name of the instance.

The name can contain [2,128] characters and numbers, underlines, and hyphens, and the name must start with English letters, but cannot start with http:// or https://.

DescriptionStringNo

The description of the instance.

The description can contain [2,256] characters and must start with English letters, but cannot start with http:// or https://.

ClientToken String No A client token used to guarantee the idempotence of requests. For more information, see How to ensure idempotence.

Response parameters

Name Type Description
RequestId String The ID of the request.
CenId String The ID of the CEN instance.

Error codes

The following table lists the error codes specific to this API. For more information about common error codes, see Common error codes.

Error code Error message HTTP status code Description
AllocationFailure.GlobalTunnelId Allocate global tunnel id failed. 500 Failed to allocate the global tunnel ID.

Examples

Request example

  1. http://cbn.aliyuncs.com/?Action=CreateCen
  2. &RegionId=cn-hangzhou
  3. &<Common parameters>

Response example

XML format

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

JSON format

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