{
  "opencollection": "1.0.0",
  "info": {
    "name": "Datadog Account Protections API",
    "version": "1.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "DD-API-KEY",
      "value": "{{DD-API-KEY}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Protections",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Datadog Get All Workload Protection Agent Rules",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/agent_rules",
            "params": [
              {
                "name": "policy_id",
                "value": "6517fcc1-cec7-4394-a655-8d6e9d085255",
                "type": "query",
                "description": "The ID of the Agent policy"
              }
            ]
          },
          "docs": "Get the list of Workload Protection agent rules.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below."
        },
        {
          "info": {
            "name": "Datadog Create a Workload Protection Agent Rule",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/agent_rules",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new Workload Protection agent rule with the given parameters.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below."
        },
        {
          "info": {
            "name": "Datadog Get a Workload Protection Agent Rule",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/agent_rules/:agent_rule_id",
            "params": [
              {
                "name": "agent_rule_id",
                "value": "3b5-v82-ns6",
                "type": "path",
                "description": "The ID of the Agent rule"
              },
              {
                "name": "policy_id",
                "value": "6517fcc1-cec7-4394-a655-8d6e9d085255",
                "type": "query",
                "description": "The ID of the Agent policy"
              }
            ]
          },
          "docs": "Get the details of a specific Workload Protection agent rule.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below."
        },
        {
          "info": {
            "name": "Datadog Update a Workload Protection Agent Rule",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/agent_rules/:agent_rule_id",
            "params": [
              {
                "name": "agent_rule_id",
                "value": "3b5-v82-ns6",
                "type": "path",
                "description": "The ID of the Agent rule"
              },
              {
                "name": "policy_id",
                "value": "6517fcc1-cec7-4394-a655-8d6e9d085255",
                "type": "query",
                "description": "The ID of the Agent policy"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a specific Workload Protection Agent rule.\nReturns the agent rule object when the request is successful.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below."
        },
        {
          "info": {
            "name": "Datadog Delete a Workload Protection Agent Rule",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/agent_rules/:agent_rule_id",
            "params": [
              {
                "name": "agent_rule_id",
                "value": "3b5-v82-ns6",
                "type": "path",
                "description": "The ID of the Agent rule"
              },
              {
                "name": "policy_id",
                "value": "6517fcc1-cec7-4394-a655-8d6e9d085255",
                "type": "query",
                "description": "The ID of the Agent policy"
              }
            ]
          },
          "docs": "Delete a specific Workload Protection agent rule.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below."
        },
        {
          "info": {
            "name": "Datadog Get All Workload Protection Policies",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/policy"
          },
          "docs": "Get the list of Workload Protection policies.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below."
        },
        {
          "info": {
            "name": "Datadog Create a Workload Protection Policy",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/policy",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new Workload Protection policy with the given parameters.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below."
        },
        {
          "info": {
            "name": "Datadog Download the Workload Protection Policy",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/policy/download"
          },
          "docs": "The download endpoint generates a Workload Protection policy file from your currently active\nWorkload Protection agent rules, and downloads them as a `.policy` file. This file can then be deployed to\nyour agents to update the policy running in your environment.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below."
        },
        {
          "info": {
            "name": "Datadog Get a Workload Protection Policy",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/policy/:policy_id",
            "params": [
              {
                "name": "policy_id",
                "value": "6517fcc1-cec7-4394-a655-8d6e9d085255",
                "type": "path",
                "description": "The ID of the Agent policy"
              }
            ]
          },
          "docs": "Get the details of a specific Workload Protection policy.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below."
        },
        {
          "info": {
            "name": "Datadog Update a Workload Protection Policy",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/policy/:policy_id",
            "params": [
              {
                "name": "policy_id",
                "value": "6517fcc1-cec7-4394-a655-8d6e9d085255",
                "type": "path",
                "description": "The ID of the Agent policy"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a specific Workload Protection policy.\nReturns the policy object when the request is successful.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below."
        },
        {
          "info": {
            "name": "Datadog Delete a Workload Protection Policy",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.{site}/api/v2/remote_config/products/cws/policy/:policy_id",
            "params": [
              {
                "name": "policy_id",
                "value": "6517fcc1-cec7-4394-a655-8d6e9d085255",
                "type": "path",
                "description": "The ID of the Agent policy"
              }
            ]
          },
          "docs": "Delete a specific Workload Protection policy.\n\n**Note**: This endpoint is not available for the Government (US1-FED) site. Please reference the (US1-FED) specific resource below."
        },
        {
          "info": {
            "name": "Datadog Download the Workload Protection Policy (us1-fed)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/security/cloud_workload/policy/download"
          },
          "docs": "The download endpoint generates a Workload Protection policy file from your currently active\nWorkload Protection agent rules, and downloads them as a `.policy` file. This file can then be deployed to\nyour agents to update the policy running in your environment.\n\n**Note**: This endpoint should only be used for the Government (US1-FED) site."
        },
        {
          "info": {
            "name": "Datadog Get All Workload Protection Agent Rules (us1-fed)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/security_monitoring/cloud_workload_security/agent_rules"
          },
          "docs": "Get the list of agent rules.\n\n**Note**: This endpoint should only be used for the Government (US1-FED) site."
        },
        {
          "info": {
            "name": "Datadog Create a Workload Protection Agent Rule (us1-fed)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://{subdomain}.{site}/api/v2/security_monitoring/cloud_workload_security/agent_rules",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Create a new agent rule with the given parameters.\n\n**Note**: This endpoint should only be used for the Government (US1-FED) site."
        },
        {
          "info": {
            "name": "Datadog Get a Workload Protection Agent Rule (us1-fed)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://{subdomain}.{site}/api/v2/security_monitoring/cloud_workload_security/agent_rules/:agent_rule_id",
            "params": [
              {
                "name": "agent_rule_id",
                "value": "3b5-v82-ns6",
                "type": "path",
                "description": "The ID of the Agent rule"
              }
            ]
          },
          "docs": "Get the details of a specific agent rule.\n\n**Note**: This endpoint should only be used for the Government (US1-FED) site."
        },
        {
          "info": {
            "name": "Datadog Update a Workload Protection Agent Rule (us1-fed)",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://{subdomain}.{site}/api/v2/security_monitoring/cloud_workload_security/agent_rules/:agent_rule_id",
            "params": [
              {
                "name": "agent_rule_id",
                "value": "3b5-v82-ns6",
                "type": "path",
                "description": "The ID of the Agent rule"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Update a specific agent rule.\nReturns the agent rule object when the request is successful.\n\n**Note**: This endpoint should only be used for the Government (US1-FED) site."
        },
        {
          "info": {
            "name": "Datadog Delete a Workload Protection Agent Rule (us1-fed)",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://{subdomain}.{site}/api/v2/security_monitoring/cloud_workload_security/agent_rules/:agent_rule_id",
            "params": [
              {
                "name": "agent_rule_id",
                "value": "3b5-v82-ns6",
                "type": "path",
                "description": "The ID of the Agent rule"
              }
            ]
          },
          "docs": "Delete a specific agent rule.\n\n**Note**: This endpoint should only be used for the Government (US1-FED) site."
        }
      ]
    }
  ],
  "bundled": true
}