Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Latest commit

 

History

History
139 lines (106 loc) · 4.9 KB

equinix.metal.ip_info_module.rst

File metadata and controls

139 lines (106 loc) · 4.9 KB

equinix.metal.ip_info

Gather information about project IP Addresses

Version added: 1.4.0

The below requirements are needed on the host that executes this module.

  • packet-python >= 1.43.1
Parameter Choices/Defaults Comments
api_token
string / required
The Equinix Metal API token to use
If not set, then the value of the METAL_API_TOKEN, PACKET_API_TOKEN, or PACKET_TOKEN environment variable is used.

aliases: auth_token
project_id
string / required
Project ID.

# All the examples assume that you have your Equinix Metal API token in env var METAL_API_TOKEN.
# You can also pass it to the api_token parameter of the module instead.

- name: Gather information about all devices
  hosts: localhost
  tasks:
    - equinix.metal.ip_info:
        project_id: 89b497ee-5afc-420a-8fb5-56984898f4df

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description
ips
list
always
Information about each ip address that was found

Sample:
[{"address": "136.144.57.174", "address_family": 4, "assigned_to": null, "cidr": 32, "created_at": "2021-01-05T18:55:55Z", "customdata": {}, "details": null, "enabled": true, "facility": "dc13", "gateway": "136.144.57.174", "global_ip": false, "id": "d6764db0-69c6-44e9-922e-18146608cd3a", "interface": null, "management": false, "netmask": "255.255.255.255", "network": "136.144.57.174", "project_id": "f2a2d7ad-886e-4207-bf38-10ebdf49cf84", "public": true, "tags": ["cluster-api-provider-packet:cluster-id:versiontest"]}]


Authors