File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
packages/clients/src/api/instance/v1 Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2101,6 +2101,7 @@ export const marshalUpdateServerRequest = (
2101
2101
) : Record < string , unknown > => ( {
2102
2102
boot_type : request . bootType ,
2103
2103
bootscript : request . bootscript ,
2104
+ commercial_type : request . commercialType ,
2104
2105
dynamic_ip_required : request . dynamicIpRequired ,
2105
2106
enable_ipv6 : request . enableIpv6 ,
2106
2107
name : request . name ,
Original file line number Diff line number Diff line change @@ -203,6 +203,18 @@ export type UpdateServerRequest = {
203
203
placementGroup ?: string | null
204
204
/** Instance private NICs. */
205
205
privateNics ?: PrivateNIC [ ]
206
+ /**
207
+ * Set the commercial_type for this Instance. Warning: This field has some
208
+ * restrictions:
209
+ *
210
+ * - Cannot be changed if the Instance is not in `stopped` state.
211
+ * - Cannot be changed if the Instance is in a placement group.
212
+ * - Local storage requirements of the target commercial_types must be fulfilled
213
+ * (i.e. if an Instance has 80GB of local storage, it can be changed into a
214
+ * GP1-XS, which has a maximum of 150GB, but it cannot be changed into a
215
+ * DEV1-S, which has only 20GB).
216
+ */
217
+ commercialType ?: string
206
218
}
207
219
208
220
export type SetImageRequest = {
You can’t perform that action at this time.
0 commit comments