[Linux] Export all my alerts with conditions

Can you please guide how to export all the alerts and conditions from my NR account. Please provide me step by step guide.

1 Like

Hi @domnic.raj.david and welcome to the community. I would suggest that your first step would be to read the documentation on using alerts with NerdGraph as that will cover everything you need.

1 Like

Hi @domnic.raj.david,

I hope you are having a nice Friday, Wow its so nice to see your first post in the community.

I totally agree with @stefan_garnham, the NerdGraph API doc is going to be very helpful here.

Another doc that might be handy is NerdGraph tutorial: alerts policies.

If you need more support on this, please let us know. We are happy to help.

1 Like

Thanks @dcody How to execute this to linux ?

{
actor {
account(id: YOUR_ACCOUNT_ID) {
alerts {
policiesSearch {
policies {
id
name
incidentPreference
}
}
}
}
}
}

Hello @domnic.raj.david I hope you are doing great today!!

So if I’m understanding correctly you can go ahead and build your query in nerdgraph and then you can translate that to a curl command by the drop down at the top of the page shown in the screenshot. I hope this helps/is what you were looking for!

Best,

1 Like