Create a Cloud Smart Network
Updated at:2025-11-11
Description
Create a Cloud Smart Network.
Request structure
Plain Text
1POST /v{version}/csn?clientToken={clientToken} HTTP/1.1
2Host: csn.baidubce.com
3Authorization: authorization string
4{
5 "name": "name",
6 "description": "desc",
7 "tags": [{
8 "tagKey": "tagKey",
9 "tagValue": "tagValue"
10 }]
11}
Request headers
No special headers beyond common headers.
Request parameters
| Parameter name | Types | Required or not | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | API version number, current value is 1. |
| clientToken | String | No | Query | Idempotence token, which is an ASCII string with a length not exceeding 64 bits, see details in [ClientToken Idempotence Support](CSN/API Reference/General Description.md#Idempotence) |
| name | String | Yes | RequestBody | Name of the Cloud Smart Network |
| description | String | No | RequestBody | Description of the Cloud Smart Network |
| tags | List<[TagModel](CSN/API Reference/Appendix.md#TagModel)> | No | RequestBody | List of tag key-value pairs to be created |
Response headers
No additional headers beyond standard ones.
Response parameters
| Parameter name | Type | Description |
|---|---|---|
| csnId | String | Cloud Smart Network ID |
Request example
Plain Text
1POST /v1/csn?clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1
2HOST: csn.baidubce.com
3Authorization: bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2022-03-15T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
4{
5 "name":"csn_1",
6 "description":"desc"
7}
Response example
Plain Text
1HTTP/1.1 200 OK
2x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
3Date: Wed, 15 Mar 15 08:26:52 GMT
4Transfer-Encoding: chunked
5Content-Type: application/json;charset=UTF-8
6Server: BWS
7{
8 "csnId":"csn-c5s0isempeiscgyc"
9}
