Custom Azure API Pattern
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2023 06:27 AM
I am looking at calling the Resource Graph API to retrieve a list of all Firewalls in Azure. I have created 2 Patterns to try and achieve this:
- ServerLess Pattern which runs on a ServerLess schedule, that calls the Azure Resource Graph API. The pattern has been configured as a infrastructure pattern in line with how other Serverless patterns have been configured
- Cloud Resource Pattern which runs when a Cloud Discovery is executed. The pattern type is "Resource" and I have the pattern executing, however the input parameters are not being received when the pattern is executed.
What I am trying to establish is:
- What is the best method for retrieving the data - ServerLess / Cloud Resource?
- What is the API to retrieve the data from Azure? I am assuming the following Azure docs is the correct API
- What is the body to be executed?
{ "subscriptions": [ "<subscription_id>" ], "query": "Resources | where type =~ 'Microsoft.Network/azureFirewalls'"}
Any pointers or help is much appreciated.
Thanks,
Rob
0 REPLIES 0