dots.v2.nfs.snapshots.byNfs_snapshot_id().get()

Generated on 5 Nov 2026 from DoTs version v1.23.0

Usage

client.v2.nfs.snapshots.byNfs_snapshot_id(nfs_snapshot_id).get(requestConfiguration?: RequestConfiguration<WithNfs_snapshot_ItemRequestBuilderGetQueryParameters>): Promise<undefined | Nfs_snapshot_get_response>

Description

To get an NFS snapshot, send a GET request to /v2/nfs/snapshots/{nfs_snapshot_id}?region=${region}.

A successful request will return the NFS snapshot.

Parameters

Path Parameters

nfs_snapshot_id string required

Example: 0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d

The unique ID of the NFS snapshot

Query Parameters

region string optional

Example: atl1

The DigitalOcean region slug (e.g., nyc2, atl1) where the NFS share resides.

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.nfs.snapshots
    .byNfs_snapshot_id("0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d").get();

Response Example

Show Response Example
{
  "snapshot": {
    "id": "0a1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
    "name": "daily-backup",
    "size_gib": 1024,
    "region": "atl1",
    "status": "CREATING",
    "created_at": "2023-11-14T16:29:21Z",
    "share_id": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d"
  }
}

More Information

See /v2/nfs/snapshots/{nfs_snapshot_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.