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 line-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 address segments. | |
string | Yes | An IPv4 address segment. | 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 line-test |
Examples
Success response
JSON format
{
"RequestId": "AF7D4DCE-0776-47F2-A9B2-6FB85A87AA60",
"LineId": "1065001",
"Name": "自定义线路-test"
}Error codes
HTTP status code | Error code | Error message | Description |
400 | CustomLine.IpOverlap | customLine ip is overlap.%s |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.