To show information about an existing VPC, send a GET request to /v2/vpcs/$VPC_ID
.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
vpc_id |
string | True | A unique identifier for a VPC. |
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.vpcs.get(vpc_id="e0fe0f4d")
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.