multi_move_clone_configuration
Move or clone multiple firewall configurations to new locations in Palo Alto Networks environments to manage security policies and system settings.
Instructions
Multi-Move or Multi-Clone the configuration of the Palo Alto firewall
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config_paths | Yes | Paths to the configurations to move or clone | |
| new_location | Yes | New location for the configurations | |
| action | Yes | Action to perform |
Implementation Reference
- src/index.ts:262-283 (handler)The handler logic for the 'multi_move_clone_configuration' tool. It destructures the input arguments, constructs the appropriate Palo Alto API endpoint ('MultiMove' or 'MultiClone'), performs a POST request with the config_paths and new_location, and returns the response data as formatted text.case 'multi_move_clone_configuration': { const { config_paths, new_location, action } = request.params.arguments as { config_paths: string[], new_location: string, action: 'move' | 'clone' }; const endpoint = action === 'move' ? 'MultiMove' : 'MultiClone'; const response = await this.axiosInstance.post( `/Configuration/${endpoint}`, { config_paths, new_location } ); return { content: [ { type: 'text', text: JSON.stringify(response.data, null, 2), }, ], }; }
- src/index.ts:176-197 (schema)The input schema defining the parameters for the 'multi_move_clone_configuration' tool: config_paths (array of strings), new_location (string), and action (enum: 'move' or 'clone').inputSchema: { type: 'object', properties: { config_paths: { type: 'array', items: { type: 'string' }, description: 'Paths to the configurations to move or clone' }, new_location: { type: 'string', description: 'New location for the configurations' }, action: { type: 'string', enum: ['move', 'clone'], description: 'Action to perform' } }, required: ['config_paths', 'new_location', 'action'] }
- src/index.ts:174-198 (registration)The tool registration entry in the ListTools response, including name, description, and input schema.name: 'multi_move_clone_configuration', description: 'Multi-Move or Multi-Clone the configuration of the Palo Alto firewall', inputSchema: { type: 'object', properties: { config_paths: { type: 'array', items: { type: 'string' }, description: 'Paths to the configurations to move or clone' }, new_location: { type: 'string', description: 'New location for the configurations' }, action: { type: 'string', enum: ['move', 'clone'], description: 'Action to perform' } }, required: ['config_paths', 'new_location', 'action'] } }