NerdGraph tutorial: List and revoke public sharing chart URLs

You can list and revoke publicly accessible live chart URLs using queries and mutations in NerdGraph.

To do this:

  1. Go to GraphiQL Explorer.
  2. List all live chart URLs created within your New Relic account.
  3. Revoke any live chart URL you want to.

Tip

To create publicly accessible live chart URLs, refer our docs.

List all live chart URLs

Use the following query to retrieve a list of existing live chart URLs:

{
actor {
dashboard {
liveUrls {
liveUrls {
title
url
createdAt
type
}
errors {
description
}
}
}
}
}

Revoke any live chart URL

Use the following query to revoke the live chart URL you specify:

mutation {
dashboardWidgetRevokeLiveUrl(uuid: "<enter-the-UUID-of-the-live-chart>") {
uuid
errors {
description
type
}
}
}