Service class for generating API keys for Palo Alto Networks devices. Handles the communication with the PAN-OS API to retrieve an API key using given credentials.

Constructors

Methods

Constructors

Methods

  • Generates an API key for the PAN-OS device using the provided username and password.

    Parameters

    • username: string

      The username for the PAN-OS device.

    • password: string

      The password for the PAN-OS device.

    Returns Promise<string>

    A promise that resolves to the generated API key.

    Throws

    An error if the API key could not be extracted from the response or if an error occurs in the request.

Generated using TypeDoc