---
updatedAt: 2025-11-12T21:47:04.000Z
agentTools:
  projectIndex: https://hub.armosec.io/llms.txt
---

# Returns list of posture controls run results

### Query params
`customerGUID` - required.
Gloabl filters (cluster, namespace)

### Request object
Standart request body for pagination APIs

#### Request object examples
Get top 5 controls with the highest number of affected resources from all frameworks:
```json
{
"pageSize": 5,
"orderBy": "affectedResourcesCount:desc"
}
```
Get all failed controls for "MITRE" framework:
```json
{
"pageSize": 50,
"innerFilters": [
{
"frameworkName": "MITRE",
"statusText": "failed"
}
]
}
```
Get next page of previous request:
```json
{
"pageSize": 50,
"pageNum": 2,
"innerFilters": [
{
"frameworkName": "MITRE",
"statusText": "failed"
}
]
}
```
Discussion: The following request (control for resource) needs new API?
Get all failed controls for resource "wlid://cluster-cluster1/namespace-namespace2/pod-my-pod" for "MITRE" framework in specific report:
```json
{
"innerFilters":[
{
"frameworkName":"MITRE",
"statusText":"failed",
"resource.name":"wlid://cluster-cluster1/namespace-namespace2/pod-my-pod",
"reportGUID":"adsdsad-fdsfdsf-fdsfdsf-fdsfdf-fdsf"
}
]
}
```

### Response object
Standart response body for pagination APIs
There is no gurentee there will be any control in the "response" list or to the numbers of the elements in it.

