TrafficRoute DNS Suite
Parameters | Type | Required or optional | Example value | Description |
Action | String | Is | UpdateCustomLine | The operation to be performed; the value is UpdateCustomLine. |
Version | String | Is | 2018-08-01 | API version. Value: 2018-08-01. |
Line | String | Is | custom-2811 | ID of the IP-based line. You can obtain the ID of the IP-based line via the Line parameter returned by the ListCustomLines API. |
NameCN | String | No | IP-based line 1 | The name of the IP-based line. UTF-8 format. The maximum length is 32 UTF-8 characters. If you do not set this parameter, its value remains unchanged. |
IPSegments | Array of String | No | 192.168.1.0/24 | One or more CIDR blocks of IP-based lines. Supports IPv4 addresses and IPv6 addresses. For example, 192.168.1.0/24 or 2001:db8::/103. If you do not set this parameter, the value of this parameter remains unchanged. |
Remark | String | No | Remark | Remark of the IP-based line. UTF-8 format. The maximum length is 64 UTF-8 characters. If you do not set this parameter, the value of the parameter remains unchanged. |
Parameters | Type | Example value | Description |
Line | String | custom-5040 | ID of the IP-based line. |
Status codes | error codes | Error message | Note |
400 | ErrParsingParams | parsing params error | Failed to parse request. |
400 | ErrParamInvalid | validation fail:%s | Parameter validation failed. |
400 | ErrDBNotFound | record not found :%s | Database entry not found. |
500 | ErrInternalServer | server internal error | Internal service error. |