Shared policy
akamai_cloudlets_shared_policy
Get details about your shared cloudlet policy.
data "akamai_cloudlets_shared_policy" "my_shared_policy" {
policy_id = 12345
version = 1
}
output "my_shared_policy" {
value = data.akamai_cloudlets_shared_policy.my_shared_policy
}Changes to Outputs:
+ my_shared_policy = {
+ activations = {
+ production = {
+ effective = null
+ latest = null
}
+ staging = {
+ effective = {
+ activation_id = 12345
+ created_by = "jsmith"
+ created_date = "2023-11-13 11:35:35.788 +0000 UTC"
+ finish_date = "2020-11-13 11:38:23.683 +0000 UTC"
+ network = "STAGING"
+ operation = "ACTIVATION"
+ policy_id = 12345
+ policy_version = 1
+ policy_version_deleted = false
+ status = "SUCCESS"
}
+ latest = {
+ activation_id = 12345
+ created_by = "jsmith"
+ created_date = "2023-11-13 11:35:35.788 +0000 UTC"
+ finish_date = "2023-11-13 11:38:23.683 +0000 UTC"
+ network = "STAGING"
+ operation = "ACTIVATION"
+ policy_id = 12345
+ policy_version = 1
+ policy_version_deleted = false
+ status = "SUCCESS"
}
}
}
+ cloudlet_type = "ER"
+ description = "My edge redirector shared policy"
+ group_id = 12345
+ match_rules = jsonencode(
[
+ {
+ matchURL = "/my_shared_policy/"
+ name = "my_shared_policy"
+ redirectURL = "https://my_shared_er_policy.com"
+ statusCode = 301
+ type = "erMatchRule"
+ useIncomingQueryString = false
+ useIncomingSchemeAndHost = false
+ useRelativeUrl = "none"
},
]
)
+ name = "my_shared_er_policy"
+ policy_id = 151844
+ version = 1
+ version_description = "test"
+ warnings = jsonencode([])
}Arguments
Pass a cloudlet policy ID to get details about all of its versions or for a specific version, add a version number.
| Argument | Required | Description |
|---|---|---|
policy_id | ✔️ | A cloudlet policy ID. |
version | A version number for the given cloudlet policy with which to filter results. |
Attributes
Returned is a list of details about your cloudlet policy.
| Attribute | Description |
|---|---|
activations | A list of current policy activation information for both the Note: If there's no activation for either, the value returned is Both types contain:
|
cloudlet_type | The character code for your cloudlet type.
|
description | The human-readable description about your policy activation. |
group_id | Your group ID. |
match_rules | The policy's rules in JSON format. |
name | A user created name for the cloudlet policy. |
policy_id | The given cloudlet policy's ID. |
version | The version number of the cloudlet policy. |
version_description | The human-readable description about a returned cloudlet policy activation version. |
warnings | A list of warnings that occurred during the cloudlet policy activation. |
Updated 7 days ago
