Data Source: oci_fleet_apps_management_compliance_policy_rules
This data source provides the list of Compliance Policy Rules in Oracle Cloud Infrastructure Fleet Apps Management service.
Gets a list of Compliance policy rules in a compartment.
Example Usage
data "oci_fleet_apps_management_compliance_policy_rules" "test_compliance_policy_rules" {
#Optional
compartment_id = var.compartment_id
compliance_policy_id = oci_fleet_apps_management_compliance_policy.test_compliance_policy.id
display_name = var.compliance_policy_rule_display_name
id = var.compliance_policy_rule_id
patch_name = oci_fleet_apps_management_patch.test_patch.name
state = var.compliance_policy_rule_state
}
Argument Reference
The following arguments are supported:
compartment_id- (Optional) The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.compliance_policy_id- (Optional) unique CompliancePolicy identifier.display_name- (Optional) A filter to return only resources that match the entire display name given.id- (Optional) Unique identifier or OCID for listing a single Compliance Policy Rule by id. Either compartmentId or id must be provided.patch_name- (Optional) A filter to return only resources that match the patch selection against the given patch name.state- (Optional) A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.
Attributes Reference
The following attributes are exported:
compliance_policy_rule_collection- The list of compliance_policy_rule_collection.
CompliancePolicyRule Reference
The following attributes are exported:
compartment_id- The OCID of the compartment the CompliancePolicyRule belongs to.compliance_policy_id- Unique OCID of the CompliancePolicy.defined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}display_name- A user-friendly name. Does not have to be unique, and it’s changeable. Avoid entering confidential information. Example:My new resourcefreeform_tags- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:{"bar-key": "value"}grace_period- Grace period in days,weeks,months or years the exemption is applicable for the rule. This enables a grace period when Fleet Application Management doesn’t report the product as noncompliant when patch is not applied.id- Unique OCID of the CompliancePolicyRule.lifecycle_details- A message that describes the current state of the CompliancePolicyRule in more detail. For example, can be used to provide actionable information for a resource in the Failed state.patch_selection- Patch Selection Detailsdays_since_release- Days passed since patch release.patch_level- Patch Name.patch_name- Patch Name.selection_type- Selection type for the Patch.
patch_type_id- PlatformConfiguration OCID for the patch type to which this CompliancePolicyRule applies.product_version- A specific product version or a specific version and succeeding. Example: 12.1 or 12.1 and above for Oracle WebLogic Application server. The policy applies to the next version only, and not to other versions such as, 12.1.x.is_applicable_for_all_higher_versions- Is rule applicable to all higher versions alsoversion- Product version the rule is applicable.
severity- Severity to which this CompliancePolicyRule applies.state- The current state of the CompliancePolicyRule.system_tags- System tags for this resource. Each key is predefined and scoped to a namespace. Example:{"orcl-cloud.free-tier-retained": "true"}time_created- The date and time the CompliancePolicyRule was created, in the format defined by RFC 3339. Example:2016-08-25T21:10:29.600Ztime_updated- The date and time the CompliancePolicyRule was updated, in the format defined by RFC 3339. Example:2016-08-25T21:10:29.600Z