list_network_security_groups
Retrieve Network Security Groups (NSGs) and their security rules from a specified Oracle Cloud Infrastructure compartment, optionally filtered by VCN.
Instructions
List all Network Security Groups (NSGs) in a compartment.
Args:
compartment_id: OCID of the compartment to list NSGs from
vcn_id: Optional OCID of the VCN to filter NSGs
Returns:
List of NSGs with their security rules
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compartment_id | Yes | ||
| vcn_id | No |