API Overview
The DNS service provides RESTful APIs.
By calling these APIs, you can use all DNS functions, including creating, querying, modifying, and deleting public zones, private zones, and record sets.
Table 1 provides an overview of the DNS APIs.
Category |
Description |
---|---|
Public Zone Management |
Create, delete, modify, and query public zones. |
Private Zone Management |
Create, delete, modify, and query private zones. |
Record Set Management |
Create, delete, modify, and query record sets in public and private zones. |
Multi-line Record Set Management |
Create, delete, modify, and query record sets of different resolution lines in public zones. |
PTR Record Management |
Create, delete, modify, and query PTR records that map EIPs to domain names. |
Tag Management |
Create, delete, modify, and query tags for specified DNS resources. |
Line Group Management |
Create, delete, modify, and query line groups. |
Custom Line Management |
Create, delete, update, and delete custom lines. |
Name Server Management |
Query name servers. |
Quota Management |
Query DNS resource quotas. |
Public Zone Management
Create, query, delete, and modify public zones.
API |
Description |
---|---|
Create a public zone. |
|
Query a public zone. |
|
Query public zones in list. |
|
Query name servers in a public zone. |
|
Delete a public zone. |
|
Modify a public zone. |
|
Set the status of a public zone. |
Private Zone Management
Create, query, delete, and modify private zones.
API |
Description |
---|---|
Create a private zone. |
|
Associate a private zone with a VPC. |
|
Disassociate a VPC from a private zone. |
|
Query a private zone. |
|
Query private zones. |
|
Query name servers in a private zone. |
|
Delete a private zone. |
|
Modify a private zone. |
Record Set Management
Create, query, delete, and modify record sets.
API |
Description |
---|---|
Create a record set. |
|
Query a record set. |
|
Query record sets. |
|
Query record sets in a specified zone. |
|
Delete a record set. |
|
Modify a record set. |
Multi-line Record Set Management
Create, query, delete, and modify record sets with multiple resolution lines.
API |
Description |
---|---|
Create a record set. |
|
Batch delete record sets in a zone. |
|
Batch modify record sets. |
|
Query a record set. This API applies only to public DNS servers. |
|
Query record sets in list. |
|
Batch create record sets. This API applies only to public DNS servers. |
|
Query all record sets in a specified zone. |
|
Delete a record set. |
|
Modify a record set. |
|
Set the status of a record set. |
PTR Record Management
Set, query, modify, and unset PTR records for EIPs.
API |
Description |
---|---|
Configure a PTR record for an EIP. |
|
Query the PTR record of an EIP. |
|
Query PTR records of EIPs. |
|
Restore the PTR record of an EIP to the default value. |
|
Modify the PTR record for an EIP. |
Tag Management
Add, delete, and query resource tags.
API |
Description |
---|---|
Add tags to a specified resource. You can add up to 10 tags to a resource. |
|
Delete a resource tag. |
|
Add or delete tags for a specified resource in batches. |
|
Query tags of a specified resource. |
|
Query all tags of a resource type. |
|
Query DNS resources by tag. Resources are sorted by creation time in descending order. |
Line Group Management
API |
Description |
---|---|
Create a line group. |
|
Query line groups. |
|
Query a line group. |
|
Update a line group. |
|
Delete a line group. |
Custom Line Management
Create, delete, update, and query custom lines.
API |
Description |
---|---|
Create a custom line. |
|
Query custom lines. |
|
Delete a custom line. |
|
Update a custom line. |
Name Server Management
Query name servers.
API |
Description |
---|---|
List the name servers. |
Quota Management
Query DNS resource quotas.
API |
Description |
---|---|
Query DNS resource quotas. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.