For AI agents: The documentation index is at https://docs.digitalocean.com/llms.txt. Markdown versions of pages use the same URL with index.html.md in place of the HTML page (for example, append index.html.md to the directory path instead of opening the HTML document).
deprecated
Usage
client.v2.registry.get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | RegistryGetResponse>
Description
Note: This endpoint is deprecated. Please use the /v2/registries endpoint instead.
To get information about your container registry, send a GET
request to /v2/registry.
This operation is not compatible with multiple registries in a DO account. You should use /v2/registries/{registry_name} instead.
Request Sample
Show Request Sample
import { FetchRequestAdapter } from "@microsoft/kiota-http-fetchlibrary";
import {
createDigitalOceanClient,
DigitalOceanApiKeyAuthenticationProvider,
} from "@digitalocean/dots";
const authProvider = new DigitalOceanApiKeyAuthenticationProvider(process.env.DIGITALOCEAN_TOKEN!);
const adapter = new FetchRequestAdapter(authProvider);
const client = createDigitalOceanClient(adapter);
const response = await client.v2.registry.get();
Response Example
Show Response Example
{
"registry": {
"name": "example",
"created_at": "2020-03-21T16:02:37Z",
"region": "fra1",
"storage_usage_bytes": 29393920,
"storage_usage_bytes_updated_at": "2020-11-04T21:39:49.530562231Z"
}
}
See /v2/registry in the API reference for additional detail on responses, headers, parameters, and more.