Creates a custom line.

In each CIDR block, the end IP address must be greater than or equal to the start IP address.

The CIDR blocks that are specified for all custom lines of a domain name cannot intersect.


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 AddCustomLine

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

DomainName String Yes

The domain name for which you configure the custom line.

LineName String Yes Beijing

The name of the custom line.

IpSegment.N.EndIp String No

The end IP address of the CIDR block.

IpSegment.N.StartIp String No

The start IP address of the CIDR block.

Lang String No en

The language type.

Response parameters

Parameter Type Example Description
LineCode String hra0yc-597

The code of the custom line.

LineId Long 597

The unique ID of the custom line.

RequestId String B57C121B-A45F-44D8-A9B2-13E5A5044195

The ID of the request.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

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