dots.v2.functions.namespaces.byNamespace_id().get()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.functions.namespaces.byNamespace_id(namespace_id).get(requestConfiguration?: RequestConfiguration<object>): Promise<undefined | WithNamespace_GetResponse>

Description

Gets the namespace details for the given namespace UUID. To get namespace details, send a GET request to /v2/functions/namespaces/{namespace_id} with no parameters.

Parameters

namespace_id string required

Example: fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

The ID of the namespace to be managed.

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.functions.namespaces
    .byNamespace_id("fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx").get();

Response Example

Show Response Example
{
  "namespace": {
    "api_host": "https://api_host.io",
    "namespace": "fn-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "created_at": "2022-09-14T04:16:45Z",
    "updated_at": "2022-09-14T04:16:45Z",
    "label": "my namespace",
    "region": "nyc1",
    "uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "key": "d1zcd455h01mqjfs4s2eaewyejehi5f2uj4etqq3h7cera8iwkub6xg5of1wdde2"
  }
}

More Information

See /v2/functions/namespaces/{namespace_id} 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.