Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 2.17 KB

vpc_info.md

File metadata and controls

55 lines (41 loc) · 2.17 KB

vpc_info

Get info about a Linode VPC.

Minimum Required Fields

Field Type Required Description
api_token str Required The Linode account personal access token. It is necessary to run the module.
It can be exposed by the environment variable LINODE_API_TOKEN instead.
See details in Usage.

Examples

- 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

Parameters

Field Type Required Description
id int Optional The ID of the VPC to resolve. (Conflicts With: label)
label str Optional The label of the VPC to resolve. (Conflicts With: id)

Return Values

  • 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"
      }
    • See the Linode API response documentation for a list of returned fields