To retrieve information about an image, send a GET
request to
/v2/images/$IDENTIFIER
.
Name | Type | Required | Description | Default Value |
---|---|---|---|---|
image_id |
JSON | True | A unique number (id) or string (slug) used to identify and reference a specific image. Public images can be identified by image id or slug .Private images must be identified by image id . |
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.images.get(image_id=134215)
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.