Secure Firewall - Get Port Object by Port and Protocol
This atomic belongs to the Cisco Secure Firewall atomic group.
Searches for port objects with the given port and protocol.
Note: You may need to use an XDR automation remote to communicate with Cisco Secure Firewall if it's on-premises. See the XDR automation documentation for more information about remotes.
Target: HTTP Endpoint for your Firewall Management Center with a path of "api/"
Account Key: None (uses an access token)
Steps:
[] Build the initial URL to request
[] Loop through each page of objects
[]> Fetch the objects on this page (if this fails, return an error)
[]> Look for matching objects
[]> Check if a matching object was found:
[]>> If it was, extract the object'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