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. - Use the following API query to rename an address object calledold_addresstonew_address:curl -X GET "https://<firewall>/api/?key=<apikey>&type=config&action=rename&xpath=/config/devices/entry/vsys/entry[@name='vsys1']/address/entry[@name='old_address']&newname=new_address"Confirm that the XML response for the request looks like the following:<response status="success" code="20"> <msg>command succeeded</msg> </response>
Most Popular
Recommended For You
Recommended Videos
Recommended videos not found.