#### Response object example
```json
{
"total": {
"value": 186,
"relation": "eq"
},
"response": [
{
"designators": {
"designatorType": "",
"attributes": {
"cluster": "minikube1",
"customerGUID": "1e3a88bf-92ce-44f8-914e-cbe71830d566",
"rbacQuery": "Show who can access secrets"
}
},
"id": "C-0001",
"guid":"111111111-aaaaaaaaaaaaa-bbbbbbbbb-aaaaaaaaaa",
"name": "Privilege escalation",
"affectedResourcesCount": 10,
"previousAffectedResourcesCount": 5,
"frameworkName": "MITRE",
"remediation": "don't give high privileges to container",
"status": 3,
"statusText": "failed",
"description": "lorem ipsum ...",
"section": "Initial access",
"relevantCloudProvides": null,
"controlInputs": null
},
{
"designators": {
"designatorType": "",
"attributes": {
"cluster": "minikube1",
"customerGUID": "1e3a88bf-92ce-44f8-914e-cbe71830d566",
"hostSensor": "true"
}
},
"id": "C-0021",
"guid":"111111111-aaaaaaaaaaaaa-bbbbbbbbb-cccccc",
"name": "Untrusted image registry",
"affectedResourcesCount": 45,
"previousAffectedResourcesCount": 15,
"frameworkName": "MITRE",
"remediation": "don't give high privileges to container",
"status": 2,
"statusText": "warning",
"description": "lorem ipsum ...",
"section": "Initial access",
"relevantCloudProvides": ["EKS", "GKE"],
"controlInputs":  [
{
"Rulename": "rule-credentials-configmap",
"Inputs": [
{
"attributeName": "sensitiveValues",
"values": [ "PRIVATE KEY", "eyJhbGciO"]
}
]
}
]
}
],
"cursor": ""
}
```
### Special fields explanation
`complianceScore` - how compliant this control is (returns -1 for old versions that don't have this information)
`relevantCloudProvides` - this control is relevant for clusters managed by one of these cloud providers.
`controlInputs` - name of configurable list and it's values that were used in this scan, per rule.
`designators.attributes.rbacQuery` - if appears = name of query in rbac visualizer that's related to this control.
`designators.attributes.hostSensor` - if appears and value is "true" = indication of host sensor control.

# OpenAPI definition

````json
{
  "openapi": "3.0.0",
  "info": {
    "description": "<b>Documentation of Armo Platform API            </b><br/><details><summary><b>How to get the API key</b></summary><dl><dt>                Get the API key from the Armo platform</dt><dd><ol><li>Navigate to the https://cloud.armosec.io                    </li><li>Click on <b>Settings</b> (bottom left corner)</li><li>Under the <b>Agent Access Keys</b> section,                     generate a new access key or use an existing one.</li><li>Copy and save the access key,                     as it will not appear again.</li></ol></dd></dl><dl><dt>Using the API Key in Requests</dt><dd>                        Pass the access key in the request headers under the key <b>x-api-key</b> as shown below:</dd>                            <br/>curl -X 'POST' \\                                 <br/>&ensp;'https://api.armosec.io/api/v1/some-endpoint' \\                                     <br/>&ensp;-H 'accept: application/json' \\                                     <br/>&ensp;-H 'x-api-key: YOUR_ACCESS_KEY' \\                                     <br/>&ensp;-d '{}'</dd></dl>",
    "title": "ARMO PLATFORM API",
    "version": "1.0.0"
  },
  "paths": {
    "/posture/controls": {
      "post": {
        "description": "### Query params\n`customerGUID` - required.\nGloabl filters (cluster, namespace)\n\n### Request object\nStandart request body for pagination APIs\n\n#### Request object examples\nGet top 5 controls with the highest number of affected resources from all frameworks:\n```json\n{\n\"pageSize\": 5,\n\"orderBy\": \"affectedResourcesCount:desc\"\n}\n```\nGet all failed controls for \"MITRE\" framework:\n```json\n{\n\"pageSize\": 50,\n\"innerFilters\": [\n{\n\"frameworkName\": \"MITRE\",\n\"statusText\": \"failed\"\n}\n]\n}\n```\nGet next page of previous request:\n```json\n{\n\"pageSize\": 50,\n\"pageNum\": 2,\n\"innerFilters\": [\n{\n\"frameworkName\": \"MITRE\",\n\"statusText\": \"failed\"\n}\n]\n}\n```\nDiscussion: The following request (control for resource) needs new API?\nGet all failed controls for resource \"wlid://cluster-cluster1/namespace-namespace2/pod-my-pod\" for \"MITRE\" framework in specific report:\n```json\n{\n\"innerFilters\":[\n{\n\"frameworkName\":\"MITRE\",\n\"statusText\":\"failed\",\n\"resource.name\":\"wlid://cluster-cluster1/namespace-namespace2/pod-my-pod\",\n\"reportGUID\":\"adsdsad-fdsfdsf-fdsfdsf-fdsfdf-fdsf\"\n}\n]\n}\n```\n\n### Response object\nStandart response body for pagination APIs\nThere is no gurentee there will be any control in the \"response\" list or to the numbers of the elements in it.\n\n#### Response object example\n```json\n{\n\"total\": {\n\"value\": 186,\n\"relation\": \"eq\"\n},\n\"response\": [\n{\n\"designators\": {\n\"designatorType\": \"\",\n\"attributes\": {\n\"cluster\": \"minikube1\",\n\"customerGUID\": \"1e3a88bf-92ce-44f8-914e-cbe71830d566\",\n\"rbacQuery\": \"Show who can access secrets\"\n}\n},\n\"id\": \"C-0001\",\n\"guid\":\"111111111-aaaaaaaaaaaaa-bbbbbbbbb-aaaaaaaaaa\",\n\"name\": \"Privilege escalation\",\n\"affectedResourcesCount\": 10,\n\"previousAffectedResourcesCount\": 5,\n\"frameworkName\": \"MITRE\",\n\"remediation\": \"don't give high privileges to container\",\n\"status\": 3,\n\"statusText\": \"failed\",\n\"description\": \"lorem ipsum ...\",\n\"section\": \"Initial access\",\n\"relevantCloudProvides\": null,\n\"controlInputs\": null\n},\n{\n\"designators\": {\n\"designatorType\": \"\",\n\"attributes\": {\n\"cluster\": \"minikube1\",\n\"customerGUID\": \"1e3a88bf-92ce-44f8-914e-cbe71830d566\",\n\"hostSensor\": \"true\"\n}\n},\n\"id\": \"C-0021\",\n\"guid\":\"111111111-aaaaaaaaaaaaa-bbbbbbbbb-cccccc\",\n\"name\": \"Untrusted image registry\",\n\"affectedResourcesCount\": 45,\n\"previousAffectedResourcesCount\": 15,\n\"frameworkName\": \"MITRE\",\n\"remediation\": \"don't give high privileges to container\",\n\"status\": 2,\n\"statusText\": \"warning\",\n\"description\": \"lorem ipsum ...\",\n\"section\": \"Initial access\",\n\"relevantCloudProvides\": [\"EKS\", \"GKE\"],\n\"controlInputs\":  [\n{\n\"Rulename\": \"rule-credentials-configmap\",\n\"Inputs\": [\n{\n\"attributeName\": \"sensitiveValues\",\n\"values\": [ \"PRIVATE KEY\", \"eyJhbGciO\"]\n}\n]\n}\n]\n}\n],\n\"cursor\": \"\"\n}\n```\n### Special fields explanation\n`complianceScore` - how compliant this control is (returns -1 for old versions that don't have this information)\n`relevantCloudProvides` - this control is relevant for clusters managed by one of these cloud providers.\n`controlInputs` - name of configurable list and it's values that were used in this scan, per rule.\n`designators.attributes.rbacQuery` - if appears = name of query in rbac visualizer that's related to this control.\n`designators.attributes.hostSensor` - if appears and value is \"true\" = indication of host sensor control.",
        "tags": [
          "Posture"
        ],
        "summary": "Returns list of posture controls run results",
        "operationId": "postPostureControls",
        "requestBody": {
          "$ref": "#/components/requestBodies/postClustersOvertimeBody"
        },
        "responses": {
          "200": {
            "description": "PaginationResponseBase",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PaginationResponseBase"
                }
              }
            }
          }
        }
      }
    }
  },
  "security": [
    {
      "customerGUID": [
        "[]"
      ]
    },
    {
      "accessKey": [
        "[]"
      ]
    },
    {
      "openID": [
        "[]"
      ]
    }
  ],
  "servers": [
    {
      "url": "https://api.armosec.io/api/v1"
    },
    {
      "url": "http://api.armosec.io/api/v1"
    }
  ],
  "components": {
    "requestBodies": {
      "postClustersOvertimeBody": {
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/PaginationRequest"
                }
              ]
            }
          }
        },
        "description": "Generic pagination request body parameters"
      }
    },
    "securitySchemes": {
      "accessKey": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      },
      "customerGUID": {
        "type": "apiKey",
        "name": "customerGUID",
        "in": "query"
      }
    },
    "schemas": {
      "Cursor": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "x-go-name": "Id"
          },
          "keepAlive": {
            "$ref": "#/components/schemas/Duration"
          }
        },
        "x-go-package": "github.com/armosec/armoapi-go/armotypes"
      },
      "Duration": {
        "type": "integer"
      },
      "PaginationRequest": {
        "description": "TODO use armotypes.V2ListRequest\nV2ListRequest descripts what portion of the list the client is requesting",
        "type": "object",
        "properties": {
          "cursor": {
            "type": "string",
            "x-go-name": "CursorDepracated"
          },
          "cursorV1": {
            "$ref": "#/components/schemas/Cursor"
          },
          "fieldsToUpdate": {
            "description": "For PUT request, can be used to update only specific fields with specific values\nmap of field name to new value",
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "x-go-name": "FieldsToUpdate"
          },
          "ignoreDefaultOrderBy": {
            "description": "When true, the default sort order is ignored\nTODO: take it off, and use the default sort order when OrderBy is empty",
            "type": "boolean",
            "x-go-name": "IgnoreDefaultSort"
          },
          "innerFilters": {
            "description": "Which elements of the list to return, each field can hold multiple values separated by comma\nAn empty map means \"return the complete list\"",
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {
                "type": "string"
              }
            },
            "x-go-name": "InnerFilters",
            "example": [
              {
                "severity": "High,Medium",
                "type": "61539,30303"
              }
            ]
          },
          "orderBy": {
            "description": "How to order (sort) the list, field name + sort order (asc/desc), like https://www.w3schools.com/sql/sql_orderby.asp\nWhen empty, the default sort order is used. To disable the default sort order, set IgnoreDefaultSort to true",
            "type": "string",
            "x-go-name": "OrderBy",
            "example": "timestamp:asc,severity:desc"
          },
          "pageNum": {
            "description": "One can leave it empty for 0, then call ValidatePageProperties",
            "type": "integer",
            "format": "int64",
            "x-go-name": "PageNum"
          },
          "pageSize": {
            "description": "properties of the requested next page\nUse ValidatePageProperties to set PageSize field",
            "type": "integer",
            "format": "int64",
            "x-go-name": "PageSize"
          },
          "searchAfter": {
            "$ref": "#/components/schemas/SearchAfterResp"
          },
          "since": {
            "type": "string",
            "format": "date-time",
            "default": "since - begining og the time, until - now.",
            "x-go-name": "Since"
          },
          "until": {
            "type": "string",
            "format": "date-time",
            "x-go-name": "Until"
          }
        },
        "x-go-name": "V2ListRequest",
        "x-go-package": "github.com/armosec/armoapi-go/armotypes"
      },
      "PaginationResponseBase": {
        "type": "object",
        "properties": {
          "cursor": {
            "description": "Cursor for quick access to the next page. Not supported yet",
            "type": "string",
            "x-go-name": "Cursor"
          },
          "total": {
            "$ref": "#/components/schemas/RespTotal"
          }
        },
        "x-go-package": "github.com/armosec/cadashboardbe/docs"
      },
      "RespTotal": {
        "type": "object",
        "properties": {
          "relation": {
            "type": "string",
            "x-go-name": "Relation"
          },
          "value": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "Value"
          }
        },
        "x-go-package": "github.com/armosec/armoapi-go/armotypes"
      },
      "SearchAfterResp": {
        "type": "object",
        "properties": {
          "sort": {
            "x-go-name": "Sort"
          }
        },
        "x-go-package": "github.com/armosec/armoapi-go/armotypes"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
````