-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Labels
documentationinstanceInstance issues, bugs and feature requestsInstance issues, bugs and feature requestspriority:mediumImprovements that are not the main priorityImprovements that are not the main priorityquestionFurther information is requestedFurther information is requested
Description
Hello folks, I'm trying to create a server from an existing snapshot with:
res, err := a.instance.CreateServer(&instance.CreateServerRequest{
Name: "my-name",
Volumes: map[string]*instance.VolumeServerTemplate{
"0": {
BaseSnapshot: "my-snapshot-uuid",
VolumeType: instance.VolumeVolumeTypeLSSD,
},
},
...
})It fails with:
scaleway-sdk-go: invalid argument(s): image does not respect constraint, required key not provided; volumes.0.base_snapshot does not respect constraint, extra keys not allowed; volumes.0.id does not respect constraint, required key not provided; volumes.0.volume_type does not respect constraint, not a valid value
I have two questions:
- It seems that the
Imagefield is required but I don't use an image since I'm using a snapshot to boot the instance so I'm not sure what to do with this. - In the
Volumesis there an expected key format ? I use0to match what I've seen in the API calls when creating an instance from a snapshot on the web console.
Thanks for any guidance :D
Metadata
Metadata
Assignees
Labels
documentationinstanceInstance issues, bugs and feature requestsInstance issues, bugs and feature requestspriority:mediumImprovements that are not the main priorityImprovements that are not the main priorityquestionFurther information is requestedFurther information is requested