doctl vpcs get

Go to Navigation

Usage

doctl vpcs get <id> [flags]

Aliases

g

Description

Use this command to retrieve information about a VPC, including:

  • The VPC’s ID
  • The uniform resource name (URN) for the VPC
  • The VPC’s name
  • The VPC’s description
  • The range of IP addresses in the VPC in CIDR notation
  • The datacenter region slug the VPC is located in
  • The VPC’s default boolean value indicating whether or not the VPC is the default one for the region
  • The VPC’s creation date, in ISO8601 combined date and time format

Flags

OptionDescription
--formatColumns for output in a comma-separated list. Possible values: ID, URN, Name, Description, IPRange, Region, Created, Default
--help, -hHelp for this command
--no-headerReturn raw data with no headers
Default: false
CommandDescription
doctl vpcsDisplay commands that manage VPCs

Global Flags

OptionDescription
--access-token, -tAPI V2 access token
--api-url, -uOverride default API endpoint
--config, -cSpecify a custom config file
Default:
  • macOS: ${HOME}/Library/Application Support/doctl/config.yaml
  • Linux: ${XDG_CONFIG_HOME}/doctl/config.yaml
  • Windows: %APPDATA%\doctl\config.yaml
--contextSpecify a custom authentication context name
--output, -oDesired output format [text|json]
Default: text
--traceShow a log of network activity while performing a command
Default: false
--verbose, -vEnable verbose output
Default: false