Palo Alto Networks Code Fixes API

The CodeFixes API from Palo Alto Networks — 1 operation(s) for codefixes.

Operations 1

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /code/api/v1/fixes/checkov Suggest fixes for IaC misconfigurations · Fix Infrastructure as Code Configuration Errors #
Ask an LLM
“Can I get suggested fixes for misconfigurations in my Terraform or other IaC files?”
“What fix does Prisma Cloud recommend for a Checkov finding?”
Tell an agent
Suggest fixes for the infrastructure as code errors in my files.
Get Checkov fix suggestions for these IaC configuration errors.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/palo-alto-networks:palo-alto-networks-codefixes-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

palo-alto-networks-codefixes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact: {}
  description: The CodeFixes endpoints are listed below.
  title: Prisma Cloud API Overview Code Fixes API
  version: Latest
servers:
- url: https://api.prismacloud.io
tags:
- name: CodeFixes
paths:
  /code/api/v1/fixes/checkov:
    post:
      description: Suggest a fix for infrastructure as code configuration errors that are found in the request files.
      operationId: fixCheckovErrors
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              items:
                $ref: '#/components/schemas/CheckovFileErrors'
              type: array
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                Example 1:
                  value:
                  - filePath: /aws/ec2.tf
                    fixes:
                    - fixedDefinition: "resource \"aws_ebs_volume\" \"web_host_storage\" {\n  # unencrypted volume\n  availability_zone = \"${var.availability_zone}\"\n  #encrypted         = false  # Setting this causes the volume to be recreated on apply \n  size = 1\n  tags = {\n    Name = \"${local.resource_prefix.value}-ebs\"\n  }\n  encrypted = true\n}\n"
                      originalEndLine: 33
                      originalStartLine: 25
                      policyId: BC_AWS_GENERAL_3
                      resourceId: aws_ebs_volume.web_host_storage
              schema:
                items:
                  $ref: '#/components/schemas/FileFixes'
                type: array
          description: Fixes for checkov errors
        '422':
          description: Request arguments validation error
      security:
      - CustomAuthorizer: []
      summary: Fix Infrastructure as Code Configuration Errors
      tags:
      - CodeFixes
      x-codeSamples:
      - lang: Python + Requests
        source: "import requests\n\nurl = \"https://api.prismacloud.io/code/api/v1/fixes/checkov\"\n\npayload = [\n    {\n        \"errors\": [\n            {\n                \"endLine\": 0,\n                \"policyId\": \"string\",\n                \"resourceId\": \"string\",\n                \"startLine\": 0\n            }\n        ],\n        \"fileContent\": \"string\",\n        \"filePath\": \"string\",\n        \"framework\": \"string\"\n    }\n]\nheaders = {\n    \"content-type\": \"application/json\",\n    \"authorization\": \"REPLACE_KEY_VALUE\"\n}\n\nresponse = requests.request(\"POST\", url, json=payload, headers=headers)\n\nprint(response.text)"
      - lang: Shell + Curl
        source: "curl --request POST \\\n  --url https://api.prismacloud.io/code/api/v1/fixes/checkov \\\n  --header 'authorization: REPLACE_KEY_VALUE' \\\n  --header 'content-type: application/json' \\\n  --data '[{\"errors\":[{\"endLine\":0,\"policyId\":\"string\",\"resourceId\":\"string\",\"startLine\":0}],\"fileContent\":\"string\",\"filePath\":\"string\",\"framework\":\"string\"}]'"
components:
  schemas:
    CheckovFileErrors:
      additionalProperties: false
      properties:
        errors:
          description: Data regarding the resource on which the fix will be applied
          items:
            properties:
              endLine:
                description: Resource's end line in the file
                format: double
                type: number
              policyId:
                description: Check ID which is being fixed
                type: string
              resourceId:
                description: Representation of the resource ID which is a combination of "resource type"."resource name"
                type: string
              startLine:
                description: Resource's start line in the file
                format: double
                type: number
            required:
            - endLine
            - startLine
            - policyId
            - resourceId
            type: object
          type: array
        fileContent:
          description: Content of the file on which the fix will be appiled
          type: string
        filePath:
          type: string
        framework:
          description: Framework on which the fix will be applied, e.g. terraform or cloudformation
          type: string
      required:
      - filePath
      - fileContent
      - framework
      - errors
      type: object
    FileFixes:
      additionalProperties: false
      properties:
        filePath:
          type: string
        fixes:
          items:
            properties:
              fixedDefinition:
                type: string
              originalEndLine:
                format: double
                type: number
              originalStartLine:
                format: double
                type: number
              policyId:
                type: string
              resourceId:
                type: string
            required:
            - fixedDefinition
            - originalEndLine
            - originalStartLine
            - policyId
            - resourceId
            type: object
          type: array
      required:
      - filePath
      - fixes
      type: object
  securitySchemes:
    CustomAuthorizer:
      in: header
      name: authorization
      type: apiKey
      x-amazon-apigateway-authorizer:
        authorizerResultTtlInSeconds: 0
        authorizerUri: arn:aws:apigateway:{Region}:lambda:path/2015-03-31/functions/arn:aws:lambda:{Region}:{AccountId}:function:bc-authorization-authorizer-{UniqueTag}{Alias}/invocations
        identitySource: method.request.header.authorization
        type: request
      x-amazon-apigateway-authtype: custom