All Products
Search
Document Center

Cloud Enterprise Network:CreateCen

Last Updated:Jan 11, 2023

Creates a Cloud Enterprise Network (CEN) instance.

Operation Description

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.

Authorization information

The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:

  • 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 keyword: refers to the condition keyword defined by the cloud product itself.
  • 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.
Operate access level Resource type conditional keyword Association operation
cen:CreateCen WRITE
  • CEN
    acs:cen:*:{#accountId}:ceninstance/*
    without
without

Request parameters

Parameter Type Required Description Example
ClientToken string No

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.
02fb3da4-130e-11e9-8e44-001****
Name string No

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://.

testname
Description string No

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://.

testdesc
ProtectionLevel string No

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.

REDUCED
Tag array No

The tags.

object No
Key string No

The tag keys of the resources.

The tag keys cannot be an empty string. The tag keys can be up to 64 characters in length and cannot start with acs: or aliyun. It cannot contain http:// or https://.

You can specify at most 20 tag keys.

tagtest
Value string No

The tag values of the resources.

The tag values can be 0 to 128 characters in length, and cannot start with aliyun or acs:. It cannot contain http:// or https://.

Each tag key has a unique tag value. You can specify at most 20 tag values in each call.

tagtest

Response parameters

Parameter Type Description Example
object
CenId string

The ID of the CEN instance.

cen-dc4vwznpwbobrl****
RequestId string

The ID of the request.

0C2EE7A8-74D4-4081-8236-CEBDE3BBCF50

Example

Normal return example

JSONFormat

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

Error codes

For a list of error codes, visit the API error center.

Change history

Change time Summary of changes Operate
No change history