• /
  • EnglishEspañol日本語한국어Português
  • EntrarComeçar agora

NerdGraph tutorial: Elections for cross-account alerting

To allow data sharing between accounts within an organization, an account must opt in to the 'cross-account alerting' feature. Follow these instructions on how to use the NerdGraph API Explorer to update account settings by enabling cross-account alerting.

Importante

Only users with the "Data-sharing access control" permission can update cross-account elections for data sharing. By default, this permission is granted only to users with the "Organization Manager" role.

Steps to update a cross-account alerting election

Collect the list of account IDs to update. The API accepts up to 20 account IDs.

Indicate whether you want to enable true or disable false the election.

Use the NerdGraph API explorer to update the account elections.

Here's an example of the mutation:

mutation {
alertsUpdateCrossAccountElections(
accountIds: [YOUR_1ST_ACCOUNT_ID, YOUR_2ND_ACCOUNT_ID, YOUR_3RD_ACCOUNT_ID]
electionStatus: true
) {
electionStatus
}
}
Copyright © 2025 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.