: Rename Configuration
Focus
Focus

Rename Configuration

Table of Contents

Rename Configuration

Use
action=rename
to rename an object at a specified location in the configuration. Use the xpath parameter to specify the location of the object to be renamed. Use the newname parameter to provide a new name for the object.
  1. Use the following API query to rename an address object called
    old_address
    to
    new_address
    :
    curl -X POST 'https://firewall/api?type=config&action=rename&xpath=/config/devices/entry/vsys/entry[@name='vsys1']/address/entry[@name='old_address']&newname=new_address"
  2. Confirm that the XML response for the request looks like the following:
    <response status="success" code="20"> <msg>command succeeded</msg> </response>

Recommended For You