DNSDeploymentRole class - Platform - BlueCat Gateway - 19.8.1

Gateway Administration Guide

prodname
BlueCat Gateway
version_custom
19.8.1
Note: This class is inherited from APIObject and not from Entity.

class deployment_role.DNSDeploymentRole(api, api_entity)

Bases: deployment_role.DNSDHCPDeploymentRole

DNS Deployment role.

AD_MASTER= 'AD_MASTER'

DHCP= 'DHCP'

DHCPv6= 'DHCPv6'

DNS= 'DNS'

FORWARDER= 'FORWARDER'

MASTER= 'MASTER'

MASTER_HIDDEN= 'MASTER_HIDDEN'

NONE= 'NONE'

RECURSION= 'RECURSION'

SLAVE= 'SLAVE'

SLAVE_STEALTH= 'SLAVE_STEALTH'

STUB= 'STUB'

TFTP= 'TFTP'

before_update()

Hook used in before updating in derived classes.

correct_name(name)

This method verify that ‘name’ exist in constants.

Parameter Description
name Name to verify.

Returns: True or False.

delete()

Delete the DNS deployment role from the BAM database.

get_entity_id()

Get the BAM ID of an entity.

get_id()

Get the BAM ID of a deployment role.

get_server()

Get the server associated with a role or None if none exists.

get_server_interface_id()

Get the server interface id.

get_server_interface_id()

Get the server interface id.

get_service()

Get the BAM type for the deployment role.

get_type()

Get the BAM type for the deployment role.

get_url()

Get URL.

is_null()

Is this the null entity? (ID == 0).

populate_from_api_entity(api_entity)

Populate class properties from inner BAM API object.

roles= ['MASTER', 'MASTER_HIDDEN', 'SLAVE', 'FORWARDER', 'NONE', 'RECURSION', 'SLAVE', 'SLAVE_STEALTH', 'STUB', 'AD_MASTER']

set_type(new_type)

Set the BAM type of the deployment role.

update()

Persist any changes to the deployment role to the BAM database.