Secure Firewall - Add Network Group to Access Rule
This atomic belongs to the Cisco Secure Firewall atomic group.
Adds a source and/or destination network group to an access rule.
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:
[] Make sure the required input was provided
[] Check if a rule ID or JSON body was provided:
[]> If a rule ID was given, fetch the existing rule and store its JSON in a variable
[]> If a JSON body was given, extract the rule ID and store it in a variable
[] Generate the JSON for the updated rule
[] Request the rule be updated
[] Check if the request was successful:
[]> If it was, set the output variables
[]> If it wasn't, return an error