---
updatedAt: 2026-06-26T19:14:02.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/llms.txt
---

# Protected operations

akamai_apr_protected_operations

Get a list of and details about your protected API operations.

```json Query
data "akamai_apr_protected_operations" "my_protected_operations" {
  config_id          = 12345
  security_policy_id = "abcd_123456"
  operation_id       = "12a3bc4d-5678-9ef0-g12h-3i4jklm5no67"
}

output "my_protected_operations" {
  value = data.akamai_apr_protected_operations.my_protected_operations
}
```
```json Output
my_protected_operations = {
  config_id          = 12345
  id                 = "12345:abcd_123456"
  json               = jsonencode(
    {
      metadata   = {
        configId         = 12345
        configVersion    = 1
        securityPolicyId = "abcd_123456"
      }
      operations = [
        {
          apiEndPointId          = 408126
          operationId            = "12a3bc4d-5678-9ef0-g12h-3i4jklm5no67"
          telemetryTypeStates    = {
            inline    = {
              ajaxSupportEnabled = false
              disabledAction     = "monitor"
              enabled            = false
            }
            nativeSdk = {
              ajaxSupportEnabled = false
              disabledAction     = "monitor"
              enabled            = false
            }
            standard  = {
              ajaxSupportEnabled = false
              disabledAction     = "monitor"
              enabled            = true
            }
          }
          traffic                = {
              inline   = {
                aggressive         = {
                  action = "monitor"
                }
                cautious           = {
                  action = "monitor"
                }
                overrideThresholds = false
                strict             = {
                  action = "monitor"
                }
              }
              standard = {
                aggressive         = {
                  action = "deny"
                }
                cautious           = {
                  action = "monitor"
                }
                overrideThresholds = false
                strict             = {
                  action = "monitor"
                }
              }
          }
        },
      ]
    }
  )
  operation_id       = null
  security_policy_id = "abcd_123456"
}
```

## Arguments

Pass all required arguments to get information about your protected API operations. Provide an operation's ID to limit the return.

| Argument             | Required | Description                       |
| -------------------- | :------: | --------------------------------- |
| `config_id`          |    ✔️    | Your security configuration's ID. |
| `security_policy_id` |    ✔️    | Your security policy's ID.        |
| `operation_id`       |          | An API operation's ID.            |

## Attributes

Returned to you are details about your protected operations.

> **Notes:**
>
> * There is an `id` attribute returned. It is an ID for the run of the data source and is not needed downstream anywhere.
> * Due to the level of nesting, the information within the `json` attribute has been pulled out and placed in a subtable.

| Attribute            | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `config_id`          | Your security configuration's ID.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| `security_policy_id` | Your security policy's ID.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| `operation_id`       | An API operation's ID.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| `json`               | Details about your protected operations. Contains: <ul><li><code>metadata</code>. Data about your security configuration. Contains:<ul><li><code>config\_id</code>. Your security configuration's ID.</li><li><code>config\_version</code>. The security configuration's version.</li><li><code>security\_policy\_id</code>. Your security policy's ID.</li></ul></li><li><code>operations</code>. A list of your protected API operations. See <a href="#protected-operations-json">Protected operation JSON</a> for the schema.</li></ul> |

### Protected operations JSON

Your protected operations's details.

<table>
  <thead>
    <th>Parameter</th>
    <th>Description</th>
  </thead>
  <tbody>
    <tr>
      <td><code>apiEndPointId</code></td>
      <td>An endpoint's ID.</td>
    </tr>
    <tr>
      <td><code>operationId</code></td>
      <td>An API operation's ID.</td>
    </tr>
    <tr>
      <td><code>protectedOperationLink</code></td>
      <td>A <code>GET</code> endpoint to retrieve information about your protected operations.</td>
    </tr>
    <tr>
      <td><code>telemetryTypeStates</code></td>
      <td>An object that contains the operation's types of telemetry, their enablement statuses, and their actions and thresholds. 
        These telemetry types are available:
        <ul>
          <li><code>inline</code>. Collects incoming inline telemetry traffic.</li>
          <li><code>nativeSdk</code>. Collects incoming SDK telemetry traffic.</li>
          <li><code>standard</code>. Collects incoming standard telemetry traffic.</li>
      </ul> 
        For each telemetry type, you can set these attributes: 
            <ul>
              <li><code>ajaxSupportEnabled</code>. Whether to use AJAX for challenge actions.</li>
              <li><code>enabled</code>. Required. Whether to include inline telemetry.</li>
              <li><code>disabledAction</code>. Conditionally required. If <code>enabled</code> is <code>false</code>, 
                provide an action to take on unexpected traffic. Possible actions are:
                <div class="Flex-two">
                  <div class="Flex-item-two">
                    <ul>
                      <li class="inner-list-behavior"><code>deny</code></li>
                      <li class="inner-list-behavior"><code>monitor</code></li>
                      <li class="inner-list-behavior"><code>tarpit</code></li>
                      <li class="inner-list-behavior"><code>delay</code></li>
                    </ul>
                  </div>
                  <div class="Flex-item-two">
                    <ul>
                      <li class="inner-list-behavior"><code>slow</code></li>
                      <li class="inner-list-behavior"><code>none</code></li>
                      <li class="inner-list-behavior"><code>custom</code></li>
                    </ul>
                  </div>
                </div>
              </li>
          </li>
      </td>
    </tr>
    <tr>
      <td><code>traffic</code></td>
      <td>The types of traffic to take action upon. These types of traffic are available:
        <ul>
          <li><code>inline</code>. Attaches user telemetry directly to the protected request without using a 
            first-party cookie. If you set the threshold override to true, don't pass <code>threshold</code>.</li>
          <li><code>nativeSdkAndroid</code>. Attaches telemetry traffic directly from a native Android mobile 
            application. If you set the threshold override to true, don't pass <code>threshold</code>.</li>
          <li><code>nativeSdkIos</code>. Attaches telemetry traffic directly from a native iOS mobile application. 
            If you set the threshold override to true, don't pass <code>threshold</code>.</li>
          <li><code>standard</code>. Uses first-party cookies to associate and transmit user behavior data. If you 
            set the threshold override to true, don't pass <code>threshold</code>.</li>
        </ul>
          For each traffic type, you can set these attributes: 
            <ul>
              <li><code>aggressive</code>. Aggressive response settings object. Contains:
                <ul>
                  <li><code>threshold</code>. The point at which to trigger the response action. Set to a default of<code>90</code> with an available range of <code>2</code>-<code>100</code>.</li>
                  <li><code>action</code>. The action to take once the threshold is triggered. Possible actions are:
                    <div class="Flex-two">
                      <div class="Flex-item-two">
                        <ul>
                          <li class="inner-list-behavior"><code>deny</code></li>
                          <li class="inner-list-behavior"><code>monitor</code></li>
                          <li class="inner-list-behavior"><code>tarpit</code></li>
                          <li class="inner-list-behavior"><code>delay</code></li>
                        </ul>
                      </div>
                      <div class="Flex-item-two">
                        <ul>
                          <li class="inner-list-behavior"><code>slow</code></li>
                          <li class="inner-list-behavior"><code>none</code></li>
                          <li class="inner-list-behavior"><code>custom</code></li>
                        </ul>
                      </div>
                    </div>
                  </li>
                  <li><code>overrideThresholds</code>. Whether to override threshold scores. Used when you want to customize actions on an endpoint.</li>
                </ul>
              </li>
              <li><code>cautious</code>. Cautious response settings object Contains:
                <ul>
                  <li><code>threshold</code>. The point at which to trigger the response action with an available range of <code>0</code>-<code>98</code>.</li>
                  <li><code>action</code>. The action to take once the threshold is triggered. Possible actions are:
                    <div class="Flex-two">
                      <div class="Flex-item-two">
                        <ul>
                          <li class="inner-list-behavior"><code>deny</code></li>
                          <li class="inner-list-behavior"><code>monitor</code></li>
                          <li class="inner-list-behavior"><code>tarpit</code></li>
                          <li class="inner-list-behavior"><code>delay</code></li>
                        </ul>
                      </div>
                      <div class="Flex-item-two">
                        <ul>
                          <li class="inner-list-behavior"><code>slow</code></li>
                          <li class="inner-list-behavior"><code>none</code></li>
                          <li class="inner-list-behavior"><code>custom</code></li>
                        </ul>
                      </div>
                    </div>
                  </li>
                  <li><code>overrideThresholds</code>. Whether to override threshold scores. Used when you want to customize actions on an endpoint.</li>
                </ul>
              </li>
              <li><code>strict</code>. Strict response settings object. Contains:
                <ul>
                  <li><code>threshold</code> The point at which to trigger the response action. Set to a default of <code>50</code>. Available range is <code>1</code>-<code>99</code>.</li>
                  <li><code>action</code>. The action to take once the threshold is triggered. Possible actions are:
                    <div class="Flex-two">
                      <div class="Flex-item-two">
                        <ul>
                          <li class="inner-list-behavior"><code>deny</code></li>
                          <li class="inner-list-behavior"><code>monitor</code></li>
                          <li class="inner-list-behavior"><code>tarpit</code></li>
                          <li class="inner-list-behavior"><code>delay</code></li>
                        </ul>
                      </div>
                      <div class="Flex-item-two">
                        <ul>
                          <li class="inner-list-behavior"><code>slow</code></li>
                          <li class="inner-list-behavior"><code>none</code></li>
                          <li class="inner-list-behavior"><code>custom</code></li>
                        </ul>
                      </div>
                    </div>
                  </li>
                  <li><code>overrideThresholds</code>. Whether to override threshold scores. Used when you want to customize actions on an endpoint.</li>
                </ul>
              </li>
            </ul>
          </li>
        </ul>
      </td>
    </tr>
  </tbody>
</table>

# Sibling pages

* [General settings](https://techdocs.akamai.com/terraform/docs/apr-ds-general-settings.md)
* [User allow list](https://techdocs.akamai.com/terraform/docs/apr-ds-user-allow-list.md)
* [User risk response strategy](https://techdocs.akamai.com/terraform/docs/apr-ds-user-risk-response-strategy.md)