• /
  • Log in

NerdGraph tutorial: Configure cloud integrations

This document provides examples of how to use New Relic NerdGraph to query and modify your cloud integration configuration data, including Amazon AWS, Microsoft Azure, and Google Cloud Platform (GCP). Using the NerdGraph GraphiQL explorer, you can also query NRQL data.

These examples for querying cloud integration configuration data use GraphQL queries and mutations:

  • Queries: requests that are intended to only fetch data
  • Mutations: requests that create or update data on the server

Requirements

Before querying cloud integration data with NerdGraph, ensure you have:

Access the NerdGraph GraphiQL explorer

To access the NerdGraph GraphiQL explorer:

  1. Go to https://api.newrelic.com/graphiql.
  2. Add any of the following examples.

Query examples

Queries are requests that are intended to only fetch data (no side effects). Queries in NerdGraph are not static, meaning that you can ask for more or less data depending on your needs. For each query, you can specify exactly what data you want to retrieve, as long as it is supported by the schema.

Mutation examples

Mutations are requests that are intended to have side effects, such as creating or updating data on the server. Mutations require the keyword mutation and the name of the mutation. NerdGraph mutations are restricted to a subset of all possible mutations.

Enable an Amazon AWS integration

This example uses an Amazon AWS SQS integration and assumes you have connected an AWS account to New Relic.

To enable an Amazon AWS integration:

Change polling interval for Amazon AWS integration

This example uses an Amazon AWS SQS integration and assumes you have connected an AWS account to New Relic. To change the polling interval of an AWS integration:

Disable Amazon AWS integration

This example uses an Amazon AWS SQS integration and assumes you have connected an AWS account to New Relic. To disable an AWS integration:

For more help

If you need more help, check out these support and learning resources:

Create issueEdit page
Copyright © 2021 New Relic Inc.