Details

This atomic belongs to the Cisco Secure Firewall atomic group.

Adds a source and/or destination host object to an access rule. If a given host object's ID is left blank, "any" will be used.

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 local variable
[]> If a JSON body was given, extract the rule ID and store it in a local 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

About
Authorship
Cisco Managed