Line Group Related Interfaces
Add line group
Request structure
1POST /v{version}/dns/customline?clientToken={clientToken} HTTP/1.1
2Host: dns.baidubce.com
3Authorization: authorization string
4 {
5 "name":name,
6 "lines":lines
7 }
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Required or not | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | The current API version number is 1. |
| clientToken | String | No | Query | Idempotence Token, an ASCII string with a maximum length of 64 bits. |
| name | String | Yes | RequestBody | The name of the line group must not exceed 12 characters. |
| lines | List |
Yes | RequestBody | Resolution line. |
Response headers
No special headers are required beyond the standard ones.
Response parameters
No parameters
Request example
1POST /v1/dns/customline?clientToken=1849ef6b-f73c-4f5d-b88b-259ca47af849 HTTP/1.1
2Host: dns.baidubce.com
3Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2020-07-14T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
4{
5 "name":"abc",
6 "lines":["zhejiang.ct", "shanxi.ct"]
7}
Response example
1HTTP/1.1 200 OK
2x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3Date: Tus, 14 Jul 2020 06:29:48 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
Update line group
Request structure
1PUT /v{version}/dns/customline/{lineId}?clientToken={clientToken} HTTP/1.1
2Host: dns.baidubce.com
3Authorization: authorization string
4 {
5 "name":name,
6 "lines":lines
7 }
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Required or not | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | The current API version number is 1. |
| lineId | int | Yes | URL parameter | Line group ID. |
| clientToken | String | No | Query | Idempotence Token, an ASCII string with a maximum length of 64 bits. |
| name | String | Yes | RequestBody | The name of the line group must not exceed 12 characters. |
| lines | List |
Yes | RequestBody | Resolution line. |
Response headers
No special headers are required beyond the standard ones.
Response parameters
No response parameters are available.
Request example
1PUT /v1/dns/customline/1234?clientToken=1849ef6b-f73c-4f5d-b88b-259ca47af849 HTTP/1.1
2Host: dns.baidubce.com
3Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2020-07-14T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
4{
5 "name":"abc",
6 "lines":["zhejiang.ct", "shanxi.ct"]
7}
Response example
1HTTP/1.1 200 OK
2x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3Date: Tus, 14 Jul 2020 06:29:48 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
Query line group list
Request structure
1GET /v{version}/dns/customline?marker={marker}&maxKeys={maxKeys} HTTP/1.1
2Host: dns.baidubce.com
3Authorization: authorization string
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Required or not | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | The current API version number is 1. |
| marker | String | No | Query | The starting position for the batch list query, which is a system-generated string. |
| maxKeys | int | No | Query | Maximum number of items per page: 1,000 (default: 1,000). |
Response headers
No special headers are required beyond the standard ones.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| marker | String | Indicates the starting position of the query. |
| isTruncated | boolean | "True" means there is more data available, and "False" means this is the last page. |
| nextMarker | String | Retrieve the marker value needed for accessing the next page; this field will not appear if isTruncated is false. |
| maxKeys | int | The maximum number of items per page. |
| lineList | List<[Line](DNS/API Reference/Appendix.md#Line)> | A list containing a line group from the query results. |
Request example
1GET /v1/dns/customline?marker=1234&maxKeys=1000 HTTP/1.1
2Host: dns.baidubce.com
3Authorization: bce auth v1/f81d3b34e48048fbb2634dc7882d7e21/2017 03 11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
Response example
1 HTTP/1.1 200 OK
2 x-bce-request-id: 1214cca7 4ad5 451d 9215 71cb844c0a50
3 Date: Thu, 16 Mar 2017 06:29:48 GMT
4 Content Type: application/json;charset=UTF 8
5 Server: BWS
6
7{
8 "marker": "1234",
9 "isTruncated": true,
10 "nextMarker": "6056",
11 "maxKeys": 1000,
12 "lineList": [
13 {
14 "id": "6055",
15 "name": "abc",
16 "lines": ["yunnan.ct","sichuan.cmnet"],
17 "relatedZoneCount": 0,
18 "relatedRecordCount": 0
19 }
20 ]
21}
Delete line group
Request structure
1DELETE /v{version}/dns/customline/{lineId}?clientToken={clientToken} HTTP/1.1
2Host: dns.baidubce.com
3Authorization: authorization string
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | The current API version number is 1. |
| lineId | String | Yes | URL parameter | Line group ID. |
| clientToken | String | No | Query | Idempotence Token, an ASCII string with a maximum length of 64 bits. |
Response headers
No special headers are required beyond the standard ones.
Response parameters
No response parameters are available.
Request example
1DELETE /v1/dns/customline/1234?clientToken=1849ef6b-f73c-4f5d-b88b-259ca47af849 HTTP/1.1
2Host: dns.baidubce.com
3Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de
Response example
1HTTP/1.1 200 OK
2x-bce-request-id: 1214cca7-4ad5-451d-9215-71cb844c0a50
3Date: Thu, 16 Mar 2017 06:29:48 GMT
4Content-Type: application/json;charset=UTF-8
5Server: BWS
