Resource Record.
class resource_record.ResourceRecord(api, api_entity)
Bases: bluecat.entity.Entity
Base class for resource records.
Parameters | Description |
---|---|
api | API instance used by the entity to communicate with BAM. |
api_entity | The entity returned by the BAM API. |
get_configuration()
Get the owning configuration.
get_zone()
Get the parent zone.
get_view()
Get the owning view.
get_full_name()
Get the fully qualified domain name of the resource record.
get_specific_ttl()
If there is a specific TTL set for the resource record, return it, otherwise return -1.
get_ttl(server=none)
Find the applicable TTL for the resource record.
This involves walking the entity tree in many cases.
move(resource_record_id, destination_zone)
Move resource record to a new zone.
Parameters | Description |
---|---|
resource_record_id | The ID of the resource record to move. |
destination_zone | The FQDN of the destination zone. |
class resource_record.AliasRecord(api, api_entity)
Bases: resource_record.ResourceRecord.
Instantiate alias CNAME record.
Parameters | Description |
---|---|
api | API instance used by the entity to communicate with BAM. |
api_entity | The entity returned by the BAM API. |
get_linked_record_name()
Get the linked record name.
class resource_record.MXRecord(api, api_entity)
Bases: resource_record.ResourceRecord.
Instantiate Mail Exchanger MX record.
Parameters | Description |
---|---|
api | API instance used by the entity to communicate with BAM. |
api_entity | The entity returned by the BAM API. |
get_linked_record_name()
Get the linked record name.
class resource_record.TextRecord(api, api_entity)
Bases: resource_record.ResourceRecord.
Instantiate Text TXT record.
Parameters | Description |
---|---|
api | API instance used by the entity to communicate with BAM. |
api_entity | The entity returned by the BAM API. |
class resource_record.HostInfoRecord(api, api_entity)
Bases: resource_record.ResourceRecord.
Instantiate Host Info HINFO record.
Parameters | Description |
---|---|
api | API instance used by the entity to communicate with BAM. |
api_entity | The entity returned by the BAM API. |
class resource_record.SRVRecord(api, api_entity)
Bases: resource_record.ResourceRecord.
Instantiate Service SRV record.
Parameters | Description |
---|---|
api | API instance used by the entity to communicate with BAM. |
api_entity | The entity returned by the BAM API. |
get_linked_record_name()
Get the linked record name.
class resource_record.NAPTRRecord(api, api_entity)
Bases: resource_record.ResourceRecord.
Instantiate Naming Authority Pointer Record NAPTR record.
Parameters | Description |
---|---|
api | API instance used by the entity to communicate with BAM. |
api_entity | The entity returned by the BAM API. |
class resource_record.ExternalHostRecord(api, api_entity)
Bases: resource_record.ResourceRecord.
Instantiate External Host record.
Parameters | Description |
---|---|
api | API instance used by the entity to communicate with BAM. |
api_entity | The entity returned by the BAM API. |
class resource_record.GenericRecord(api, api_entity)
Bases: resource_record.ResourceRecord.
Instantiate Generic record.
The following generic record types are available: A, A6, AAAA, AFSDB, APL, CERT, DHCID, DNAME, DS, IPSECKEY, ISDN, KEY, KX, LOC, MB, MG, MINFO, MR, NS, NSAP, PTR, PX, RP, RT, SINK, SPF, SSHFP, WKS, and X25. These records contain name, type, and value information.
Parameters | Description |
---|---|
api | API instance used by the entity to communicate with BAM. |
api_entity | The entity returned by the BAM API. |