listInstanceVpcs
List instance VPCs
Details
- Method:
GET - Path:
/instances/{instance-id}/vpcs - Operation ID:
list-instance-vpcs
Parameters
{
"per_page": {
"description": "Number of items requested per page. Default is 100 and Max is 500.",
"required": false,
"location": "query",
"type": "integer"
},
"cursor": {
"description": "Cursor for paging. See [Meta and Pagination](#section/Introduction/Meta-and-Pagination).",
"required": false,
"location": "query",
"type": "string"
}
}Response Schema
{
"type": "object",
"properties": {
"private_networks": {
"type": "array",
"items": {
"title": "vpc",
"type": "object",
"x-examples": {
"example": {
"id": "cb676a46-66fd-4dfb-b839-443f2e6c0b60",
"date_created": "2020-10-10T01:56:20+00:00",
"region": "ewr",
"description": "Example VPC",
"v4_subnet": "10.99.0.0",
"v4_subnet_mask": 24
}
},
"description": "VPC information.",
"x-tags": [
"VPCs"
],
"properties": {
"id": {
"type": "string",
"description": "A unique ID for the VPC."
},
"region": {
"type": "string",
"description": "The [Region id](#operation/list-regions) where the VPC is located."
},
"date_created": {
"type": "string",
"description": "Date the VPC was created."
},
"description": {
"type": "string",
"description": "A description of the VPC."
},
"v4_subnet": {
"type": "string",
"description": "The IPv4 VPC address. For example: 10.99.0.0"
},
"v4_subnet_mask": {
"type": "integer",
"description": "The number of bits for the netmask in CIDR notation. Example: 24"
}
},
"required": [
"id"
]
}
},
"meta": {
"title": "meta",
"type": "object",
"x-examples": {
"meta response": {
"meta": {
"total": 31,
"links": {
"next": "WxYzExampleNext",
"prev": ""
}
}
}
},
"description": "The meta information object. See [Meta and Pagination](#section/Introduction/Meta-and-Pagination) for more information.",
"properties": {
"total": {
"type": "integer",
"description": "Total objects available in the list. This value may be greater than the number of objects returned if `per_page` is set."
},
"links": {
"type": "object",
"description": "Cursor values for pagination.",
"properties": {
"next": {
"type": "string",
"description": "Cursor value for the next page."
},
"prev": {
"type": "string",
"description": "Cursor value for the previous page."
}
}
}
}
}
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('vultr')
# Call this tool
result = await agent.call_tool('listInstanceVpcs', {
# Add required parameters here
})