IP4BlockNetwork class - Platform - BlueCat Gateway - 22.11.1

Gateway Administration Guide

Locale
English
Product name
BlueCat Gateway
Version
22.11.1

Click a link to jump to the indicated section.

class bluecat.ip_object.IP4BlockNetwork(api, api_entity, ver='')

Bases: bluecat.ip_object.IPObject, bluecat.deployment_role.DHCPDeploymentRoleActionsMixin, bluecat.deployment_role.DNSDeploymentRoleActionsMixin, bluecat.deployment_option.RawDeploymentOptionActionsMixin

Base class for IP4 Space objects

get_ksk(ksk_format)

Get Key Signing Key (KSK) associated to an ip4 block

Parameters Description
ksk_format ksk return type, accepted formats are: TRUST_ANCHOR, DNS_KEY and DS_RECORD

Returns: List of KSKs in string format

Example:

from bluecat.constants import DNSSECKeyFormats

api = g.user.get_api()                              # get api object
ip4_network_id = 10223                              # ip4 network id
ip4_object = api.get_entity_by_id(ip4_network_id)

ksk_list = ip4_object.get_ksk(DNSSECKeyFormats.TRUST_ANCHOR)