NewRelic
CLI
NerdGraph
Curl
curl https://api.newrelic.com/graphql \ -H 'Content-Type: application/json' \ -H 'API-Key: NRAK-GWACQxRWQICT4ID' \ --data-binary '{"query":"{\n actor {\n entitySearch(queryBuilder: {domain: INFRA, type: HOST}) {\n count\n results {\n entities {\n guid\n domain\n entityType\n name\n type\n tags {\n key\n values\n }\n }\n }\n }\n }\n}\n", "variables":""}'
CLI
NEW_RELIC_REGION=US NEW_RELIC_API_KEY=NRAK-GxICT4ID newrelic nerdgraph query '{ actor { entitySearch(queryBuilder: {domain: INFRA, type: HOST}) { count results { entities { guid domain entityType name type tags { key values } } } } } } '
DotNet
Articles