@scaleway/sdk-baremetal 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +191 -0
- package/dist/index.gen.cjs +6 -0
- package/dist/index.gen.d.ts +6 -0
- package/dist/index.gen.js +6 -0
- package/dist/v1/api.gen.cjs +590 -0
- package/dist/v1/api.gen.d.ts +279 -0
- package/dist/v1/api.gen.js +590 -0
- package/dist/v1/content.gen.cjs +19 -0
- package/dist/v1/content.gen.d.ts +7 -0
- package/dist/v1/content.gen.js +19 -0
- package/dist/v1/index.gen.cjs +43 -0
- package/dist/v1/index.gen.d.ts +5 -0
- package/dist/v1/index.gen.js +43 -0
- package/dist/v1/marshalling.gen.cjs +718 -0
- package/dist/v1/marshalling.gen.d.ts +33 -0
- package/dist/v1/marshalling.gen.js +718 -0
- package/dist/v1/types.gen.d.ts +1376 -0
- package/dist/v1/validation-rules.gen.cjs +116 -0
- package/dist/v1/validation-rules.gen.d.ts +104 -0
- package/dist/v1/validation-rules.gen.js +116 -0
- package/dist/v3/api.gen.cjs +99 -0
- package/dist/v3/api.gen.d.ts +41 -0
- package/dist/v3/api.gen.js +99 -0
- package/dist/v3/content.gen.cjs +4 -0
- package/dist/v3/content.gen.d.ts +3 -0
- package/dist/v3/content.gen.js +4 -0
- package/dist/v3/index.gen.cjs +12 -0
- package/dist/v3/index.gen.d.ts +4 -0
- package/dist/v3/index.gen.js +12 -0
- package/dist/v3/marshalling.gen.cjs +60 -0
- package/dist/v3/marshalling.gen.d.ts +7 -0
- package/dist/v3/marshalling.gen.js +60 -0
- package/dist/v3/types.gen.d.ts +132 -0
- package/package.json +51 -0
|
@@ -0,0 +1,1376 @@
|
|
|
1
|
+
import type { Money, Zone as ScwZone, TimeSeries } from '@scaleway/sdk-client';
|
|
2
|
+
export type IPReverseStatus = 'unknown' | 'pending' | 'active' | 'error';
|
|
3
|
+
export type IPVersion = 'IPv4' | 'IPv6';
|
|
4
|
+
export type ListServerEventsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
5
|
+
export type ListServerPrivateNetworksRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'updated_at_asc' | 'updated_at_desc';
|
|
6
|
+
export type ListServersRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
7
|
+
export type ListSettingsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
8
|
+
export type OfferStock = 'empty' | 'low' | 'available';
|
|
9
|
+
export type OfferSubscriptionPeriod = 'unknown_subscription_period' | 'hourly' | 'monthly';
|
|
10
|
+
export type SchemaFilesystemFormat = 'unknown_format' | 'fat32' | 'ext4' | 'swap' | 'zfs' | 'xfs';
|
|
11
|
+
export type SchemaPartitionLabel = 'unknown_partition_label' | 'uefi' | 'legacy' | 'root' | 'boot' | 'swap' | 'data' | 'home' | 'raid' | 'zfs';
|
|
12
|
+
export type SchemaPoolType = 'unknown_type' | 'no_raid' | 'mirror' | 'raidz1' | 'raidz2';
|
|
13
|
+
export type SchemaRAIDLevel = 'unknown_raid_level' | 'raid_level_0' | 'raid_level_1' | 'raid_level_5' | 'raid_level_6' | 'raid_level_10';
|
|
14
|
+
export type ServerBootType = 'unknown_boot_type' | 'normal' | 'rescue';
|
|
15
|
+
export type ServerInstallStatus = 'unknown' | 'to_install' | 'installing' | 'completed' | 'error';
|
|
16
|
+
export type ServerOptionOptionStatus = 'option_status_unknown' | 'option_status_enable' | 'option_status_enabling' | 'option_status_disabling' | 'option_status_error';
|
|
17
|
+
export type ServerPingStatus = 'ping_status_unknown' | 'ping_status_up' | 'ping_status_down';
|
|
18
|
+
export type ServerPrivateNetworkStatus = 'unknown' | 'attaching' | 'attached' | 'error' | 'detaching' | 'locked';
|
|
19
|
+
export type ServerStatus = 'unknown' | 'delivering' | 'ready' | 'stopping' | 'stopped' | 'starting' | 'error' | 'deleting' | 'locked' | 'out_of_stock' | 'ordered' | 'resetting' | 'migrating';
|
|
20
|
+
export type SettingType = 'unknown' | 'smtp';
|
|
21
|
+
export interface SchemaPartition {
|
|
22
|
+
label: SchemaPartitionLabel;
|
|
23
|
+
number: number;
|
|
24
|
+
size: number;
|
|
25
|
+
useAllAvailableSpace: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface SchemaPool {
|
|
28
|
+
name: string;
|
|
29
|
+
type: SchemaPoolType;
|
|
30
|
+
devices: string[];
|
|
31
|
+
options: string[];
|
|
32
|
+
filesystemOptions: string[];
|
|
33
|
+
}
|
|
34
|
+
export interface SchemaDisk {
|
|
35
|
+
device: string;
|
|
36
|
+
partitions: SchemaPartition[];
|
|
37
|
+
}
|
|
38
|
+
export interface SchemaFilesystem {
|
|
39
|
+
device: string;
|
|
40
|
+
format: SchemaFilesystemFormat;
|
|
41
|
+
mountpoint: string;
|
|
42
|
+
}
|
|
43
|
+
export interface SchemaRAID {
|
|
44
|
+
name: string;
|
|
45
|
+
level: SchemaRAIDLevel;
|
|
46
|
+
devices: string[];
|
|
47
|
+
}
|
|
48
|
+
export interface SchemaZFS {
|
|
49
|
+
pools: SchemaPool[];
|
|
50
|
+
}
|
|
51
|
+
export interface CertificationOption {
|
|
52
|
+
}
|
|
53
|
+
export interface LicenseOption {
|
|
54
|
+
osId: string;
|
|
55
|
+
}
|
|
56
|
+
export interface PrivateNetworkOption {
|
|
57
|
+
bandwidthInBps: number;
|
|
58
|
+
}
|
|
59
|
+
export interface PublicBandwidthOption {
|
|
60
|
+
bandwidthInBps: number;
|
|
61
|
+
}
|
|
62
|
+
export interface RemoteAccessOption {
|
|
63
|
+
}
|
|
64
|
+
export interface Schema {
|
|
65
|
+
disks: SchemaDisk[];
|
|
66
|
+
raids: SchemaRAID[];
|
|
67
|
+
filesystems: SchemaFilesystem[];
|
|
68
|
+
zfs?: SchemaZFS;
|
|
69
|
+
}
|
|
70
|
+
export interface OSOSField {
|
|
71
|
+
editable: boolean;
|
|
72
|
+
required: boolean;
|
|
73
|
+
defaultValue?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface CPU {
|
|
76
|
+
/**
|
|
77
|
+
* Name of the CPU.
|
|
78
|
+
*/
|
|
79
|
+
name: string;
|
|
80
|
+
/**
|
|
81
|
+
* Number of CPU cores.
|
|
82
|
+
*/
|
|
83
|
+
coreCount: number;
|
|
84
|
+
/**
|
|
85
|
+
* Number CPU threads.
|
|
86
|
+
*/
|
|
87
|
+
threadCount: number;
|
|
88
|
+
/**
|
|
89
|
+
* Frequency of the CPU in MHz.
|
|
90
|
+
*/
|
|
91
|
+
frequency: number;
|
|
92
|
+
/**
|
|
93
|
+
* Benchmark of the CPU.
|
|
94
|
+
*/
|
|
95
|
+
benchmark: string;
|
|
96
|
+
}
|
|
97
|
+
export interface Disk {
|
|
98
|
+
/**
|
|
99
|
+
* Capacity of the disk in bytes.
|
|
100
|
+
*/
|
|
101
|
+
capacity: number;
|
|
102
|
+
/**
|
|
103
|
+
* Type of the disk.
|
|
104
|
+
*/
|
|
105
|
+
type: string;
|
|
106
|
+
}
|
|
107
|
+
export interface GPU {
|
|
108
|
+
/**
|
|
109
|
+
* Name of the GPU.
|
|
110
|
+
*/
|
|
111
|
+
name: string;
|
|
112
|
+
/**
|
|
113
|
+
* Capacity of the vram in bytes.
|
|
114
|
+
*/
|
|
115
|
+
vram: number;
|
|
116
|
+
}
|
|
117
|
+
export interface Memory {
|
|
118
|
+
/**
|
|
119
|
+
* Capacity of the memory in bytes.
|
|
120
|
+
*/
|
|
121
|
+
capacity: number;
|
|
122
|
+
/**
|
|
123
|
+
* Type of the memory.
|
|
124
|
+
*/
|
|
125
|
+
type: string;
|
|
126
|
+
/**
|
|
127
|
+
* Frequency of the memory in MHz.
|
|
128
|
+
*/
|
|
129
|
+
frequency: number;
|
|
130
|
+
/**
|
|
131
|
+
* True if the memory is an error-correcting code memory.
|
|
132
|
+
*/
|
|
133
|
+
isEcc: boolean;
|
|
134
|
+
}
|
|
135
|
+
export interface OfferOptionOffer {
|
|
136
|
+
/**
|
|
137
|
+
* ID of the option.
|
|
138
|
+
*/
|
|
139
|
+
id: string;
|
|
140
|
+
/**
|
|
141
|
+
* Name of the option.
|
|
142
|
+
*/
|
|
143
|
+
name: string;
|
|
144
|
+
/**
|
|
145
|
+
* If true the option is enabled and included by default in the offer
|
|
146
|
+
If false the option is available for the offer but not included by default.
|
|
147
|
+
*/
|
|
148
|
+
enabled: boolean;
|
|
149
|
+
/**
|
|
150
|
+
* Period of subscription for the offer.
|
|
151
|
+
*/
|
|
152
|
+
subscriptionPeriod: OfferSubscriptionPeriod;
|
|
153
|
+
/**
|
|
154
|
+
* Price of the option.
|
|
155
|
+
*/
|
|
156
|
+
price?: Money;
|
|
157
|
+
/**
|
|
158
|
+
* Boolean to know if option could be managed.
|
|
159
|
+
*/
|
|
160
|
+
manageable: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* @deprecated Deprecated, use LicenseOptionVars.os_id instead.
|
|
163
|
+
*/
|
|
164
|
+
osId?: string;
|
|
165
|
+
/**
|
|
166
|
+
* License option, contains the ID of the OS linked to the option.
|
|
167
|
+
*
|
|
168
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
169
|
+
*/
|
|
170
|
+
license?: LicenseOption;
|
|
171
|
+
/**
|
|
172
|
+
* Public_bandwidth option, contains the bandwidth_in_bps.
|
|
173
|
+
*
|
|
174
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
175
|
+
*/
|
|
176
|
+
publicBandwidth?: PublicBandwidthOption;
|
|
177
|
+
/**
|
|
178
|
+
* Private_network option, contains the bandwidth_in_bps.
|
|
179
|
+
*
|
|
180
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
181
|
+
*/
|
|
182
|
+
privateNetwork?: PrivateNetworkOption;
|
|
183
|
+
/**
|
|
184
|
+
* Remote_access option.
|
|
185
|
+
*
|
|
186
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
187
|
+
*/
|
|
188
|
+
remoteAccess?: RemoteAccessOption;
|
|
189
|
+
/**
|
|
190
|
+
* Certification option.
|
|
191
|
+
*
|
|
192
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
193
|
+
*/
|
|
194
|
+
certification?: CertificationOption;
|
|
195
|
+
}
|
|
196
|
+
export interface PersistentMemory {
|
|
197
|
+
/**
|
|
198
|
+
* Capacity of the memory in bytes.
|
|
199
|
+
*/
|
|
200
|
+
capacity: number;
|
|
201
|
+
/**
|
|
202
|
+
* Type of the memory.
|
|
203
|
+
*/
|
|
204
|
+
type: string;
|
|
205
|
+
/**
|
|
206
|
+
* Frequency of the memory in MHz.
|
|
207
|
+
*/
|
|
208
|
+
frequency: number;
|
|
209
|
+
}
|
|
210
|
+
export interface RaidController {
|
|
211
|
+
model: string;
|
|
212
|
+
raidLevel: string[];
|
|
213
|
+
}
|
|
214
|
+
export interface IP {
|
|
215
|
+
/**
|
|
216
|
+
* ID of the IP.
|
|
217
|
+
*/
|
|
218
|
+
id: string;
|
|
219
|
+
/**
|
|
220
|
+
* Address of the IP.
|
|
221
|
+
*/
|
|
222
|
+
address: string;
|
|
223
|
+
/**
|
|
224
|
+
* Reverse IP value.
|
|
225
|
+
*/
|
|
226
|
+
reverse: string;
|
|
227
|
+
/**
|
|
228
|
+
* Version of IP (v4 or v6).
|
|
229
|
+
*/
|
|
230
|
+
version: IPVersion;
|
|
231
|
+
/**
|
|
232
|
+
* Status of the reverse.
|
|
233
|
+
*/
|
|
234
|
+
reverseStatus: IPReverseStatus;
|
|
235
|
+
/**
|
|
236
|
+
* A message related to the reverse status, e.g. in case of an error.
|
|
237
|
+
*/
|
|
238
|
+
reverseStatusMessage: string;
|
|
239
|
+
}
|
|
240
|
+
export interface ServerInstall {
|
|
241
|
+
/**
|
|
242
|
+
* ID of the OS.
|
|
243
|
+
*/
|
|
244
|
+
osId: string;
|
|
245
|
+
/**
|
|
246
|
+
* Host defined during the server installation.
|
|
247
|
+
*/
|
|
248
|
+
hostname: string;
|
|
249
|
+
/**
|
|
250
|
+
* SSH public key IDs defined during server installation.
|
|
251
|
+
*/
|
|
252
|
+
sshKeyIds: string[];
|
|
253
|
+
/**
|
|
254
|
+
* Status of the server installation.
|
|
255
|
+
*/
|
|
256
|
+
status: ServerInstallStatus;
|
|
257
|
+
/**
|
|
258
|
+
* User defined in the server installation, or the default user if none were specified.
|
|
259
|
+
*/
|
|
260
|
+
user: string;
|
|
261
|
+
/**
|
|
262
|
+
* Service user defined in the server installation, or the default user if none were specified.
|
|
263
|
+
*/
|
|
264
|
+
serviceUser: string;
|
|
265
|
+
/**
|
|
266
|
+
* Address of the installed service.
|
|
267
|
+
*/
|
|
268
|
+
serviceUrl: string;
|
|
269
|
+
/**
|
|
270
|
+
* Partitioning schema.
|
|
271
|
+
*/
|
|
272
|
+
partitioningSchema?: Schema;
|
|
273
|
+
}
|
|
274
|
+
export interface ServerOption {
|
|
275
|
+
/**
|
|
276
|
+
* ID of the option.
|
|
277
|
+
*/
|
|
278
|
+
id: string;
|
|
279
|
+
/**
|
|
280
|
+
* Name of the option.
|
|
281
|
+
*/
|
|
282
|
+
name: string;
|
|
283
|
+
/**
|
|
284
|
+
* Status of the option on this server.
|
|
285
|
+
*/
|
|
286
|
+
status: ServerOptionOptionStatus;
|
|
287
|
+
/**
|
|
288
|
+
* Defines whether the option can be managed (added or removed).
|
|
289
|
+
*/
|
|
290
|
+
manageable: boolean;
|
|
291
|
+
/**
|
|
292
|
+
* Auto expiration date for compatible options.
|
|
293
|
+
*/
|
|
294
|
+
expiresAt?: Date;
|
|
295
|
+
/**
|
|
296
|
+
* License option, contains the ID of the OS linked to the option.
|
|
297
|
+
*
|
|
298
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
299
|
+
*/
|
|
300
|
+
license?: LicenseOption;
|
|
301
|
+
/**
|
|
302
|
+
* Public_bandwidth option, contains the bandwidth_in_bps.
|
|
303
|
+
*
|
|
304
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
305
|
+
*/
|
|
306
|
+
publicBandwidth?: PublicBandwidthOption;
|
|
307
|
+
/**
|
|
308
|
+
* Private_network option, contains the bandwidth_in_bps.
|
|
309
|
+
*
|
|
310
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
311
|
+
*/
|
|
312
|
+
privateNetwork?: PrivateNetworkOption;
|
|
313
|
+
/**
|
|
314
|
+
* Remote_access option.
|
|
315
|
+
*
|
|
316
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
317
|
+
*/
|
|
318
|
+
remoteAccess?: RemoteAccessOption;
|
|
319
|
+
/**
|
|
320
|
+
* Certification option.
|
|
321
|
+
*
|
|
322
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
323
|
+
*/
|
|
324
|
+
certification?: CertificationOption;
|
|
325
|
+
}
|
|
326
|
+
export interface ServerRescueServer {
|
|
327
|
+
/**
|
|
328
|
+
* Rescue user name.
|
|
329
|
+
*/
|
|
330
|
+
user: string;
|
|
331
|
+
/**
|
|
332
|
+
* Rescue password.
|
|
333
|
+
*/
|
|
334
|
+
password: string;
|
|
335
|
+
}
|
|
336
|
+
export interface CreateServerRequestInstall {
|
|
337
|
+
/**
|
|
338
|
+
* ID of the OS to installation on the server.
|
|
339
|
+
*/
|
|
340
|
+
osId: string;
|
|
341
|
+
/**
|
|
342
|
+
* Hostname of the server.
|
|
343
|
+
*/
|
|
344
|
+
hostname: string;
|
|
345
|
+
/**
|
|
346
|
+
* SSH key IDs authorized on the server.
|
|
347
|
+
*/
|
|
348
|
+
sshKeyIds: string[];
|
|
349
|
+
/**
|
|
350
|
+
* User for the installation.
|
|
351
|
+
*/
|
|
352
|
+
user?: string;
|
|
353
|
+
/**
|
|
354
|
+
* Password for the installation.
|
|
355
|
+
*/
|
|
356
|
+
password?: string;
|
|
357
|
+
/**
|
|
358
|
+
* Regular user that runs the service to be installed on the server.
|
|
359
|
+
*/
|
|
360
|
+
serviceUser?: string;
|
|
361
|
+
/**
|
|
362
|
+
* Password used for the service to install.
|
|
363
|
+
*/
|
|
364
|
+
servicePassword?: string;
|
|
365
|
+
/**
|
|
366
|
+
* Partitioning schema.
|
|
367
|
+
*/
|
|
368
|
+
partitioningSchema?: Schema;
|
|
369
|
+
}
|
|
370
|
+
export interface OS {
|
|
371
|
+
/**
|
|
372
|
+
* ID of the OS.
|
|
373
|
+
*/
|
|
374
|
+
id: string;
|
|
375
|
+
/**
|
|
376
|
+
* Name of the OS.
|
|
377
|
+
*/
|
|
378
|
+
name: string;
|
|
379
|
+
/**
|
|
380
|
+
* Version of the OS.
|
|
381
|
+
*/
|
|
382
|
+
version: string;
|
|
383
|
+
/**
|
|
384
|
+
* URL of this OS's logo.
|
|
385
|
+
*/
|
|
386
|
+
logoUrl: string;
|
|
387
|
+
/**
|
|
388
|
+
* Object defining the SSH requirements to install the OS.
|
|
389
|
+
*/
|
|
390
|
+
ssh?: OSOSField;
|
|
391
|
+
/**
|
|
392
|
+
* Object defining the username requirements to install the OS.
|
|
393
|
+
*/
|
|
394
|
+
user?: OSOSField;
|
|
395
|
+
/**
|
|
396
|
+
* Object defining the password requirements to install the OS.
|
|
397
|
+
*/
|
|
398
|
+
password?: OSOSField;
|
|
399
|
+
/**
|
|
400
|
+
* Object defining the username requirements to install the service.
|
|
401
|
+
*/
|
|
402
|
+
serviceUser?: OSOSField;
|
|
403
|
+
/**
|
|
404
|
+
* Object defining the password requirements to install the service.
|
|
405
|
+
*/
|
|
406
|
+
servicePassword?: OSOSField;
|
|
407
|
+
/**
|
|
408
|
+
* Defines if the operating system is enabled or not.
|
|
409
|
+
*/
|
|
410
|
+
enabled: boolean;
|
|
411
|
+
/**
|
|
412
|
+
* License required (check server options for pricing details).
|
|
413
|
+
*/
|
|
414
|
+
licenseRequired: boolean;
|
|
415
|
+
/**
|
|
416
|
+
* Defines if a specific Organization is allowed to install this OS type.
|
|
417
|
+
*/
|
|
418
|
+
allowed: boolean;
|
|
419
|
+
/**
|
|
420
|
+
* Defines if custom partitioning is supported by this OS.
|
|
421
|
+
*/
|
|
422
|
+
customPartitioningSupported: boolean;
|
|
423
|
+
}
|
|
424
|
+
export interface Offer {
|
|
425
|
+
/**
|
|
426
|
+
* ID of the offer.
|
|
427
|
+
*/
|
|
428
|
+
id: string;
|
|
429
|
+
/**
|
|
430
|
+
* Name of the offer.
|
|
431
|
+
*/
|
|
432
|
+
name: string;
|
|
433
|
+
/**
|
|
434
|
+
* Stock level.
|
|
435
|
+
*/
|
|
436
|
+
stock: OfferStock;
|
|
437
|
+
/**
|
|
438
|
+
* Public bandwidth available (in bits/s) with the offer.
|
|
439
|
+
*/
|
|
440
|
+
bandwidth: number;
|
|
441
|
+
/**
|
|
442
|
+
* Maximum public bandwidth available (in bits/s) depending on available options.
|
|
443
|
+
*/
|
|
444
|
+
maxBandwidth: number;
|
|
445
|
+
/**
|
|
446
|
+
* Commercial range of the offer.
|
|
447
|
+
*/
|
|
448
|
+
commercialRange: string;
|
|
449
|
+
/**
|
|
450
|
+
* Price of the offer for the next 60 minutes (a server order at 11h32 will be paid until 12h32).
|
|
451
|
+
*/
|
|
452
|
+
pricePerHour?: Money;
|
|
453
|
+
/**
|
|
454
|
+
* Monthly price of the offer, if subscribing on a monthly basis.
|
|
455
|
+
*/
|
|
456
|
+
pricePerMonth?: Money;
|
|
457
|
+
/**
|
|
458
|
+
* Disks specifications of the offer.
|
|
459
|
+
*/
|
|
460
|
+
disks: Disk[];
|
|
461
|
+
/**
|
|
462
|
+
* Defines whether the offer is currently available.
|
|
463
|
+
*/
|
|
464
|
+
enable: boolean;
|
|
465
|
+
/**
|
|
466
|
+
* CPU specifications of the offer.
|
|
467
|
+
*/
|
|
468
|
+
cpus: CPU[];
|
|
469
|
+
/**
|
|
470
|
+
* Memory specifications of the offer.
|
|
471
|
+
*/
|
|
472
|
+
memories: Memory[];
|
|
473
|
+
/**
|
|
474
|
+
* Name of the quota associated to the offer.
|
|
475
|
+
*/
|
|
476
|
+
quotaName: string;
|
|
477
|
+
/**
|
|
478
|
+
* Persistent memory specifications of the offer.
|
|
479
|
+
*/
|
|
480
|
+
persistentMemories: PersistentMemory[];
|
|
481
|
+
/**
|
|
482
|
+
* Raid controller specifications of the offer.
|
|
483
|
+
*/
|
|
484
|
+
raidControllers: RaidController[];
|
|
485
|
+
/**
|
|
486
|
+
* Array of OS images IDs incompatible with the server.
|
|
487
|
+
*/
|
|
488
|
+
incompatibleOsIds: string[];
|
|
489
|
+
/**
|
|
490
|
+
* Period of subscription for the offer.
|
|
491
|
+
*/
|
|
492
|
+
subscriptionPeriod: OfferSubscriptionPeriod;
|
|
493
|
+
/**
|
|
494
|
+
* Operation path of the service.
|
|
495
|
+
*/
|
|
496
|
+
operationPath: string;
|
|
497
|
+
/**
|
|
498
|
+
* One time fee invoiced by Scaleway for the setup and activation of the server.
|
|
499
|
+
*/
|
|
500
|
+
fee?: Money;
|
|
501
|
+
/**
|
|
502
|
+
* Available options for customization of the server.
|
|
503
|
+
*/
|
|
504
|
+
options: OfferOptionOffer[];
|
|
505
|
+
/**
|
|
506
|
+
* Private bandwidth available in bits/s with the offer.
|
|
507
|
+
*/
|
|
508
|
+
privateBandwidth: number;
|
|
509
|
+
/**
|
|
510
|
+
* Defines whether the offer's bandwidth is shared or not.
|
|
511
|
+
*/
|
|
512
|
+
sharedBandwidth: boolean;
|
|
513
|
+
/**
|
|
514
|
+
* Array of tags attached to the offer.
|
|
515
|
+
*/
|
|
516
|
+
tags: string[];
|
|
517
|
+
/**
|
|
518
|
+
* GPU specifications of the offer.
|
|
519
|
+
*/
|
|
520
|
+
gpus: GPU[];
|
|
521
|
+
/**
|
|
522
|
+
* Exist only for hourly offers, to migrate to the monthly offer.
|
|
523
|
+
*/
|
|
524
|
+
monthlyOfferId?: string;
|
|
525
|
+
}
|
|
526
|
+
export interface Option {
|
|
527
|
+
/**
|
|
528
|
+
* ID of the option.
|
|
529
|
+
*/
|
|
530
|
+
id: string;
|
|
531
|
+
/**
|
|
532
|
+
* Name of the option.
|
|
533
|
+
*/
|
|
534
|
+
name: string;
|
|
535
|
+
/**
|
|
536
|
+
* Defines whether the option is manageable (could be added or removed).
|
|
537
|
+
*/
|
|
538
|
+
manageable: boolean;
|
|
539
|
+
/**
|
|
540
|
+
* License option, contains the ID of the OS linked to the option.
|
|
541
|
+
*
|
|
542
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
543
|
+
*/
|
|
544
|
+
license?: LicenseOption;
|
|
545
|
+
/**
|
|
546
|
+
* Public_bandwidth option, contains the bandwidth_in_bps.
|
|
547
|
+
*
|
|
548
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
549
|
+
*/
|
|
550
|
+
publicBandwidth?: PublicBandwidthOption;
|
|
551
|
+
/**
|
|
552
|
+
* Private_network option, contains the bandwidth_in_bps.
|
|
553
|
+
*
|
|
554
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
555
|
+
*/
|
|
556
|
+
privateNetwork?: PrivateNetworkOption;
|
|
557
|
+
/**
|
|
558
|
+
* Remote_access option.
|
|
559
|
+
*
|
|
560
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
561
|
+
*/
|
|
562
|
+
remoteAccess?: RemoteAccessOption;
|
|
563
|
+
/**
|
|
564
|
+
* Certification option.
|
|
565
|
+
*
|
|
566
|
+
* One-of ('option'): at most one of 'license', 'publicBandwidth', 'privateNetwork', 'remoteAccess', 'certification' could be set.
|
|
567
|
+
*/
|
|
568
|
+
certification?: CertificationOption;
|
|
569
|
+
}
|
|
570
|
+
export interface ServerEvent {
|
|
571
|
+
/**
|
|
572
|
+
* ID of the server to which the action will be applied.
|
|
573
|
+
*/
|
|
574
|
+
id: string;
|
|
575
|
+
/**
|
|
576
|
+
* The action that will be applied to the server.
|
|
577
|
+
*/
|
|
578
|
+
action: string;
|
|
579
|
+
/**
|
|
580
|
+
* Date of last modification of the action.
|
|
581
|
+
*/
|
|
582
|
+
updatedAt?: Date;
|
|
583
|
+
/**
|
|
584
|
+
* Date of creation of the action.
|
|
585
|
+
*/
|
|
586
|
+
createdAt?: Date;
|
|
587
|
+
}
|
|
588
|
+
export interface ServerPrivateNetwork {
|
|
589
|
+
/**
|
|
590
|
+
* The Private Network ID.
|
|
591
|
+
*/
|
|
592
|
+
id: string;
|
|
593
|
+
/**
|
|
594
|
+
* The Private Network Project ID.
|
|
595
|
+
*/
|
|
596
|
+
projectId: string;
|
|
597
|
+
/**
|
|
598
|
+
* The server ID.
|
|
599
|
+
*/
|
|
600
|
+
serverId: string;
|
|
601
|
+
/**
|
|
602
|
+
* The Private Network ID.
|
|
603
|
+
*/
|
|
604
|
+
privateNetworkId: string;
|
|
605
|
+
/**
|
|
606
|
+
* The VLAN ID associated to the Private Network.
|
|
607
|
+
*/
|
|
608
|
+
vlan?: number;
|
|
609
|
+
/**
|
|
610
|
+
* The configuration status of the Private Network.
|
|
611
|
+
*/
|
|
612
|
+
status: ServerPrivateNetworkStatus;
|
|
613
|
+
/**
|
|
614
|
+
* The Private Network creation date.
|
|
615
|
+
*/
|
|
616
|
+
createdAt?: Date;
|
|
617
|
+
/**
|
|
618
|
+
* The date the Private Network was last modified.
|
|
619
|
+
*/
|
|
620
|
+
updatedAt?: Date;
|
|
621
|
+
}
|
|
622
|
+
export interface Server {
|
|
623
|
+
/**
|
|
624
|
+
* ID of the server.
|
|
625
|
+
*/
|
|
626
|
+
id: string;
|
|
627
|
+
/**
|
|
628
|
+
* Organization ID the server is attached to.
|
|
629
|
+
*/
|
|
630
|
+
organizationId: string;
|
|
631
|
+
/**
|
|
632
|
+
* Project ID the server is attached to.
|
|
633
|
+
*/
|
|
634
|
+
projectId: string;
|
|
635
|
+
/**
|
|
636
|
+
* Name of the server.
|
|
637
|
+
*/
|
|
638
|
+
name: string;
|
|
639
|
+
/**
|
|
640
|
+
* Description of the server.
|
|
641
|
+
*/
|
|
642
|
+
description: string;
|
|
643
|
+
/**
|
|
644
|
+
* Last modification date of the server.
|
|
645
|
+
*/
|
|
646
|
+
updatedAt?: Date;
|
|
647
|
+
/**
|
|
648
|
+
* Creation date of the server.
|
|
649
|
+
*/
|
|
650
|
+
createdAt?: Date;
|
|
651
|
+
/**
|
|
652
|
+
* Status of the server.
|
|
653
|
+
*/
|
|
654
|
+
status: ServerStatus;
|
|
655
|
+
/**
|
|
656
|
+
* Offer ID of the server.
|
|
657
|
+
*/
|
|
658
|
+
offerId: string;
|
|
659
|
+
/**
|
|
660
|
+
* Offer name of the server.
|
|
661
|
+
*/
|
|
662
|
+
offerName: string;
|
|
663
|
+
/**
|
|
664
|
+
* Array of custom tags attached to the server.
|
|
665
|
+
*/
|
|
666
|
+
tags: string[];
|
|
667
|
+
/**
|
|
668
|
+
* Array of IPs attached to the server.
|
|
669
|
+
*/
|
|
670
|
+
ips: IP[];
|
|
671
|
+
/**
|
|
672
|
+
* Domain of the server.
|
|
673
|
+
*/
|
|
674
|
+
domain: string;
|
|
675
|
+
/**
|
|
676
|
+
* Boot type of the server.
|
|
677
|
+
*/
|
|
678
|
+
bootType: ServerBootType;
|
|
679
|
+
/**
|
|
680
|
+
* Zone in which is the server located.
|
|
681
|
+
*/
|
|
682
|
+
zone: ScwZone;
|
|
683
|
+
/**
|
|
684
|
+
* Configuration of the installation.
|
|
685
|
+
*/
|
|
686
|
+
install?: ServerInstall;
|
|
687
|
+
/**
|
|
688
|
+
* Status of server ping.
|
|
689
|
+
*/
|
|
690
|
+
pingStatus: ServerPingStatus;
|
|
691
|
+
/**
|
|
692
|
+
* Options enabled on the server.
|
|
693
|
+
*/
|
|
694
|
+
options: ServerOption[];
|
|
695
|
+
/**
|
|
696
|
+
* Configuration of rescue boot.
|
|
697
|
+
*/
|
|
698
|
+
rescueServer?: ServerRescueServer;
|
|
699
|
+
}
|
|
700
|
+
export interface Setting {
|
|
701
|
+
/**
|
|
702
|
+
* ID of the setting.
|
|
703
|
+
*/
|
|
704
|
+
id: string;
|
|
705
|
+
/**
|
|
706
|
+
* Type of the setting.
|
|
707
|
+
*/
|
|
708
|
+
type: SettingType;
|
|
709
|
+
/**
|
|
710
|
+
* ID of the Project ID.
|
|
711
|
+
*/
|
|
712
|
+
projectId: string;
|
|
713
|
+
/**
|
|
714
|
+
* Defines whether the setting is enabled.
|
|
715
|
+
*/
|
|
716
|
+
enabled: boolean;
|
|
717
|
+
}
|
|
718
|
+
export type AddOptionServerRequest = {
|
|
719
|
+
/**
|
|
720
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
721
|
+
*/
|
|
722
|
+
zone?: ScwZone;
|
|
723
|
+
/**
|
|
724
|
+
* ID of the server.
|
|
725
|
+
*/
|
|
726
|
+
serverId: string;
|
|
727
|
+
/**
|
|
728
|
+
* ID of the option to add.
|
|
729
|
+
*/
|
|
730
|
+
optionId: string;
|
|
731
|
+
/**
|
|
732
|
+
* Auto expire the option after this date.
|
|
733
|
+
*/
|
|
734
|
+
expiresAt?: Date;
|
|
735
|
+
};
|
|
736
|
+
export interface BMCAccess {
|
|
737
|
+
/**
|
|
738
|
+
* URL to access to the server console.
|
|
739
|
+
*/
|
|
740
|
+
url: string;
|
|
741
|
+
/**
|
|
742
|
+
* The login to use for the BMC (Baseboard Management Controller) access authentification.
|
|
743
|
+
*/
|
|
744
|
+
login: string;
|
|
745
|
+
/**
|
|
746
|
+
* The password to use for the BMC (Baseboard Management Controller) access authentification.
|
|
747
|
+
*/
|
|
748
|
+
password: string;
|
|
749
|
+
/**
|
|
750
|
+
* The date after which the BMC (Baseboard Management Controller) access will be closed.
|
|
751
|
+
*/
|
|
752
|
+
expiresAt?: Date;
|
|
753
|
+
}
|
|
754
|
+
export type CreateServerRequest = {
|
|
755
|
+
/**
|
|
756
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
757
|
+
*/
|
|
758
|
+
zone?: ScwZone;
|
|
759
|
+
/**
|
|
760
|
+
* Offer ID of the new server.
|
|
761
|
+
*/
|
|
762
|
+
offerId: string;
|
|
763
|
+
/**
|
|
764
|
+
* @deprecated Organization ID with which the server will be created.
|
|
765
|
+
*
|
|
766
|
+
* One-of ('projectIdentifier'): at most one of 'projectId', 'organizationId' could be set.
|
|
767
|
+
*/
|
|
768
|
+
organizationId?: string;
|
|
769
|
+
/**
|
|
770
|
+
* Project ID with which the server will be created.
|
|
771
|
+
*
|
|
772
|
+
* One-of ('projectIdentifier'): at most one of 'projectId', 'organizationId' could be set.
|
|
773
|
+
*/
|
|
774
|
+
projectId?: string;
|
|
775
|
+
/**
|
|
776
|
+
* Name of the server (≠hostname).
|
|
777
|
+
*/
|
|
778
|
+
name: string;
|
|
779
|
+
/**
|
|
780
|
+
* Description associated with the server, max 255 characters.
|
|
781
|
+
*/
|
|
782
|
+
description: string;
|
|
783
|
+
/**
|
|
784
|
+
* Tags to associate to the server.
|
|
785
|
+
*/
|
|
786
|
+
tags?: string[];
|
|
787
|
+
/**
|
|
788
|
+
* Object describing the configuration details of the OS installation on the server.
|
|
789
|
+
*/
|
|
790
|
+
install?: CreateServerRequestInstall;
|
|
791
|
+
/**
|
|
792
|
+
* IDs of options to enable on server.
|
|
793
|
+
*/
|
|
794
|
+
optionIds?: string[];
|
|
795
|
+
};
|
|
796
|
+
export type DeleteOptionServerRequest = {
|
|
797
|
+
/**
|
|
798
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
799
|
+
*/
|
|
800
|
+
zone?: ScwZone;
|
|
801
|
+
/**
|
|
802
|
+
* ID of the server.
|
|
803
|
+
*/
|
|
804
|
+
serverId: string;
|
|
805
|
+
/**
|
|
806
|
+
* ID of the option to delete.
|
|
807
|
+
*/
|
|
808
|
+
optionId: string;
|
|
809
|
+
};
|
|
810
|
+
export type DeleteServerRequest = {
|
|
811
|
+
/**
|
|
812
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
813
|
+
*/
|
|
814
|
+
zone?: ScwZone;
|
|
815
|
+
/**
|
|
816
|
+
* ID of the server to delete.
|
|
817
|
+
*/
|
|
818
|
+
serverId: string;
|
|
819
|
+
};
|
|
820
|
+
export type GetBMCAccessRequest = {
|
|
821
|
+
/**
|
|
822
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
823
|
+
*/
|
|
824
|
+
zone?: ScwZone;
|
|
825
|
+
/**
|
|
826
|
+
* ID of the server.
|
|
827
|
+
*/
|
|
828
|
+
serverId: string;
|
|
829
|
+
};
|
|
830
|
+
export type GetDefaultPartitioningSchemaRequest = {
|
|
831
|
+
/**
|
|
832
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
833
|
+
*/
|
|
834
|
+
zone?: ScwZone;
|
|
835
|
+
/**
|
|
836
|
+
* ID of the offer.
|
|
837
|
+
*/
|
|
838
|
+
offerId: string;
|
|
839
|
+
/**
|
|
840
|
+
* ID of the OS.
|
|
841
|
+
*/
|
|
842
|
+
osId: string;
|
|
843
|
+
};
|
|
844
|
+
export type GetOSRequest = {
|
|
845
|
+
/**
|
|
846
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
847
|
+
*/
|
|
848
|
+
zone?: ScwZone;
|
|
849
|
+
/**
|
|
850
|
+
* ID of the OS.
|
|
851
|
+
*/
|
|
852
|
+
osId: string;
|
|
853
|
+
};
|
|
854
|
+
export type GetOfferRequest = {
|
|
855
|
+
/**
|
|
856
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
857
|
+
*/
|
|
858
|
+
zone?: ScwZone;
|
|
859
|
+
/**
|
|
860
|
+
* ID of the researched Offer.
|
|
861
|
+
*/
|
|
862
|
+
offerId: string;
|
|
863
|
+
};
|
|
864
|
+
export type GetOptionRequest = {
|
|
865
|
+
/**
|
|
866
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
867
|
+
*/
|
|
868
|
+
zone?: ScwZone;
|
|
869
|
+
/**
|
|
870
|
+
* ID of the option.
|
|
871
|
+
*/
|
|
872
|
+
optionId: string;
|
|
873
|
+
};
|
|
874
|
+
export type GetServerMetricsRequest = {
|
|
875
|
+
/**
|
|
876
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
877
|
+
*/
|
|
878
|
+
zone?: ScwZone;
|
|
879
|
+
/**
|
|
880
|
+
* Server ID to get the metrics.
|
|
881
|
+
*/
|
|
882
|
+
serverId: string;
|
|
883
|
+
};
|
|
884
|
+
export interface GetServerMetricsResponse {
|
|
885
|
+
/**
|
|
886
|
+
* Timeseries object representing pings on the server.
|
|
887
|
+
*/
|
|
888
|
+
pings?: TimeSeries;
|
|
889
|
+
}
|
|
890
|
+
export type GetServerRequest = {
|
|
891
|
+
/**
|
|
892
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
893
|
+
*/
|
|
894
|
+
zone?: ScwZone;
|
|
895
|
+
/**
|
|
896
|
+
* ID of the server.
|
|
897
|
+
*/
|
|
898
|
+
serverId: string;
|
|
899
|
+
};
|
|
900
|
+
export type InstallServerRequest = {
|
|
901
|
+
/**
|
|
902
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
903
|
+
*/
|
|
904
|
+
zone?: ScwZone;
|
|
905
|
+
/**
|
|
906
|
+
* Server ID to install.
|
|
907
|
+
*/
|
|
908
|
+
serverId: string;
|
|
909
|
+
/**
|
|
910
|
+
* ID of the OS to installation on the server.
|
|
911
|
+
*/
|
|
912
|
+
osId: string;
|
|
913
|
+
/**
|
|
914
|
+
* Hostname of the server.
|
|
915
|
+
*/
|
|
916
|
+
hostname: string;
|
|
917
|
+
/**
|
|
918
|
+
* SSH key IDs authorized on the server.
|
|
919
|
+
*/
|
|
920
|
+
sshKeyIds: string[];
|
|
921
|
+
/**
|
|
922
|
+
* User used for the installation.
|
|
923
|
+
*/
|
|
924
|
+
user?: string;
|
|
925
|
+
/**
|
|
926
|
+
* Password used for the installation.
|
|
927
|
+
*/
|
|
928
|
+
password?: string;
|
|
929
|
+
/**
|
|
930
|
+
* User used for the service to install.
|
|
931
|
+
*/
|
|
932
|
+
serviceUser?: string;
|
|
933
|
+
/**
|
|
934
|
+
* Password used for the service to install.
|
|
935
|
+
*/
|
|
936
|
+
servicePassword?: string;
|
|
937
|
+
/**
|
|
938
|
+
* Partitioning schema.
|
|
939
|
+
*/
|
|
940
|
+
partitioningSchema?: Schema;
|
|
941
|
+
};
|
|
942
|
+
export type ListOSRequest = {
|
|
943
|
+
/**
|
|
944
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
945
|
+
*/
|
|
946
|
+
zone?: ScwZone;
|
|
947
|
+
/**
|
|
948
|
+
* Page number.
|
|
949
|
+
*/
|
|
950
|
+
page?: number;
|
|
951
|
+
/**
|
|
952
|
+
* Number of OS per page.
|
|
953
|
+
*/
|
|
954
|
+
pageSize?: number;
|
|
955
|
+
/**
|
|
956
|
+
* Offer IDs to filter OSes for.
|
|
957
|
+
*/
|
|
958
|
+
offerId?: string;
|
|
959
|
+
};
|
|
960
|
+
export interface ListOSResponse {
|
|
961
|
+
/**
|
|
962
|
+
* Total count of matching OS.
|
|
963
|
+
*/
|
|
964
|
+
totalCount: number;
|
|
965
|
+
/**
|
|
966
|
+
* OS that match filters.
|
|
967
|
+
*/
|
|
968
|
+
os: OS[];
|
|
969
|
+
}
|
|
970
|
+
export type ListOffersRequest = {
|
|
971
|
+
/**
|
|
972
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
973
|
+
*/
|
|
974
|
+
zone?: ScwZone;
|
|
975
|
+
/**
|
|
976
|
+
* Page number.
|
|
977
|
+
*/
|
|
978
|
+
page?: number;
|
|
979
|
+
/**
|
|
980
|
+
* Number of offers per page.
|
|
981
|
+
*/
|
|
982
|
+
pageSize?: number;
|
|
983
|
+
/**
|
|
984
|
+
* Subscription period type to filter offers by.
|
|
985
|
+
*/
|
|
986
|
+
subscriptionPeriod?: OfferSubscriptionPeriod;
|
|
987
|
+
/**
|
|
988
|
+
* Offer name to filter offers by.
|
|
989
|
+
*/
|
|
990
|
+
name?: string;
|
|
991
|
+
};
|
|
992
|
+
export interface ListOffersResponse {
|
|
993
|
+
/**
|
|
994
|
+
* Total count of matching offers.
|
|
995
|
+
*/
|
|
996
|
+
totalCount: number;
|
|
997
|
+
/**
|
|
998
|
+
* Offers that match filters.
|
|
999
|
+
*/
|
|
1000
|
+
offers: Offer[];
|
|
1001
|
+
}
|
|
1002
|
+
export type ListOptionsRequest = {
|
|
1003
|
+
/**
|
|
1004
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1005
|
+
*/
|
|
1006
|
+
zone?: ScwZone;
|
|
1007
|
+
/**
|
|
1008
|
+
* Page number.
|
|
1009
|
+
*/
|
|
1010
|
+
page?: number;
|
|
1011
|
+
/**
|
|
1012
|
+
* Number of options per page.
|
|
1013
|
+
*/
|
|
1014
|
+
pageSize?: number;
|
|
1015
|
+
/**
|
|
1016
|
+
* Offer ID to filter options for.
|
|
1017
|
+
*/
|
|
1018
|
+
offerId?: string;
|
|
1019
|
+
/**
|
|
1020
|
+
* Name to filter options for.
|
|
1021
|
+
*/
|
|
1022
|
+
name?: string;
|
|
1023
|
+
};
|
|
1024
|
+
export interface ListOptionsResponse {
|
|
1025
|
+
/**
|
|
1026
|
+
* Total count of matching options.
|
|
1027
|
+
*/
|
|
1028
|
+
totalCount: number;
|
|
1029
|
+
/**
|
|
1030
|
+
* Options that match filters.
|
|
1031
|
+
*/
|
|
1032
|
+
options: Option[];
|
|
1033
|
+
}
|
|
1034
|
+
export type ListServerEventsRequest = {
|
|
1035
|
+
/**
|
|
1036
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1037
|
+
*/
|
|
1038
|
+
zone?: ScwZone;
|
|
1039
|
+
/**
|
|
1040
|
+
* ID of the server events searched.
|
|
1041
|
+
*/
|
|
1042
|
+
serverId: string;
|
|
1043
|
+
/**
|
|
1044
|
+
* Page number.
|
|
1045
|
+
*/
|
|
1046
|
+
page?: number;
|
|
1047
|
+
/**
|
|
1048
|
+
* Number of server events per page.
|
|
1049
|
+
*/
|
|
1050
|
+
pageSize?: number;
|
|
1051
|
+
/**
|
|
1052
|
+
* Order of the server events.
|
|
1053
|
+
*/
|
|
1054
|
+
orderBy?: ListServerEventsRequestOrderBy;
|
|
1055
|
+
};
|
|
1056
|
+
export interface ListServerEventsResponse {
|
|
1057
|
+
/**
|
|
1058
|
+
* Total count of matching events.
|
|
1059
|
+
*/
|
|
1060
|
+
totalCount: number;
|
|
1061
|
+
/**
|
|
1062
|
+
* Server events that match filters.
|
|
1063
|
+
*/
|
|
1064
|
+
events: ServerEvent[];
|
|
1065
|
+
}
|
|
1066
|
+
export interface ListServerPrivateNetworksResponse {
|
|
1067
|
+
serverPrivateNetworks: ServerPrivateNetwork[];
|
|
1068
|
+
totalCount: number;
|
|
1069
|
+
}
|
|
1070
|
+
export type ListServersRequest = {
|
|
1071
|
+
/**
|
|
1072
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1073
|
+
*/
|
|
1074
|
+
zone?: ScwZone;
|
|
1075
|
+
/**
|
|
1076
|
+
* Page number.
|
|
1077
|
+
*/
|
|
1078
|
+
page?: number;
|
|
1079
|
+
/**
|
|
1080
|
+
* Number of servers per page.
|
|
1081
|
+
*/
|
|
1082
|
+
pageSize?: number;
|
|
1083
|
+
/**
|
|
1084
|
+
* Order of the servers.
|
|
1085
|
+
*/
|
|
1086
|
+
orderBy?: ListServersRequestOrderBy;
|
|
1087
|
+
/**
|
|
1088
|
+
* Tags to filter for.
|
|
1089
|
+
*/
|
|
1090
|
+
tags?: string[];
|
|
1091
|
+
/**
|
|
1092
|
+
* Status to filter for.
|
|
1093
|
+
*/
|
|
1094
|
+
status?: string[];
|
|
1095
|
+
/**
|
|
1096
|
+
* Names to filter for.
|
|
1097
|
+
*/
|
|
1098
|
+
name?: string;
|
|
1099
|
+
/**
|
|
1100
|
+
* Organization ID to filter for.
|
|
1101
|
+
*/
|
|
1102
|
+
organizationId?: string;
|
|
1103
|
+
/**
|
|
1104
|
+
* Project ID to filter for.
|
|
1105
|
+
*/
|
|
1106
|
+
projectId?: string;
|
|
1107
|
+
/**
|
|
1108
|
+
* Option ID to filter for.
|
|
1109
|
+
*/
|
|
1110
|
+
optionId?: string;
|
|
1111
|
+
};
|
|
1112
|
+
export interface ListServersResponse {
|
|
1113
|
+
/**
|
|
1114
|
+
* Total count of matching servers.
|
|
1115
|
+
*/
|
|
1116
|
+
totalCount: number;
|
|
1117
|
+
/**
|
|
1118
|
+
* Array of Elastic Metal server objects matching the filters in the request.
|
|
1119
|
+
*/
|
|
1120
|
+
servers: Server[];
|
|
1121
|
+
}
|
|
1122
|
+
export type ListSettingsRequest = {
|
|
1123
|
+
/**
|
|
1124
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1125
|
+
*/
|
|
1126
|
+
zone?: ScwZone;
|
|
1127
|
+
/**
|
|
1128
|
+
* Page number.
|
|
1129
|
+
*/
|
|
1130
|
+
page?: number;
|
|
1131
|
+
/**
|
|
1132
|
+
* Set the maximum list size.
|
|
1133
|
+
*/
|
|
1134
|
+
pageSize?: number;
|
|
1135
|
+
/**
|
|
1136
|
+
* Sort order for items in the response.
|
|
1137
|
+
*/
|
|
1138
|
+
orderBy?: ListSettingsRequestOrderBy;
|
|
1139
|
+
/**
|
|
1140
|
+
* ID of the Project.
|
|
1141
|
+
*/
|
|
1142
|
+
projectId?: string;
|
|
1143
|
+
};
|
|
1144
|
+
export interface ListSettingsResponse {
|
|
1145
|
+
/**
|
|
1146
|
+
* Total count of matching settings.
|
|
1147
|
+
*/
|
|
1148
|
+
totalCount: number;
|
|
1149
|
+
/**
|
|
1150
|
+
* Settings that match filters.
|
|
1151
|
+
*/
|
|
1152
|
+
settings: Setting[];
|
|
1153
|
+
}
|
|
1154
|
+
export type MigrateServerToMonthlyOfferRequest = {
|
|
1155
|
+
/**
|
|
1156
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1157
|
+
*/
|
|
1158
|
+
zone?: ScwZone;
|
|
1159
|
+
/**
|
|
1160
|
+
* ID of the server.
|
|
1161
|
+
*/
|
|
1162
|
+
serverId: string;
|
|
1163
|
+
};
|
|
1164
|
+
export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
|
|
1165
|
+
/**
|
|
1166
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1167
|
+
*/
|
|
1168
|
+
zone?: ScwZone;
|
|
1169
|
+
/**
|
|
1170
|
+
* The ID of the server.
|
|
1171
|
+
*/
|
|
1172
|
+
serverId: string;
|
|
1173
|
+
/**
|
|
1174
|
+
* The ID of the Private Network.
|
|
1175
|
+
*/
|
|
1176
|
+
privateNetworkId: string;
|
|
1177
|
+
};
|
|
1178
|
+
export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
|
|
1179
|
+
/**
|
|
1180
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1181
|
+
*/
|
|
1182
|
+
zone?: ScwZone;
|
|
1183
|
+
/**
|
|
1184
|
+
* The ID of the server.
|
|
1185
|
+
*/
|
|
1186
|
+
serverId: string;
|
|
1187
|
+
/**
|
|
1188
|
+
* The ID of the Private Network.
|
|
1189
|
+
*/
|
|
1190
|
+
privateNetworkId: string;
|
|
1191
|
+
};
|
|
1192
|
+
export type PrivateNetworkApiListServerPrivateNetworksRequest = {
|
|
1193
|
+
/**
|
|
1194
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1195
|
+
*/
|
|
1196
|
+
zone?: ScwZone;
|
|
1197
|
+
/**
|
|
1198
|
+
* The sort order for the returned Private Networks.
|
|
1199
|
+
*/
|
|
1200
|
+
orderBy?: ListServerPrivateNetworksRequestOrderBy;
|
|
1201
|
+
/**
|
|
1202
|
+
* The page number for the returned Private Networks.
|
|
1203
|
+
*/
|
|
1204
|
+
page?: number;
|
|
1205
|
+
/**
|
|
1206
|
+
* The maximum number of Private Networks per page.
|
|
1207
|
+
*/
|
|
1208
|
+
pageSize?: number;
|
|
1209
|
+
/**
|
|
1210
|
+
* Filter Private Networks by server ID.
|
|
1211
|
+
*/
|
|
1212
|
+
serverId?: string;
|
|
1213
|
+
/**
|
|
1214
|
+
* Filter Private Networks by Private Network ID.
|
|
1215
|
+
*/
|
|
1216
|
+
privateNetworkId?: string;
|
|
1217
|
+
/**
|
|
1218
|
+
* Filter Private Networks by Organization ID.
|
|
1219
|
+
*/
|
|
1220
|
+
organizationId?: string;
|
|
1221
|
+
/**
|
|
1222
|
+
* Filter Private Networks by Project ID.
|
|
1223
|
+
*/
|
|
1224
|
+
projectId?: string;
|
|
1225
|
+
};
|
|
1226
|
+
export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
|
|
1227
|
+
/**
|
|
1228
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1229
|
+
*/
|
|
1230
|
+
zone?: ScwZone;
|
|
1231
|
+
/**
|
|
1232
|
+
* The ID of the server.
|
|
1233
|
+
*/
|
|
1234
|
+
serverId: string;
|
|
1235
|
+
/**
|
|
1236
|
+
* The IDs of the Private Networks.
|
|
1237
|
+
*/
|
|
1238
|
+
privateNetworkIds: string[];
|
|
1239
|
+
};
|
|
1240
|
+
export type RebootServerRequest = {
|
|
1241
|
+
/**
|
|
1242
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1243
|
+
*/
|
|
1244
|
+
zone?: ScwZone;
|
|
1245
|
+
/**
|
|
1246
|
+
* ID of the server to reboot.
|
|
1247
|
+
*/
|
|
1248
|
+
serverId: string;
|
|
1249
|
+
/**
|
|
1250
|
+
* The type of boot.
|
|
1251
|
+
*/
|
|
1252
|
+
bootType?: ServerBootType;
|
|
1253
|
+
};
|
|
1254
|
+
export interface SetServerPrivateNetworksResponse {
|
|
1255
|
+
serverPrivateNetworks: ServerPrivateNetwork[];
|
|
1256
|
+
}
|
|
1257
|
+
export type StartBMCAccessRequest = {
|
|
1258
|
+
/**
|
|
1259
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1260
|
+
*/
|
|
1261
|
+
zone?: ScwZone;
|
|
1262
|
+
/**
|
|
1263
|
+
* ID of the server.
|
|
1264
|
+
*/
|
|
1265
|
+
serverId: string;
|
|
1266
|
+
/**
|
|
1267
|
+
* The IP authorized to connect to the server.
|
|
1268
|
+
*/
|
|
1269
|
+
ip: string;
|
|
1270
|
+
};
|
|
1271
|
+
export type StartServerRequest = {
|
|
1272
|
+
/**
|
|
1273
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1274
|
+
*/
|
|
1275
|
+
zone?: ScwZone;
|
|
1276
|
+
/**
|
|
1277
|
+
* ID of the server to start.
|
|
1278
|
+
*/
|
|
1279
|
+
serverId: string;
|
|
1280
|
+
/**
|
|
1281
|
+
* The type of boot.
|
|
1282
|
+
*/
|
|
1283
|
+
bootType?: ServerBootType;
|
|
1284
|
+
};
|
|
1285
|
+
export type StopBMCAccessRequest = {
|
|
1286
|
+
/**
|
|
1287
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1288
|
+
*/
|
|
1289
|
+
zone?: ScwZone;
|
|
1290
|
+
/**
|
|
1291
|
+
* ID of the server.
|
|
1292
|
+
*/
|
|
1293
|
+
serverId: string;
|
|
1294
|
+
};
|
|
1295
|
+
export type StopServerRequest = {
|
|
1296
|
+
/**
|
|
1297
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1298
|
+
*/
|
|
1299
|
+
zone?: ScwZone;
|
|
1300
|
+
/**
|
|
1301
|
+
* ID of the server to stop.
|
|
1302
|
+
*/
|
|
1303
|
+
serverId: string;
|
|
1304
|
+
};
|
|
1305
|
+
export type UpdateIPRequest = {
|
|
1306
|
+
/**
|
|
1307
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1308
|
+
*/
|
|
1309
|
+
zone?: ScwZone;
|
|
1310
|
+
/**
|
|
1311
|
+
* ID of the server.
|
|
1312
|
+
*/
|
|
1313
|
+
serverId: string;
|
|
1314
|
+
/**
|
|
1315
|
+
* ID of the IP to update.
|
|
1316
|
+
*/
|
|
1317
|
+
ipId: string;
|
|
1318
|
+
/**
|
|
1319
|
+
* New reverse IP to update, not updated if null.
|
|
1320
|
+
*/
|
|
1321
|
+
reverse?: string;
|
|
1322
|
+
};
|
|
1323
|
+
export type UpdateServerRequest = {
|
|
1324
|
+
/**
|
|
1325
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1326
|
+
*/
|
|
1327
|
+
zone?: ScwZone;
|
|
1328
|
+
/**
|
|
1329
|
+
* ID of the server to update.
|
|
1330
|
+
*/
|
|
1331
|
+
serverId: string;
|
|
1332
|
+
/**
|
|
1333
|
+
* Name of the server (≠hostname), not updated if null.
|
|
1334
|
+
*/
|
|
1335
|
+
name?: string;
|
|
1336
|
+
/**
|
|
1337
|
+
* Description associated with the server, max 255 characters, not updated if null.
|
|
1338
|
+
*/
|
|
1339
|
+
description?: string;
|
|
1340
|
+
/**
|
|
1341
|
+
* Tags associated with the server, not updated if null.
|
|
1342
|
+
*/
|
|
1343
|
+
tags?: string[];
|
|
1344
|
+
};
|
|
1345
|
+
export type UpdateSettingRequest = {
|
|
1346
|
+
/**
|
|
1347
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1348
|
+
*/
|
|
1349
|
+
zone?: ScwZone;
|
|
1350
|
+
/**
|
|
1351
|
+
* ID of the setting.
|
|
1352
|
+
*/
|
|
1353
|
+
settingId: string;
|
|
1354
|
+
/**
|
|
1355
|
+
* Defines whether the setting is enabled.
|
|
1356
|
+
*/
|
|
1357
|
+
enabled?: boolean;
|
|
1358
|
+
};
|
|
1359
|
+
export type ValidatePartitioningSchemaRequest = {
|
|
1360
|
+
/**
|
|
1361
|
+
* Zone to target. If none is passed will use default zone from the config.
|
|
1362
|
+
*/
|
|
1363
|
+
zone?: ScwZone;
|
|
1364
|
+
/**
|
|
1365
|
+
* Partitioning schema.
|
|
1366
|
+
*/
|
|
1367
|
+
partitioningSchema?: Schema;
|
|
1368
|
+
/**
|
|
1369
|
+
* Offer ID of the server.
|
|
1370
|
+
*/
|
|
1371
|
+
offerId: string;
|
|
1372
|
+
/**
|
|
1373
|
+
* OS ID.
|
|
1374
|
+
*/
|
|
1375
|
+
osId: string;
|
|
1376
|
+
};
|