DNS

The SDK interfaces based on the DNS v2 API are as follows. For details about the invoking methods, see the sample codes.

Interface

Method

API

ZoneService

Zone create(Zone zone)

POST /v2/zones

Link (public network)

Link (intranet)

Zone get(String zoneId)

GET /v2/zones/{zone_id}

Link (public network)

Link (intranet)

List<? extends Zone> list()

GET /v2/zones

Link (public network)

Link (intranet)

Zone delete(String zoneId)

DELETE /v2/zones/{zone_id}

Link (public network)

Link (intranet)

List<? extends Nameserver> listNameservers(String zoneId)

GET /v2/zones/{zone_id}/nameservers

Link (public network)

Link (intranet)

DesignateZone.Router associateRouter(String zoneId, DesignateZone.Router router)

POST /v2/zones/{zone_id}/associaterouter

Link

DesignateZone.Router disassociateRouter(String zoneId, DesignateZone.Router router)

POST /v2/zones/{zone_id}/disassociaterouter

Link

RecordsetService

Recordset create(String zoneId, Recordset recordSet)

POST /v2/zones/{zone_id}/recordsets

Link

Recordset get(String zoneId, String recordsetId)

GET /v2/zone/{zone_id}/recordsets/{recordset_id}

Link

List<? extends Recordset> list()

GET /v2/recordsets

Link

List<? extends Recordset> list(RecordsetListOptions options)

GET /v2/zones/{zone_id}/recordsets

Link

Recordset delete(String zoneId, String recordsetId)

DELETE /v2/zones/{zone_id}/recordsets/{recordset_id}

Link

PTRService

DesignatePTR setup(DesignatePTR record)

PATCH /v2/reverse/floatingips/{region}:{floatingip_id}

Link

ActionResponse restore(String region, String floatingIpId)

PATCH /v2/reverse/floatingips/{region}:{floatingip_id}

Link

List<? extends PTR> list()

GET /v2/reverse/floatingips

Link

DesignatePTR get(String region, String floatingIpId)

GET /v2/reverse/floatingips/{region}:{floatingip_id}

Link