v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

List IaC rules

List IaC rules. Requires scope repositories:read

get/repositories/code/iac/rules

Query parameters

repo_idinteger

Optional: Filters the open issue count to only count the issues related to the specified repo

Response

A list of IaC rules

idstring

The unique identifier of this rule

titlestring

The title of this rule

base_scoreinteger

A numeric value from 1 to 100 indicating how severe the issue associated with this rule is

descriptionstring

A summary of what the issue associated with this rule is

how_to_fixstring

A description on how to fix the issue associated with this IaC rule

languagestring

The programming language associated with this IaC rule

open_issues_countinteger

A numeric value indicating how many open single issues are associated with this rule

Example response

[
  {
    "id": "CKV_AZURE_59",
    "title": "Azure Storage Account allow public access",
    "base_score": 75,
    "description": "As a best practice, do not allow anonymous/public access to storage accounts unless you have a very good reason. The all networks option includes the entire internet.",
    "how_to_fix": "Add public_network_access_enabled = false to the settings of the Storage account resource.",
    "language": "",
    "open_issues_count": 1
  }
]