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.GetStorageVolume(ctx, "vol_aKXgRdR3qv9k5")
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"data": {
"id": "vol_aKXgRdR3qv9k5",
"type": "volumes",
"attributes": {
"name": "Synergistic Concrete Shoes",
"size_in_gb": 1500,
"created_at": "2026-01-14T14:57:09.251Z",
"namespace_id": "1",
"connector_id": "nqn.2001-07.com.ceph:1757602476548",
"initiators": [
{
"nqn": "nqn.2014-08.org.nvmexpress:uuid:ae717767-c0fa-56f7-ab4b-5c426b0c553f"
}
],
"project": {
"id": "proj_5AEmq7XyDBkWX",
"name": "Sleek Wool Computer",
"slug": "sleek-wool-computer",
"description": "Awesome Marble Wallet",
"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_2KyxrrLkeRtKVLNKv5yNhMWXPnyw",
"name": "623 Team",
"slug": "623-team",
"description": "623 Team",
"address": "Apt. 955 6672 Otto Mountain, Phillipfurt, CA 84225",
"status": "verified",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
}
}
}
}
}Shows details of a specific volume storage.
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.GetStorageVolume(ctx, "vol_aKXgRdR3qv9k5")
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"data": {
"id": "vol_aKXgRdR3qv9k5",
"type": "volumes",
"attributes": {
"name": "Synergistic Concrete Shoes",
"size_in_gb": 1500,
"created_at": "2026-01-14T14:57:09.251Z",
"namespace_id": "1",
"connector_id": "nqn.2001-07.com.ceph:1757602476548",
"initiators": [
{
"nqn": "nqn.2014-08.org.nvmexpress:uuid:ae717767-c0fa-56f7-ab4b-5c426b0c553f"
}
],
"project": {
"id": "proj_5AEmq7XyDBkWX",
"name": "Sleek Wool Computer",
"slug": "sleek-wool-computer",
"description": "Awesome Marble Wallet",
"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_2KyxrrLkeRtKVLNKv5yNhMWXPnyw",
"name": "623 Team",
"slug": "623-team",
"description": "623 Team",
"address": "Apt. 955 6672 Otto Mountain, Phillipfurt, CA 84225",
"status": "verified",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
}
}
}
}
}Was this page helpful?