Secure Firewall - SSE - Get Access Policy by Name
This atomic belongs to the Cisco Secure Firewall (SSE) atomic group.
Searches for an access policy by name.
Note: This atomic is for use with the SecureX SSE API proxy. For more information about how this works, see: https://ciscosecurity.github.io/sxo-05-security-workflows/workflows/secure-firewall/api-types
Target: HTTP Endpoint for "visibility.amp.cisco.com" with a path of "/iroh"
Account Key: None (uses an access token)
Steps:
[] Build the initial URL to request
[] Loop through each page of policies
[]> Generate the JSON payload
[]> Send the API request to the SSE API proxy
[]> Check if the request was successful (if not, return an error)
[]> Check if the proxied request was successful:
[]>> If it wasn't, return an error
[]> Check if a matching policy was found:
[]>> If it was, extract the policy's ID, set the output variables, and end the loop
[]>> If it wasn't:
[]>>> Check for a next page
[]>>>> If there's a next page, update the local URL variable and continue
[]>>>> If there isn't a next page, end the workflow