naftiko: 1.0.0-alpha2 info: label: Palo Alto Networks Cortex Xpanse REST API — AttackSurfaceRules description: 'Palo Alto Networks Cortex Xpanse REST API — AttackSurfaceRules. 2 operations. Lead operation: Palo Alto Networks Get Attack Surface Rules. Self-contained Naftiko capability covering one Palo Alto Networks business surface.' tags: - Palo Alto Networks - AttackSurfaceRules created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: PALO_ALTO_NETWORKS_API_KEY: PALO_ALTO_NETWORKS_API_KEY capability: consumes: - type: http namespace: palo-alto-cortex-xpanse-attacksurfacerules baseUri: https://api-{fqdn}/public_api/v1 description: Palo Alto Networks Cortex Xpanse REST API — AttackSurfaceRules business capability. Self-contained, no shared references. resources: - name: attack_surface_rules-get_attack_surface_rules path: /attack_surface_rules/get_attack_surface_rules operations: - name: getattacksurfacerules method: POST description: Palo Alto Networks Get Attack Surface Rules outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: attack_surface_rules-update_attack_surface_rule path: /attack_surface_rules/update_attack_surface_rule operations: - name: updateattacksurfacerule method: POST description: Palo Alto Networks Update Attack Surface Rule outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true authentication: type: apikey key: x-xdr-hmac-v2 value: '{{env.PALO_ALTO_NETWORKS_API_KEY}}' placement: header exposes: - type: rest namespace: palo-alto-cortex-xpanse-attacksurfacerules-rest port: 8080 description: REST adapter for Palo Alto Networks Cortex Xpanse REST API — AttackSurfaceRules. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/attack-surface-rules/get-attack-surface-rules name: attack-surface-rules-get-attack-surface-rules description: REST surface for attack_surface_rules-get_attack_surface_rules. operations: - method: POST name: getattacksurfacerules description: Palo Alto Networks Get Attack Surface Rules call: palo-alto-cortex-xpanse-attacksurfacerules.getattacksurfacerules with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/attack-surface-rules/update-attack-surface-rule name: attack-surface-rules-update-attack-surface-rule description: REST surface for attack_surface_rules-update_attack_surface_rule. operations: - method: POST name: updateattacksurfacerule description: Palo Alto Networks Update Attack Surface Rule call: palo-alto-cortex-xpanse-attacksurfacerules.updateattacksurfacerule with: body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: palo-alto-cortex-xpanse-attacksurfacerules-mcp port: 9090 transport: http description: MCP adapter for Palo Alto Networks Cortex Xpanse REST API — AttackSurfaceRules. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: palo-alto-networks-get-attack description: Palo Alto Networks Get Attack Surface Rules hints: readOnly: true destructive: false idempotent: false call: palo-alto-cortex-xpanse-attacksurfacerules.getattacksurfacerules with: body: tools.body outputParameters: - type: object mapping: $. - name: palo-alto-networks-update-attack description: Palo Alto Networks Update Attack Surface Rule hints: readOnly: false destructive: false idempotent: false call: palo-alto-cortex-xpanse-attacksurfacerules.updateattacksurfacerule with: body: tools.body outputParameters: - type: object mapping: $.