General settings
akamai_apr_general_settings
Hello. Just a note to let you know the underlying API on which this data source 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 to make sure this data source works like you need and expect.
Get a list of and general settings for your protected API operations.
data "akamai_apr_general_settings" "my_apr_settings" {
config_id = 12345
security_policy_id = "abcd_123456"
}
output "my_apr_settings" {
value = data.akamai_apr_general_settings.my_apr_settings
}
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 both your security configuration's ID and its security policy ID in the data block to get your API operation's protection settings.
Argument | Required | Description |
---|---|---|
config_id | ✔️ | Your security configuration's ID. |
security_policy_id | ✔️ | Your security policy's ID. |
Attributes
Returned are the general settings for your protected operations.
Note: There is an
id
attribute returned. It is an ID for the run of the data source and is not needed downstream anywhere.
Attribute | Description |
---|---|
account_protection | Whether account protector is enabled. |
metadata | Data about your security configuration. Contains:
|
origin_signal_header | Whether the origin signal header is enabled. |
origin_user_id_in_request_header | Whether the origin user ID in the Akamai request header is enabled. |
username_in_request_header | Whether the username in the Akamai request header is enabled. |
Updated 10 days ago