Focus
Focus
Table of Contents

Move Configuration

Useaction=move to move the location of an existing configuration object. Use thexpath parameter to specify the location of the object to be moved, thewhere parameter to specify type of move, anddst parameter to specify the destination path.
  • where=after&dst=xpath
  • where=before&dst=xpath
  • where=top
  • where=bottom
  1. Use the following API query to move a security policy calledrule1 to come afterrule2:
    curl -X POST 'https://firewall/api?type=config&action=move&xpath=/config/devices/entry/vsys/entry[@name='vsys1']/rulebase/security/rules/entry[@name='rule1']&where=after&dst=rule2"
  2. Confirm that the XML response for the request looks like the following:
    <response status="success" code="20"> <msg>command succeeded</msg> </response>