Get info about a Linode VPC.
- name: Get info about a VPC by label
linode.cloud.vpc_info:
label: my-vpc
- name: Get info about a VPC by ID
linode.cloud.vpc_info:
id: 12345
Field | Type | Required | Description |
---|---|---|---|
label |
str |
Optional | The label of the VPC to resolve. (Conflicts With: id ) |
id |
int |
Optional | The ID of the VPC to resolve. (Conflicts With: label ) |
-
vpc
- The returned VPC.- Sample Response:
{ "created": "2023-08-31T18:35:01", "description": "A description of this VPC", "id": 344, "label": "my-vpc", "region": "us-east", "subnets": [], "updated": "2023-08-31T18:35:03" }
- Sample Response: