Represents the base class for interaction with Palo Alto Networks devices. Provides methods to generate API keys, execute operational commands, and gather system and license information.

Hierarchy

Constructors

Properties

_apiClient: null | ApiClient
children: PanObject[]
hostname: string
name: string
parent: null | PanObject

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

  • Adds a PanObject as a child to this object, establishing a parent-child relationship.

    Parameters

    • child: PanObject

      The PanObject to be added as a child.

    Returns void

  • 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.

  • Retrieves configuration data from the device based on an XPath query.

    Parameters

    • xpath: string

      The XPath query specific to the object type being queried.

    Returns Promise<any>

    A promise resolving to the device's configuration data in parsed form.

  • 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.

  • Removes a PanObject from this object's children, severing the parent-child relationship.

    Parameters

    • child: PanObject

      The PanObject to be removed from the children.

    Returns void

  • Retrieves license information from the PAN-OS device.

    Returns Promise<any>

    A promise resolving to the license information from the device.

  • Retrieves details of all jobs processed by the PAN-OS device.

    Returns Promise<any>

    A promise resolving to the details of all jobs on the device.

  • Retrieves details of a specific job using its unique identifier.

    Parameters

    • jobId: string

      The ID of the job to query.

    Returns Promise<any>

    A promise resolving to the details of the specified job.

  • Retrieves system information and status from the PAN-OS device.

    Returns Promise<any>

    A promise resolving to the system information and status.

Generated using TypeDoc