25 lines
580 B
YAML
25 lines
580 B
YAML
id: api-nerdgraph
|
|
|
|
info:
|
|
name: New Relic NerdGraph API Test
|
|
author: zzeitlin
|
|
reference: https://docs.newrelic.com/docs/apis/nerdgraph/get-started/introduction-new-relic-nerdgraph/
|
|
severity: info
|
|
tags: token-spray,newrelic,nerdgraph
|
|
|
|
requests:
|
|
- method: POST
|
|
path:
|
|
- "https://api.newrelic.com/graphql"
|
|
headers:
|
|
Content-Type: application/json
|
|
API-Key: "{{token}}"
|
|
body: "{ \"query\": \"{ requestContext { userId apiKey }}\" }"
|
|
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
negative: true
|
|
words:
|
|
- 'errors'
|