Skip to content

Commit 95ba14a

Browse files
authored
docs(instance): add UpdateServer commercial_type documentation (#1775)
1 parent f98c34a commit 95ba14a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

api/instance/v1/instance_sdk.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,6 +2364,12 @@ type UpdateServerRequest struct {
23642364
PlacementGroup *NullableStringValue `json:"placement_group,omitempty"`
23652365
// PrivateNics: instance private NICs.
23662366
PrivateNics []*PrivateNIC `json:"private_nics,omitempty"`
2367+
// CommercialType: set the commercial_type for this Instance.
2368+
// Warning: This field has some restrictions:
2369+
// - Cannot be changed if the Instance is not in `stopped` state.
2370+
// - Cannot be changed if the Instance is in a placement group.
2371+
// - Local storage requirements of the target commercial_types must be fulfilled (i.e. if an Instance has 80GB of local storage, it can be changed into a GP1-XS, which has a maximum of 150GB, but it cannot be changed into a DEV1-S, which has only 20GB).
2372+
CommercialType *string `json:"commercial_type,omitempty"`
23672373
}
23682374

23692375
// updateServer: update an Instance.

0 commit comments

Comments
 (0)