Authorizations
Path Parameters
The Server ID
Response
200 - application/vnd.api+json
Success
package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"github.com/latitudesh/latitudesh-go-sdk/models/operations"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.Servers.UpdateDeployConfig(ctx, "sv_0L6WO141DPlXy", operations.UpdateServerDeployConfigServersRequestBody{
Type: operations.UpdateServerDeployConfigServersTypeDeployConfig,
})
if err != nil {
log.Fatal(err)
}
if res.DeployConfig != nil {
// handle response
}
}{
"data": {
"id": "sv_0L6WO141DPlXy",
"type": "deploy_config",
"attributes": {
"ssh_keys": [
"ssh_GKN4ydzgqVob3"
],
"user_data": "ud_5LA73qkjdaJ2o",
"raid": "raid-1",
"operating_system": "ubuntu_20_04_x64_lts",
"hostname": "my-hostname",
"ipxe_url": null,
"ipxe": null,
"partitions": [
{
"path": "/",
"size_in_gb": 300,
"filesystem_type": "ext4"
}
]
}
},
"meta": {}
}package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"github.com/latitudesh/latitudesh-go-sdk/models/operations"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.Servers.UpdateDeployConfig(ctx, "sv_0L6WO141DPlXy", operations.UpdateServerDeployConfigServersRequestBody{
Type: operations.UpdateServerDeployConfigServersTypeDeployConfig,
})
if err != nil {
log.Fatal(err)
}
if res.DeployConfig != nil {
// handle response
}
}{
"data": {
"id": "sv_0L6WO141DPlXy",
"type": "deploy_config",
"attributes": {
"ssh_keys": [
"ssh_GKN4ydzgqVob3"
],
"user_data": "ud_5LA73qkjdaJ2o",
"raid": "raid-1",
"operating_system": "ubuntu_20_04_x64_lts",
"hostname": "my-hostname",
"ipxe_url": null,
"ipxe": null,
"partitions": [
{
"path": "/",
"size_in_gb": 300,
"filesystem_type": "ext4"
}
]
}
},
"meta": {}
}The Server ID
Success
Show child attributes
Was this page helpful?