Data Source: oci_cloud_guard_security_zones
This data source provides the list of Security Zones in Oracle Cloud Infrastructure Cloud Guard service.
Returns a list of security zones (SecurityZone resources) in a compartment identified by compartmentId. List is contained in a page of SecurityZoneSummary resources.
Example Usage
data "oci_cloud_guard_security_zones" "test_security_zones" {
#Required
compartment_id = var.compartment_id
#Optional
display_name = var.security_zone_display_name
id = var.security_zone_id
is_required_security_zones_in_subtree = var.security_zone_is_required_security_zones_in_subtree
security_recipe_id = oci_cloud_guard_security_recipe.test_security_recipe.id
state = var.security_zone_state
}
Argument Reference
The following arguments are supported:
compartment_id
- (Required) The OCID 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 (SecurityZone
resource).is_required_security_zones_in_subtree
- (Optional) Is security zones in the subtree?security_recipe_id
- (Optional) The unique identifier of the security zone recipe. (SecurityRecipe
resource).state
- (Optional) The field lifecycle state. Only one state can be provided. Default value for state is active. If no value is specified state is active.
Attributes Reference
The following attributes are exported:
security_zone_collection
- The list of security_zone_collection.
SecurityZone Reference
The following attributes are exported:
compartment_id
- The OCID of the compartment for the security zonedefined_tags
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:{"foo-namespace.bar-key": "value"}
description
- The security zone’s descriptiondisplay_name
- The security zone’s display 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.
id
- Unique identifier that can’t be changed after creationinherited_by_compartments
- List of inherited compartmentslifecycle_details
- A message describing the current state in more detail. For example, this can be used to provide actionable information for a zone in theFailed
state.security_zone_recipe_id
- The OCID of the recipe (SecurityRecipe
resource) for the security zonesecurity_zone_target_id
- The OCID of the target associated with the security zonestate
- The current lifecycle state of the security zonetime_created
- The time the security zone was created. An RFC3339 formatted datetime string.time_updated
- The time the security zone was last updated. An RFC3339 formatted datetime string.