To show information about an individual Droplet, send a GET request to
/v2/droplets/$DROPLET_ID
.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
droplet_id |
integer | True | A unique identifier for a Droplet instance. |
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.droplets.get(droplet_id=594828)
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.