list_subnets
Retrieve a list of subnets within a specified GCP project, with optional region filtering. Simplify network management by accessing subnet details efficiently.
Instructions
List subnets in a GCP project, optionally filtered by region.
Args:
project_id: The ID of the GCP project
region: Optional region to filter subnets by
Returns:
List of subnets in the specified GCP project
Input Schema
Name | Required | Description | Default |
---|---|---|---|
project_id | Yes | ||
region | No |
Input Schema (JSON Schema)
{
"properties": {
"project_id": {
"title": "Project Id",
"type": "string"
},
"region": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Region"
}
},
"required": [
"project_id"
],
"title": "list_subnetsArguments",
"type": "object"
}