Data Source: oci_core_network_security_groups

This data source provides the list of Network Security Groups in Oracle Cloud Infrastructure Core service.

Lists either the network security groups in the specified compartment, or those associated with the specified VLAN. You must specify either a vlanId or a compartmentId, but not both. If you specify a vlanId, all other parameters are ignored.

Example Usage

data "oci_core_network_security_groups" "test_network_security_groups" {

	#Optional
	compartment_id = var.compartment_id
	display_name = var.network_security_group_display_name
	state = var.network_security_group_state
	vcn_id = oci_core_vcn.test_vcn.id
	vlan_id = oci_core_vlan.test_vlan.id
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

NetworkSecurityGroup Reference

The following attributes are exported: