Skip to content

Commit 62cc8b7

Browse files
docs(instance): fix terminate action documentation and remove b_ssd volumes documentation (scaleway#2598)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 6987cd4 commit 62cc8b7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

api/instance/v1/instance_sdk.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4627,11 +4627,11 @@ func (s *API) ListServerActions(req *ListServerActionsRequest, opts ...scw.Reque
46274627
// * `stop_in_place`: Stop the Instance, but keep the slot on the hypervisor.
46284628
// * `reboot`: Stop the instance and restart it.
46294629
// * `backup`: Create an image with all the volumes of an Instance.
4630-
// * `terminate`: Delete the Instance along with its attached volumes, except for SBS volumes.
4630+
// * `terminate`: Delete the Instance along with its attached local volumes.
46314631
// * `enable_routed_ip`: Migrate the Instance to the new network stack.
46324632
//
4633-
// The `terminate` action will result in the deletion of `l_ssd`, `b_ssd` and `scratch` volumes types, `sbs_volume` volumes type will only be detached.
4634-
// If you want to preserve your volumes, you should detach them before the Instance deletion or `terminate` action.
4633+
// The `terminate` action will result in the deletion of `l_ssd` and `scratch` volumes types, `sbs_volume` volumes will only be detached.
4634+
// If you want to preserve your `l_ssd` volumes, you should stop your Instance, detach the volumes to be preserved, then delete your Instance.
46354635
//
46364636
// The `backup` action can be done with:
46374637
// * No `volumes` key in the body: an image is created with snapshots of all the server volumes, except for the `scratch` volumes types.
@@ -5518,7 +5518,7 @@ func (s *API) GetVolume(req *GetVolumeRequest, opts ...scw.RequestOption) (*GetV
55185518
return &resp, nil
55195519
}
55205520

5521-
// UpdateVolume: Replace the name and/or size properties of a volume specified by its ID, with the specified value(s). Any volume name can be changed, however only `b_ssd` volumes can currently be increased in size.
5521+
// UpdateVolume: Replace the name and/or size properties of a volume specified by its ID, with the specified value(s).
55225522
func (s *API) UpdateVolume(req *UpdateVolumeRequest, opts ...scw.RequestOption) (*UpdateVolumeResponse, error) {
55235523
var err error
55245524

api/instance/v1/instance_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ func (s *API) WaitForServerFileSystem(req *WaitForServerFileSystemRequest, opts
421421
}
422422

423423
result, err := async.WaitSync(&async.WaitSyncConfig{
424-
Get: func() (interface{}, bool, error) {
424+
Get: func() (any, bool, error) {
425425
res, err := s.GetServer(&GetServerRequest{
426426
ServerID: req.ServerID,
427427
Zone: req.Zone,

0 commit comments

Comments
 (0)