: Multi-Move or Multi-Clone Configuration
Focus
Focus

Multi-Move or Multi-Clone Configuration

Table of Contents

Multi-Move or Multi-Clone Configuration

Use the
action=multi-move
and
action=multi-clone
actions to move and clone addresses, address groups, services, and more across device groups and virtual systems. Templates do not support the multi-move and multi-clone capability.
The syntax for multi-move and multi-clone specifies the xpath for the destination where the addresses will be moved to, the xpath for the source and the list of objects within the specified source. It also includes a flag for displaying the errors when the firewall performs a referential integrity check on the multi-move or multi-clone action.
  • Move addresses
    addr1
    ,
    addr2
    , to device group
    norcal
    from device group
    socal
    :
    curl -X POST 'https://firewall/api?type=config&action=multi-move&xpath=/config/devices/entry[@name='localhost.localdomain']/devicegroup/entry[@name='norcal']/address&element=<selected-list><source xpath="/config/devices/entry[@name='localhost.localdomain']/devicegroup/entry[@name='socal']/address"><member>addr1</member><member>addr2</member></source></selected-list><all-errors>no</all-errors>"
  • Clone addresses
    addr1
    ,
    addr2
    , to device group
    norcal
    from device group
    socal
    :
    curl -X POST 'https://firewall/api?type=config&action=multi-clone&xpath=/config/devices/entry[@name='localhost.localdomain']/devicegroup/entry[@name='norcal']/address&element=<selected-list><source xpath="/config/devices/entry[@name='localhost.localdomain']/devicegroup/entry[@name='socal']/address"><member>addr1</member><member>addr2</member></source></selected-list><all-errors>no</all-errors>"

Recommended For You