Skip to main content

Fix Infrastructure as Code Configuration Errors

POST 

/code/api/v1/fixes/checkov

Suggest a fix for infrastructure as code configuration errors that are found in the request files.

Request

Body

arrayrequired
  • Array [
  • errors object[]required

    Data regarding the resource on which the fix will be applied

  • Array [
  • endLine doublerequired

    Resource's end line in the file

    policyId stringrequired

    Check ID which is being fixed

    resourceId stringrequired

    Representation of the resource ID which is a combination of "resource type"."resource name"

    startLine doublerequired

    Resource's start line in the file

  • ]
  • fileContent stringrequired

    Content of the file on which the fix will be appiled

    filePath stringrequired
    framework stringrequired

    Framework on which the fix will be applied, e.g. terraform or cloudformation

  • ]

Responses

Fixes for checkov errors

Schema
  • Array [
  • filePath stringrequired
    fixes object[]required
  • Array [
  • fixedDefinition stringrequired
    originalEndLine doublerequired
    originalStartLine doublerequired
    policyId stringrequired
    resourceId stringrequired
  • ]
  • ]
Loading...