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.

Debugging

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 example.com

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 1.1.1.22

The end IP address of the CIDR block.

IpSegment.N.StartIp String No 1.1.1.1

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.

Examples

Sample requests

http(s)://[Endpoint]/?Action=AddCustomLine
&DomainName=example.com
&LineName=Beijing
&<Common request parameters>

Sample success responses

XML format

<AddCustomLineResponse>
  <lineCode>hra0yc-597</lineCode>
  <lineId>597</lineId>
  <requestId>B57C121B-A45F-44D8-A9B2-13E5A5044195</requestId>
</AddCustomLineResponse>

JSON format

{
	"lineCode":"hra0yc-597",
	"requestId":"B57C121B-A45F-44D8-A9B2-13E5A5044195",
	"lineId":597
}

Error codes

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