- What's New
- Function Overview
- Service Overview
- Getting Started
- User Guide
-
API Reference
- Before You Start
- API Overview
- Calling APIs
-
APIs
- Version Management
- Public Zone Management
-
Private Zone Management
- Creating a Private Zone
- Querying the Private Zones
- Querying a Private Zone
- Querying Name Servers in a Private Zone
- Modifying a Private Zone
- Deleting a Private Zone
- Associating a VPC with a Private Zone
- Disassociating a VPC from a Private Zone
- Setting the Status of a Private Zone
- Setting a Recursive Resolution Proxy for Subdomains in a Private Zone
- Record Set Management (v2.1)
- Record Set Management (v2)
- PTR Record Management (v2.1)
- PTR Record Management (v2)
- Batch Operations
- Tags
- Custom Line Management
- Line Group Management
- Name Server Management
- Quota Management
- DNSSEC
- Endpoint Management
- Endpoint Rule Management
- Examples
- Permissions Policies and Supported Actions
- Appendix
- Best Practices
-
FAQs
-
DNS Overview
- Will I Be Billed for the DNS Service?
- How Many Zones, PTR Records, and Record Sets Can I Create?
- What Are Huawei Cloud DNS Servers?
- What Are Huawei Cloud Private DNS Server Addresses?
- What Are the Differences Between Public and Private Domain Names?
- Does DNS Support IPv6?
- Does DNS Support Explicit Forwarding and Implicit Forwarding?
- Does DNS Support Dynamic Domain Name Resolution?
- Does DNS Support Wildcard Entries?
- What Is TTL?
- How Many Domain Name Levels Does DNS Support?
- How Are Zones Queried to Resolve a Domain Name?
- What Are the Priorities of Resolution Lines?
- Why Was the Email Address Format Changed in the SOA Record?
- What Is CAA?
- Why Should I Set Priority For an MX Record Set?
- Can DNS Point a Domain Name to a Specific Port?
- Invalid Domain Resolution
- Website Access Failures
-
Public Zones
- Why Is a Message Indicating Conflict with an Existing Record Set Displayed When I Add a Record Set?
- How Do I Add Record Sets to Subdomains?
- Which IP Address Is Returned for the Domain Name If There Are Multiple IP Addresses in a Record Set?
- Can I Modify a Zone?
- Can DNS Translate a Domain Name to IP Addresses of On-premises Servers or Third-Party Servers?
- How Can Multiple Domain Names Be Linked to the Same Website?
- How Do I Change the DNS Servers of a Domain Name?
-
Private Zones
- Why Is a Message Indicating Conflict with an Existing Record Set Displayed When I Add a Record Set?
- How Do I Change Default DNS Servers of an ECS to Huawei Cloud Private DNS Servers?
- How Can I Access an ECS Using Its Host Name?
- How Can I Map the Private IP Address of an ECS to a Domain Name?
- How Can I Use a Private Domain Name to Route Internet Traffic?
- Can I Use Private Domain Names Across Regions?
- Do I Need to Register Private Domain Names?
- Will a Deleted VPC Be Automatically Disassociated from the Private Zone?
- Are Private DNS Server Addresses the Same for All Users?
- What Are the Restrictions on Concurrent Private DNS Queries?
- Reverse Resolution
- Domain Transfer
-
DNS Overview
Modifying a Custom Line
Function
This API is used to modify a custom line.
Calling Method
For details, see Calling APIs.
URI
PUT /v2.1/customlines/{line_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
line_id |
Yes |
String |
Custom line ID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Definition The user token. The token can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. For details about how to obtain a user token, seeObtaining a User Token. Constraints N/A Range N/A Default Value N/A |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
No |
String |
Custom line name. |
ip_segments |
No |
Array of strings |
IP address range. Use hyphens (-) to separate IP addresses. The smaller IP address is placed before the larger IP address. IP address ranges cannot overlap. If there is only one IP address, set this parameter to IP1-IP1. Only IPv4 addresses are supported. |
description |
No |
String |
Custom line description. The value can contain a maximum of 255 characters. |
Response Parameters
Status code: 202
Parameter |
Type |
Description |
---|---|---|
line_id |
String |
Resolution line ID. |
name |
String |
Custom line name. |
ip_segments |
Array of strings |
IP address range. |
created_at |
String |
The creation time. Format: yyyy-MM-dd'T'HH:mm:ss.SSS |
updated_at |
String |
The update time. Format: yyyy-MM-dd'T'HH:mm:ss.SSS |
status |
String |
Resource status. |
description |
String |
Custom line. |
Example Requests
Modifying the name and description of a custom line and setting the IP address range to 1.1.1.1-1.1.1.1 and 1.1.1.2-1.1.1.3
PUT https://{endpoint}/v2.1/customlines/{line_id}
{
"name" : "customline",
"ip_segments" : [ "1.1.1.1-1.1.1.1", "1.1.1.2-1.1.1.3" ],
"description" : "1234"
}
Example Responses
Status code: 202
Request accepted
{
"line_id" : "custom_2ce45ef669fc87870169fcbada7a0007",
"name" : "customline",
"ip_segments" : [ "1.1.1.1-1.1.1.1", "1.1.1.2-1.1.1.3" ],
"status" : "PENDING_UPDATE",
"created_at" : "2019-04-10T12:03:17.827",
"updated_at" : "2019-04-10T12:03:17.827",
"description" : "1234"
}
Status Codes
Status Code |
Description |
---|---|
202 |
Request accepted |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.