Models network address configurations for PAN-OS as a VersionedPanObject. Contains details such as address value, type, description, and associated tags.

Hierarchy

Constructors

  • Creates a new AddressObject instance.

    Parameters

    • name: string

      The unique name identifying the address object.

    • value: string

      The value that the object configures (e.g., IP address, subnet, range).

    • type: AddressType = 'ip-netmask'

      The type of address represented by the object.

    • Optional description: string

      A description of the address object (default is undefined).

    • Optional tag: string[]

      An array of tags to associate with the address object (default is undefined).

    Returns AddressObject

Properties

_apiClient: null | ApiClient
children: PanObject[]
description?: string

An optional description providing additional information about the address object.

name: string
parent: null | PanObject
tag?: string[]

Tags associated with the address object for organizational purposes.

The type of the network address, indicating its format.

value: string

The specific network address value (e.g., IP address, IP range).

Accessors

  • get apiClient(): ApiClient
  • Retrieves the ApiClient from the current instance or its parent hierarchy.

    Returns ApiClient

    The ApiClient associated with this object.

    Throws

    An error if the ApiClient instance is not found in the hierarchy.

Methods

  • Issues an API request to apply changes to this configuration object on the PAN-OS device. It effectively replaces the object at its XPath location with the current object state.

    Returns Promise<void>

    A promise that resolves once the changes have been successfully applied.

  • Issues an API request to create this configuration object on the PAN-OS device.

    Returns Promise<void>

    A promise that resolves once the object has been successfully created.

  • Locates a child PanObject within the configuration tree by name and, optionally, by type.

    Type Parameters

    Parameters

    • name: string

      The name of the object to search for.

    • Optional classType: (new (...args) => ObjectType)

      Optional. The class constructor to match instances against.

        • new (...args): ObjectType
        • Parameters

          • Rest ...args: unknown[]

          Returns ObjectType

    Returns null | ObjectType

    The matching PanObject instance, or null if not found.

  • Checks if a given PanObject is a child of this object.

    Parameters

    Returns boolean

    true if the specified PanObject is a child of this object, otherwise false.

  • Static method to generate the XPath for the address objects in PAN-OS configuration XML.

    Returns string

    The address objects XPath as a string.

Generated using TypeDoc