list_subnets
Retrieve all subnets in an Oracle Cloud Infrastructure compartment, with optional filtering by Virtual Cloud Network to identify network configurations and routing details.
Instructions
List all subnets in a compartment, optionally filtered by VCN.
Args:
compartment_id: OCID of the compartment to list subnets from
vcn_id: Optional OCID of the VCN to filter subnets
Returns:
List of subnets with CIDR blocks, security lists, and routing information
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compartment_id | Yes | ||
| vcn_id | No |