For the complete documentation index, see llms.txt. This page is also available as Markdown.

Controls

Operations for managing compliance controls

Get compliance controls (v1)

post

Compliance controls are measures related to the standard that ensure compliance and mitigate risks. Controls are built from one or more rules, the specific checks that run on an asset. Controls can be grouped into categories, for example RBAC and Pod security.

Retrieve compliance control details with optional filtering, sorting and pagination.

  • The response is concatenated using AND condition (OR is not supported)

  • The maximum result set size is >100

  • Offset is the zero-based number of assessment profiles from the start of the result set

Required license: Cortex Cloud Runtime Security or Cortex Cloud Posture Management

Authorizations
x-xdr-auth-idstringRequired

API Key ID for authentication

AuthorizationstringRequired

API Key for authentication

Body
Responses
200

Successfully retrieved controls

application/json
post/public_api/v1/compliance/get_controls
POST /public_api/v1/compliance/get_controls HTTP/1.1
Host: api.xdr.us.paloaltonetworks.com
x-xdr-auth-id: YOUR_API_KEY
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 98

{
  "request_data": {
    "filters": [
      {
        "field": "name",
        "operator": "contains",
        "value": "Access Enforcement"
      }
    ]
  }
}
{
  "reply": {
    "total_count": 1,
    "result_count": 1,
    "controls": [
      {
        "id": "text",
        "name": "text",
        "description": "text",
        "category": "text",
        "subcategory": "text",
        "creation_time": 1,
        "modification_time": 1,
        "created_by": "text",
        "modified_by": "text",
        "is_custom": true
      }
    ]
  }
}

Get compliance control by ID (v1)

post

Get details of the compliance control specified by its ID.

Required license: Cortex Cloud Runtime Security or Cortex Cloud Posture Management

Authorizations
x-xdr-auth-idstringRequired

API Key ID for authentication

AuthorizationstringRequired

API Key for authentication

Body
Responses
200

Successfully retrieved control

application/json
post/public_api/v1/compliance/get_control
POST /public_api/v1/compliance/get_control HTTP/1.1
Host: api.xdr.us.paloaltonetworks.com
x-xdr-auth-id: YOUR_API_KEY
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 58

{
  "request_data": {
    "id": "ede175cb30ef4dd4a0e3031b1ee77868"
  }
}
{
  "control": {
    "CATEGORY": "text",
    "CATEGORY_DESCRIPTION": "text",
    "SUBCATEGORY": "text",
    "SUBCATEGORY_DESCRIPTION": "text",
    "CONTROL_ID": "text",
    "STANDARDS": [
      "text"
    ],
    "CONTROL_NAME": "text",
    "SEVERITY": "text",
    "SUPPORTED": true,
    "INSERTION_TIME": 1,
    "MODIFICATION_TIME": 1,
    "MODIFIED_BY": null,
    "CREATED_BY": "text",
    "DESCRIPTION": "text",
    "MITIGATION": null,
    "ADDITIONAL_DATA": [
      {}
    ],
    "COMPLIANCE_RULES": [
      {}
    ],
    "RULES": 1,
    "REVISION": "text",
    "IMPACT": null,
    "AUTOMATION_STATUS": "text",
    "AUDIT_PROCEDURE": null,
    "ENABLED": true,
    "IS_CUSTOM": true,
    "STATUS": "text"
  }
}

Add new control (v1)

post

Create a custom compliance control.

Required license: Cortex Cloud Runtime Security or Cortex Cloud Posture Management

Authorizations
x-xdr-auth-idstringRequired

API Key ID for authentication

AuthorizationstringRequired

API Key for authentication

Body
Responses
200

Control added successfully

application/json
successbooleanOptional

Whether the compliance control creation was successful

post/public_api/v1/compliance/add_control
POST /public_api/v1/compliance/add_control HTTP/1.1
Host: api.xdr.us.paloaltonetworks.com
x-xdr-auth-id: YOUR_API_KEY
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 103

{
  "request_data": {
    "control_name": "control name",
    "category": "Network Configuration",
    "subcategory": "4.2"
  }
}
{
  "success": true
}

Edit existing control (v1)

post

Edit an existing compliance custom compliance control.

Required license: Cortex Cloud Runtime Security or Cortex Cloud Posture Management

Authorizations
x-xdr-auth-idstringRequired

API Key ID for authentication

AuthorizationstringRequired

API Key for authentication

Body
Responses
200

Control updated successfully

application/json
successbooleanOptional

Whether the custom compliance control was edited successfully

post/public_api/v1/compliance/edit_control
POST /public_api/v1/compliance/edit_control HTTP/1.1
Host: api.xdr.us.paloaltonetworks.com
x-xdr-auth-id: YOUR_API_KEY
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 90

{
  "request_data": {
    "id": "48e2f6a9fcc049579e9c6b8eda0bd123",
    "control_name": "Great new name"
  }
}
{
  "success": true
}

Delete control (v1)

post

Delete a compliance control specified by its ID.

Required license: Cortex Cloud Runtime Security or Cortex Cloud Posture Management

Authorizations
x-xdr-auth-idstringRequired

API Key ID for authentication

AuthorizationstringRequired

API Key for authentication

Body
Responses
200

Control deleted successfully

application/json
successbooleanOptional

Whether the compliance control was successfully deleted

post/public_api/v1/compliance/delete_control
POST /public_api/v1/compliance/delete_control HTTP/1.1
Host: api.xdr.us.paloaltonetworks.com
x-xdr-auth-id: YOUR_API_KEY
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 58

{
  "request_data": {
    "id": "f9f744717b284e9383f9c1210ad3143d"
  }
}
{
  "success": true
}

Get control by revision (v1)

post

Get details of the compliance control specified by its revision ID, including inactive controls.

Required license: Cortex Cloud Runtime Security or Cortex Cloud Posture Management

Authorizations
x-xdr-auth-idstringRequired

API Key ID for authentication

AuthorizationstringRequired

API Key for authentication

Body
Responses
200

Successfully retrieved control

application/json
post/public_api/v1/compliance/get_control_by_revision
POST /public_api/v1/compliance/get_control_by_revision HTTP/1.1
Host: api.xdr.us.paloaltonetworks.com
x-xdr-auth-id: YOUR_API_KEY
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 59

{
  "request_data": {
    "control_revision": "4983640851729713422"
  }
}
{
  "reply": {
    "control": {
      "id": "text",
      "name": "text",
      "description": "text",
      "category": "text",
      "subcategory": "text",
      "creation_time": 1,
      "modification_time": 1,
      "created_by": "text",
      "modified_by": "text",
      "is_custom": true
    }
  }
}

Last updated

Was this helpful?