equinix / equinix.metal / 1.4.1 / module / project_info Gather information about Equinix Metal projects | "added in version" 1.2.0 of equinix.metal" Authors: Tomas Karasek (@t0mk) <tom.to.the.k@gmail.com>, Nurfet Becirevic (@nurfet-becirevic) <nurfet.becirevic@gmail.com>, Jason DeTiberus (@detiber) <jdetiberus@equinix.com>equinix.metal.project_info (1.4.1) — module
Install with ansible-galaxy collection install equinix.metal:==1.4.1
collections: - name: equinix.metal version: 1.4.1
Gather information about Equinix Metal projects.
API is documented at U(https://metal.equinix.com/developers/api/projects/).
# 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 projects hosts: localhost tasks: - equinix.metal.project_info:
- name: Gather information about a particular project using ID hosts: localhost tasks: - equinix.metal.project_info: ids: - 173d7f11-f7b9-433e-ac40-f1571a38037a
ids: description: - One or more project ids. elements: str type: list names: description: - One or more project names. elements: str type: list api_token: aliases: - auth_token description: - 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. required: true type: str
projects: description: Information about each project that was found returned: always sample: '[{"name": "my-project", "id": "2a5122b9-c323-4d5c-b53c-9ad3f54273e7"}]' type: list