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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"compartment_id": "<compartment_id>"
},
"name": "list_subnets"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compartment_id | Yes | ||
| vcn_id | No |