Authorizations
Path Parameters
Response
200 - application/vnd.api+json
Success
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.Plans.Get(ctx, "plan_m5xyZOnNOWM0l")
if err != nil {
log.Fatal(err)
}
if res.Plan != nil {
// handle response
}
}{
"data": {
"id": "plan_m5xyZOnNOWM0l",
"type": "plans",
"attributes": {
"slug": "g3-l40s-small-32",
"name": "g3.l40s.small-32",
"features": [],
"specs": {
"cpu": {
"type": "E-2276G",
"clock": 3.8,
"cores": 6,
"count": 1
},
"memory": {
"total": 32
},
"drives": [
{
"count": 1,
"size": "3.8TB",
"type": "SSD"
}
],
"nics": [
{
"count": 1,
"type": "10 Gbps"
}
],
"gpu": {
"count": 4,
"type": "NVIDIA H100"
}
},
"regions": [
{
"name": "Brazil",
"deploys_instantly": [],
"locations": {
"available": [
"SAO"
],
"in_stock": [
"SAO"
]
},
"stock_level": "medium",
"pricing": {
"USD": {
"hour": 10,
"month": 50,
"year": 100
},
"BRL": {
"hour": 53,
"month": 108.5,
"year": 205
}
}
}
]
}
},
"meta": {}
}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.Plans.Get(ctx, "plan_m5xyZOnNOWM0l")
if err != nil {
log.Fatal(err)
}
if res.Plan != nil {
// handle response
}
}{
"data": {
"id": "plan_m5xyZOnNOWM0l",
"type": "plans",
"attributes": {
"slug": "g3-l40s-small-32",
"name": "g3.l40s.small-32",
"features": [],
"specs": {
"cpu": {
"type": "E-2276G",
"clock": 3.8,
"cores": 6,
"count": 1
},
"memory": {
"total": 32
},
"drives": [
{
"count": 1,
"size": "3.8TB",
"type": "SSD"
}
],
"nics": [
{
"count": 1,
"type": "10 Gbps"
}
],
"gpu": {
"count": 4,
"type": "NVIDIA H100"
}
},
"regions": [
{
"name": "Brazil",
"deploys_instantly": [],
"locations": {
"available": [
"SAO"
],
"in_stock": [
"SAO"
]
},
"stock_level": "medium",
"pricing": {
"USD": {
"hour": 10,
"month": 50,
"year": 100
},
"BRL": {
"hour": 53,
"month": 108.5,
"year": 205
}
}
}
]
}
},
"meta": {}
}Success
Show child attributes
Was this page helpful?