NerdGraph tutorial: Create, update, and revoke public sharing dashboard URLs
With the necessary security and access set up you can create, manage, and revoke publicly accessible live dashboard URLs using queries and mutations in NerdGraph,
You can also do it from the New Relic UI.
Advertencia
Anyone with the live dashboard or chart URLs can view all the information from the dashboard. Share information carefully and in accordance with your company's internal policies and procedures.
For creating, updating, or revoking a publicly accessible live dashboard URL from NerdGraph, you need the GUID of the dashboard you want to share.
Based on the permissions you have, you can revoke only the URLs you have created, or all URLs created by users in the account. To revoke a shared dashboard URL:
ID: The ID of the shared dashboard (Copy it from the shared dashboard URL.)
mutation {
dashboardRevokeLiveUrl(id: "<public_link_id>") {
id
}
}
The shared dashboard URL is now revoked, and it will no longer be accessible. The response appears as follows:
{
"data": {
"dashboardRevokeLiveUrl": {
"id": "<public_link_id>" //the one you passed to the mutation
}
}
}
Based on the permissions you have, you can retrieve the list of links you have created, or all links created by users in the account. To get the list of shared dashboard URLs: