---
updatedAt: 2026-03-01T18:30:17.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/terraform/v9.3/llms.txt
---

# General settings

akamai_apr_general_settings

> 📘
>
> Hello. Just a note to let you know the underlying API on which this resource is built is general release and has been vetted, but because this is a new feature for our Terraform provider, we've given it beta label.
>
> This status just means we've paused for a bit to get [your feedback](https://github.com/akamai/terraform-provider-akamai/issues) to make sure this resource works like you need and expect.

Create and update general protection settings for your API operations.

```json Declaration
resource "akamai_apr_general_settings" "my_apr_settings" {
  config_id          = 12345
  security_policy_id = "abcd_123456"
  general_settings   = jsonencode(
    {
      "accountProtection": true,
      "originSignalHeader": true,
      "originUserIdInRequestHeader": true,
      "usernameInRequestHeader": true
    }
  )
}
```
```json Output
my_apr_settings = {
  config_id          = 12345
  id                 = "12345:abcd_123456"
  json               = jsonencode(
    {
      accountProtection  = false
      metadata           = {
        configId         = 12345
        configVersion    = 1
        securityPolicyId = "abcd_123456"
      }
      originSignalHeader = true
    }
  )
  security_policy_id = "abcd_123456"
}
```

## Arguments

Pass all arguments to set protections on an API operation.

[block:parameters]
{
  "data": {
    "h-0": "Argument",
    "h-1": "Required",
    "h-2": "Description",
    "0-0": "`config_id`",
    "0-1": "✔️",
    "0-2": "Your security configuration's ID.",
    "1-0": "`security_policy_id`",
    "1-1": "✔️",
    "1-2": "Your security policy's ID.",
    "2-0": "`general_settings`",
    "2-1": "✔️",
    "2-2": "The API operation's protection settings. Possible settings are:<ul><li><code>account_protection</code>. Whether to enable account protection on the operation.</li><li><code>origin_signal_header</code>. Whether to enable the origin signal header.</li><li><code>origin_user_id_in_request_header</code>. Whether to enable the origin user ID in the Akamai request header.</li><li><code>username_in_request_header</code>. Whether to enable the username in the Akamai request header.</li></ul>"
  },
  "cols": 3,
  "rows": 3,
  "align": [
    null,
    "center",
    null
  ]
}
[/block]

## Attributes

There is no standard output for this resource as the changes are reflected in your state file.

> **Note:** There is an `id` attribute returned as well. It is an ID for the run of the resource and is not needed downstream anywhere.

[block:parameters]
{
  "data": {
    "h-0": "Attribute",
    "h-1": "Description",
    "0-0": "`account_protection`",
    "0-1": "Whether account protector is enabled.",
    "1-0": "`metadata`",
    "1-1": "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>",
    "2-0": "`origin_signal_header`",
    "2-1": "Whether the origin signal header is enabled.",
    "3-0": "`origin_user_id_in_request_header`",
    "3-1": "Whether the origin user ID in the Akamai request header is enabled.",
    "4-0": "`username_in_request_header`",
    "4-1": "Whether the username in the Akamai request header is enabled."
  },
  "cols": 2,
  "rows": 5,
  "align": [
    null,
    null
  ]
}
[/block]

# Sibling pages

* [Protected operations](https://techdocs.akamai.com/terraform/v9.3/docs/apr-rc-protected-operations.md)
* [User allow list](https://techdocs.akamai.com/terraform/v9.3/docs/apr-rc-user-allow-list.md)
* [User risk response strategy](https://techdocs.akamai.com/terraform/v9.3/docs/apr-rc-user-risk-response-strategy.md)