Skip to main content
Glama
DynamicEndpoints

Palo Alto Device Server

upgrade_ha_firewalls_from_panorama

Upgrade PAN-OS on multiple high-availability firewalls centrally through Panorama to maintain security and performance.

Instructions

Upgrade PAN-OS on Multiple HA Firewalls through Panorama

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler logic for the 'upgrade_ha_firewalls_from_panorama' tool. It sends a POST request to the Panorama/UpgradeHA API endpoint using axios and returns the JSON response, with error handling.
    case 'upgrade_ha_firewalls_from_panorama': {
        try {
            const response = await axios.post(
                `${API_BASE_URL}/Panorama/UpgradeHA`,
                {},
                {
                    headers: {
                        'X-PAN-KEY': API_KEY,
                        'Accept': 'application/json'
                    }
                }
            );
    
            return {
                content: [
                    {
                        type: 'text',
                        text: JSON.stringify(response.data, null, 2),
                    },
                ],
            };
        } catch (error) {
            const axiosError = error as AxiosError;
            throw new McpError(
                ErrorCode.InternalError,
                `Palo Alto API error: ${axiosError.message}`
            );
        }
    }
  • src/index.ts:50-57 (registration)
    Registration of the 'upgrade_ha_firewalls_from_panorama' tool in the list of tools returned by ListToolsRequestSchema, including name, description, and empty input schema.
    {
        name: 'upgrade_ha_firewalls_from_panorama',
        description: 'Upgrade PAN-OS on Multiple HA Firewalls through Panorama',
        inputSchema: {
            type: 'object',
            properties: {},
        },
    },
  • Input schema for the tool, which is an empty object (no parameters required).
    inputSchema: {
        type: 'object',
        properties: {},
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DynamicEndpoints/paloalto-device-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server