paloaltonetworks.panos.panos_registered_ip_facts (2.19.1) — module

Retrieve facts about registered IPs on PAN-OS devices.

| "added in version" 1.0.0 of paloaltonetworks.panos"

Authors: Michael Richardson (@mrichardson03)

Install collection

Install with ansible-galaxy collection install paloaltonetworks.panos:==2.19.1


Add to requirements.yml

  collections:
    - name: paloaltonetworks.panos
      version: 2.19.1

Description

Retrieves tag information about registered IPs on PAN-OS devices.


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get facts for all registered IPs
  paloaltonetworks.panos.panos_registered_ip_facts:
    provider: '{{ provider }}'
  register: registered_ip_facts
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get facts for specific tag
  paloaltonetworks.panos.panos_registered_ip_facts:
    provider: '{{ provider }}'
    tags: ['First_Tag']
  register: first_tag_registered_ip_facts
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Get facts for a specific IP address
  paloaltonetworks.panos.panos_registered_ip_facts:
    provider: '{{ provider }}'
    ips: ['192.168.1.1']
  register: ipaddress_registered_ip_facts

Inputs

    
ips:
    description:
    - List of IP addresses to retrieve facts for.  If not specified, retrieve all addresses.
    elements: str
    type: list

port:
    default: 443
    description:
    - B(Deprecated)
    - Use I(provider) to specify PAN-OS connectivity instead.
    - HORIZONTALLINE
    - The port number to connect to the PAN-OS device on.
    type: int

tags:
    description:
    - List of tags to retrieve facts for.  If not specified, retrieve all tags.
    elements: str
    type: list

vsys:
    default: vsys1
    description:
    - The vsys this object belongs to.
    type: str

api_key:
    description:
    - B(Deprecated)
    - Use I(provider) to specify PAN-OS connectivity instead.
    - HORIZONTALLINE
    - The API key to use instead of generating it using I(username) / I(password).
    type: str

password:
    description:
    - B(Deprecated)
    - Use I(provider) to specify PAN-OS connectivity instead.
    - HORIZONTALLINE
    - The password to use for authentication.  This is ignored if I(api_key) is specified.
    type: str

provider:
    description:
    - A dict object containing connection details.
    suboptions:
      api_key:
        description:
        - The API key to use instead of generating it using I(username) / I(password).
        type: str
      ip_address:
        description:
        - The IP address or hostname of the PAN-OS device being configured.
        type: str
      password:
        description:
        - The password to use for authentication.  This is ignored if I(api_key) is specified.
        type: str
      port:
        default: 443
        description:
        - The port number to connect to the PAN-OS device on.
        type: int
      serial_number:
        description:
        - The serial number of a firewall to use for targeted commands. If I(ip_address)
          is not a Panorama PAN-OS device, then this param is ignored.
        type: str
      username:
        default: admin
        description:
        - The username to use for authentication.  This is ignored if I(api_key) is specified.
        type: str
    type: dict
    version_added: 1.0.0
    version_added_collection: paloaltonetworks.panos

username:
    default: admin
    description:
    - B(Deprecated)
    - Use I(provider) to specify PAN-OS connectivity instead.
    - HORIZONTALLINE
    - The username to use for authentication.  This is ignored if I(api_key) is specified.
    type: str

ip_address:
    description:
    - B(Deprecated)
    - Use I(provider) to specify PAN-OS connectivity instead.
    - HORIZONTALLINE
    - The IP address or hostname of the PAN-OS device being configured.
    type: str

Outputs

results:
  description: IP addresses as keys, tags as values.
  returned: always
  sample:
    1.1.1.1:
    - First_Tag
    - Second_Tag
  type: dict