Policy
akamai_cloudlets_policy
Get details about a given policy.
data "akamai_cloudlets_policy" "my_cloudlets_policy" {
  policy_id = 12345
  version   = 1
}
output "my_cloudlets_policy" {
  value = data.akamai_cloudlets_policy.my_cloudlets_policy
}
Changes to Outputs:
  + my_cloudlets_policy = {
      + activations         = []
      + api_version         = "2.0"
      + cloudlet_code       = "CD"
      + cloudlet_id         = 7
      + description         = "Phased release"
      + group_id            = 12345
      + match_rule_format   = "1.0"
      + match_rules         = jsonencode(
            [
              + {
                  + forwardSettings = {
                      + originId = "my_origin1"
                      + percent  = 50
                    }
                  + matchesAlways   = true
                  + name            = "Send to origin 1"
                  + type            = "cdMatchRule"
                },
            ]
        )
      + name                = "my_pr_cloudlet_policy"
      + policy_id           = 12345
      + revision_id         = 23456
      + rules_locked        = true
      + version             = 1
      + version_description = "Initial creation"
      + warnings            = "null"
    }
Arguments
Pass a policy ID in the body of the data block to get its details.
| Argument | Required | Description | 
|---|---|---|
| policy_id | ✔ | A policy ID. | 
| version | The version number of your policy. | 
Attributes
Returned are the details about the version given in the query, or if no version was provided, details about the latest version in production.
| Attribute | Description | 
|---|---|
| group_id | Your group ID. | 
| name | The user created name for a policy.. | 
| api_version | The specific version of the Cloudlets API used. | 
| cloudlet_id | A unique identifier that corresponds to a Cloudlets policy type. Value options are: 
 | 
| cloudlet_code | The character code for your cloudlet type. 
 | 
| revision_id | The revised version's ID. | 
| policy_id | A cloudlet policy ID. | 
| description | A human-readable description about the policy | 
| version | The policy's version number. | 
| version_description | The description of this specific policy version. | 
| rules_locked | Whether editing match_rulesfor the cloudlet policy version is blocked. | 
| match_rules | The rules for your policy in JSON format. | 
| match_rule_format | Your match-rulesversion. | 
| warnings | A list of warnings that occurred during the policy's activation. | 
| activations | A list of of current policy activation information. Contains: 
 | 
Updated 3 months ago
