Skip to content

Query Neon API - AUS - Get servers to shutdown

Go to Automation

View in GitLab

Description

This automation queries the Neon API to retrieve server information based on the specified filter (hostFQDN, hostName, or bmcHostname). It processes the results to count and list the targets, and exports the target list for use in other playbooks.

Credentials

  • Neon API key

Input

Variable Description
url Base URL for the Neon API
endpoint API endpoint to query
filter Filter to apply (hostFQDN, hostName, or bmcHostname)

Output

Variable Description
target Comma-separated list of targets
target_count Number of targets found

Dependencies