AddCustomLine
Creates a custom line.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pvtz:update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language. |
en |
| Name |
string |
Yes |
The name of the custom line. |
Custom Route-test |
| ShareScope |
string |
No |
This parameter is not available to users. You do not need to specify this parameter. |
GLOBAL |
| DnsCategory |
string |
No |
This parameter is not available to users. You do not need to specify this parameter. |
INTRANET |
| Ipv4s |
array |
Yes |
The list of IPv4 CIDR blocks. |
|
|
string |
Yes |
The IPv4 CIDR block. |
1.1.1.1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
AF7D4DCE-0776-47F2-A9B2-6FB85A87AA60 |
| LineId |
string |
The unique ID of the custom line. |
1065001 |
| Name |
string |
The name of the custom line. |
Custom Route-test |
Examples
Success response
JSON format
{
"RequestId": "AF7D4DCE-0776-47F2-A9B2-6FB85A87AA60",
"LineId": "1065001",
"Name": "Custom Route-test"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | CustomLine.IpOverlap | customLine ip is overlap.%s | The IP ranges of the custom lines overlap. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.