pydo.images.get()
Generated on 11 Jul 2025
from pydo
version
v0.13.0
Description
To retrieve information about an image, send a GET
request to
/v2/images/$IDENTIFIER
.
Parameters
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 . |
Request Sample
import os
from pydo import Client
client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))
resp = client.images.get(image_id=134215)
More Information
See the API spec for this endpoint to view additional detail on responses, headers, parameters, and more.