DNS

The SDK interfaces based on the DNS v2 API are as follows. Invocation example: conn.dns.create_zone()

Interface

Method

API

Zone Operations

create_zone(self, **attrs)

POST /v2/zones

Link (public network)

Link (intranet)

get_zone(self, zone)

GET /v2/zones/{zone_id}

Link (public network)

Link (intranet)

zones(self, **query)

GET /v2/zones

Link (public network)

Link (intranet)

delete_zone(self, zone, ignore_missing=True)

DELETE /v2/zones/{zone_id}

Link (public network)

Link (intranet)

nameservers(self, zone)

GET /v2/zones/{zone_id}/nameservers

Link (public network)

Link (intranet)

add_router_to_zone(self, zone, **router)

POST /v2/zones/{zone_id}/associaterouter

Link

remove_router_from_zone(self, zone, **router)

POST /v2/zones/{zone_id}/disassociaterouter

Link

Recordset Operations

create_recordset(self, zone, **attrs)

POST /v2/zones/{zone_id}/recordsets

Link

get_recordset(self, zone, recordset)

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

Link

all_recordsets(self, **query)

GET /v2/recordsets

Link

recordsets(self, zone, **query)

GET /v2/zones/{zone_id}/recordsets

Link

delete_recordset(self, zone, recordset, ignore_missing=True)

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

Link

PTR Record Operations

create_ptr(self, **attrs)

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

Link

restore_ptr(self, region, floating_ip_id)

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

Link

ptrs(self, **query)

GET /v2/reverse/floatingips

Link

get_ptr(self, region, floating_ip_id)

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

Link