multi_move_clone_configuration
Move or clone multiple firewall configurations to new locations in Palo Alto Networks environments to streamline configuration management.
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)Handler for the 'multi_move_clone_configuration' tool. Extracts arguments (config_paths, new_location, action), determines the API endpoint ('MultiMove' or 'MultiClone'), performs a POST request to the Palo Alto firewall's Configuration endpoint, and returns the response data as text content.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)Input schema defining the parameters for the 'multi_move_clone_configuration' tool: config_paths (array of strings), new_location (string), and action (string 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:173-198 (registration)Registration of the 'multi_move_clone_configuration' tool in the MCP server's list of tools, specifying its 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'] } }