Click a link to jump to the indicated section.
class
bluecat.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_absolute_name()
Get absolute name
get_zone_name()
Get record’s zone name ONLY
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. |
delete_with_options(no_server_update=False, delete_orphaned_ip_address=False)
Delete DNS resource records with options.
Parameters | Description |
---|---|
no_server_update |
A Boolean value. If set to |
delete_orphaned_ip_address |
A Boolean value. This applies to the delete operation on Host Records. If
set to |
Returns: None
Example:
api = g.user.get_api() # get api object
host_record_id = 12345 # host record id
host_record = api.get_entity_by_id(host_record_id)
host_record.delete_with_options(no_server_update=True, delete_orphaned_ip_address=True)