Creates a Cloud Enterprise Network (CEN) instance.

Usage notes

CreateCen is an asynchronous operation. After you send a request, the system returns the CEN instance ID but the operation is still being performed in the system background. You can call DescribeCens to query the status of a CEN instance.

  • If a CEN instance is in the Creating state, the CEN instance is being created. You can query the CEN instance but cannot perform other operations.
  • If a CEN instance is in the Active state, the CEN instance is created.

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 CreateCen

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

ClientToken String No 02fb3da4-130e-11e9-8e44-001****

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. ClientToken can contain only ASCII characters.

Note If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId for each API request may be different.
Name String No testname

The name of the CEN instance.

The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter and cannot start with http:// or https://.

Description String No testdesc

The description of the CEN instance.

The description must be 2 to 256 characters in length. It must start with a letter and cannot start with http:// or https://.

ProtectionLevel String No REDUCED

The level of CIDR block overlapping.

Set the value to REDUCED (default). This value specifies that CIDR blocks can overlap but cannot be the same.

Response parameters

Parameter Type Example Description
CenId String cen-dc4vwznpwbobrl****

The ID of the CEN instance.

RequestId String 0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreateCen
&ClientToken=02fb3da4-130e-11e9-8e44-001****
&Name=testname
&Description=testdesc
&ProtectionLevel=REDUCED
&Common request parameters

Sample success responses

XML format

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

<CreateCenResponse>
    <CenId>cen-dc4vwznpwbobrl****</CenId>
    <RequestId>0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50</RequestId>
</CreateCenResponse>

JSON format

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

{
  "CenId" : "cen-dc4vwznpwbobrl****",
  "RequestId" : "0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50"
}

Error codes

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