The designateclient.v1.domains Module

class designateclient.v1.domains.DomainsController(client)[source]

Bases: designateclient.client.CrudController

create(domain)[source]

Create a domain

Parameters:domain – A Domain to create
Returns:Domain
delete(domain)[source]

Delete a domain

Parameters:domain – A Domain, or Domain Identifier to delete
get(domain_id)[source]

Retrieve a domain

Parameters:domain_id – Domain Identifier
Returns:Domain
list()[source]

Retrieve a list of domains

Returns:A list of :class:`Domain`s
list_domain_servers(domain_id)[source]

Retrieve the list of nameservers for a domain

Parameters:domain_id – Domain Identifier
Returns:A list of :class:`Server`s
update(domain)[source]

Update a domain

Parameters:domain – A Domain to update
Returns:Domain