Skip to main content
GET
/
storage
/
volumes
Go (SDK)
package main

import(
	"context"
	"os"
	latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
	"log"
)

func main() {
    ctx := context.Background()

    s := latitudeshgosdk.New(
        latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
    )

    res, err := s.Storage.GetStorageVolumes(ctx, latitudeshgosdk.Pointer("proj_GnzRD5X6qM5yw"))
    if err != nil {
        log.Fatal(err)
    }
    if res.Object != nil {
        // handle response
    }
}
{
  "data": [
    {
      "id": "vol_RLYV8DZ2D5QoE",
      "type": "volumes",
      "attributes": {
        "name": "Enormous Wool Watch",
        "size_in_gb": 1500,
        "created_at": "2025-10-03T17:09:37.415Z",
        "namespace_id": null,
        "connector_id": "nqn.2001-07.com.ceph:1757602476548",
        "initiators": [
          {
            "nqn": "nqn.2014-08.org.nvmexpress:uuid:ae717767-c0fa-56f7-ab4b-5c426b0c553f"
          }
        ],
        "project": {
          "id": "proj_GnzRD5X6qM5yw",
          "name": "Heavy Duty Iron Shoes",
          "slug": "heavy-duty-iron-shoes",
          "description": "Sleek Wool Clock",
          "billing_type": "Normal",
          "billing_method": "Normal",
          "bandwidth_alert": false,
          "environment": null,
          "billing": {
            "subscription_id": null,
            "type": "Normal",
            "method": "Normal"
          },
          "stats": {
            "databases": 0,
            "ip_addresses": 0,
            "prefixes": 0,
            "servers": 0,
            "storages": 1,
            "virtual_machines": 0,
            "vlans": 0
          }
        },
        "team": {
          "id": "team_QnjVypy08mCW7amJPYj0hXGZgjjg",
          "name": "583 Team",
          "slug": "583-team",
          "description": "583 Team",
          "address": "69731 Lueilwitz Spurs, Aufderharmouth, MI 93262-2199",
          "status": "verified",
          "currency": {
            "id": "cur_AW6Q2D9lqKLpr",
            "code": "BRL",
            "name": "Brazilian Real",
            "currency_id": null
          }
        }
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

Query Parameters

filter[project]
string

The project ID or Slug to filter by

Response

200 - application/vnd.api+json

Success

data
object[]
I