dots.v2.registry.validateName.post()

Generated on 13 Nov 2026 from DoTs version v1.24.0

deprecated

Usage

client.v2.registry.validateName.post(body: Validate_registry, requestConfiguration?: RequestConfiguration<object>): Promise<void>

Description

Note: This endpoint is deprecated. Please use the /v2/registries endpoint instead.

To validate that a container registry name is available for use, send a POST request to /v2/registry/validate-name.

If the name is both formatted correctly and available, the response code will be 204 and contain no body. If the name is already in use, the response will be a 409 Conflict.

Parameters

name string required

Example: example

A globally unique name for the container registry. Must be lowercase and be composed only of numbers, letters and -, up to a limit of 63 characters.

Max length: 63

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);

await client.v2.registry.validateName.post({
    name: "example",
});

More Information

See /v2/registry/validate-name in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.