Policy
akamai_cloudlets_policy
Use the akamai_cloudlets_policy data source to list details about a policy with and its specified version, or latest if not specified.
Example
This example returns the policy details based on the policy ID and optionally, a version:
data "akamai_cloudlets_policy" "example" {
policy_id = 1234
version = 1
}
Arguments
This data source supports these arguments:
policy_id- (Required) An integer identifier that is associated with all versions of a policy.version- (Optional) The version number of a policy.
Attributes
This data source returns these attributes:
-
group_id- Defines the group association for the policy. You must have edit privileges for the group. -
name- The unique name of the policy. -
api_version- The specific version of the Cloudlets API. -
cloudlet_id- A unique identifier that corresponds to a Cloudlets policy type. Enter0for Edge Redirector,1for Visitor Prioritization,3for Forward Rewrite,4for Request Control,5for API Prioritization,6for Audience Segmentation,7for Phased Release,8for Input Validation, or9for Application Load Balancer. -
cloudlet_code- The two- or three- character code for the type of Cloudlet. EnterALBfor Application Load Balancer,APfor API Prioritization,ASfor Audience Segmentation,CDfor Phased Release,ERfor Edge Redirector,FRfor Forward Rewrite,IGfor Request Control,IVfor Input Validation, orVPfor Visitor Prioritization. -
revision_id- A unique identifier given to every policy version update. -
description- The description of this specific policy. -
version_description- The description of this specific policy version. -
rules_locked- Whether editingmatch_rulesfor the Cloudlet policy version is blocked. -
match_rules- A JSON structure that defines the rules for this policy. -
match_rule_format- The format of the Cloudlet-specificmatch_rules. -
warnings- A JSON encoded list of warnings. -
activations- A list of of current policy activation information, including:-
api_version- The specific version of the Cloudlets API. -
network- The network, eitherstagingorprodon which a property or a Cloudlets policy has been activated. -
policy_info- A list of Cloudlet policy information, including:policy_id- An integer identifier that is associated with all versions of a policy.name- The name of the policy.version- The version number of the policy.status- The activation status for the policy. Values include the following:inactivewhere the policy version has not been activated. No active property versions reference this policy.activewhere the policy version is currently active (published) and its associated property version is also active.deactivatedwhere the policy version was previously activated but it has been superseded by a more recent activation of another policy version.pendingwhere the policy version is proceeding through the activation workflow.failedwhere the policy version activation workflow has failed.status_detail- Information about the status of an activation operation. This field is not returned when it has no value.activated_by- The name of the user who activated the policy.activation_date- The date on which the policy was activated in milliseconds since epoch.
-
property_infoA list of Cloudlet property information, including:name- The name of the property.version- The version number of the activated property.group_id- Defines the group association for the policy or property. If returns0, the policy is not tied to a group and in effect appears in all groups for the account. You must have edit privileges for the group.status- The activation status for the property. Values include the following:inactivewhere the policy version has not been activated. No active property versions reference this policy.activewhere the policy version is currently active (published) and its associated property version is also active.deactivatedwhere the policy version was previously activated but it has been superseded by a more recent activation of another policy version.pendingwhere the policy version is proceeding through the activation workflow.failedwhere the policy version activation workflow has failed.activated_by- The name of the user who activated the property.activation_date- The date on which the property was activated in milliseconds since epoch.
-
Updated 2 months ago
