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 |
|
|
DesignateZone.Router disassociateRouter(String zoneId, DesignateZone.Router router) |
POST /v2/zones/{zone_id}/disassociaterouter |
|
|
RecordsetService |
Recordset create(String zoneId, Recordset recordSet) |
POST /v2/zones/{zone_id}/recordsets |
|
Recordset get(String zoneId, String recordsetId) |
GET /v2/zone/{zone_id}/recordsets/{recordset_id} |
|
|
List<? extends Recordset> list() |
GET /v2/recordsets |
|
|
List<? extends Recordset> list(RecordsetListOptions options) |
GET /v2/zones/{zone_id}/recordsets |
|
|
Recordset delete(String zoneId, String recordsetId) |
DELETE /v2/zones/{zone_id}/recordsets/{recordset_id} |
|
|
PTRService |
DesignatePTR setup(DesignatePTR record) |
PATCH /v2/reverse/floatingips/{region}:{floatingip_id} |
|
ActionResponse restore(String region, String floatingIpId) |
PATCH /v2/reverse/floatingips/{region}:{floatingip_id} |
|
|
List<? extends PTR> list() |
GET /v2/reverse/floatingips |
|
|
DesignatePTR get(String region, String floatingIpId) |
GET /v2/reverse/floatingips/{region}:{floatingip_id} |
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.