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 = (
21012101) : Record < string , unknown > => ( {
21022102 boot_type : request . bootType ,
21032103 bootscript : request . bootscript ,
2104+ commercial_type : request . commercialType ,
21042105 dynamic_ip_required : request . dynamicIpRequired ,
21052106 enable_ipv6 : request . enableIpv6 ,
21062107 name : request . name ,
Original file line number Diff line number Diff line change @@ -203,6 +203,18 @@ export type UpdateServerRequest = {
203203 placementGroup ?: string | null
204204 /** Instance private NICs. */
205205 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
206218}
207219
208220export type SetImageRequest = {
You can’t perform that action at this time.
0 commit comments