@leaflow/sdk 0.0.0-dev.9.gd1c7e65 → 0.0.0-dev.91.g8a09696
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/README.md +22 -12
- package/dist/account/v1/index.d.ts +12 -0
- package/dist/account/v1/schema.d.ts +213 -3
- package/dist/assistant/v1/index.d.ts +30 -2
- package/dist/assistant/v1/schema.d.ts +766 -127
- package/dist/billing/v1/index.d.ts +60 -0
- package/dist/billing/v1/index.js +5 -0
- package/dist/billing/v1/schema.d.ts +2042 -0
- package/dist/billing/v1/schema.js +5 -0
- package/dist/canopy/v1/index.d.ts +12 -0
- package/dist/compute/v1/index.d.ts +50 -4
- package/dist/compute/v1/schema.d.ts +686 -268
- package/dist/dns/v1/index.d.ts +42 -0
- package/dist/dns/v1/index.js +5 -0
- package/dist/dns/v1/schema.d.ts +883 -0
- package/dist/dns/v1/schema.js +5 -0
- package/dist/iam/v1/index.d.ts +28 -0
- package/dist/iam/v1/schema.d.ts +437 -9
- package/dist/index.d.ts +4 -0
- package/dist/monitoring/v1/index.d.ts +96 -0
- package/dist/monitoring/v1/schema.d.ts +2385 -496
- package/dist/notification/v1/index.d.ts +76 -0
- package/dist/notification/v1/index.js +5 -0
- package/dist/notification/v1/schema.d.ts +2038 -0
- package/dist/notification/v1/schema.js +5 -0
- package/dist/support/v1/index.d.ts +50 -0
- package/dist/support/v1/index.js +5 -0
- package/dist/support/v1/schema.d.ts +1078 -0
- package/dist/support/v1/schema.js +5 -0
- package/dist/tunnel/v1/index.d.ts +14 -32
- package/dist/tunnel/v1/schema.d.ts +52 -496
- package/package.json +2 -2
|
@@ -10,16 +10,16 @@ export interface paths {
|
|
|
10
10
|
path?: never;
|
|
11
11
|
cookie?: never;
|
|
12
12
|
};
|
|
13
|
-
/**
|
|
13
|
+
/** List backups */
|
|
14
14
|
get: operations["list-backups"];
|
|
15
15
|
put?: never;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @description
|
|
17
|
+
* Create a backup
|
|
18
|
+
* @description A backup is a complete copy of a disk held in separate storage: **it remains restorable after the source disk is deleted, and can be restored to another availability zone in the same region.** A snapshot offers neither capability, as it resides in the same storage as the source disk and prevents that disk from being deleted while it exists.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
20
|
+
* Disks attached to a running instance, including system disks, can be backed up.
|
|
21
21
|
*
|
|
22
|
-
*
|
|
22
|
+
* The duration depends on the amount of data. The backup is not complete when this endpoint returns; poll the retrieve endpoint.
|
|
23
23
|
*/
|
|
24
24
|
post: operations["create-backup"];
|
|
25
25
|
delete?: never;
|
|
@@ -36,20 +36,20 @@ export interface paths {
|
|
|
36
36
|
cookie?: never;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @description
|
|
39
|
+
* Retrieve a backup
|
|
40
|
+
* @description Queries the current state of the backup, which makes it slower but more accurate than the list endpoint. Use it to poll creation progress.
|
|
41
41
|
*/
|
|
42
42
|
get: operations["get-backup"];
|
|
43
43
|
put?: never;
|
|
44
44
|
post?: never;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
47
|
-
* @description
|
|
46
|
+
* Delete a backup
|
|
47
|
+
* @description Independent of the source disk: deletion succeeds whether or not that disk still exists.
|
|
48
48
|
*/
|
|
49
49
|
delete: operations["delete-backup"];
|
|
50
50
|
options?: never;
|
|
51
51
|
head?: never;
|
|
52
|
-
/**
|
|
52
|
+
/** Rename a backup */
|
|
53
53
|
patch: operations["rename-backup"];
|
|
54
54
|
trace?: never;
|
|
55
55
|
};
|
|
@@ -63,10 +63,10 @@ export interface paths {
|
|
|
63
63
|
get?: never;
|
|
64
64
|
put?: never;
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
67
|
-
* @description
|
|
66
|
+
* Restore from a backup
|
|
67
|
+
* @description Restores onto a **newly created** disk. The source disk is unaffected and need not still exist.
|
|
68
68
|
*
|
|
69
|
-
*
|
|
69
|
+
* The target disk type may belong to another availability zone of the same region, and its capacity must not be smaller than the backup. The disk cannot be attached until the restore completes; poll the disk retrieve endpoint.
|
|
70
70
|
*/
|
|
71
71
|
post: operations["restore-backup"];
|
|
72
72
|
delete?: never;
|
|
@@ -82,7 +82,7 @@ export interface paths {
|
|
|
82
82
|
path?: never;
|
|
83
83
|
cookie?: never;
|
|
84
84
|
};
|
|
85
|
-
/**
|
|
85
|
+
/** List disk types on sale */
|
|
86
86
|
get: operations["list-disk-types"];
|
|
87
87
|
put?: never;
|
|
88
88
|
post?: never;
|
|
@@ -100,8 +100,8 @@ export interface paths {
|
|
|
100
100
|
cookie?: never;
|
|
101
101
|
};
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
104
|
-
* @description min_ram_mb
|
|
103
|
+
* List images on sale
|
|
104
|
+
* @description An image whose `min_ram_mb` exceeds the memory of the selected instance type cannot boot. Filter the options accordingly.
|
|
105
105
|
*/
|
|
106
106
|
get: operations["list-images"];
|
|
107
107
|
put?: never;
|
|
@@ -119,7 +119,7 @@ export interface paths {
|
|
|
119
119
|
path?: never;
|
|
120
120
|
cookie?: never;
|
|
121
121
|
};
|
|
122
|
-
/**
|
|
122
|
+
/** List instance types on sale */
|
|
123
123
|
get: operations["list-instance-types"];
|
|
124
124
|
put?: never;
|
|
125
125
|
post?: never;
|
|
@@ -136,7 +136,7 @@ export interface paths {
|
|
|
136
136
|
path?: never;
|
|
137
137
|
cookie?: never;
|
|
138
138
|
};
|
|
139
|
-
/**
|
|
139
|
+
/** List available regions */
|
|
140
140
|
get: operations["list-regions"];
|
|
141
141
|
put?: never;
|
|
142
142
|
post?: never;
|
|
@@ -154,8 +154,8 @@ export interface paths {
|
|
|
154
154
|
cookie?: never;
|
|
155
155
|
};
|
|
156
156
|
/**
|
|
157
|
-
*
|
|
158
|
-
* @description
|
|
157
|
+
* List the availability zones of a region
|
|
158
|
+
* @description A disk and an instance must reside in the same availability zone to be attached. Confirm the zone before creating either.
|
|
159
159
|
*/
|
|
160
160
|
get: operations["list-availability-zones"];
|
|
161
161
|
put?: never;
|
|
@@ -174,14 +174,14 @@ export interface paths {
|
|
|
174
174
|
cookie?: never;
|
|
175
175
|
};
|
|
176
176
|
/**
|
|
177
|
-
*
|
|
178
|
-
* @description
|
|
177
|
+
* List disks
|
|
178
|
+
* @description When both `region_code` and `availability_zone` are supplied, only disks attachable to an instance at that location are returned.
|
|
179
179
|
*/
|
|
180
180
|
get: operations["list-disks"];
|
|
181
181
|
put?: never;
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
184
|
-
* @description
|
|
183
|
+
* Create a disk
|
|
184
|
+
* @description The disk is created in the availability zone of the selected disk type, and an instance must reside in the same zone to attach it. Choosing the disk type therefore determines the zone.
|
|
185
185
|
*/
|
|
186
186
|
post: operations["create-disk"];
|
|
187
187
|
delete?: never;
|
|
@@ -198,22 +198,22 @@ export interface paths {
|
|
|
198
198
|
cookie?: never;
|
|
199
199
|
};
|
|
200
200
|
/**
|
|
201
|
-
*
|
|
202
|
-
* @description
|
|
201
|
+
* Retrieve a disk
|
|
202
|
+
* @description Queries the current state of the disk, which makes it slower but more accurate than the list endpoint.
|
|
203
203
|
*/
|
|
204
204
|
get: operations["get-disk"];
|
|
205
205
|
put?: never;
|
|
206
206
|
post?: never;
|
|
207
207
|
/**
|
|
208
|
-
*
|
|
209
|
-
* @description
|
|
208
|
+
* Delete a disk
|
|
209
|
+
* @description Deletion is rejected while the disk is attached, or while snapshots created from it still exist.
|
|
210
210
|
*/
|
|
211
211
|
delete: operations["delete-disk"];
|
|
212
212
|
options?: never;
|
|
213
213
|
head?: never;
|
|
214
214
|
/**
|
|
215
|
-
*
|
|
216
|
-
* @description
|
|
215
|
+
* Rename a disk
|
|
216
|
+
* @description Changes the name only. Use the resize endpoint for capacity; type and availability zone are immutable.
|
|
217
217
|
*/
|
|
218
218
|
patch: operations["rename-disk"];
|
|
219
219
|
trace?: never;
|
|
@@ -228,8 +228,8 @@ export interface paths {
|
|
|
228
228
|
get?: never;
|
|
229
229
|
put?: never;
|
|
230
230
|
/**
|
|
231
|
-
*
|
|
232
|
-
* @description
|
|
231
|
+
* Resize a disk
|
|
232
|
+
* @description Capacity can only be increased; shrinking is not supported. Extend the file system inside the instance once the resize completes.
|
|
233
233
|
*/
|
|
234
234
|
post: operations["resize-disk"];
|
|
235
235
|
delete?: never;
|
|
@@ -248,12 +248,12 @@ export interface paths {
|
|
|
248
248
|
get?: never;
|
|
249
249
|
put?: never;
|
|
250
250
|
/**
|
|
251
|
-
*
|
|
252
|
-
* @description
|
|
251
|
+
* Revert to a snapshot
|
|
252
|
+
* @description Restores the contents of the disk to the moment the snapshot was taken. **All data written after that moment is lost and cannot be recovered.**
|
|
253
253
|
*
|
|
254
|
-
*
|
|
254
|
+
* Three restrictions apply: only the most recent snapshot of the disk can be reverted to; the disk must be detached from its instance first; and a disk resized since the snapshot was taken cannot be reverted. To return to an earlier point in time, or to keep the existing disk, create a new disk from the snapshot instead.
|
|
255
255
|
*
|
|
256
|
-
*
|
|
256
|
+
* The revert is not complete when this endpoint returns; poll the retrieve endpoint.
|
|
257
257
|
*/
|
|
258
258
|
post: operations["revert-disk"];
|
|
259
259
|
delete?: never;
|
|
@@ -269,14 +269,14 @@ export interface paths {
|
|
|
269
269
|
path?: never;
|
|
270
270
|
cookie?: never;
|
|
271
271
|
};
|
|
272
|
-
/**
|
|
272
|
+
/** List floating IPs */
|
|
273
273
|
get: operations["list-floating-ips"];
|
|
274
274
|
put?: never;
|
|
275
275
|
/**
|
|
276
|
-
*
|
|
277
|
-
* @description
|
|
276
|
+
* Allocate a floating IP
|
|
277
|
+
* @description If the private network is not yet connected to the internet, connectivity is established as part of this call.
|
|
278
278
|
*
|
|
279
|
-
* IPv6
|
|
279
|
+
* IPv6 is not requested through this endpoint. IPv6 addresses are assigned to instances by the private network; enable IPv6 on that network instead.
|
|
280
280
|
*/
|
|
281
281
|
post: operations["allocate-floating-ip"];
|
|
282
282
|
delete?: never;
|
|
@@ -292,13 +292,13 @@ export interface paths {
|
|
|
292
292
|
path?: never;
|
|
293
293
|
cookie?: never;
|
|
294
294
|
};
|
|
295
|
-
/**
|
|
295
|
+
/** Retrieve a floating IP */
|
|
296
296
|
get: operations["get-floating-ip"];
|
|
297
297
|
put?: never;
|
|
298
298
|
post?: never;
|
|
299
299
|
/**
|
|
300
|
-
*
|
|
301
|
-
* @description
|
|
300
|
+
* Release a floating IP
|
|
301
|
+
* @description A released address enters a cooldown period before it is allocated again, so that DNS records and allow-lists still pointing at it do not break immediately. **The same address therefore cannot be re-allocated** for some time after release. Proceed with care.
|
|
302
302
|
*/
|
|
303
303
|
delete: operations["release-floating-ip"];
|
|
304
304
|
options?: never;
|
|
@@ -315,8 +315,8 @@ export interface paths {
|
|
|
315
315
|
};
|
|
316
316
|
get?: never;
|
|
317
317
|
/**
|
|
318
|
-
*
|
|
319
|
-
* @description
|
|
318
|
+
* Set the bandwidth limit
|
|
319
|
+
* @description Limits both directions at once. Limiting egress alone does not prevent ingress traffic from saturating the uplink.
|
|
320
320
|
*/
|
|
321
321
|
put: operations["set-floating-ip-bandwidth"];
|
|
322
322
|
post?: never;
|
|
@@ -334,12 +334,12 @@ export interface paths {
|
|
|
334
334
|
cookie?: never;
|
|
335
335
|
};
|
|
336
336
|
get?: never;
|
|
337
|
-
/**
|
|
337
|
+
/** Bind a floating IP to a network interface */
|
|
338
338
|
put: operations["bind-floating-ip"];
|
|
339
339
|
post?: never;
|
|
340
340
|
/**
|
|
341
|
-
*
|
|
342
|
-
* @description
|
|
341
|
+
* Unbind a floating IP
|
|
342
|
+
* @description The address remains held by the project and simply no longer points at any network interface.
|
|
343
343
|
*/
|
|
344
344
|
delete: operations["unbind-floating-ip"];
|
|
345
345
|
options?: never;
|
|
@@ -354,22 +354,27 @@ export interface paths {
|
|
|
354
354
|
path?: never;
|
|
355
355
|
cookie?: never;
|
|
356
356
|
};
|
|
357
|
-
/**
|
|
357
|
+
/**
|
|
358
|
+
* List instances
|
|
359
|
+
* @description Every instance in the project, newest first. This endpoint does not query backend state; for the accurate state of one instance, use the retrieve endpoint.
|
|
360
|
+
*/
|
|
358
361
|
get: operations["list-instances"];
|
|
359
362
|
put?: never;
|
|
360
363
|
/**
|
|
361
|
-
*
|
|
362
|
-
* @description
|
|
364
|
+
* Create instances
|
|
365
|
+
* @description **A password must be set in the request.** The request is rejected otherwise, since the resulting instance would be unreachable. The platform can generate one, in which case it is returned only in this response.
|
|
366
|
+
*
|
|
367
|
+
* `count` creates several instances at once, 20 at most. Names are numbered `-1`, `-2` automatically and all instances share one password. **`instances` in the response is always an array**, including for a single instance.
|
|
363
368
|
*
|
|
364
|
-
*
|
|
369
|
+
* Instances are created one by one in order. If the sequence stops part way through, because of a quota limit for example, **the instances already created are kept** and `failure` states why it stopped. A failure on the first instance is treated as a failure of the whole request and no instance is created.
|
|
365
370
|
*
|
|
366
|
-
*
|
|
371
|
+
* Exactly one source must be given: `image_id` for a platform image, `private_image_id` for a private image, or `boot_disk_id` to boot a disk you already have. Supplying more than one, or none, is rejected.
|
|
367
372
|
*
|
|
368
|
-
*
|
|
373
|
+
* `boot_disk_id` recovers an instance that can no longer be repaired from the inside. Snapshot its disk, restore that snapshot into a new disk, attach the new disk to another instance and repair it there, then create an instance from it. That disk is not deleted when the instance is released; it is detached and returned to you.
|
|
369
374
|
*
|
|
370
|
-
*
|
|
375
|
+
* Instances are created in the availability zone of the instance type. Disks to be attached later must reside in the same zone.
|
|
371
376
|
*
|
|
372
|
-
*
|
|
377
|
+
* Creation is not complete when this endpoint returns and `status` is `provisioning`. Poll GET to observe the outcome.
|
|
373
378
|
*/
|
|
374
379
|
post: operations["launch-instance"];
|
|
375
380
|
delete?: never;
|
|
@@ -386,29 +391,29 @@ export interface paths {
|
|
|
386
391
|
cookie?: never;
|
|
387
392
|
};
|
|
388
393
|
/**
|
|
389
|
-
*
|
|
390
|
-
* @description
|
|
394
|
+
* Retrieve an instance
|
|
395
|
+
* @description Queries the current state of the instance, which makes it slower but more accurate than the list endpoint. Use it to poll creation progress.
|
|
391
396
|
*/
|
|
392
397
|
get: operations["get-instance"];
|
|
393
398
|
put?: never;
|
|
394
399
|
post?: never;
|
|
395
400
|
/**
|
|
396
|
-
*
|
|
397
|
-
* @description
|
|
401
|
+
* Release an instance
|
|
402
|
+
* @description The system disk is deleted with the instance, and **snapshots created from the system disk are deleted with it**. Data disks are detached and kept, and their snapshots and backups are unaffected. The primary network interface is released with the instance.
|
|
398
403
|
*
|
|
399
|
-
*
|
|
404
|
+
* An instance being captured as a private image cannot be released. Wait for the capture to finish, or delete that image first.
|
|
400
405
|
*/
|
|
401
406
|
delete: operations["delete-instance"];
|
|
402
407
|
options?: never;
|
|
403
408
|
head?: never;
|
|
404
409
|
/**
|
|
405
|
-
*
|
|
406
|
-
* @description
|
|
410
|
+
* Rename an instance
|
|
411
|
+
* @description Changes the display name only. The hostname inside the instance is unchanged; it equals the instance id.
|
|
407
412
|
*/
|
|
408
413
|
patch: operations["rename-instance"];
|
|
409
414
|
trace?: never;
|
|
410
415
|
};
|
|
411
|
-
"/api/v1/instances/{instanceId}/
|
|
416
|
+
"/api/v1/instances/{instanceId}/commands": {
|
|
412
417
|
parameters: {
|
|
413
418
|
query?: never;
|
|
414
419
|
header?: never;
|
|
@@ -418,14 +423,26 @@ export interface paths {
|
|
|
418
423
|
get?: never;
|
|
419
424
|
put?: never;
|
|
420
425
|
/**
|
|
421
|
-
*
|
|
422
|
-
* @description
|
|
426
|
+
* Run a command on an instance
|
|
427
|
+
* @description Runs one command over SSH and returns what it wrote. **This is not a shell.** There is no terminal, no standard input and no way to answer a prompt: a command that waits for input produces nothing and is killed at the timeout. Chain steps with `&&`, or write a script and run that.
|
|
428
|
+
*
|
|
429
|
+
* **A command that fails is still a 200.** Its failure is its own result, not this endpoint's: read `exit_code` for what it exited with and `stderr` for what it said, and decide from those. A `grep` that matches nothing exits 1 and is a perfectly successful call.
|
|
430
|
+
*
|
|
431
|
+
* The status therefore answers a different question — did the command run at all. A non-2xx means it did not, and nothing about the instance was changed by this request: it was suspended, not running or had no floating IP; or it refused the platform key; or the connection could not be opened. Retrying is meaningful in those cases and is not for a non-zero `exit_code`.
|
|
432
|
+
*
|
|
433
|
+
* Three conditions must hold; the instance is unreachable otherwise:
|
|
423
434
|
*
|
|
424
|
-
*
|
|
435
|
+
* - it is `running`
|
|
436
|
+
* - a floating IP is bound to it, since this endpoint connects over the public internet
|
|
437
|
+
* - its security group permits inbound TCP 22
|
|
425
438
|
*
|
|
426
|
-
*
|
|
439
|
+
* Authentication uses the key the platform attaches to every instance at creation, so nothing has to be set up first. The instance must have applied that key at first boot, which images without a full cloud-init do not do.
|
|
440
|
+
*
|
|
441
|
+
* **Do not pass secrets in the command.** Read them from a file on the instance instead: neither the command nor its output is a confidential channel.
|
|
442
|
+
*
|
|
443
|
+
* Each stream is capped at 1 MiB. Beyond that the rest is discarded and `truncated` is true.
|
|
427
444
|
*/
|
|
428
|
-
post: operations["
|
|
445
|
+
post: operations["run-instance-command"];
|
|
429
446
|
delete?: never;
|
|
430
447
|
options?: never;
|
|
431
448
|
head?: never;
|
|
@@ -442,10 +459,10 @@ export interface paths {
|
|
|
442
459
|
get?: never;
|
|
443
460
|
put?: never;
|
|
444
461
|
/**
|
|
445
|
-
*
|
|
446
|
-
* @description
|
|
462
|
+
* Open a remote console
|
|
463
|
+
* @description Operates the instance directly from a browser and does not require the instance to be reachable over the network, which makes it usable when a network misconfiguration prevents login.
|
|
447
464
|
*
|
|
448
|
-
*
|
|
465
|
+
* The returned address is single-use and expires within minutes. **Do not cache it**; request a new one before each use.
|
|
449
466
|
*/
|
|
450
467
|
post: operations["open-instance-console"];
|
|
451
468
|
delete?: never;
|
|
@@ -462,10 +479,10 @@ export interface paths {
|
|
|
462
479
|
cookie?: never;
|
|
463
480
|
};
|
|
464
481
|
/**
|
|
465
|
-
*
|
|
466
|
-
* @description
|
|
482
|
+
* Read the console output
|
|
483
|
+
* @description The raw text produced by the instance during boot and by the kernel. Consult it first when login fails or the remote console shows no output: it reveals where boot stopped, whether the system disk was mounted, and whether initialisation reported errors.
|
|
467
484
|
*
|
|
468
|
-
*
|
|
485
|
+
* Instances in an error state, and instances suspended by the platform, can be read as well.
|
|
469
486
|
*/
|
|
470
487
|
get: operations["get-instance-console-output"];
|
|
471
488
|
put?: never;
|
|
@@ -476,6 +493,54 @@ export interface paths {
|
|
|
476
493
|
patch?: never;
|
|
477
494
|
trace?: never;
|
|
478
495
|
};
|
|
496
|
+
"/api/v1/instances/{instanceId}/labels": {
|
|
497
|
+
parameters: {
|
|
498
|
+
query?: never;
|
|
499
|
+
header?: never;
|
|
500
|
+
path?: never;
|
|
501
|
+
cookie?: never;
|
|
502
|
+
};
|
|
503
|
+
get?: never;
|
|
504
|
+
/**
|
|
505
|
+
* Replace an instance's labels
|
|
506
|
+
* @description Records what this instance is for, as key-value pairs. Nothing on the platform reads them.
|
|
507
|
+
*
|
|
508
|
+
* **The whole set is replaced**: whatever is absent from the request is removed.
|
|
509
|
+
*
|
|
510
|
+
* Do not put credentials here. Labels are visible to platform operators.
|
|
511
|
+
*/
|
|
512
|
+
put: operations["set-instance-labels"];
|
|
513
|
+
post?: never;
|
|
514
|
+
delete?: never;
|
|
515
|
+
options?: never;
|
|
516
|
+
head?: never;
|
|
517
|
+
patch?: never;
|
|
518
|
+
trace?: never;
|
|
519
|
+
};
|
|
520
|
+
"/api/v1/instances/{instanceId}/notes": {
|
|
521
|
+
parameters: {
|
|
522
|
+
query?: never;
|
|
523
|
+
header?: never;
|
|
524
|
+
path?: never;
|
|
525
|
+
cookie?: never;
|
|
526
|
+
};
|
|
527
|
+
get?: never;
|
|
528
|
+
/**
|
|
529
|
+
* Replace an instance's note
|
|
530
|
+
* @description A free-text note about this instance — what it runs, and what to be careful about before touching it.
|
|
531
|
+
*
|
|
532
|
+
* **The whole note is replaced**; send an empty string to clear it.
|
|
533
|
+
*
|
|
534
|
+
* Do not put credentials here. The note is visible to platform operators.
|
|
535
|
+
*/
|
|
536
|
+
put: operations["set-instance-notes"];
|
|
537
|
+
post?: never;
|
|
538
|
+
delete?: never;
|
|
539
|
+
options?: never;
|
|
540
|
+
head?: never;
|
|
541
|
+
patch?: never;
|
|
542
|
+
trace?: never;
|
|
543
|
+
};
|
|
479
544
|
"/api/v1/instances/{instanceId}/password": {
|
|
480
545
|
parameters: {
|
|
481
546
|
query?: never;
|
|
@@ -486,12 +551,12 @@ export interface paths {
|
|
|
486
551
|
get?: never;
|
|
487
552
|
put?: never;
|
|
488
553
|
/**
|
|
489
|
-
*
|
|
490
|
-
* @description
|
|
554
|
+
* Reset the login password
|
|
555
|
+
* @description Changes the root password without a reboot. The instance must be running.
|
|
491
556
|
*
|
|
492
|
-
*
|
|
557
|
+
* **Not every image supports this.** Images whose `supports_password_reset` is false cannot, and a new password can then only be set by rebuilding the instance, which erases all data on the system disk.
|
|
493
558
|
*
|
|
494
|
-
*
|
|
559
|
+
* The request is also rejected when the image is marked as supported but the corresponding component has been removed or stopped inside the instance.
|
|
495
560
|
*/
|
|
496
561
|
post: operations["reset-instance-password"];
|
|
497
562
|
delete?: never;
|
|
@@ -500,6 +565,34 @@ export interface paths {
|
|
|
500
565
|
patch?: never;
|
|
501
566
|
trace?: never;
|
|
502
567
|
};
|
|
568
|
+
"/api/v1/instances/{instanceId}/reboot": {
|
|
569
|
+
parameters: {
|
|
570
|
+
query?: never;
|
|
571
|
+
header?: never;
|
|
572
|
+
path?: never;
|
|
573
|
+
cookie?: never;
|
|
574
|
+
};
|
|
575
|
+
get?: never;
|
|
576
|
+
put?: never;
|
|
577
|
+
/**
|
|
578
|
+
* Reboot an instance
|
|
579
|
+
* @description A reboot defaults to soft, in which the operating system shuts down normally before starting again.
|
|
580
|
+
*
|
|
581
|
+
* A soft reboot has no effect once the system is unresponsive. Set `force` to reboot forcibly: a forced reboot does not wait for the operating system to shut down, so **unwritten data is lost**.
|
|
582
|
+
*
|
|
583
|
+
* A forced reboot is accepted while the instance is already `rebooting`, which is the way out of a soft reboot the instance never carried out. Every other endpoint refuses an instance in a transient state, and a second soft reboot is refused as well.
|
|
584
|
+
*
|
|
585
|
+
* An instance suspended by the platform must be unsuspended first.
|
|
586
|
+
*
|
|
587
|
+
* This endpoint returns immediately and the `status` it returns is the transient `rebooting`. Poll the instance until it settles at `running`.
|
|
588
|
+
*/
|
|
589
|
+
post: operations["reboot-instance"];
|
|
590
|
+
delete?: never;
|
|
591
|
+
options?: never;
|
|
592
|
+
head?: never;
|
|
593
|
+
patch?: never;
|
|
594
|
+
trace?: never;
|
|
595
|
+
};
|
|
503
596
|
"/api/v1/instances/{instanceId}/rebuild": {
|
|
504
597
|
parameters: {
|
|
505
598
|
query?: never;
|
|
@@ -510,8 +603,8 @@ export interface paths {
|
|
|
510
603
|
get?: never;
|
|
511
604
|
put?: never;
|
|
512
605
|
/**
|
|
513
|
-
*
|
|
514
|
-
* @description
|
|
606
|
+
* Rebuild an instance
|
|
607
|
+
* @description **All data on the system disk is erased and cannot be recovered.** Attached data disks are unaffected.
|
|
515
608
|
*/
|
|
516
609
|
post: operations["rebuild-instance"];
|
|
517
610
|
delete?: never;
|
|
@@ -530,12 +623,12 @@ export interface paths {
|
|
|
530
623
|
get?: never;
|
|
531
624
|
put?: never;
|
|
532
625
|
/**
|
|
533
|
-
*
|
|
534
|
-
* @description
|
|
626
|
+
* Resize an instance
|
|
627
|
+
* @description Only an instance type in the same region and availability zone can be selected, as attached disks cannot follow the instance elsewhere.
|
|
535
628
|
*
|
|
536
|
-
*
|
|
629
|
+
* A resize has two steps. This endpoint restarts the instance on the new size and the status becomes `resize_verifying`, at which point the confirm or revert endpoint **must** be called. Until confirmation the target type is recorded in `pending_instance_type_id`, while `instance_type_id` remains the type in effect and billed.
|
|
537
630
|
*
|
|
538
|
-
*
|
|
631
|
+
* **Both sizes hold resources while the resize is unconfirmed.** Confirm promptly once the status becomes `resize_verifying`.
|
|
539
632
|
*/
|
|
540
633
|
post: operations["resize-instance"];
|
|
541
634
|
delete?: never;
|
|
@@ -554,8 +647,8 @@ export interface paths {
|
|
|
554
647
|
get?: never;
|
|
555
648
|
put?: never;
|
|
556
649
|
/**
|
|
557
|
-
*
|
|
558
|
-
* @description
|
|
650
|
+
* Confirm a resize
|
|
651
|
+
* @description Releases the resources held by the previous size. `pending_instance_type_id` becomes the type in effect and is billed from then on.
|
|
559
652
|
*/
|
|
560
653
|
post: operations["confirm-instance-resize"];
|
|
561
654
|
delete?: never;
|
|
@@ -574,8 +667,8 @@ export interface paths {
|
|
|
574
667
|
get?: never;
|
|
575
668
|
put?: never;
|
|
576
669
|
/**
|
|
577
|
-
*
|
|
578
|
-
* @description
|
|
670
|
+
* Revert a resize
|
|
671
|
+
* @description The instance returns to its previous size, `pending_instance_type_id` is discarded, and billing is unaffected by the resize.
|
|
579
672
|
*/
|
|
580
673
|
post: operations["revert-instance-resize"];
|
|
581
674
|
delete?: never;
|
|
@@ -584,6 +677,52 @@ export interface paths {
|
|
|
584
677
|
patch?: never;
|
|
585
678
|
trace?: never;
|
|
586
679
|
};
|
|
680
|
+
"/api/v1/instances/{instanceId}/start": {
|
|
681
|
+
parameters: {
|
|
682
|
+
query?: never;
|
|
683
|
+
header?: never;
|
|
684
|
+
path?: never;
|
|
685
|
+
cookie?: never;
|
|
686
|
+
};
|
|
687
|
+
get?: never;
|
|
688
|
+
put?: never;
|
|
689
|
+
/**
|
|
690
|
+
* Start an instance
|
|
691
|
+
* @description An instance suspended by the platform must be unsuspended first.
|
|
692
|
+
*
|
|
693
|
+
* This endpoint returns immediately and the `status` it returns is the transient `starting`. Poll the instance until it settles at `running`.
|
|
694
|
+
*/
|
|
695
|
+
post: operations["start-instance"];
|
|
696
|
+
delete?: never;
|
|
697
|
+
options?: never;
|
|
698
|
+
head?: never;
|
|
699
|
+
patch?: never;
|
|
700
|
+
trace?: never;
|
|
701
|
+
};
|
|
702
|
+
"/api/v1/instances/{instanceId}/stop": {
|
|
703
|
+
parameters: {
|
|
704
|
+
query?: never;
|
|
705
|
+
header?: never;
|
|
706
|
+
path?: never;
|
|
707
|
+
cookie?: never;
|
|
708
|
+
};
|
|
709
|
+
get?: never;
|
|
710
|
+
put?: never;
|
|
711
|
+
/**
|
|
712
|
+
* Stop an instance
|
|
713
|
+
* @description The operating system is asked to shut down and is powered off once it does, or once it stops responding for long enough. Stopping does not release the instance: it keeps its disks, its addresses and its name, and starts again where it left off.
|
|
714
|
+
*
|
|
715
|
+
* An instance suspended by the platform must be unsuspended first.
|
|
716
|
+
*
|
|
717
|
+
* This endpoint returns immediately and the `status` it returns is the transient `stopping`. Poll the instance until it settles at `stopped`.
|
|
718
|
+
*/
|
|
719
|
+
post: operations["stop-instance"];
|
|
720
|
+
delete?: never;
|
|
721
|
+
options?: never;
|
|
722
|
+
head?: never;
|
|
723
|
+
patch?: never;
|
|
724
|
+
trace?: never;
|
|
725
|
+
};
|
|
587
726
|
"/api/v1/instances/{instanceId}/disks": {
|
|
588
727
|
parameters: {
|
|
589
728
|
query?: never;
|
|
@@ -591,12 +730,12 @@ export interface paths {
|
|
|
591
730
|
path?: never;
|
|
592
731
|
cookie?: never;
|
|
593
732
|
};
|
|
594
|
-
/**
|
|
733
|
+
/** List the disks attached to an instance */
|
|
595
734
|
get: operations["list-instance-disks"];
|
|
596
735
|
put?: never;
|
|
597
736
|
/**
|
|
598
|
-
*
|
|
599
|
-
* @description
|
|
737
|
+
* Attach a disk
|
|
738
|
+
* @description The disk must be in the same region and availability zone as the instance. Partition it and mount the file system inside the instance once it is attached.
|
|
600
739
|
*/
|
|
601
740
|
post: operations["attach-disk"];
|
|
602
741
|
delete?: never;
|
|
@@ -616,8 +755,8 @@ export interface paths {
|
|
|
616
755
|
put?: never;
|
|
617
756
|
post?: never;
|
|
618
757
|
/**
|
|
619
|
-
*
|
|
620
|
-
* @description
|
|
758
|
+
* Detach a disk
|
|
759
|
+
* @description Unmount the device inside the instance before calling this endpoint. Forcibly detaching a file system that is being written to corrupts data.
|
|
621
760
|
*/
|
|
622
761
|
delete: operations["detach-disk"];
|
|
623
762
|
options?: never;
|
|
@@ -635,8 +774,8 @@ export interface paths {
|
|
|
635
774
|
get?: never;
|
|
636
775
|
put?: never;
|
|
637
776
|
/**
|
|
638
|
-
*
|
|
639
|
-
* @description
|
|
777
|
+
* Bind a floating IP to an instance
|
|
778
|
+
* @description The floating IP is bound to the primary network interface of the instance.
|
|
640
779
|
*/
|
|
641
780
|
post: operations["attach-instance-floating-ip"];
|
|
642
781
|
delete?: never;
|
|
@@ -655,7 +794,7 @@ export interface paths {
|
|
|
655
794
|
get?: never;
|
|
656
795
|
put?: never;
|
|
657
796
|
post?: never;
|
|
658
|
-
/**
|
|
797
|
+
/** Unbind the floating IP of an instance */
|
|
659
798
|
delete: operations["detach-instance-floating-ip"];
|
|
660
799
|
options?: never;
|
|
661
800
|
head?: never;
|
|
@@ -669,10 +808,10 @@ export interface paths {
|
|
|
669
808
|
path?: never;
|
|
670
809
|
cookie?: never;
|
|
671
810
|
};
|
|
672
|
-
/**
|
|
811
|
+
/** List the network interfaces of an instance */
|
|
673
812
|
get: operations["list-instance-ports"];
|
|
674
813
|
put?: never;
|
|
675
|
-
/**
|
|
814
|
+
/** Attach a network interface */
|
|
676
815
|
post: operations["attach-port"];
|
|
677
816
|
delete?: never;
|
|
678
817
|
options?: never;
|
|
@@ -691,8 +830,8 @@ export interface paths {
|
|
|
691
830
|
put?: never;
|
|
692
831
|
post?: never;
|
|
693
832
|
/**
|
|
694
|
-
*
|
|
695
|
-
* @description
|
|
833
|
+
* Detach a network interface
|
|
834
|
+
* @description The primary network interface cannot be detached; the instance would lose its network address.
|
|
696
835
|
*/
|
|
697
836
|
delete: operations["detach-port"];
|
|
698
837
|
options?: never;
|
|
@@ -708,12 +847,12 @@ export interface paths {
|
|
|
708
847
|
cookie?: never;
|
|
709
848
|
};
|
|
710
849
|
/**
|
|
711
|
-
*
|
|
712
|
-
* @description
|
|
850
|
+
* List the operation log of the project
|
|
851
|
+
* @description Records every write operation in the project: who performed it, when, on what, and whether it succeeded. Read operations are not recorded.
|
|
713
852
|
*
|
|
714
|
-
*
|
|
853
|
+
* **Operations performed by the platform are included, but the individual operator is not disclosed** and `by_platform` is true. Suspension for non-payment and bans for abuse are examples: the time at which an instance was stopped by the platform is needed, whereas the operator is internal information.
|
|
715
854
|
*
|
|
716
|
-
*
|
|
855
|
+
* Fields such as passwords are replaced with a placeholder as the record is written and never appear in `payload`.
|
|
717
856
|
*/
|
|
718
857
|
get: operations["list-operation-logs"];
|
|
719
858
|
put?: never;
|
|
@@ -731,12 +870,12 @@ export interface paths {
|
|
|
731
870
|
path?: never;
|
|
732
871
|
cookie?: never;
|
|
733
872
|
};
|
|
734
|
-
/**
|
|
873
|
+
/** List network interfaces */
|
|
735
874
|
get: operations["list-ports"];
|
|
736
875
|
put?: never;
|
|
737
876
|
/**
|
|
738
|
-
*
|
|
739
|
-
* @description
|
|
877
|
+
* Create a network interface
|
|
878
|
+
* @description The new network interface is not attached to any instance. Primary network interfaces are not created here; they are created with the instance.
|
|
740
879
|
*/
|
|
741
880
|
post: operations["create-port"];
|
|
742
881
|
delete?: never;
|
|
@@ -756,8 +895,8 @@ export interface paths {
|
|
|
756
895
|
put?: never;
|
|
757
896
|
post?: never;
|
|
758
897
|
/**
|
|
759
|
-
*
|
|
760
|
-
* @description
|
|
898
|
+
* Delete a network interface
|
|
899
|
+
* @description The primary network interface cannot be deleted on its own, as it is released with the instance. A network interface still attached to an instance cannot be deleted either.
|
|
761
900
|
*/
|
|
762
901
|
delete: operations["delete-port"];
|
|
763
902
|
options?: never;
|
|
@@ -772,23 +911,23 @@ export interface paths {
|
|
|
772
911
|
path?: never;
|
|
773
912
|
cookie?: never;
|
|
774
913
|
};
|
|
775
|
-
/**
|
|
914
|
+
/** List private images */
|
|
776
915
|
get: operations["list-private-images"];
|
|
777
916
|
put?: never;
|
|
778
917
|
/**
|
|
779
|
-
*
|
|
780
|
-
* @description
|
|
918
|
+
* Capture an instance as a private image
|
|
919
|
+
* @description Captured from the system disk of the instance; data disks are not included. The resulting image can create instances and rebuild them, and remains usable after the source instance is released.
|
|
781
920
|
*
|
|
782
|
-
*
|
|
921
|
+
* **The image reflects the moment the capture started. Later changes to the instance are not included.**
|
|
783
922
|
*
|
|
784
|
-
*
|
|
923
|
+
* The capture has two phases. Poll the retrieve endpoint:
|
|
785
924
|
*
|
|
786
|
-
* - `provisioning`
|
|
787
|
-
* - `uploading`
|
|
925
|
+
* - `provisioning` — the system disk is being read, usually for tens of seconds. The instance remains usable during this phase, although stopping it first is recommended for consistency.
|
|
926
|
+
* - `uploading` — no longer tied to the system disk. **The instance may be started at this point; there is no need to wait for the capture to finish.** The duration of this phase is proportional to the size of the system disk, roughly 3 minutes for 20 GB.
|
|
788
927
|
*
|
|
789
|
-
*
|
|
928
|
+
* The file system of a running instance may be captured mid-write, in which case the image is equivalent to the disk contents after a power loss. Where consistency matters, stop the instance before starting the capture and start it again once the status becomes `uploading`.
|
|
790
929
|
*
|
|
791
|
-
*
|
|
930
|
+
* The instance can be started, stopped and used normally during the capture, but cannot be released.
|
|
792
931
|
*/
|
|
793
932
|
post: operations["create-private-image"];
|
|
794
933
|
delete?: never;
|
|
@@ -805,22 +944,22 @@ export interface paths {
|
|
|
805
944
|
cookie?: never;
|
|
806
945
|
};
|
|
807
946
|
/**
|
|
808
|
-
*
|
|
809
|
-
* @description
|
|
947
|
+
* Retrieve a private image
|
|
948
|
+
* @description Use this endpoint to poll capture progress. When `status` is `error`, `failure` states the reason.
|
|
810
949
|
*/
|
|
811
950
|
get: operations["get-private-image"];
|
|
812
951
|
put?: never;
|
|
813
952
|
post?: never;
|
|
814
953
|
/**
|
|
815
|
-
*
|
|
816
|
-
* @description
|
|
954
|
+
* Delete a private image
|
|
955
|
+
* @description Deletion is rejected while instances created from the image still exist, as they need it in order to be rebuilt.
|
|
817
956
|
*
|
|
818
|
-
*
|
|
957
|
+
* An image whose capture has not finished can be deleted; the capture is aborted.
|
|
819
958
|
*/
|
|
820
959
|
delete: operations["delete-private-image"];
|
|
821
960
|
options?: never;
|
|
822
961
|
head?: never;
|
|
823
|
-
/**
|
|
962
|
+
/** Rename a private image */
|
|
824
963
|
patch: operations["rename-private-image"];
|
|
825
964
|
trace?: never;
|
|
826
965
|
};
|
|
@@ -831,12 +970,12 @@ export interface paths {
|
|
|
831
970
|
path?: never;
|
|
832
971
|
cookie?: never;
|
|
833
972
|
};
|
|
834
|
-
/**
|
|
973
|
+
/** List private networks */
|
|
835
974
|
get: operations["list-private-networks"];
|
|
836
975
|
put?: never;
|
|
837
976
|
/**
|
|
838
|
-
*
|
|
839
|
-
* @description
|
|
977
|
+
* Create a private network
|
|
978
|
+
* @description Creates a network, a router and a default security group in one call. The default security group denies all inbound traffic and permits all outbound traffic.
|
|
840
979
|
*/
|
|
841
980
|
post: operations["create-private-network"];
|
|
842
981
|
delete?: never;
|
|
@@ -852,20 +991,20 @@ export interface paths {
|
|
|
852
991
|
path?: never;
|
|
853
992
|
cookie?: never;
|
|
854
993
|
};
|
|
855
|
-
/**
|
|
994
|
+
/** Retrieve a private network */
|
|
856
995
|
get: operations["get-private-network"];
|
|
857
996
|
put?: never;
|
|
858
997
|
post?: never;
|
|
859
998
|
/**
|
|
860
|
-
*
|
|
861
|
-
* @description
|
|
999
|
+
* Release a private network
|
|
1000
|
+
* @description Release is rejected while instances or network interfaces remain in the network. IPv6, the router and the security groups are released with it.
|
|
862
1001
|
*/
|
|
863
1002
|
delete: operations["delete-private-network"];
|
|
864
1003
|
options?: never;
|
|
865
1004
|
head?: never;
|
|
866
1005
|
/**
|
|
867
|
-
*
|
|
868
|
-
* @description
|
|
1006
|
+
* Rename a private network
|
|
1007
|
+
* @description Changes the display name only. The CIDR, the routes and the internet gateway are immutable.
|
|
869
1008
|
*/
|
|
870
1009
|
patch: operations["rename-private-network"];
|
|
871
1010
|
trace?: never;
|
|
@@ -877,19 +1016,19 @@ export interface paths {
|
|
|
877
1016
|
path?: never;
|
|
878
1017
|
cookie?: never;
|
|
879
1018
|
};
|
|
880
|
-
/**
|
|
1019
|
+
/** Retrieve the IPv6 configuration of a private network */
|
|
881
1020
|
get: operations["get-private-network-ipv6"];
|
|
882
1021
|
put?: never;
|
|
883
1022
|
/**
|
|
884
|
-
*
|
|
885
|
-
* @description
|
|
1023
|
+
* Enable IPv6 on a private network
|
|
1024
|
+
* @description Allocates an IPv6 prefix to the private network. Addresses are assigned to instances by the network itself, can be neither requested nor released individually, and consume no public IPv4 address.
|
|
886
1025
|
*
|
|
887
|
-
*
|
|
1026
|
+
* If the private network is not yet connected to the internet, connectivity is established as part of this call.
|
|
888
1027
|
*/
|
|
889
1028
|
post: operations["enable-private-network-ipv6"];
|
|
890
1029
|
/**
|
|
891
|
-
*
|
|
892
|
-
* @description
|
|
1030
|
+
* Disable IPv6 on a private network
|
|
1031
|
+
* @description A released prefix is not re-allocated immediately.
|
|
893
1032
|
*/
|
|
894
1033
|
delete: operations["disable-private-network-ipv6"];
|
|
895
1034
|
options?: never;
|
|
@@ -904,12 +1043,12 @@ export interface paths {
|
|
|
904
1043
|
path?: never;
|
|
905
1044
|
cookie?: never;
|
|
906
1045
|
};
|
|
907
|
-
/**
|
|
1046
|
+
/** List static routes */
|
|
908
1047
|
get: operations["list-routes"];
|
|
909
1048
|
put?: never;
|
|
910
1049
|
/**
|
|
911
|
-
*
|
|
912
|
-
* @description
|
|
1050
|
+
* Create a static route
|
|
1051
|
+
* @description Three forms that would sever connectivity are rejected: a destination of `0.0.0.0/0`, which overrides the default route and takes every floating IP offline immediately; a destination equal to the CIDR of a subnet, which overrides its directly connected route; and a next hop equal to the gateway of a subnet, which points back at the router itself.
|
|
913
1052
|
*/
|
|
914
1053
|
post: operations["create-route"];
|
|
915
1054
|
delete?: never;
|
|
@@ -928,7 +1067,7 @@ export interface paths {
|
|
|
928
1067
|
get?: never;
|
|
929
1068
|
put?: never;
|
|
930
1069
|
post?: never;
|
|
931
|
-
/**
|
|
1070
|
+
/** Delete a static route */
|
|
932
1071
|
delete: operations["delete-route"];
|
|
933
1072
|
options?: never;
|
|
934
1073
|
head?: never;
|
|
@@ -943,12 +1082,12 @@ export interface paths {
|
|
|
943
1082
|
cookie?: never;
|
|
944
1083
|
};
|
|
945
1084
|
/**
|
|
946
|
-
*
|
|
947
|
-
* @description IPv6
|
|
1085
|
+
* List subnets
|
|
1086
|
+
* @description IPv6 subnets are included, with `ip_version` 6. They are created when IPv6 is enabled and cannot be deleted individually.
|
|
948
1087
|
*/
|
|
949
1088
|
get: operations["list-subnets"];
|
|
950
1089
|
put?: never;
|
|
951
|
-
/**
|
|
1090
|
+
/** Create a subnet */
|
|
952
1091
|
post: operations["create-subnet"];
|
|
953
1092
|
delete?: never;
|
|
954
1093
|
options?: never;
|
|
@@ -964,8 +1103,8 @@ export interface paths {
|
|
|
964
1103
|
cookie?: never;
|
|
965
1104
|
};
|
|
966
1105
|
/**
|
|
967
|
-
*
|
|
968
|
-
* @description
|
|
1106
|
+
* Suggest the next free CIDR
|
|
1107
|
+
* @description The returned value is a suggestion and is validated again when the subnet is created. It exists to avoid errors when computing the next free CIDR by hand.
|
|
969
1108
|
*/
|
|
970
1109
|
get: operations["suggest-subnet-cidr"];
|
|
971
1110
|
put?: never;
|
|
@@ -987,8 +1126,8 @@ export interface paths {
|
|
|
987
1126
|
put?: never;
|
|
988
1127
|
post?: never;
|
|
989
1128
|
/**
|
|
990
|
-
*
|
|
991
|
-
* @description
|
|
1129
|
+
* Delete a subnet
|
|
1130
|
+
* @description Deletion is rejected while network interfaces remain in the subnet, or while a static route has a next hop inside its CIDR.
|
|
992
1131
|
*/
|
|
993
1132
|
delete: operations["delete-subnet"];
|
|
994
1133
|
options?: never;
|
|
@@ -1003,12 +1142,12 @@ export interface paths {
|
|
|
1003
1142
|
path?: never;
|
|
1004
1143
|
cookie?: never;
|
|
1005
1144
|
};
|
|
1006
|
-
/**
|
|
1145
|
+
/** List security groups */
|
|
1007
1146
|
get: operations["list-security-groups"];
|
|
1008
1147
|
put?: never;
|
|
1009
1148
|
/**
|
|
1010
|
-
*
|
|
1011
|
-
* @description
|
|
1149
|
+
* Create a security group
|
|
1150
|
+
* @description A new security group carries one rule, permitting ICMP fragmentation-needed messages (type 3, code 4). Without it path MTU discovery fails, which presents as connections that establish and then stall on large packets.
|
|
1012
1151
|
*/
|
|
1013
1152
|
post: operations["create-security-group"];
|
|
1014
1153
|
delete?: never;
|
|
@@ -1024,18 +1163,22 @@ export interface paths {
|
|
|
1024
1163
|
path?: never;
|
|
1025
1164
|
cookie?: never;
|
|
1026
1165
|
};
|
|
1027
|
-
/**
|
|
1166
|
+
/** Retrieve a security group */
|
|
1028
1167
|
get: operations["get-security-group"];
|
|
1029
1168
|
put?: never;
|
|
1030
1169
|
post?: never;
|
|
1031
1170
|
/**
|
|
1032
|
-
*
|
|
1033
|
-
* @description
|
|
1171
|
+
* Delete a security group
|
|
1172
|
+
* @description The default security group cannot be deleted, as it is released with the private network. A security group still referenced by a network interface cannot be deleted either.
|
|
1034
1173
|
*/
|
|
1035
1174
|
delete: operations["delete-security-group"];
|
|
1036
1175
|
options?: never;
|
|
1037
1176
|
head?: never;
|
|
1038
|
-
|
|
1177
|
+
/**
|
|
1178
|
+
* Rename a security group
|
|
1179
|
+
* @description Changes the name only. Use the rule endpoints to change rules.
|
|
1180
|
+
*/
|
|
1181
|
+
patch: operations["rename-security-group"];
|
|
1039
1182
|
trace?: never;
|
|
1040
1183
|
};
|
|
1041
1184
|
"/api/v1/security-groups/{securityGroupId}/rules": {
|
|
@@ -1045,12 +1188,12 @@ export interface paths {
|
|
|
1045
1188
|
path?: never;
|
|
1046
1189
|
cookie?: never;
|
|
1047
1190
|
};
|
|
1048
|
-
/**
|
|
1191
|
+
/** List security group rules */
|
|
1049
1192
|
get: operations["list-security-group-rules"];
|
|
1050
1193
|
put?: never;
|
|
1051
1194
|
/**
|
|
1052
|
-
*
|
|
1053
|
-
* @description
|
|
1195
|
+
* Create a security group rule
|
|
1196
|
+
* @description Adding an identical rule twice is rejected. For that comparison `0.0.0.0/0`, `::/0` and an omitted value are treated as equivalent.
|
|
1054
1197
|
*/
|
|
1055
1198
|
post: operations["create-security-group-rule"];
|
|
1056
1199
|
delete?: never;
|
|
@@ -1069,7 +1212,7 @@ export interface paths {
|
|
|
1069
1212
|
get?: never;
|
|
1070
1213
|
put?: never;
|
|
1071
1214
|
post?: never;
|
|
1072
|
-
/**
|
|
1215
|
+
/** Delete a security group rule */
|
|
1073
1216
|
delete: operations["delete-security-group-rule"];
|
|
1074
1217
|
options?: never;
|
|
1075
1218
|
head?: never;
|
|
@@ -1083,14 +1226,14 @@ export interface paths {
|
|
|
1083
1226
|
path?: never;
|
|
1084
1227
|
cookie?: never;
|
|
1085
1228
|
};
|
|
1086
|
-
/**
|
|
1229
|
+
/** List snapshots */
|
|
1087
1230
|
get: operations["list-snapshots"];
|
|
1088
1231
|
put?: never;
|
|
1089
1232
|
/**
|
|
1090
|
-
*
|
|
1091
|
-
* @description
|
|
1233
|
+
* Create a snapshot
|
|
1234
|
+
* @description Disks attached to a running instance can be snapshotted. A snapshot records the state of the block device at a point in time and may be inconsistent at the file-system level, so run `sync` inside the instance first where the data matters.
|
|
1092
1235
|
*
|
|
1093
|
-
*
|
|
1236
|
+
* **A snapshot of a system disk cannot be used to revert that system disk**: reverting requires the disk to be detached, and a system disk cannot be detached. It can be used to create a new data disk. To preserve and restore an entire system, use a private image; for a copy that crosses availability zones and survives deletion of the disk, use a backup.
|
|
1094
1237
|
*/
|
|
1095
1238
|
post: operations["create-snapshot"];
|
|
1096
1239
|
delete?: never;
|
|
@@ -1106,15 +1249,15 @@ export interface paths {
|
|
|
1106
1249
|
path?: never;
|
|
1107
1250
|
cookie?: never;
|
|
1108
1251
|
};
|
|
1109
|
-
/**
|
|
1252
|
+
/** Retrieve a snapshot */
|
|
1110
1253
|
get: operations["get-snapshot"];
|
|
1111
1254
|
put?: never;
|
|
1112
1255
|
post?: never;
|
|
1113
|
-
/**
|
|
1256
|
+
/** Delete a snapshot */
|
|
1114
1257
|
delete: operations["delete-snapshot"];
|
|
1115
1258
|
options?: never;
|
|
1116
1259
|
head?: never;
|
|
1117
|
-
/**
|
|
1260
|
+
/** Rename a snapshot */
|
|
1118
1261
|
patch: operations["rename-snapshot"];
|
|
1119
1262
|
trace?: never;
|
|
1120
1263
|
};
|
|
@@ -1132,7 +1275,7 @@ export interface components {
|
|
|
1132
1275
|
status: number;
|
|
1133
1276
|
};
|
|
1134
1277
|
BackupResource: {
|
|
1135
|
-
/** @description
|
|
1278
|
+
/** @description Availability zone of the source disk. A restore may target another zone in the same region */
|
|
1136
1279
|
availability_zone: string;
|
|
1137
1280
|
/** Format: date-time */
|
|
1138
1281
|
created_at: string;
|
|
@@ -1142,12 +1285,12 @@ export interface components {
|
|
|
1142
1285
|
region_code: string;
|
|
1143
1286
|
/**
|
|
1144
1287
|
* Format: int64
|
|
1145
|
-
* @description
|
|
1288
|
+
* @description Capacity of the source disk when the backup was created. A restored disk cannot be smaller than this
|
|
1146
1289
|
*/
|
|
1147
1290
|
size_gb: number;
|
|
1148
1291
|
/**
|
|
1149
1292
|
* Format: uuid
|
|
1150
|
-
* @description
|
|
1293
|
+
* @description The disk this backup was taken from. The backup remains usable after that disk is deleted
|
|
1151
1294
|
*/
|
|
1152
1295
|
source_disk_id: string;
|
|
1153
1296
|
/** @enum {string} */
|
|
@@ -1167,29 +1310,29 @@ export interface components {
|
|
|
1167
1310
|
RestoreBackupRequestBody: {
|
|
1168
1311
|
/**
|
|
1169
1312
|
* Format: uuid
|
|
1170
|
-
* @description
|
|
1313
|
+
* @description May differ from the availability zone of the source disk, but must be in the same region
|
|
1171
1314
|
*/
|
|
1172
1315
|
disk_type_id: string;
|
|
1173
1316
|
name: string;
|
|
1174
1317
|
/**
|
|
1175
1318
|
* Format: int64
|
|
1176
|
-
* @description
|
|
1319
|
+
* @description Matches the size of the backup when omitted. When given, it must not be smaller than the backup
|
|
1177
1320
|
*/
|
|
1178
1321
|
size_gb?: number;
|
|
1179
1322
|
};
|
|
1180
1323
|
DiskResource: {
|
|
1181
1324
|
attached_instance_id: string | null;
|
|
1182
|
-
/** @description
|
|
1325
|
+
/** @description Availability zone the disk actually resides in. An instance must be in the same zone to attach it */
|
|
1183
1326
|
availability_zone: string;
|
|
1184
1327
|
/** Format: date-time */
|
|
1185
1328
|
created_at: string;
|
|
1186
|
-
/** @description
|
|
1329
|
+
/** @description Device name assigned by the system, as seen inside the instance */
|
|
1187
1330
|
device: string | null;
|
|
1188
1331
|
/** Format: uuid */
|
|
1189
1332
|
disk_type_id: string;
|
|
1190
1333
|
/** Format: uuid */
|
|
1191
1334
|
id: string;
|
|
1192
|
-
/** @description
|
|
1335
|
+
/** @description A system disk is released with its instance and can be neither detached nor deleted individually */
|
|
1193
1336
|
is_system: boolean;
|
|
1194
1337
|
name: string;
|
|
1195
1338
|
region_code: string;
|
|
@@ -1222,6 +1365,8 @@ export interface components {
|
|
|
1222
1365
|
architecture: string;
|
|
1223
1366
|
/** Format: uuid */
|
|
1224
1367
|
id: string;
|
|
1368
|
+
/** @description The account this image lets you log in as. The password set at creation belongs to this account */
|
|
1369
|
+
login_username: string;
|
|
1225
1370
|
/** Format: int64 */
|
|
1226
1371
|
min_disk_gb: number;
|
|
1227
1372
|
/** Format: int64 */
|
|
@@ -1230,14 +1375,14 @@ export interface components {
|
|
|
1230
1375
|
os_family: string;
|
|
1231
1376
|
os_version: string;
|
|
1232
1377
|
region_code: string;
|
|
1233
|
-
/** @description
|
|
1378
|
+
/** @description False means a new password can only be set by rebuilding an instance created from this image */
|
|
1234
1379
|
supports_password_reset: boolean;
|
|
1235
1380
|
};
|
|
1236
1381
|
ImageListResponseBody: {
|
|
1237
1382
|
items: components["schemas"]["ImageResource"][] | null;
|
|
1238
1383
|
};
|
|
1239
1384
|
InstanceTypeResource: {
|
|
1240
|
-
/** @description
|
|
1385
|
+
/** @description Availability zone of this instance type. A disk must be in the same zone to be attached */
|
|
1241
1386
|
availability_zone_code: string;
|
|
1242
1387
|
/** Format: uuid */
|
|
1243
1388
|
id: string;
|
|
@@ -1283,7 +1428,7 @@ export interface components {
|
|
|
1283
1428
|
size_gb: number;
|
|
1284
1429
|
/**
|
|
1285
1430
|
* Format: uuid
|
|
1286
|
-
* @description
|
|
1431
|
+
* @description Restore from this snapshot. When given, the capacity need only be no smaller than the snapshot
|
|
1287
1432
|
*/
|
|
1288
1433
|
snapshot_id?: string;
|
|
1289
1434
|
};
|
|
@@ -1293,14 +1438,14 @@ export interface components {
|
|
|
1293
1438
|
ResizeDiskRequestBody: {
|
|
1294
1439
|
/**
|
|
1295
1440
|
* Format: int64
|
|
1296
|
-
* @description
|
|
1441
|
+
* @description Must be larger than the current capacity
|
|
1297
1442
|
*/
|
|
1298
1443
|
size_gb: number;
|
|
1299
1444
|
};
|
|
1300
1445
|
RevertDiskRequestBody: {
|
|
1301
1446
|
/**
|
|
1302
1447
|
* Format: uuid
|
|
1303
|
-
* @description
|
|
1448
|
+
* @description Must be the most recent snapshot of the disk
|
|
1304
1449
|
*/
|
|
1305
1450
|
snapshot_id: string;
|
|
1306
1451
|
};
|
|
@@ -1318,7 +1463,7 @@ export interface components {
|
|
|
1318
1463
|
id: string;
|
|
1319
1464
|
region_code: string;
|
|
1320
1465
|
/**
|
|
1321
|
-
* @description idle
|
|
1466
|
+
* @description `idle` means the address is not bound to a network interface
|
|
1322
1467
|
* @enum {string}
|
|
1323
1468
|
*/
|
|
1324
1469
|
status: "idle" | "bound";
|
|
@@ -1327,7 +1472,7 @@ export interface components {
|
|
|
1327
1472
|
items: components["schemas"]["FloatingIPResource"][] | null;
|
|
1328
1473
|
};
|
|
1329
1474
|
AllocateFloatingIPRequestBody: {
|
|
1330
|
-
/** @description
|
|
1475
|
+
/** @description The address to allocate. Allocated by the platform when omitted */
|
|
1331
1476
|
address?: string;
|
|
1332
1477
|
/** Format: uuid */
|
|
1333
1478
|
private_network_id: string;
|
|
@@ -1335,7 +1480,7 @@ export interface components {
|
|
|
1335
1480
|
SetBandwidthRequestBody: {
|
|
1336
1481
|
/**
|
|
1337
1482
|
* Format: int64
|
|
1338
|
-
* @description
|
|
1483
|
+
* @description Applied to both directions
|
|
1339
1484
|
*/
|
|
1340
1485
|
mbps: number;
|
|
1341
1486
|
};
|
|
@@ -1347,47 +1492,67 @@ export interface components {
|
|
|
1347
1492
|
availability_zone: string;
|
|
1348
1493
|
/** Format: date-time */
|
|
1349
1494
|
created_at: string;
|
|
1350
|
-
/** @description
|
|
1495
|
+
/** @description Hostname inside the instance; equals the instance id */
|
|
1351
1496
|
hostname: string;
|
|
1352
1497
|
/** Format: uuid */
|
|
1353
1498
|
id: string;
|
|
1354
1499
|
/**
|
|
1355
1500
|
* Format: uuid
|
|
1356
|
-
* @description
|
|
1501
|
+
* @description Non-empty when the instance was created from a disk you already had, instead of from an image
|
|
1502
|
+
*/
|
|
1503
|
+
boot_disk_id: string | null;
|
|
1504
|
+
/**
|
|
1505
|
+
* Format: uuid
|
|
1506
|
+
* @description Non-empty when the instance was created from a platform image
|
|
1357
1507
|
*/
|
|
1358
1508
|
image_id: string | null;
|
|
1359
1509
|
/**
|
|
1360
1510
|
* Format: uuid
|
|
1361
|
-
* @description
|
|
1511
|
+
* @description The instance type in effect, and the basis for billing
|
|
1362
1512
|
*/
|
|
1363
1513
|
instance_type_id: string;
|
|
1364
|
-
/** @description
|
|
1514
|
+
/** @description IPv6 address of the primary network interface. Assigned automatically once IPv6 is enabled on the private network */
|
|
1365
1515
|
ipv6_address: string | null;
|
|
1516
|
+
/** @description Your own classification of this instance, as key-value pairs. Empty when never set */
|
|
1517
|
+
labels: {
|
|
1518
|
+
[key: string]: string;
|
|
1519
|
+
};
|
|
1520
|
+
/** @description The account to log in as over SSH. The password set at creation belongs to this account */
|
|
1521
|
+
login_username: string;
|
|
1366
1522
|
name: string;
|
|
1523
|
+
/** @description A free-text note about this instance. Empty when never set */
|
|
1524
|
+
notes: string;
|
|
1367
1525
|
/**
|
|
1368
1526
|
* Format: uuid
|
|
1369
|
-
* @description
|
|
1527
|
+
* @description Non-empty while a resize awaits confirmation. Confirming puts this type into effect, reverting discards it
|
|
1370
1528
|
*/
|
|
1371
1529
|
pending_instance_type_id: string | null;
|
|
1372
1530
|
/**
|
|
1373
1531
|
* Format: uuid
|
|
1374
|
-
* @description
|
|
1532
|
+
* @description Non-empty when the instance was created from a private image
|
|
1375
1533
|
*/
|
|
1376
1534
|
private_image_id: string | null;
|
|
1377
|
-
/** @description
|
|
1535
|
+
/** @description Private address of the instance */
|
|
1378
1536
|
private_ip: string | null;
|
|
1379
|
-
/** @description
|
|
1537
|
+
/** @description Private network of the primary network interface */
|
|
1380
1538
|
private_network_id: string | null;
|
|
1381
|
-
/** @description
|
|
1539
|
+
/** @description Floating IPv4 addresses bound to the primary network interface; an empty array when none are bound */
|
|
1382
1540
|
public_ips: string[] | null;
|
|
1383
1541
|
region_code: string;
|
|
1384
|
-
/**
|
|
1385
|
-
|
|
1386
|
-
|
|
1542
|
+
/**
|
|
1543
|
+
* @description Only `running` and `stopped` accept commands. Every other value means the instance is changing, and start, stop, reboot, resize, rebuild and password reset are all rejected.
|
|
1544
|
+
*
|
|
1545
|
+
* `transitioning` is the fallback for a change that falls into none of the categories above. It does not indicate an error; keep polling.
|
|
1546
|
+
*
|
|
1547
|
+
* `resize_verifying` is not transient: the instance is running on the new size and stays there until the resize is confirmed or reverted, with both sizes billed in the meantime.
|
|
1548
|
+
* @enum {string}
|
|
1549
|
+
*/
|
|
1550
|
+
status: "provisioning" | "running" | "stopped" | "starting" | "stopping" | "rebooting" | "transitioning" | "resizing" | "resize_verifying" | "error" | "deleting" | "suspended";
|
|
1551
|
+
/** @description Subnet of the primary network interface */
|
|
1387
1552
|
subnet_id: string | null;
|
|
1388
1553
|
/**
|
|
1389
1554
|
* Format: date-time
|
|
1390
|
-
* @description
|
|
1555
|
+
* @description Non-empty once the platform has suspended the instance, which must be lifted before any operation
|
|
1391
1556
|
*/
|
|
1392
1557
|
suspended_at: string | null;
|
|
1393
1558
|
/** Format: date-time */
|
|
@@ -1399,102 +1564,139 @@ export interface components {
|
|
|
1399
1564
|
LaunchInstanceRequestBody: {
|
|
1400
1565
|
/**
|
|
1401
1566
|
* Format: int64
|
|
1402
|
-
* @description
|
|
1567
|
+
* @description Number of instances to create; 1 when omitted. Names are numbered automatically for several
|
|
1403
1568
|
*/
|
|
1404
1569
|
count?: number;
|
|
1405
|
-
/** @description
|
|
1570
|
+
/** @description Have the platform generate a random password, returned only in this response */
|
|
1406
1571
|
generate_password?: boolean;
|
|
1407
1572
|
/**
|
|
1408
1573
|
* Format: uuid
|
|
1409
|
-
* @description
|
|
1574
|
+
* @description Boot a disk you already have instead of installing an image. The disk must be available, unattached, and in the same availability zone as the instance type. Exactly one of this, `image_id` and `private_image_id`
|
|
1575
|
+
*/
|
|
1576
|
+
boot_disk_id?: string;
|
|
1577
|
+
/**
|
|
1578
|
+
* Format: uuid
|
|
1579
|
+
* @description A platform image. Exactly one of this, `private_image_id` and `boot_disk_id`
|
|
1410
1580
|
*/
|
|
1411
1581
|
image_id?: string;
|
|
1412
1582
|
/** Format: uuid */
|
|
1413
1583
|
instance_type_id: string;
|
|
1584
|
+
/** @description The account the disk lets you log in as. Required with `boot_disk_id`, and rejected without it since an image states its own */
|
|
1585
|
+
login_username?: string;
|
|
1414
1586
|
name: string;
|
|
1415
|
-
/** @description root
|
|
1587
|
+
/** @description The password to set, on the login account and on root. Only the SSH public keys of the project are used when omitted */
|
|
1416
1588
|
password?: string;
|
|
1417
1589
|
/**
|
|
1418
1590
|
* Format: uuid
|
|
1419
|
-
* @description
|
|
1591
|
+
* @description Use an existing network interface, which may already have a floating IP bound. Exactly one of this and `subnet_id`; only one instance can be created when it is used
|
|
1420
1592
|
*/
|
|
1421
1593
|
port_id?: string;
|
|
1422
1594
|
/**
|
|
1423
1595
|
* Format: uuid
|
|
1424
|
-
* @description
|
|
1596
|
+
* @description A private image. Exactly one of this, `image_id` and `boot_disk_id`
|
|
1425
1597
|
*/
|
|
1426
1598
|
private_image_id?: string;
|
|
1427
1599
|
/**
|
|
1428
1600
|
* Format: int64
|
|
1429
|
-
* @description
|
|
1601
|
+
* @description System disk capacity in GB. Chosen automatically from the requirement of the image and the platform minimum when omitted. Ignored with `boot_disk_id`, since that disk already has its capacity
|
|
1430
1602
|
*/
|
|
1431
1603
|
root_disk_gb?: number;
|
|
1432
|
-
/** @description
|
|
1604
|
+
/** @description Required when a primary network interface is created, at least one; the default security group is not applied automatically. Ignored together with `port_id`, as the security groups of that interface were fixed when it was created */
|
|
1433
1605
|
security_group_ids?: string[] | null;
|
|
1434
1606
|
/**
|
|
1435
1607
|
* Format: uuid
|
|
1436
|
-
* @description
|
|
1608
|
+
* @description Create the primary network interface in this subnet. Exactly one of this and `port_id`
|
|
1437
1609
|
*/
|
|
1438
1610
|
subnet_id?: string;
|
|
1439
1611
|
};
|
|
1440
1612
|
LaunchInstanceResponseBody: {
|
|
1441
|
-
/** @description
|
|
1613
|
+
/** @description Non-empty when only some of the instances were created, stating why the sequence stopped */
|
|
1442
1614
|
failure: string | null;
|
|
1443
|
-
/** @description
|
|
1615
|
+
/** @description Returned in request order; an array even for a single instance */
|
|
1444
1616
|
instances: components["schemas"]["InstanceResource"][] | null;
|
|
1445
|
-
/** @description
|
|
1617
|
+
/** @description Returned only in this response; store it immediately. All instances of a batch share it */
|
|
1446
1618
|
password: string;
|
|
1447
1619
|
};
|
|
1620
|
+
SetInstanceLabelsRequestBody: {
|
|
1621
|
+
/** @description The complete set of labels. Whatever is absent here is removed; send an empty object to clear them all. A key may not contain a colon, whitespace or control characters */
|
|
1622
|
+
labels: {
|
|
1623
|
+
[key: string]: string;
|
|
1624
|
+
};
|
|
1625
|
+
};
|
|
1626
|
+
SetInstanceNotesRequestBody: {
|
|
1627
|
+
/** @description The complete note. Send an empty string to clear it */
|
|
1628
|
+
notes: string;
|
|
1629
|
+
};
|
|
1448
1630
|
RenameInstanceRequestBody: {
|
|
1449
1631
|
name: string;
|
|
1450
1632
|
};
|
|
1451
|
-
|
|
1452
|
-
/** @
|
|
1453
|
-
action: "start" | "stop" | "reboot";
|
|
1454
|
-
/** @description 仅适用于 reboot。强制重启不等待操作系统正常关闭,未落盘的数据会丢失,用于系统已无响应的情况 */
|
|
1633
|
+
RebootInstanceRequestBody: {
|
|
1634
|
+
/** @description A forced reboot does not wait for the operating system to shut down and unwritten data is lost; use it when the system is unresponsive. False when omitted */
|
|
1455
1635
|
force?: boolean;
|
|
1456
1636
|
};
|
|
1637
|
+
RunCommandRequestBody: {
|
|
1638
|
+
/** @description Run by the login shell, so pipes, redirection and `&&` work. It cannot read standard input */
|
|
1639
|
+
command: string;
|
|
1640
|
+
/**
|
|
1641
|
+
* Format: int64
|
|
1642
|
+
* @description Kill the command after this long. 60 when omitted
|
|
1643
|
+
*/
|
|
1644
|
+
timeout_seconds?: number;
|
|
1645
|
+
};
|
|
1646
|
+
CommandResultResponseBody: {
|
|
1647
|
+
/**
|
|
1648
|
+
* Format: int64
|
|
1649
|
+
* @description What the command exited with, 0 being success. Any other value is the command's own verdict and still arrives as a 200. Null when it was killed rather than exiting on its own, which includes the timeout — null is the absence of a verdict, not a successful one
|
|
1650
|
+
*/
|
|
1651
|
+
exit_code: number | null;
|
|
1652
|
+
stderr: string;
|
|
1653
|
+
stdout: string;
|
|
1654
|
+
/** @description True when the command was still running at the timeout and was killed */
|
|
1655
|
+
timed_out: boolean;
|
|
1656
|
+
/** @description True when either stream hit the 1 MiB cap and the rest was discarded */
|
|
1657
|
+
truncated: boolean;
|
|
1658
|
+
};
|
|
1457
1659
|
ConsoleResponseBody: {
|
|
1458
|
-
/** @description
|
|
1660
|
+
/** @description Connection address of the remote console; single-use and expires within minutes */
|
|
1459
1661
|
console_url: string;
|
|
1460
1662
|
};
|
|
1461
1663
|
ConsoleOutputResponseBody: {
|
|
1462
|
-
/** @description
|
|
1664
|
+
/** @description Raw text of the console output, in the same line order as inside the instance */
|
|
1463
1665
|
output: string;
|
|
1464
1666
|
};
|
|
1465
1667
|
ResetPasswordRequestBody: {
|
|
1466
|
-
/** @description
|
|
1668
|
+
/** @description Have the platform generate a random password, returned only in this response */
|
|
1467
1669
|
generate_password?: boolean;
|
|
1468
|
-
/** @description
|
|
1670
|
+
/** @description New root password. Exactly one of this and `generate_password` */
|
|
1469
1671
|
password?: string;
|
|
1470
1672
|
};
|
|
1471
1673
|
ResetPasswordResponseBody: {
|
|
1472
|
-
/** @description
|
|
1674
|
+
/** @description The password generated by the platform, returned only in this response. Empty when the password was supplied in the request */
|
|
1473
1675
|
password: string;
|
|
1474
1676
|
};
|
|
1475
1677
|
RebuildInstanceRequestBody: {
|
|
1476
1678
|
generate_password?: boolean;
|
|
1477
1679
|
/**
|
|
1478
1680
|
* Format: uuid
|
|
1479
|
-
* @description
|
|
1681
|
+
* @description A platform image. Exactly one of this and `private_image_id`
|
|
1480
1682
|
*/
|
|
1481
1683
|
image_id?: string;
|
|
1482
1684
|
password?: string;
|
|
1483
1685
|
/**
|
|
1484
1686
|
* Format: uuid
|
|
1485
|
-
* @description
|
|
1687
|
+
* @description A private image. Exactly one of this and `image_id`
|
|
1486
1688
|
*/
|
|
1487
1689
|
private_image_id?: string;
|
|
1488
1690
|
};
|
|
1489
1691
|
RebuildInstanceResponseBody: {
|
|
1490
1692
|
instance: components["schemas"]["InstanceResource"];
|
|
1491
|
-
/** @description
|
|
1693
|
+
/** @description Returned only in this response; store it immediately */
|
|
1492
1694
|
password: string;
|
|
1493
1695
|
};
|
|
1494
1696
|
ResizeInstanceRequestBody: {
|
|
1495
1697
|
/**
|
|
1496
1698
|
* Format: uuid
|
|
1497
|
-
* @description
|
|
1699
|
+
* @description Must be in the same region and availability zone as the current instance type
|
|
1498
1700
|
*/
|
|
1499
1701
|
instance_type_id: string;
|
|
1500
1702
|
};
|
|
@@ -1511,14 +1713,14 @@ export interface components {
|
|
|
1511
1713
|
/** Format: uuid */
|
|
1512
1714
|
id: string;
|
|
1513
1715
|
ipv6_address: string | null;
|
|
1514
|
-
/** @description
|
|
1716
|
+
/** @description A primary network interface is created and released with its instance and cannot be detached individually */
|
|
1515
1717
|
is_primary: boolean;
|
|
1516
1718
|
mac: string | null;
|
|
1517
1719
|
name: string;
|
|
1518
1720
|
private_ip: string | null;
|
|
1519
1721
|
/** Format: uuid */
|
|
1520
1722
|
private_network_id: string;
|
|
1521
|
-
/** @description
|
|
1723
|
+
/** @description Floating IPv4 addresses bound to this network interface; an empty array when none are bound */
|
|
1522
1724
|
public_ips: string[] | null;
|
|
1523
1725
|
/** Format: uuid */
|
|
1524
1726
|
subnet_id: string;
|
|
@@ -1531,24 +1733,30 @@ export interface components {
|
|
|
1531
1733
|
port_id: string;
|
|
1532
1734
|
};
|
|
1533
1735
|
OperationLogResource: {
|
|
1534
|
-
/** @description
|
|
1736
|
+
/** @description Name of the operation; matches the operation id of the endpoint */
|
|
1535
1737
|
action: string;
|
|
1536
|
-
/** @description
|
|
1738
|
+
/** @description The user who initiated the operation. Empty when the platform performed it */
|
|
1537
1739
|
actor: string | null;
|
|
1538
|
-
/**
|
|
1740
|
+
/**
|
|
1741
|
+
* @description The name this user went by at the time of the operation, recorded alongside the operation itself. It is not refreshed afterwards: the record states who acted then, and a name read today is a statement about a different moment.
|
|
1742
|
+
*
|
|
1743
|
+
* Null on entries recorded before this field existed, and on entries performed by the platform. An empty string means the account had no name recorded.
|
|
1744
|
+
*/
|
|
1745
|
+
actor_name: string | null;
|
|
1746
|
+
/** @description True when the operation was performed by the platform */
|
|
1539
1747
|
by_platform: boolean;
|
|
1540
1748
|
/** Format: date-time */
|
|
1541
1749
|
created_at: string;
|
|
1542
|
-
/** @description
|
|
1750
|
+
/** @description Brief reason for the failure */
|
|
1543
1751
|
failure: string | null;
|
|
1544
1752
|
/** Format: uuid */
|
|
1545
1753
|
id: string;
|
|
1546
|
-
/** @description
|
|
1754
|
+
/** @description Path and query parameters of the request. Fields such as passwords are redacted */
|
|
1547
1755
|
payload: {
|
|
1548
1756
|
[key: string]: unknown;
|
|
1549
1757
|
};
|
|
1550
1758
|
region_code: string | null;
|
|
1551
|
-
/** @description
|
|
1759
|
+
/** @description Empty for create operations: the id of the new resource is in the response, not in the request path */
|
|
1552
1760
|
subject_id: string;
|
|
1553
1761
|
subject_type: string;
|
|
1554
1762
|
succeeded: boolean;
|
|
@@ -1560,9 +1768,9 @@ export interface components {
|
|
|
1560
1768
|
};
|
|
1561
1769
|
CreatePortRequestBody: {
|
|
1562
1770
|
name?: string;
|
|
1563
|
-
/** @description
|
|
1771
|
+
/** @description The private address to assign. Allocated automatically when omitted */
|
|
1564
1772
|
private_ip?: string;
|
|
1565
|
-
/** @description
|
|
1773
|
+
/** @description At least one, and all must belong to the same private network */
|
|
1566
1774
|
security_group_ids: string[] | null;
|
|
1567
1775
|
/** Format: uuid */
|
|
1568
1776
|
subnet_id: string;
|
|
@@ -1571,38 +1779,40 @@ export interface components {
|
|
|
1571
1779
|
architecture: string;
|
|
1572
1780
|
/** Format: date-time */
|
|
1573
1781
|
created_at: string;
|
|
1574
|
-
/** @description
|
|
1782
|
+
/** @description Reason the capture failed; non-empty only when `status` is `error` */
|
|
1575
1783
|
failure: string | null;
|
|
1576
1784
|
/** Format: uuid */
|
|
1577
1785
|
id: string;
|
|
1786
|
+
/** @description The account this image lets you log in as. The password set at creation belongs to this account */
|
|
1787
|
+
login_username: string;
|
|
1578
1788
|
/**
|
|
1579
1789
|
* Format: int64
|
|
1580
|
-
* @description
|
|
1790
|
+
* @description The system disk of an instance created from this image cannot be smaller than this
|
|
1581
1791
|
*/
|
|
1582
1792
|
min_disk_gb: number;
|
|
1583
1793
|
/**
|
|
1584
1794
|
* Format: int64
|
|
1585
|
-
* @description
|
|
1795
|
+
* @description The instance type of an instance created from this image must have at least this much memory
|
|
1586
1796
|
*/
|
|
1587
1797
|
min_ram_mb: number;
|
|
1588
1798
|
name: string;
|
|
1589
1799
|
os_family: string;
|
|
1590
1800
|
os_version: string;
|
|
1591
|
-
/** @description
|
|
1801
|
+
/** @description An image can only be used in the region that holds it */
|
|
1592
1802
|
region_code: string;
|
|
1593
1803
|
/**
|
|
1594
1804
|
* Format: int64
|
|
1595
|
-
* @description
|
|
1805
|
+
* @description Storage occupied by the image; 0 until the capture completes
|
|
1596
1806
|
*/
|
|
1597
1807
|
size_bytes: number;
|
|
1598
1808
|
/**
|
|
1599
1809
|
* Format: uuid
|
|
1600
|
-
* @description
|
|
1810
|
+
* @description The instance this image was captured from. The image remains usable after that instance is released
|
|
1601
1811
|
*/
|
|
1602
1812
|
source_instance_id: string | null;
|
|
1603
1813
|
/** @enum {string} */
|
|
1604
1814
|
status: "provisioning" | "uploading" | "available" | "deleting" | "error";
|
|
1605
|
-
/** @description
|
|
1815
|
+
/** @description False means a new password can only be set by rebuilding an instance created from this image */
|
|
1606
1816
|
supports_password_reset: boolean;
|
|
1607
1817
|
};
|
|
1608
1818
|
PrivateImageListResponseBody: {
|
|
@@ -1611,7 +1821,7 @@ export interface components {
|
|
|
1611
1821
|
CreatePrivateImageRequestBody: {
|
|
1612
1822
|
/**
|
|
1613
1823
|
* Format: uuid
|
|
1614
|
-
* @description
|
|
1824
|
+
* @description Captured from the system disk of this instance; data disks are not included
|
|
1615
1825
|
*/
|
|
1616
1826
|
instance_id: string;
|
|
1617
1827
|
name: string;
|
|
@@ -1637,7 +1847,7 @@ export interface components {
|
|
|
1637
1847
|
items: components["schemas"]["PrivateNetworkResource"][] | null;
|
|
1638
1848
|
};
|
|
1639
1849
|
CreatePrivateNetworkRequestBody: {
|
|
1640
|
-
/** @description
|
|
1850
|
+
/** @description Must be an RFC 1918 private CIDR with a prefix length between /8 and /24, for example `10.0.0.0/16` */
|
|
1641
1851
|
cidr: string;
|
|
1642
1852
|
name: string;
|
|
1643
1853
|
region_code: string;
|
|
@@ -1646,11 +1856,11 @@ export interface components {
|
|
|
1646
1856
|
name: string;
|
|
1647
1857
|
};
|
|
1648
1858
|
IPv6ResponseBody: {
|
|
1649
|
-
/** @description
|
|
1859
|
+
/** @description The allocated /64 prefix; empty while IPv6 is disabled */
|
|
1650
1860
|
cidr: string;
|
|
1651
1861
|
enabled: boolean;
|
|
1652
1862
|
/**
|
|
1653
|
-
* @description
|
|
1863
|
+
* @description `active` means IPv6 is fully available
|
|
1654
1864
|
* @enum {string}
|
|
1655
1865
|
*/
|
|
1656
1866
|
status: "pending" | "active" | "draining";
|
|
@@ -1669,9 +1879,9 @@ export interface components {
|
|
|
1669
1879
|
};
|
|
1670
1880
|
CreateRouteRequestBody: {
|
|
1671
1881
|
description?: string;
|
|
1672
|
-
/** @description
|
|
1882
|
+
/** @description Destination CIDR. It cannot be `0.0.0.0/0`, nor the CIDR of a subnet of this network */
|
|
1673
1883
|
destination: string;
|
|
1674
|
-
/** @description
|
|
1884
|
+
/** @description Private address of an instance; must fall inside a subnet of this private network */
|
|
1675
1885
|
nexthop: string;
|
|
1676
1886
|
};
|
|
1677
1887
|
SubnetResource: {
|
|
@@ -1692,12 +1902,12 @@ export interface components {
|
|
|
1692
1902
|
items: components["schemas"]["SubnetResource"][] | null;
|
|
1693
1903
|
};
|
|
1694
1904
|
CreateSubnetRequestBody: {
|
|
1695
|
-
/** @description
|
|
1905
|
+
/** @description Must fall inside the CIDR of the private network and must not overlap an existing subnet */
|
|
1696
1906
|
cidr: string;
|
|
1697
1907
|
name: string;
|
|
1698
1908
|
};
|
|
1699
1909
|
NextFreeCidrResponseBody: {
|
|
1700
|
-
/** @description
|
|
1910
|
+
/** @description Empty when the private network has no free CIDR left for that prefix length */
|
|
1701
1911
|
cidr: string;
|
|
1702
1912
|
};
|
|
1703
1913
|
SecurityGroupResource: {
|
|
@@ -1706,7 +1916,7 @@ export interface components {
|
|
|
1706
1916
|
description: string;
|
|
1707
1917
|
/** Format: uuid */
|
|
1708
1918
|
id: string;
|
|
1709
|
-
/** @description
|
|
1919
|
+
/** @description The default security group is released with its private network and cannot be deleted individually */
|
|
1710
1920
|
is_default: boolean;
|
|
1711
1921
|
name: string;
|
|
1712
1922
|
/** Format: uuid */
|
|
@@ -1733,12 +1943,12 @@ export interface components {
|
|
|
1733
1943
|
id: string;
|
|
1734
1944
|
/**
|
|
1735
1945
|
* Format: int64
|
|
1736
|
-
* @description ICMP
|
|
1946
|
+
* @description Denotes the ICMP code rather than a port when the protocol is ICMP
|
|
1737
1947
|
*/
|
|
1738
1948
|
port_range_max: number | null;
|
|
1739
1949
|
/**
|
|
1740
1950
|
* Format: int64
|
|
1741
|
-
* @description ICMP
|
|
1951
|
+
* @description Denotes the ICMP type rather than a port when the protocol is ICMP
|
|
1742
1952
|
*/
|
|
1743
1953
|
port_range_min: number | null;
|
|
1744
1954
|
protocol: string | null;
|
|
@@ -1755,21 +1965,21 @@ export interface components {
|
|
|
1755
1965
|
ethertype: "IPv4" | "IPv6";
|
|
1756
1966
|
/**
|
|
1757
1967
|
* Format: int64
|
|
1758
|
-
* @description ICMP
|
|
1968
|
+
* @description Denotes the ICMP code (0–255) rather than a port when the protocol is ICMP
|
|
1759
1969
|
*/
|
|
1760
1970
|
port_range_max?: number | null;
|
|
1761
1971
|
/**
|
|
1762
1972
|
* Format: int64
|
|
1763
|
-
* @description ICMP
|
|
1973
|
+
* @description Denotes the ICMP type (0–255) rather than a port when the protocol is ICMP
|
|
1764
1974
|
*/
|
|
1765
1975
|
port_range_min?: number | null;
|
|
1766
|
-
/** @description
|
|
1976
|
+
/** @description For example `tcp`, `udp`, `icmp` or `ipv6-icmp`. All protocols when omitted */
|
|
1767
1977
|
protocol?: string;
|
|
1768
|
-
/** @description
|
|
1978
|
+
/** @description Equivalent to `0.0.0.0/0` or `::/0` when omitted */
|
|
1769
1979
|
remote_ip_prefix?: string;
|
|
1770
1980
|
};
|
|
1771
1981
|
SnapshotResource: {
|
|
1772
|
-
/** @description
|
|
1982
|
+
/** @description A disk restored from this snapshot must reside in this availability zone */
|
|
1773
1983
|
availability_zone: string;
|
|
1774
1984
|
/** Format: date-time */
|
|
1775
1985
|
created_at: string;
|
|
@@ -1781,7 +1991,7 @@ export interface components {
|
|
|
1781
1991
|
region_code: string;
|
|
1782
1992
|
/**
|
|
1783
1993
|
* Format: int64
|
|
1784
|
-
* @description
|
|
1994
|
+
* @description Capacity of the source disk when the snapshot was created. A disk restored from it cannot be smaller
|
|
1785
1995
|
*/
|
|
1786
1996
|
size_gb: number;
|
|
1787
1997
|
/** @enum {string} */
|
|
@@ -1795,6 +2005,9 @@ export interface components {
|
|
|
1795
2005
|
disk_id: string;
|
|
1796
2006
|
name: string;
|
|
1797
2007
|
};
|
|
2008
|
+
RenameSecurityGroupRequestBody: {
|
|
2009
|
+
name: string;
|
|
2010
|
+
};
|
|
1798
2011
|
RenameSnapshotRequestBody: {
|
|
1799
2012
|
name: string;
|
|
1800
2013
|
};
|
|
@@ -1810,7 +2023,7 @@ export interface operations {
|
|
|
1810
2023
|
"list-backups": {
|
|
1811
2024
|
parameters: {
|
|
1812
2025
|
query?: {
|
|
1813
|
-
/** @description
|
|
2026
|
+
/** @description Return only the backups of this disk */
|
|
1814
2027
|
disk_id?: string;
|
|
1815
2028
|
};
|
|
1816
2029
|
header?: never;
|
|
@@ -2159,7 +2372,7 @@ export interface operations {
|
|
|
2159
2372
|
parameters: {
|
|
2160
2373
|
query?: {
|
|
2161
2374
|
region_code?: string;
|
|
2162
|
-
/** @description
|
|
2375
|
+
/** @description Supplied together with `region_code` to filter attachable disks */
|
|
2163
2376
|
availability_zone?: string;
|
|
2164
2377
|
};
|
|
2165
2378
|
header?: never;
|
|
@@ -2611,7 +2824,10 @@ export interface operations {
|
|
|
2611
2824
|
};
|
|
2612
2825
|
"list-instances": {
|
|
2613
2826
|
parameters: {
|
|
2614
|
-
query?:
|
|
2827
|
+
query?: {
|
|
2828
|
+
/** @description Only instances carrying this label, written as `key:value` — for example `env:prod`. Both halves are matched exactly */
|
|
2829
|
+
label?: string;
|
|
2830
|
+
};
|
|
2615
2831
|
header?: never;
|
|
2616
2832
|
path?: never;
|
|
2617
2833
|
cookie?: never;
|
|
@@ -2766,7 +2982,7 @@ export interface operations {
|
|
|
2766
2982
|
};
|
|
2767
2983
|
};
|
|
2768
2984
|
};
|
|
2769
|
-
"
|
|
2985
|
+
"run-instance-command": {
|
|
2770
2986
|
parameters: {
|
|
2771
2987
|
query?: never;
|
|
2772
2988
|
header?: never;
|
|
@@ -2777,7 +2993,7 @@ export interface operations {
|
|
|
2777
2993
|
};
|
|
2778
2994
|
requestBody: {
|
|
2779
2995
|
content: {
|
|
2780
|
-
"application/json": components["schemas"]["
|
|
2996
|
+
"application/json": components["schemas"]["RunCommandRequestBody"];
|
|
2781
2997
|
};
|
|
2782
2998
|
};
|
|
2783
2999
|
responses: {
|
|
@@ -2787,7 +3003,7 @@ export interface operations {
|
|
|
2787
3003
|
[name: string]: unknown;
|
|
2788
3004
|
};
|
|
2789
3005
|
content: {
|
|
2790
|
-
"application/json": components["schemas"]["
|
|
3006
|
+
"application/json": components["schemas"]["CommandResultResponseBody"];
|
|
2791
3007
|
};
|
|
2792
3008
|
};
|
|
2793
3009
|
/** @description Error */
|
|
@@ -2835,7 +3051,7 @@ export interface operations {
|
|
|
2835
3051
|
"get-instance-console-output": {
|
|
2836
3052
|
parameters: {
|
|
2837
3053
|
query?: {
|
|
2838
|
-
/** @description
|
|
3054
|
+
/** @description Number of trailing lines to return; 0 returns the entire output */
|
|
2839
3055
|
lines?: number;
|
|
2840
3056
|
};
|
|
2841
3057
|
header?: never;
|
|
@@ -2866,6 +3082,76 @@ export interface operations {
|
|
|
2866
3082
|
};
|
|
2867
3083
|
};
|
|
2868
3084
|
};
|
|
3085
|
+
"set-instance-labels": {
|
|
3086
|
+
parameters: {
|
|
3087
|
+
query?: never;
|
|
3088
|
+
header?: never;
|
|
3089
|
+
path: {
|
|
3090
|
+
instanceId: string;
|
|
3091
|
+
};
|
|
3092
|
+
cookie?: never;
|
|
3093
|
+
};
|
|
3094
|
+
requestBody: {
|
|
3095
|
+
content: {
|
|
3096
|
+
"application/json": components["schemas"]["SetInstanceLabelsRequestBody"];
|
|
3097
|
+
};
|
|
3098
|
+
};
|
|
3099
|
+
responses: {
|
|
3100
|
+
/** @description OK */
|
|
3101
|
+
200: {
|
|
3102
|
+
headers: {
|
|
3103
|
+
[name: string]: unknown;
|
|
3104
|
+
};
|
|
3105
|
+
content: {
|
|
3106
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3107
|
+
};
|
|
3108
|
+
};
|
|
3109
|
+
/** @description Error */
|
|
3110
|
+
default: {
|
|
3111
|
+
headers: {
|
|
3112
|
+
[name: string]: unknown;
|
|
3113
|
+
};
|
|
3114
|
+
content: {
|
|
3115
|
+
"application/json": components["schemas"]["Error"];
|
|
3116
|
+
};
|
|
3117
|
+
};
|
|
3118
|
+
};
|
|
3119
|
+
};
|
|
3120
|
+
"set-instance-notes": {
|
|
3121
|
+
parameters: {
|
|
3122
|
+
query?: never;
|
|
3123
|
+
header?: never;
|
|
3124
|
+
path: {
|
|
3125
|
+
instanceId: string;
|
|
3126
|
+
};
|
|
3127
|
+
cookie?: never;
|
|
3128
|
+
};
|
|
3129
|
+
requestBody: {
|
|
3130
|
+
content: {
|
|
3131
|
+
"application/json": components["schemas"]["SetInstanceNotesRequestBody"];
|
|
3132
|
+
};
|
|
3133
|
+
};
|
|
3134
|
+
responses: {
|
|
3135
|
+
/** @description OK */
|
|
3136
|
+
200: {
|
|
3137
|
+
headers: {
|
|
3138
|
+
[name: string]: unknown;
|
|
3139
|
+
};
|
|
3140
|
+
content: {
|
|
3141
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3142
|
+
};
|
|
3143
|
+
};
|
|
3144
|
+
/** @description Error */
|
|
3145
|
+
default: {
|
|
3146
|
+
headers: {
|
|
3147
|
+
[name: string]: unknown;
|
|
3148
|
+
};
|
|
3149
|
+
content: {
|
|
3150
|
+
"application/json": components["schemas"]["Error"];
|
|
3151
|
+
};
|
|
3152
|
+
};
|
|
3153
|
+
};
|
|
3154
|
+
};
|
|
2869
3155
|
"reset-instance-password": {
|
|
2870
3156
|
parameters: {
|
|
2871
3157
|
query?: never;
|
|
@@ -2901,6 +3187,41 @@ export interface operations {
|
|
|
2901
3187
|
};
|
|
2902
3188
|
};
|
|
2903
3189
|
};
|
|
3190
|
+
"reboot-instance": {
|
|
3191
|
+
parameters: {
|
|
3192
|
+
query?: never;
|
|
3193
|
+
header?: never;
|
|
3194
|
+
path: {
|
|
3195
|
+
instanceId: string;
|
|
3196
|
+
};
|
|
3197
|
+
cookie?: never;
|
|
3198
|
+
};
|
|
3199
|
+
requestBody: {
|
|
3200
|
+
content: {
|
|
3201
|
+
"application/json": components["schemas"]["RebootInstanceRequestBody"];
|
|
3202
|
+
};
|
|
3203
|
+
};
|
|
3204
|
+
responses: {
|
|
3205
|
+
/** @description OK */
|
|
3206
|
+
200: {
|
|
3207
|
+
headers: {
|
|
3208
|
+
[name: string]: unknown;
|
|
3209
|
+
};
|
|
3210
|
+
content: {
|
|
3211
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3212
|
+
};
|
|
3213
|
+
};
|
|
3214
|
+
/** @description Error */
|
|
3215
|
+
default: {
|
|
3216
|
+
headers: {
|
|
3217
|
+
[name: string]: unknown;
|
|
3218
|
+
};
|
|
3219
|
+
content: {
|
|
3220
|
+
"application/json": components["schemas"]["Error"];
|
|
3221
|
+
};
|
|
3222
|
+
};
|
|
3223
|
+
};
|
|
3224
|
+
};
|
|
2904
3225
|
"rebuild-instance": {
|
|
2905
3226
|
parameters: {
|
|
2906
3227
|
query?: never;
|
|
@@ -3033,6 +3354,68 @@ export interface operations {
|
|
|
3033
3354
|
};
|
|
3034
3355
|
};
|
|
3035
3356
|
};
|
|
3357
|
+
"start-instance": {
|
|
3358
|
+
parameters: {
|
|
3359
|
+
query?: never;
|
|
3360
|
+
header?: never;
|
|
3361
|
+
path: {
|
|
3362
|
+
instanceId: string;
|
|
3363
|
+
};
|
|
3364
|
+
cookie?: never;
|
|
3365
|
+
};
|
|
3366
|
+
requestBody?: never;
|
|
3367
|
+
responses: {
|
|
3368
|
+
/** @description OK */
|
|
3369
|
+
200: {
|
|
3370
|
+
headers: {
|
|
3371
|
+
[name: string]: unknown;
|
|
3372
|
+
};
|
|
3373
|
+
content: {
|
|
3374
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3375
|
+
};
|
|
3376
|
+
};
|
|
3377
|
+
/** @description Error */
|
|
3378
|
+
default: {
|
|
3379
|
+
headers: {
|
|
3380
|
+
[name: string]: unknown;
|
|
3381
|
+
};
|
|
3382
|
+
content: {
|
|
3383
|
+
"application/json": components["schemas"]["Error"];
|
|
3384
|
+
};
|
|
3385
|
+
};
|
|
3386
|
+
};
|
|
3387
|
+
};
|
|
3388
|
+
"stop-instance": {
|
|
3389
|
+
parameters: {
|
|
3390
|
+
query?: never;
|
|
3391
|
+
header?: never;
|
|
3392
|
+
path: {
|
|
3393
|
+
instanceId: string;
|
|
3394
|
+
};
|
|
3395
|
+
cookie?: never;
|
|
3396
|
+
};
|
|
3397
|
+
requestBody?: never;
|
|
3398
|
+
responses: {
|
|
3399
|
+
/** @description OK */
|
|
3400
|
+
200: {
|
|
3401
|
+
headers: {
|
|
3402
|
+
[name: string]: unknown;
|
|
3403
|
+
};
|
|
3404
|
+
content: {
|
|
3405
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3406
|
+
};
|
|
3407
|
+
};
|
|
3408
|
+
/** @description Error */
|
|
3409
|
+
default: {
|
|
3410
|
+
headers: {
|
|
3411
|
+
[name: string]: unknown;
|
|
3412
|
+
};
|
|
3413
|
+
content: {
|
|
3414
|
+
"application/json": components["schemas"]["Error"];
|
|
3415
|
+
};
|
|
3416
|
+
};
|
|
3417
|
+
};
|
|
3418
|
+
};
|
|
3036
3419
|
"list-instance-disks": {
|
|
3037
3420
|
parameters: {
|
|
3038
3421
|
query?: never;
|
|
@@ -3299,7 +3682,7 @@ export interface operations {
|
|
|
3299
3682
|
"list-operation-logs": {
|
|
3300
3683
|
parameters: {
|
|
3301
3684
|
query?: {
|
|
3302
|
-
/** @description
|
|
3685
|
+
/** @description Return a single kind of operation; the value matches the operation id of the endpoint */
|
|
3303
3686
|
action?: string;
|
|
3304
3687
|
limit?: number;
|
|
3305
3688
|
offset?: number;
|
|
@@ -3424,7 +3807,7 @@ export interface operations {
|
|
|
3424
3807
|
"list-private-images": {
|
|
3425
3808
|
parameters: {
|
|
3426
3809
|
query?: {
|
|
3427
|
-
/** @description
|
|
3810
|
+
/** @description Return only the images of this region. An image can only be used in the region that holds it */
|
|
3428
3811
|
region_code?: string;
|
|
3429
3812
|
};
|
|
3430
3813
|
header?: never;
|
|
@@ -3584,7 +3967,7 @@ export interface operations {
|
|
|
3584
3967
|
"list-private-networks": {
|
|
3585
3968
|
parameters: {
|
|
3586
3969
|
query?: {
|
|
3587
|
-
/** @description
|
|
3970
|
+
/** @description Returns every region when omitted */
|
|
3588
3971
|
region_code?: string;
|
|
3589
3972
|
};
|
|
3590
3973
|
header?: never;
|
|
@@ -4061,7 +4444,7 @@ export interface operations {
|
|
|
4061
4444
|
parameters: {
|
|
4062
4445
|
query?: {
|
|
4063
4446
|
region_code?: string;
|
|
4064
|
-
/** @description
|
|
4447
|
+
/** @description Return only the security groups of this private network */
|
|
4065
4448
|
private_network_id?: string;
|
|
4066
4449
|
};
|
|
4067
4450
|
header?: never;
|
|
@@ -4183,6 +4566,41 @@ export interface operations {
|
|
|
4183
4566
|
};
|
|
4184
4567
|
};
|
|
4185
4568
|
};
|
|
4569
|
+
"rename-security-group": {
|
|
4570
|
+
parameters: {
|
|
4571
|
+
query?: never;
|
|
4572
|
+
header?: never;
|
|
4573
|
+
path: {
|
|
4574
|
+
securityGroupId: string;
|
|
4575
|
+
};
|
|
4576
|
+
cookie?: never;
|
|
4577
|
+
};
|
|
4578
|
+
requestBody: {
|
|
4579
|
+
content: {
|
|
4580
|
+
"application/json": components["schemas"]["RenameSecurityGroupRequestBody"];
|
|
4581
|
+
};
|
|
4582
|
+
};
|
|
4583
|
+
responses: {
|
|
4584
|
+
/** @description OK */
|
|
4585
|
+
200: {
|
|
4586
|
+
headers: {
|
|
4587
|
+
[name: string]: unknown;
|
|
4588
|
+
};
|
|
4589
|
+
content: {
|
|
4590
|
+
"application/json": components["schemas"]["SecurityGroupResource"];
|
|
4591
|
+
};
|
|
4592
|
+
};
|
|
4593
|
+
/** @description Error */
|
|
4594
|
+
default: {
|
|
4595
|
+
headers: {
|
|
4596
|
+
[name: string]: unknown;
|
|
4597
|
+
};
|
|
4598
|
+
content: {
|
|
4599
|
+
"application/json": components["schemas"]["Error"];
|
|
4600
|
+
};
|
|
4601
|
+
};
|
|
4602
|
+
};
|
|
4603
|
+
};
|
|
4186
4604
|
"list-security-group-rules": {
|
|
4187
4605
|
parameters: {
|
|
4188
4606
|
query?: never;
|
|
@@ -4282,7 +4700,7 @@ export interface operations {
|
|
|
4282
4700
|
"list-snapshots": {
|
|
4283
4701
|
parameters: {
|
|
4284
4702
|
query?: {
|
|
4285
|
-
/** @description
|
|
4703
|
+
/** @description Return only the snapshots of this disk */
|
|
4286
4704
|
disk_id?: string;
|
|
4287
4705
|
};
|
|
4288
4706
|
header?: never;
|