Updated on 2024-03-25 GMT+08:00

Zone Management

Table 1 Actions for zone management

Permission

API

Action

Dependent Permission

IAM Project

Enterprise Project

Create a zone.

POST /v2/zones

dns:zone:create

vpc:*:get*

vpc:*:list*

Query a zone.

GET /v2/zones/{zone_id}

dns:zone:get

-

List the zones.

GET /v2/zones

dns:zone:list

-

The following filter criteria are supported:

  • Enterprise project
  • Resource ID

Modify a zone.

PATCH /v2/zones/{zone_id}

dns:zone:update

-

Set the zone status.

PUT /v2/zones/{zone_id}/statuses

dns:zone:setStatus

-

Delete a zone.

DELETE /v2/zones/{zone_id}

dns:zone:delete

ces:remoteChecks:list

ces:siteMonitorHealthCheck:get

ces:siteMonitorHealthCheck:create

ces:siteMonitorRule:delete

ces:siteMonitorRule:put

Delete zones in batches.

DELETE /v2.1/zones

dns:zone:delete

ces:remoteChecks:list

ces:siteMonitorHealthCheck:get

ces:siteMonitorHealthCheck:create

ces:siteMonitorRule:delete

ces:siteMonitorRule:put

Associate a private zone with a VPC.

POST /v2/zones/{zone_id}/associaterouter

dns:zone:associaterouter

vpc:*:get*

vpc:*:list*

NOTE:

Shared private zones are not included.

Disassociate a VPC from a private zone.

POST /v2/zones/{zone_id}/disassociaterouter

dns:zone:disassociaterouter

vpc:*:get*

vpc:*:list*

NOTE:

Shared private zones are not included.

Regain a domain name.

POST /v2/retrieval

dns:zone:createRetrieval

-

×

Verify domain name regaining request immediately.

POST /v2/retrieval/verification/{id}

Query domain name regaining requests.

GET /v2/retrieval

dns:zone:getRetrieval

-

×

Query the retrieval result of a public domain name.

GET /v2/retrieval/verification/{id}

Export a zone.

GET /v2/zones/{zone_id}/export

dns:zone:getExport

-