This data source provides the list of Security Policies in Oracle Cloud Infrastructure Cloud Guard service.
Returns a list of security zone policies. Specify any compartment.
data "oci_cloud_guard_security_policies" "test_security_policies" {
#Required
compartment_id = var.compartment_id
#Optional
display_name = var.security_policy_display_name
id = var.security_policy_id
state = var.security_policy_state
}
The following arguments are supported:
compartment_id
- (Required) The ID of the compartment in which to list resources.display_name
- (Optional) A filter to return only resources that match the entire display name given.id
- (Optional) The unique identifier of the security zone policy (SecurityPolicy
)state
- (Optional) The field life cycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.The following attributes are exported:
security_policy_collection
- The list of security_policy_collection.The following attributes are exported:
category
- The category of security policycompartment_id
- The id of the security policy's compartmentdefined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
description
- The security policy's descriptiondisplay_name
- The security policy's full namefreeform_tags
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
Avoid entering confidential information.
friendly_name
- A shorter version of the security policy's nameid
- Unique identifier that is immutable on creationlifecycle_details
- A message describing the current state in more detail. For example, this can be used to provide actionable information for a resource in a Failed
state.owner
- The owner of the security policyservices
- The list of services that the security policy protectsstate
- The current state of the security policytime_created
- The time the security policy was created. An RFC3339 formatted datetime string.time_updated
- The time the security policy was last updated. An RFC3339 formatted datetime string.