Skip to content

Latest commit

 

History

History
76 lines (68 loc) · 2.5 KB

working-new-relic-rest-api-v1-eol.mdx

File metadata and controls

76 lines (68 loc) · 2.5 KB
title tags metaDescription redirects freshnessValidatedDate
Working with the New Relic REST API (v1) (EOL)
APIs
REST API v1 (EOL)
New Relic REST API v1
The New Relic REST API (v1) has now reached end of life. Migrate your v1 scripts to their NerdGraph equivalent.
/docs/features/getting-started-with-the-new-relic-rest-api
/docs/docs/rest-api-users-guide
/docs/features/new-relic-rest-api
/docs/docs/getting-started-with-the-new-relic-rest-api
/docs/instrumentation/getting-started-with-the-new-relic-rest-api
/docs/apis/getting-started-with-the-new-relic-rest-api
/docs/features/alert-api-examples
/docs/instrumentation/alert-api-examples
/docs/apm/apis/new-relic-rest-api-v1/alert-api-examples
/docs/apm/apis/new-relic-rest-api-v1/getting-started-new-relic-rest-api
/docs/apm/apis/new-relic-rest-api-v1/alert-api-examples-v1
/docs/apm/apis/new-relic-rest-api-v1/getting-started-new-relic-rest-api-v1
/docs/apm/apis/new-relic-rest-api-v1/working-new-relic-rest-api-v1-eol
/docs/apm/apis/new-relic-rest-api-v1/alert-api-examples-v1-deprecated
/docs/apis/new-relic-rest-api-v1/working-new-relic-rest-api-v1-eol
/docs/apis/new-relic-rest-api-v1/alert-api-examples-v1-deprecated
/docs/apis/rest-api-v1/new-relic-rest-api-v1/alert-api-examples-v1-deprecated
/docs/apis/rest-api-v1/new-relic-rest-api-v1/working-new-relic-rest-api-v1-eol
/docs/apis/rest-api-v1-deprecated/new-relic-rest-api-v1/alert-api-examples-v1-deprecated
never
New Relic REST API Version 1 has reached end of life (EOL) and is no longer functional. Migrate your v1 scripts to their NerdGraph equivalent to maintain functionality.

Here are a few examples of alternatives to common tasks.

To get information related to accounts that your user can access:

actor {
  organization {
    accountManagement {
      managedAccounts {
        id
        name
      }
    }
  }
}

See Manage Accounts

To get a list of applications that a user can access, you can use entitySearch in NerdGraph:

{
  actor {
    entitySearch(queryBuilder: {domain: APM, type: APPLICATION}) {
      query
      results {
        entities {
          name
          entityType
          guid
          ... on ApmApplicationEntityOutline {
            accountId
          }
        }
      }
    }
  }
}

See Entity Search