@leaflow/sdk 0.0.0-dev.15.g2ea7bad → 0.0.0-dev.150.g3e8df9a
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 +13 -1
- package/dist/account/v1/client.d.ts +4 -0
- package/dist/account/v1/client.js +7 -0
- package/dist/account/v1/index.d.ts +34 -21
- package/dist/account/v1/index.js +4 -4
- package/dist/account/v1/schema.d.ts +368 -81
- package/dist/assistant/v1/client.d.ts +4 -0
- package/dist/assistant/v1/client.js +7 -0
- package/dist/assistant/v1/index.d.ts +69 -40
- package/dist/assistant/v1/index.js +4 -4
- package/dist/assistant/v1/schema.d.ts +1089 -133
- package/dist/billing/v1/client.d.ts +6 -0
- package/dist/billing/v1/client.js +6 -0
- package/dist/billing/v1/index.d.ts +193 -0
- package/dist/billing/v1/index.js +5 -0
- package/dist/billing/v1/schema.d.ts +4713 -0
- package/dist/billing/v1/schema.js +5 -0
- package/dist/canopy/v1/client.d.ts +4 -0
- package/dist/canopy/v1/client.js +7 -0
- package/dist/canopy/v1/index.d.ts +24 -23
- package/dist/canopy/v1/index.js +4 -4
- package/dist/canopy/v1/schema.d.ts +113 -109
- package/dist/compute/v1/client.d.ts +4 -0
- package/dist/compute/v1/client.js +7 -0
- package/dist/compute/v1/index.d.ts +80 -185
- package/dist/compute/v1/index.js +4 -4
- package/dist/compute/v1/schema.d.ts +805 -2844
- package/dist/dns/v1/client.d.ts +4 -0
- package/dist/dns/v1/client.js +7 -0
- package/dist/dns/v1/index.d.ts +43 -0
- package/dist/dns/v1/index.js +5 -0
- package/dist/dns/v1/schema.d.ts +887 -0
- package/dist/dns/v1/schema.js +5 -0
- package/dist/fabric/v1/client.d.ts +4 -0
- package/dist/fabric/v1/client.js +7 -0
- package/dist/fabric/v1/index.d.ts +115 -0
- package/dist/fabric/v1/index.js +5 -0
- package/dist/fabric/v1/schema.d.ts +2313 -0
- package/dist/fabric/v1/schema.js +5 -0
- package/dist/fleet/v1/client.d.ts +4 -0
- package/dist/fleet/v1/client.js +7 -0
- package/dist/fleet/v1/index.d.ts +15 -0
- package/dist/fleet/v1/index.js +5 -0
- package/dist/fleet/v1/schema.d.ts +291 -0
- package/dist/fleet/v1/schema.js +5 -0
- package/dist/iam/v1/client.d.ts +4 -0
- package/dist/iam/v1/client.js +7 -0
- package/dist/iam/v1/index.d.ts +55 -32
- package/dist/iam/v1/index.js +4 -4
- package/dist/iam/v1/schema.d.ts +515 -88
- package/dist/index.d.ts +14 -7
- package/dist/index.js +22 -5
- package/dist/monitoring/v1/client.d.ts +4 -0
- package/dist/monitoring/v1/client.js +7 -0
- package/dist/monitoring/v1/index.d.ts +130 -49
- package/dist/monitoring/v1/index.js +4 -4
- package/dist/monitoring/v1/schema.d.ts +2420 -527
- package/dist/notification/v1/client.d.ts +4 -0
- package/dist/notification/v1/client.js +7 -0
- package/dist/notification/v1/index.d.ts +77 -0
- package/dist/notification/v1/index.js +5 -0
- package/dist/notification/v1/schema.d.ts +2048 -0
- package/dist/notification/v1/schema.js +5 -0
- package/dist/storage/v1/client.d.ts +4 -0
- package/dist/storage/v1/client.js +7 -0
- package/dist/storage/v1/index.d.ts +85 -0
- package/dist/storage/v1/index.js +5 -0
- package/dist/storage/v1/schema.d.ts +1694 -0
- package/dist/storage/v1/schema.js +5 -0
- package/dist/support/v1/client.d.ts +4 -0
- package/dist/support/v1/client.js +7 -0
- package/dist/support/v1/index.d.ts +51 -0
- package/dist/support/v1/index.js +5 -0
- package/dist/support/v1/schema.d.ts +1082 -0
- package/dist/support/v1/schema.js +5 -0
- package/dist/tunnel/v1/client.d.ts +4 -0
- package/dist/tunnel/v1/client.js +7 -0
- package/dist/tunnel/v1/index.d.ts +15 -36
- package/dist/tunnel/v1/index.js +4 -4
- package/dist/tunnel/v1/schema.d.ts +70 -510
- package/package.json +34 -10
|
@@ -3,95 +3,6 @@
|
|
|
3
3
|
* Do not make direct changes to the file.
|
|
4
4
|
*/
|
|
5
5
|
export interface paths {
|
|
6
|
-
"/api/v1/backups": {
|
|
7
|
-
parameters: {
|
|
8
|
-
query?: never;
|
|
9
|
-
header?: never;
|
|
10
|
-
path?: never;
|
|
11
|
-
cookie?: never;
|
|
12
|
-
};
|
|
13
|
-
/** 列出备份 */
|
|
14
|
-
get: operations["list-backups"];
|
|
15
|
-
put?: never;
|
|
16
|
-
/**
|
|
17
|
-
* 创建备份
|
|
18
|
-
* @description 备份是云硬盘在独立存储中的一份完整副本:**源云硬盘删除后仍可恢复,且可恢复到本地区的其他可用区。**快照不具备这两项能力,它与源云硬盘位于同一存储,且源云硬盘存在快照时无法删除。
|
|
19
|
-
*
|
|
20
|
-
* 运行中云服务器上挂载的云硬盘、以及系统盘,均可创建备份。
|
|
21
|
-
*
|
|
22
|
-
* 备份耗时取决于数据量。接口返回时尚未完成,请轮询查看接口。
|
|
23
|
-
*/
|
|
24
|
-
post: operations["create-backup"];
|
|
25
|
-
delete?: never;
|
|
26
|
-
options?: never;
|
|
27
|
-
head?: never;
|
|
28
|
-
patch?: never;
|
|
29
|
-
trace?: never;
|
|
30
|
-
};
|
|
31
|
-
"/api/v1/backups/{backupId}": {
|
|
32
|
-
parameters: {
|
|
33
|
-
query?: never;
|
|
34
|
-
header?: never;
|
|
35
|
-
path?: never;
|
|
36
|
-
cookie?: never;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* 查看备份
|
|
40
|
-
* @description 会实时查询备份的当前状态,因此比列表接口慢但更准确。轮询创建进度请使用本接口。
|
|
41
|
-
*/
|
|
42
|
-
get: operations["get-backup"];
|
|
43
|
-
put?: never;
|
|
44
|
-
post?: never;
|
|
45
|
-
/**
|
|
46
|
-
* 删除备份
|
|
47
|
-
* @description 与源云硬盘无关,源云硬盘是否存在都不影响删除。
|
|
48
|
-
*/
|
|
49
|
-
delete: operations["delete-backup"];
|
|
50
|
-
options?: never;
|
|
51
|
-
head?: never;
|
|
52
|
-
/** 重命名备份 */
|
|
53
|
-
patch: operations["rename-backup"];
|
|
54
|
-
trace?: never;
|
|
55
|
-
};
|
|
56
|
-
"/api/v1/backups/{backupId}/restore": {
|
|
57
|
-
parameters: {
|
|
58
|
-
query?: never;
|
|
59
|
-
header?: never;
|
|
60
|
-
path?: never;
|
|
61
|
-
cookie?: never;
|
|
62
|
-
};
|
|
63
|
-
get?: never;
|
|
64
|
-
put?: never;
|
|
65
|
-
/**
|
|
66
|
-
* 由备份恢复
|
|
67
|
-
* @description 恢复到一块**新建的**云硬盘上,源云硬盘不受影响,也不要求它仍然存在。
|
|
68
|
-
*
|
|
69
|
-
* 目标硬盘类型可位于本地区的其他可用区,容量不能小于备份。恢复完成前该云硬盘不可挂载,请轮询云硬盘查看接口。
|
|
70
|
-
*/
|
|
71
|
-
post: operations["restore-backup"];
|
|
72
|
-
delete?: never;
|
|
73
|
-
options?: never;
|
|
74
|
-
head?: never;
|
|
75
|
-
patch?: never;
|
|
76
|
-
trace?: never;
|
|
77
|
-
};
|
|
78
|
-
"/api/v1/disk-types": {
|
|
79
|
-
parameters: {
|
|
80
|
-
query?: never;
|
|
81
|
-
header?: never;
|
|
82
|
-
path?: never;
|
|
83
|
-
cookie?: never;
|
|
84
|
-
};
|
|
85
|
-
/** 列出在售硬盘类型 */
|
|
86
|
-
get: operations["list-disk-types"];
|
|
87
|
-
put?: never;
|
|
88
|
-
post?: never;
|
|
89
|
-
delete?: never;
|
|
90
|
-
options?: never;
|
|
91
|
-
head?: never;
|
|
92
|
-
patch?: never;
|
|
93
|
-
trace?: never;
|
|
94
|
-
};
|
|
95
6
|
"/api/v1/images": {
|
|
96
7
|
parameters: {
|
|
97
8
|
query?: never;
|
|
@@ -100,8 +11,10 @@ export interface paths {
|
|
|
100
11
|
cookie?: never;
|
|
101
12
|
};
|
|
102
13
|
/**
|
|
103
|
-
*
|
|
104
|
-
* @description min_ram_mb
|
|
14
|
+
* List images on sale
|
|
15
|
+
* @description An image whose `min_ram_mb` exceeds the memory of the selected instance type cannot boot. Filter the options accordingly.
|
|
16
|
+
*
|
|
17
|
+
* Only images currently on sale are listed. An image the platform withdraws disappears from here and can no longer install new instances, while the instances already running it keep running and can still be rebuilt onto it.
|
|
105
18
|
*/
|
|
106
19
|
get: operations["list-images"];
|
|
107
20
|
put?: never;
|
|
@@ -113,40 +26,6 @@ export interface paths {
|
|
|
113
26
|
trace?: never;
|
|
114
27
|
};
|
|
115
28
|
"/api/v1/instance-types": {
|
|
116
|
-
parameters: {
|
|
117
|
-
query?: never;
|
|
118
|
-
header?: never;
|
|
119
|
-
path?: never;
|
|
120
|
-
cookie?: never;
|
|
121
|
-
};
|
|
122
|
-
/** 列出在售机型 */
|
|
123
|
-
get: operations["list-instance-types"];
|
|
124
|
-
put?: never;
|
|
125
|
-
post?: never;
|
|
126
|
-
delete?: never;
|
|
127
|
-
options?: never;
|
|
128
|
-
head?: never;
|
|
129
|
-
patch?: never;
|
|
130
|
-
trace?: never;
|
|
131
|
-
};
|
|
132
|
-
"/api/v1/regions": {
|
|
133
|
-
parameters: {
|
|
134
|
-
query?: never;
|
|
135
|
-
header?: never;
|
|
136
|
-
path?: never;
|
|
137
|
-
cookie?: never;
|
|
138
|
-
};
|
|
139
|
-
/** 列出可用的地区 */
|
|
140
|
-
get: operations["list-regions"];
|
|
141
|
-
put?: never;
|
|
142
|
-
post?: never;
|
|
143
|
-
delete?: never;
|
|
144
|
-
options?: never;
|
|
145
|
-
head?: never;
|
|
146
|
-
patch?: never;
|
|
147
|
-
trace?: never;
|
|
148
|
-
};
|
|
149
|
-
"/api/v1/regions/{regionCode}/availability-zones": {
|
|
150
29
|
parameters: {
|
|
151
30
|
query?: never;
|
|
152
31
|
header?: never;
|
|
@@ -154,10 +33,10 @@ export interface paths {
|
|
|
154
33
|
cookie?: never;
|
|
155
34
|
};
|
|
156
35
|
/**
|
|
157
|
-
*
|
|
158
|
-
* @description
|
|
36
|
+
* List instance types on sale
|
|
37
|
+
* @description Only instance types currently on sale are listed. A withdrawn one disappears from here and can no longer be ordered, while the instances already running it keep running.
|
|
159
38
|
*/
|
|
160
|
-
get: operations["list-
|
|
39
|
+
get: operations["list-instance-types"];
|
|
161
40
|
put?: never;
|
|
162
41
|
post?: never;
|
|
163
42
|
delete?: never;
|
|
@@ -166,7 +45,7 @@ export interface paths {
|
|
|
166
45
|
patch?: never;
|
|
167
46
|
trace?: never;
|
|
168
47
|
};
|
|
169
|
-
"/api/v1/
|
|
48
|
+
"/api/v1/instances": {
|
|
170
49
|
parameters: {
|
|
171
50
|
query?: never;
|
|
172
51
|
header?: never;
|
|
@@ -174,23 +53,23 @@ export interface paths {
|
|
|
174
53
|
cookie?: never;
|
|
175
54
|
};
|
|
176
55
|
/**
|
|
177
|
-
*
|
|
178
|
-
* @description
|
|
56
|
+
* List instances
|
|
57
|
+
* @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.
|
|
179
58
|
*/
|
|
180
|
-
get: operations["list-
|
|
59
|
+
get: operations["list-instances"];
|
|
181
60
|
put?: never;
|
|
182
61
|
/**
|
|
183
|
-
*
|
|
184
|
-
* @description
|
|
62
|
+
* Create instances
|
|
63
|
+
* @description Creates a Billing order, including for metered pricing. The price must belong to the resource’s Billing Plan; applicable contract pricing is resolved by Billing. Technical capacity is checked before sellable quota is reserved. Provisioning continues automatically after payment; do not submit a new purchase after paying. Reuse the original idempotency key after an uncertain response. Exactly one of image_id, private_image_id or boot_disk_id is required, and exactly one of port_id or subnet_id. Existing ports, boot disks or floating IPs require count=1. Image boots require boot_disk; existing disks retain their own subscription. Resource lines for Compute, Storage and Fabric remain separate subscriptions on the same order.
|
|
185
64
|
*/
|
|
186
|
-
post: operations["
|
|
65
|
+
post: operations["launch-instance"];
|
|
187
66
|
delete?: never;
|
|
188
67
|
options?: never;
|
|
189
68
|
head?: never;
|
|
190
69
|
patch?: never;
|
|
191
70
|
trace?: never;
|
|
192
71
|
};
|
|
193
|
-
"/api/v1/
|
|
72
|
+
"/api/v1/instances/{instanceId}": {
|
|
194
73
|
parameters: {
|
|
195
74
|
query?: never;
|
|
196
75
|
header?: never;
|
|
@@ -198,27 +77,29 @@ export interface paths {
|
|
|
198
77
|
cookie?: never;
|
|
199
78
|
};
|
|
200
79
|
/**
|
|
201
|
-
*
|
|
202
|
-
* @description
|
|
80
|
+
* Retrieve an instance
|
|
81
|
+
* @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.
|
|
203
82
|
*/
|
|
204
|
-
get: operations["get-
|
|
83
|
+
get: operations["get-instance"];
|
|
205
84
|
put?: never;
|
|
206
85
|
post?: never;
|
|
207
86
|
/**
|
|
208
|
-
*
|
|
209
|
-
* @description
|
|
87
|
+
* Release an instance
|
|
88
|
+
* @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.
|
|
89
|
+
*
|
|
90
|
+
* An instance being captured as a private image cannot be released. Wait for the capture to finish, or delete that image first.
|
|
210
91
|
*/
|
|
211
|
-
delete: operations["delete-
|
|
92
|
+
delete: operations["delete-instance"];
|
|
212
93
|
options?: never;
|
|
213
94
|
head?: never;
|
|
214
95
|
/**
|
|
215
|
-
*
|
|
216
|
-
* @description
|
|
96
|
+
* Rename an instance
|
|
97
|
+
* @description Changes the display name only. The hostname inside the instance is unchanged; it equals the instance id.
|
|
217
98
|
*/
|
|
218
|
-
patch: operations["rename-
|
|
99
|
+
patch: operations["rename-instance"];
|
|
219
100
|
trace?: never;
|
|
220
101
|
};
|
|
221
|
-
"/api/v1/
|
|
102
|
+
"/api/v1/instances/{instanceId}/commands": {
|
|
222
103
|
parameters: {
|
|
223
104
|
query?: never;
|
|
224
105
|
header?: never;
|
|
@@ -228,17 +109,33 @@ export interface paths {
|
|
|
228
109
|
get?: never;
|
|
229
110
|
put?: never;
|
|
230
111
|
/**
|
|
231
|
-
*
|
|
232
|
-
* @description
|
|
112
|
+
* Run a command on an instance
|
|
113
|
+
* @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.
|
|
114
|
+
*
|
|
115
|
+
* **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.
|
|
116
|
+
*
|
|
117
|
+
* 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`.
|
|
118
|
+
*
|
|
119
|
+
* Three conditions must hold; the instance is unreachable otherwise:
|
|
120
|
+
*
|
|
121
|
+
* - it is `running`
|
|
122
|
+
* - a floating IP is bound to it, since this endpoint connects over the public internet
|
|
123
|
+
* - its security group permits inbound TCP 22
|
|
124
|
+
*
|
|
125
|
+
* 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.
|
|
126
|
+
*
|
|
127
|
+
* **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.
|
|
128
|
+
*
|
|
129
|
+
* Each stream is capped at 1 MiB. Beyond that the rest is discarded and `truncated` is true.
|
|
233
130
|
*/
|
|
234
|
-
post: operations["
|
|
131
|
+
post: operations["run-instance-command"];
|
|
235
132
|
delete?: never;
|
|
236
133
|
options?: never;
|
|
237
134
|
head?: never;
|
|
238
135
|
patch?: never;
|
|
239
136
|
trace?: never;
|
|
240
137
|
};
|
|
241
|
-
"/api/v1/
|
|
138
|
+
"/api/v1/instances/{instanceId}/console": {
|
|
242
139
|
parameters: {
|
|
243
140
|
query?: never;
|
|
244
141
|
header?: never;
|
|
@@ -248,65 +145,41 @@ export interface paths {
|
|
|
248
145
|
get?: never;
|
|
249
146
|
put?: never;
|
|
250
147
|
/**
|
|
251
|
-
*
|
|
252
|
-
* @description
|
|
253
|
-
*
|
|
254
|
-
* 三项限制:只能回滚到该云硬盘最新的一个快照;云硬盘必须先从云服务器上卸载;创建快照后扩容过的云硬盘不能回滚。需要回到更早的时刻,或需要保留现有云硬盘时,请改用由快照创建一块新的云硬盘。
|
|
148
|
+
* Open a remote console
|
|
149
|
+
* @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.
|
|
255
150
|
*
|
|
256
|
-
*
|
|
151
|
+
* The returned address is single-use and expires within minutes. **Do not cache it**; request a new one before each use.
|
|
257
152
|
*/
|
|
258
|
-
post: operations["
|
|
153
|
+
post: operations["open-instance-console"];
|
|
259
154
|
delete?: never;
|
|
260
155
|
options?: never;
|
|
261
156
|
head?: never;
|
|
262
157
|
patch?: never;
|
|
263
158
|
trace?: never;
|
|
264
159
|
};
|
|
265
|
-
"/api/v1/
|
|
160
|
+
"/api/v1/instances/{instanceId}/console-output": {
|
|
266
161
|
parameters: {
|
|
267
162
|
query?: never;
|
|
268
163
|
header?: never;
|
|
269
164
|
path?: never;
|
|
270
165
|
cookie?: never;
|
|
271
166
|
};
|
|
272
|
-
/** 列出公网 IP */
|
|
273
|
-
get: operations["list-floating-ips"];
|
|
274
|
-
put?: never;
|
|
275
167
|
/**
|
|
276
|
-
*
|
|
277
|
-
* @description
|
|
168
|
+
* Read the console output
|
|
169
|
+
* @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.
|
|
278
170
|
*
|
|
279
|
-
*
|
|
171
|
+
* Instances in an error state, and instances suspended by the platform, can be read as well.
|
|
280
172
|
*/
|
|
281
|
-
|
|
282
|
-
delete?: never;
|
|
283
|
-
options?: never;
|
|
284
|
-
head?: never;
|
|
285
|
-
patch?: never;
|
|
286
|
-
trace?: never;
|
|
287
|
-
};
|
|
288
|
-
"/api/v1/floating-ips/{floatingIpId}": {
|
|
289
|
-
parameters: {
|
|
290
|
-
query?: never;
|
|
291
|
-
header?: never;
|
|
292
|
-
path?: never;
|
|
293
|
-
cookie?: never;
|
|
294
|
-
};
|
|
295
|
-
/** 查看公网 IP */
|
|
296
|
-
get: operations["get-floating-ip"];
|
|
173
|
+
get: operations["get-instance-console-output"];
|
|
297
174
|
put?: never;
|
|
298
175
|
post?: never;
|
|
299
|
-
|
|
300
|
-
* 释放公网 IP
|
|
301
|
-
* @description 地址释放后进入冷却期才会重新分配,以免仍指向它的 DNS 记录和访问白名单立即失效。因此释放后的短时间内**无法重新申领同一个地址**,请谨慎操作。
|
|
302
|
-
*/
|
|
303
|
-
delete: operations["release-floating-ip"];
|
|
176
|
+
delete?: never;
|
|
304
177
|
options?: never;
|
|
305
178
|
head?: never;
|
|
306
179
|
patch?: never;
|
|
307
180
|
trace?: never;
|
|
308
181
|
};
|
|
309
|
-
"/api/v1/
|
|
182
|
+
"/api/v1/instances/{instanceId}/labels": {
|
|
310
183
|
parameters: {
|
|
311
184
|
query?: never;
|
|
312
185
|
header?: never;
|
|
@@ -315,10 +188,14 @@ export interface paths {
|
|
|
315
188
|
};
|
|
316
189
|
get?: never;
|
|
317
190
|
/**
|
|
318
|
-
*
|
|
319
|
-
* @description
|
|
191
|
+
* Replace an instance's labels
|
|
192
|
+
* @description Records what this instance is for, as key-value pairs. Nothing on the platform reads them.
|
|
193
|
+
*
|
|
194
|
+
* **The whole set is replaced**: whatever is absent from the request is removed.
|
|
195
|
+
*
|
|
196
|
+
* Do not put credentials here. Labels are visible to platform operators.
|
|
320
197
|
*/
|
|
321
|
-
put: operations["set-
|
|
198
|
+
put: operations["set-instance-labels"];
|
|
322
199
|
post?: never;
|
|
323
200
|
delete?: never;
|
|
324
201
|
options?: never;
|
|
@@ -326,7 +203,7 @@ export interface paths {
|
|
|
326
203
|
patch?: never;
|
|
327
204
|
trace?: never;
|
|
328
205
|
};
|
|
329
|
-
"/api/v1/
|
|
206
|
+
"/api/v1/instances/{instanceId}/notes": {
|
|
330
207
|
parameters: {
|
|
331
208
|
query?: never;
|
|
332
209
|
header?: never;
|
|
@@ -334,81 +211,23 @@ export interface paths {
|
|
|
334
211
|
cookie?: never;
|
|
335
212
|
};
|
|
336
213
|
get?: never;
|
|
337
|
-
/** 将公网 IP 绑定到网卡 */
|
|
338
|
-
put: operations["bind-floating-ip"];
|
|
339
|
-
post?: never;
|
|
340
|
-
/**
|
|
341
|
-
* 解绑公网 IP
|
|
342
|
-
* @description 地址仍归本项目持有,只是不再指向任何网卡。
|
|
343
|
-
*/
|
|
344
|
-
delete: operations["unbind-floating-ip"];
|
|
345
|
-
options?: never;
|
|
346
|
-
head?: never;
|
|
347
|
-
patch?: never;
|
|
348
|
-
trace?: never;
|
|
349
|
-
};
|
|
350
|
-
"/api/v1/instances": {
|
|
351
|
-
parameters: {
|
|
352
|
-
query?: never;
|
|
353
|
-
header?: never;
|
|
354
|
-
path?: never;
|
|
355
|
-
cookie?: never;
|
|
356
|
-
};
|
|
357
|
-
/** 列出云服务器 */
|
|
358
|
-
get: operations["list-instances"];
|
|
359
|
-
put?: never;
|
|
360
214
|
/**
|
|
361
|
-
*
|
|
362
|
-
* @description
|
|
363
|
-
*
|
|
364
|
-
* `count` 可一次创建多台(最多 20 台),名称自动加 `-1`、`-2` 编号,所有云服务器共用同一个密码。**响应中的 `instances` 始终是数组**,单台创建时也是。
|
|
365
|
-
*
|
|
366
|
-
* 批量创建按顺序逐台进行。若中途失败(例如配额不足),**已创建的云服务器会保留**,响应中的 `failure` 给出中止原因;第一台就失败时视为整次请求失败,不会创建任何云服务器。
|
|
215
|
+
* Replace an instance's note
|
|
216
|
+
* @description A free-text note about this instance — what it runs, and what to be careful about before touching it.
|
|
367
217
|
*
|
|
368
|
-
*
|
|
218
|
+
* **The whole note is replaced**; send an empty string to clear it.
|
|
369
219
|
*
|
|
370
|
-
*
|
|
371
|
-
*
|
|
372
|
-
* 接口返回时创建尚未完成(status 为 provisioning),请轮询 GET 确认结果。
|
|
220
|
+
* Do not put credentials here. The note is visible to platform operators.
|
|
373
221
|
*/
|
|
374
|
-
|
|
222
|
+
put: operations["set-instance-notes"];
|
|
223
|
+
post?: never;
|
|
375
224
|
delete?: never;
|
|
376
225
|
options?: never;
|
|
377
226
|
head?: never;
|
|
378
227
|
patch?: never;
|
|
379
228
|
trace?: never;
|
|
380
229
|
};
|
|
381
|
-
"/api/v1/instances/{instanceId}": {
|
|
382
|
-
parameters: {
|
|
383
|
-
query?: never;
|
|
384
|
-
header?: never;
|
|
385
|
-
path?: never;
|
|
386
|
-
cookie?: never;
|
|
387
|
-
};
|
|
388
|
-
/**
|
|
389
|
-
* 查看云服务器
|
|
390
|
-
* @description 会实时查询云服务器的当前状态,因此比列表接口慢但更准确。轮询创建进度请使用本接口。
|
|
391
|
-
*/
|
|
392
|
-
get: operations["get-instance"];
|
|
393
|
-
put?: never;
|
|
394
|
-
post?: never;
|
|
395
|
-
/**
|
|
396
|
-
* 释放云服务器
|
|
397
|
-
* @description 系统盘随云服务器一并删除,**基于系统盘创建的快照也会一并删除**。数据盘会被卸载并保留,其快照与备份不受影响。主网卡随云服务器一并释放。
|
|
398
|
-
*
|
|
399
|
-
* 正在制作镜像的云服务器无法释放,请等待制作完成或先删除该镜像。
|
|
400
|
-
*/
|
|
401
|
-
delete: operations["delete-instance"];
|
|
402
|
-
options?: never;
|
|
403
|
-
head?: never;
|
|
404
|
-
/**
|
|
405
|
-
* 重命名云服务器
|
|
406
|
-
* @description 仅修改显示名称。云服务器内的主机名不变,它等于云服务器 id。
|
|
407
|
-
*/
|
|
408
|
-
patch: operations["rename-instance"];
|
|
409
|
-
trace?: never;
|
|
410
|
-
};
|
|
411
|
-
"/api/v1/instances/{instanceId}/actions": {
|
|
230
|
+
"/api/v1/instances/{instanceId}/password": {
|
|
412
231
|
parameters: {
|
|
413
232
|
query?: never;
|
|
414
233
|
header?: never;
|
|
@@ -418,21 +237,21 @@ export interface paths {
|
|
|
418
237
|
get?: never;
|
|
419
238
|
put?: never;
|
|
420
239
|
/**
|
|
421
|
-
*
|
|
422
|
-
* @description
|
|
240
|
+
* Reset the login password
|
|
241
|
+
* @description Changes the root password without a reboot. The instance must be running.
|
|
423
242
|
*
|
|
424
|
-
*
|
|
243
|
+
* **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.
|
|
425
244
|
*
|
|
426
|
-
*
|
|
245
|
+
* The request is also rejected when the image is marked as supported but the corresponding component has been removed or stopped inside the instance.
|
|
427
246
|
*/
|
|
428
|
-
post: operations["
|
|
247
|
+
post: operations["reset-instance-password"];
|
|
429
248
|
delete?: never;
|
|
430
249
|
options?: never;
|
|
431
250
|
head?: never;
|
|
432
251
|
patch?: never;
|
|
433
252
|
trace?: never;
|
|
434
253
|
};
|
|
435
|
-
"/api/v1/instances/{instanceId}/
|
|
254
|
+
"/api/v1/instances/{instanceId}/reboot": {
|
|
436
255
|
parameters: {
|
|
437
256
|
query?: never;
|
|
438
257
|
header?: never;
|
|
@@ -442,41 +261,47 @@ export interface paths {
|
|
|
442
261
|
get?: never;
|
|
443
262
|
put?: never;
|
|
444
263
|
/**
|
|
445
|
-
*
|
|
446
|
-
* @description
|
|
264
|
+
* Reboot an instance
|
|
265
|
+
* @description A reboot defaults to soft, in which the operating system shuts down normally before starting again.
|
|
266
|
+
*
|
|
267
|
+
* 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**.
|
|
268
|
+
*
|
|
269
|
+
* 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.
|
|
270
|
+
*
|
|
271
|
+
* An instance suspended by the platform must be unsuspended first.
|
|
447
272
|
*
|
|
448
|
-
*
|
|
273
|
+
* This endpoint returns immediately and the `status` it returns is the transient `rebooting`. Poll the instance until it settles at `running`.
|
|
449
274
|
*/
|
|
450
|
-
post: operations["
|
|
275
|
+
post: operations["reboot-instance"];
|
|
451
276
|
delete?: never;
|
|
452
277
|
options?: never;
|
|
453
278
|
head?: never;
|
|
454
279
|
patch?: never;
|
|
455
280
|
trace?: never;
|
|
456
281
|
};
|
|
457
|
-
"/api/v1/instances/{instanceId}/
|
|
282
|
+
"/api/v1/instances/{instanceId}/rebuild": {
|
|
458
283
|
parameters: {
|
|
459
284
|
query?: never;
|
|
460
285
|
header?: never;
|
|
461
286
|
path?: never;
|
|
462
287
|
cookie?: never;
|
|
463
288
|
};
|
|
289
|
+
get?: never;
|
|
290
|
+
put?: never;
|
|
464
291
|
/**
|
|
465
|
-
*
|
|
466
|
-
* @description
|
|
292
|
+
* Rebuild an instance
|
|
293
|
+
* @description **All data on the system disk is erased and cannot be recovered.** Attached data disks are unaffected.
|
|
467
294
|
*
|
|
468
|
-
*
|
|
295
|
+
* The image this instance already runs is accepted even after the platform has withdrawn it, since rebuilding is the only way back into an instance broken from the inside. Any *other* withdrawn image is rejected with `IMAGE_RETIRED`, which is a change of image and therefore a new order.
|
|
469
296
|
*/
|
|
470
|
-
|
|
471
|
-
put?: never;
|
|
472
|
-
post?: never;
|
|
297
|
+
post: operations["rebuild-instance"];
|
|
473
298
|
delete?: never;
|
|
474
299
|
options?: never;
|
|
475
300
|
head?: never;
|
|
476
301
|
patch?: never;
|
|
477
302
|
trace?: never;
|
|
478
303
|
};
|
|
479
|
-
"/api/v1/instances/{instanceId}/
|
|
304
|
+
"/api/v1/instances/{instanceId}/resize": {
|
|
480
305
|
parameters: {
|
|
481
306
|
query?: never;
|
|
482
307
|
header?: never;
|
|
@@ -486,21 +311,17 @@ export interface paths {
|
|
|
486
311
|
get?: never;
|
|
487
312
|
put?: never;
|
|
488
313
|
/**
|
|
489
|
-
*
|
|
490
|
-
* @description
|
|
491
|
-
*
|
|
492
|
-
* **并非所有镜像都支持**:镜像列表中 `supports_password_reset` 为 false 的镜像做不到,此时只能通过重装系统设置新密码,而重装会清除系统盘上的全部数据。
|
|
493
|
-
*
|
|
494
|
-
* 镜像标记为支持、但云服务器内相应组件已被卸载或停止时,本接口同样会被拒绝。
|
|
314
|
+
* Resize an instance
|
|
315
|
+
* @description Creates a Billing order, including for metered pricing. The price must belong to the resource’s Billing Plan; applicable contract pricing is resolved by Billing. Technical capacity is checked before sellable quota is reserved. Provisioning continues automatically after payment; do not submit a new purchase after paying. Reuse the original idempotency key after an uncertain response.
|
|
495
316
|
*/
|
|
496
|
-
post: operations["
|
|
317
|
+
post: operations["resize-instance"];
|
|
497
318
|
delete?: never;
|
|
498
319
|
options?: never;
|
|
499
320
|
head?: never;
|
|
500
321
|
patch?: never;
|
|
501
322
|
trace?: never;
|
|
502
323
|
};
|
|
503
|
-
"/api/v1/instances/{instanceId}/
|
|
324
|
+
"/api/v1/instances/{instanceId}/resize/confirm": {
|
|
504
325
|
parameters: {
|
|
505
326
|
query?: never;
|
|
506
327
|
header?: never;
|
|
@@ -510,17 +331,17 @@ export interface paths {
|
|
|
510
331
|
get?: never;
|
|
511
332
|
put?: never;
|
|
512
333
|
/**
|
|
513
|
-
*
|
|
514
|
-
* @description
|
|
334
|
+
* Confirm a resize
|
|
335
|
+
* @description Releases the resources held by the previous size. `pending_instance_type_id` becomes the type in effect and is billed from then on.
|
|
515
336
|
*/
|
|
516
|
-
post: operations["
|
|
337
|
+
post: operations["confirm-instance-resize"];
|
|
517
338
|
delete?: never;
|
|
518
339
|
options?: never;
|
|
519
340
|
head?: never;
|
|
520
341
|
patch?: never;
|
|
521
342
|
trace?: never;
|
|
522
343
|
};
|
|
523
|
-
"/api/v1/instances/{instanceId}/resize": {
|
|
344
|
+
"/api/v1/instances/{instanceId}/resize/revert": {
|
|
524
345
|
parameters: {
|
|
525
346
|
query?: never;
|
|
526
347
|
header?: never;
|
|
@@ -530,21 +351,17 @@ export interface paths {
|
|
|
530
351
|
get?: never;
|
|
531
352
|
put?: never;
|
|
532
353
|
/**
|
|
533
|
-
*
|
|
534
|
-
* @description
|
|
535
|
-
*
|
|
536
|
-
* 变配分两步:本接口下发后云服务器会在新规格上重新启动,状态变为 `resize_verifying`,此时**必须**调用确认或回滚接口。目标机型在确认前记在 `pending_instance_type_id` 上,`instance_type_id` 仍为当前生效并计费的机型。
|
|
537
|
-
*
|
|
538
|
-
* **未确认期间新旧两份规格同时占用资源。** 请在状态变为 `resize_verifying` 后尽快确认。
|
|
354
|
+
* Revert a resize
|
|
355
|
+
* @description The instance returns to its previous size, `pending_instance_type_id` is discarded, and billing is unaffected by the resize.
|
|
539
356
|
*/
|
|
540
|
-
post: operations["
|
|
357
|
+
post: operations["revert-instance-resize"];
|
|
541
358
|
delete?: never;
|
|
542
359
|
options?: never;
|
|
543
360
|
head?: never;
|
|
544
361
|
patch?: never;
|
|
545
362
|
trace?: never;
|
|
546
363
|
};
|
|
547
|
-
"/api/v1/instances/{instanceId}/
|
|
364
|
+
"/api/v1/instances/{instanceId}/start": {
|
|
548
365
|
parameters: {
|
|
549
366
|
query?: never;
|
|
550
367
|
header?: never;
|
|
@@ -554,17 +371,17 @@ export interface paths {
|
|
|
554
371
|
get?: never;
|
|
555
372
|
put?: never;
|
|
556
373
|
/**
|
|
557
|
-
*
|
|
558
|
-
* @description
|
|
374
|
+
* Start an instance
|
|
375
|
+
* @description Records the desired power state. An in-flight shutdown is allowed to finish before a subsequent start. Outstanding restrictions can prevent starting. A stopped VM retains its Fabric and Storage claims. Inspect operation, task_state, power_state and observed_at to determine completion.
|
|
559
376
|
*/
|
|
560
|
-
post: operations["
|
|
377
|
+
post: operations["start-instance"];
|
|
561
378
|
delete?: never;
|
|
562
379
|
options?: never;
|
|
563
380
|
head?: never;
|
|
564
381
|
patch?: never;
|
|
565
382
|
trace?: never;
|
|
566
383
|
};
|
|
567
|
-
"/api/v1/instances/{instanceId}/
|
|
384
|
+
"/api/v1/instances/{instanceId}/stop": {
|
|
568
385
|
parameters: {
|
|
569
386
|
query?: never;
|
|
570
387
|
header?: never;
|
|
@@ -574,10 +391,10 @@ export interface paths {
|
|
|
574
391
|
get?: never;
|
|
575
392
|
put?: never;
|
|
576
393
|
/**
|
|
577
|
-
*
|
|
578
|
-
* @description
|
|
394
|
+
* Stop an instance
|
|
395
|
+
* @description Records the desired power state. An in-flight shutdown is allowed to finish before a subsequent start. Outstanding restrictions can prevent starting. A stopped VM retains its Fabric and Storage claims. Inspect operation, task_state, power_state and observed_at to determine completion.
|
|
579
396
|
*/
|
|
580
|
-
post: operations["
|
|
397
|
+
post: operations["stop-instance"];
|
|
581
398
|
delete?: never;
|
|
582
399
|
options?: never;
|
|
583
400
|
head?: never;
|
|
@@ -591,12 +408,12 @@ export interface paths {
|
|
|
591
408
|
path?: never;
|
|
592
409
|
cookie?: never;
|
|
593
410
|
};
|
|
594
|
-
/**
|
|
411
|
+
/** List the disks attached to an instance */
|
|
595
412
|
get: operations["list-instance-disks"];
|
|
596
413
|
put?: never;
|
|
597
414
|
/**
|
|
598
|
-
*
|
|
599
|
-
* @description
|
|
415
|
+
* Attach a disk
|
|
416
|
+
* @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
417
|
*/
|
|
601
418
|
post: operations["attach-disk"];
|
|
602
419
|
delete?: never;
|
|
@@ -616,8 +433,8 @@ export interface paths {
|
|
|
616
433
|
put?: never;
|
|
617
434
|
post?: never;
|
|
618
435
|
/**
|
|
619
|
-
*
|
|
620
|
-
* @description
|
|
436
|
+
* Detach a disk
|
|
437
|
+
* @description Unmount the device inside the instance before calling this endpoint. Forcibly detaching a file system that is being written to corrupts data.
|
|
621
438
|
*/
|
|
622
439
|
delete: operations["detach-disk"];
|
|
623
440
|
options?: never;
|
|
@@ -635,8 +452,8 @@ export interface paths {
|
|
|
635
452
|
get?: never;
|
|
636
453
|
put?: never;
|
|
637
454
|
/**
|
|
638
|
-
*
|
|
639
|
-
* @description
|
|
455
|
+
* Bind a floating IP to an instance
|
|
456
|
+
* @description Requests a binding change on the instance’s primary Fabric port. The returned Fabric usage claim identifies the port-to-address relationship; Compute does not own the address. An accepted release can still be releasing until the provider confirms removal.
|
|
640
457
|
*/
|
|
641
458
|
post: operations["attach-instance-floating-ip"];
|
|
642
459
|
delete?: never;
|
|
@@ -655,7 +472,10 @@ export interface paths {
|
|
|
655
472
|
get?: never;
|
|
656
473
|
put?: never;
|
|
657
474
|
post?: never;
|
|
658
|
-
/**
|
|
475
|
+
/**
|
|
476
|
+
* Unbind the floating IP of an instance
|
|
477
|
+
* @description Requests a binding change on the instance’s primary Fabric port. The returned Fabric usage claim identifies the port-to-address relationship; Compute does not own the address. An accepted release can still be releasing until the provider confirms removal.
|
|
478
|
+
*/
|
|
659
479
|
delete: operations["detach-instance-floating-ip"];
|
|
660
480
|
options?: never;
|
|
661
481
|
head?: never;
|
|
@@ -669,10 +489,10 @@ export interface paths {
|
|
|
669
489
|
path?: never;
|
|
670
490
|
cookie?: never;
|
|
671
491
|
};
|
|
672
|
-
/**
|
|
492
|
+
/** List the network interfaces of an instance */
|
|
673
493
|
get: operations["list-instance-ports"];
|
|
674
494
|
put?: never;
|
|
675
|
-
/**
|
|
495
|
+
/** Attach a network interface */
|
|
676
496
|
post: operations["attach-port"];
|
|
677
497
|
delete?: never;
|
|
678
498
|
options?: never;
|
|
@@ -691,8 +511,8 @@ export interface paths {
|
|
|
691
511
|
put?: never;
|
|
692
512
|
post?: never;
|
|
693
513
|
/**
|
|
694
|
-
*
|
|
695
|
-
* @description
|
|
514
|
+
* Detach a network interface
|
|
515
|
+
* @description The primary network interface cannot be detached; the instance would lose its network address.
|
|
696
516
|
*/
|
|
697
517
|
delete: operations["detach-port"];
|
|
698
518
|
options?: never;
|
|
@@ -708,12 +528,12 @@ export interface paths {
|
|
|
708
528
|
cookie?: never;
|
|
709
529
|
};
|
|
710
530
|
/**
|
|
711
|
-
*
|
|
712
|
-
* @description
|
|
531
|
+
* List the operation log of the project
|
|
532
|
+
* @description Records every write operation in the project: who performed it, when, on what, and whether it succeeded. Read operations are not recorded.
|
|
713
533
|
*
|
|
714
|
-
*
|
|
534
|
+
* **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
535
|
*
|
|
716
|
-
*
|
|
536
|
+
* Fields such as passwords are replaced with a placeholder as the record is written and never appear in `payload`.
|
|
717
537
|
*/
|
|
718
538
|
get: operations["list-operation-logs"];
|
|
719
539
|
put?: never;
|
|
@@ -724,47 +544,6 @@ export interface paths {
|
|
|
724
544
|
patch?: never;
|
|
725
545
|
trace?: never;
|
|
726
546
|
};
|
|
727
|
-
"/api/v1/ports": {
|
|
728
|
-
parameters: {
|
|
729
|
-
query?: never;
|
|
730
|
-
header?: never;
|
|
731
|
-
path?: never;
|
|
732
|
-
cookie?: never;
|
|
733
|
-
};
|
|
734
|
-
/** 列出网卡 */
|
|
735
|
-
get: operations["list-ports"];
|
|
736
|
-
put?: never;
|
|
737
|
-
/**
|
|
738
|
-
* 创建网卡
|
|
739
|
-
* @description 创建出的网卡尚未挂载到任何云服务器。主网卡不由本接口创建,它随云服务器一并创建。
|
|
740
|
-
*/
|
|
741
|
-
post: operations["create-port"];
|
|
742
|
-
delete?: never;
|
|
743
|
-
options?: never;
|
|
744
|
-
head?: never;
|
|
745
|
-
patch?: never;
|
|
746
|
-
trace?: never;
|
|
747
|
-
};
|
|
748
|
-
"/api/v1/ports/{portId}": {
|
|
749
|
-
parameters: {
|
|
750
|
-
query?: never;
|
|
751
|
-
header?: never;
|
|
752
|
-
path?: never;
|
|
753
|
-
cookie?: never;
|
|
754
|
-
};
|
|
755
|
-
get?: never;
|
|
756
|
-
put?: never;
|
|
757
|
-
post?: never;
|
|
758
|
-
/**
|
|
759
|
-
* 删除网卡
|
|
760
|
-
* @description 主网卡不可单独删除,它随云服务器一并释放。仍挂载在云服务器上的网卡也无法删除。
|
|
761
|
-
*/
|
|
762
|
-
delete: operations["delete-port"];
|
|
763
|
-
options?: never;
|
|
764
|
-
head?: never;
|
|
765
|
-
patch?: never;
|
|
766
|
-
trace?: never;
|
|
767
|
-
};
|
|
768
547
|
"/api/v1/private-images": {
|
|
769
548
|
parameters: {
|
|
770
549
|
query?: never;
|
|
@@ -772,23 +551,23 @@ export interface paths {
|
|
|
772
551
|
path?: never;
|
|
773
552
|
cookie?: never;
|
|
774
553
|
};
|
|
775
|
-
/**
|
|
554
|
+
/** List private images */
|
|
776
555
|
get: operations["list-private-images"];
|
|
777
556
|
put?: never;
|
|
778
557
|
/**
|
|
779
|
-
*
|
|
780
|
-
* @description
|
|
558
|
+
* Capture an instance as a private image
|
|
559
|
+
* @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
560
|
*
|
|
782
|
-
*
|
|
561
|
+
* **The image reflects the moment the capture started. Later changes to the instance are not included.**
|
|
783
562
|
*
|
|
784
|
-
*
|
|
563
|
+
* The capture has two phases. Poll the retrieve endpoint:
|
|
785
564
|
*
|
|
786
|
-
* - `provisioning`
|
|
787
|
-
* - `uploading`
|
|
565
|
+
* - `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.
|
|
566
|
+
* - `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
567
|
*
|
|
789
|
-
*
|
|
568
|
+
* 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
569
|
*
|
|
791
|
-
*
|
|
570
|
+
* The instance can be started, stopped and used normally during the capture, but cannot be released.
|
|
792
571
|
*/
|
|
793
572
|
post: operations["create-private-image"];
|
|
794
573
|
delete?: never;
|
|
@@ -805,319 +584,45 @@ export interface paths {
|
|
|
805
584
|
cookie?: never;
|
|
806
585
|
};
|
|
807
586
|
/**
|
|
808
|
-
*
|
|
809
|
-
* @description
|
|
587
|
+
* Retrieve a private image
|
|
588
|
+
* @description Use this endpoint to poll capture progress. When `status` is `error`, `failure` states the reason.
|
|
810
589
|
*/
|
|
811
590
|
get: operations["get-private-image"];
|
|
812
591
|
put?: never;
|
|
813
592
|
post?: never;
|
|
814
593
|
/**
|
|
815
|
-
*
|
|
816
|
-
* @description
|
|
594
|
+
* Delete a private image
|
|
595
|
+
* @description Deletion is rejected while instances created from the image still exist, as they need it in order to be rebuilt.
|
|
817
596
|
*
|
|
818
|
-
*
|
|
597
|
+
* An image whose capture has not finished can be deleted; the capture is aborted.
|
|
819
598
|
*/
|
|
820
599
|
delete: operations["delete-private-image"];
|
|
821
600
|
options?: never;
|
|
822
601
|
head?: never;
|
|
823
|
-
/**
|
|
602
|
+
/** Rename a private image */
|
|
824
603
|
patch: operations["rename-private-image"];
|
|
825
604
|
trace?: never;
|
|
826
605
|
};
|
|
827
|
-
"/api/v1/
|
|
606
|
+
"/api/v1/instances/{instanceId}/dependencies": {
|
|
828
607
|
parameters: {
|
|
829
608
|
query?: never;
|
|
830
609
|
header?: never;
|
|
831
610
|
path?: never;
|
|
832
611
|
cookie?: never;
|
|
833
612
|
};
|
|
834
|
-
/** 列出私有网络 */
|
|
835
|
-
get: operations["list-private-networks"];
|
|
836
|
-
put?: never;
|
|
837
613
|
/**
|
|
838
|
-
*
|
|
839
|
-
* @description
|
|
614
|
+
* List instance dependencies
|
|
615
|
+
* @description Desired dependencies recorded by Compute. usage_id resolves the corresponding claim in Fabric or Storage. These records remain present while an instance is stopped or suspended.
|
|
840
616
|
*/
|
|
841
|
-
|
|
617
|
+
get: operations["list-instance-dependencies"];
|
|
618
|
+
put?: never;
|
|
619
|
+
post?: never;
|
|
842
620
|
delete?: never;
|
|
843
621
|
options?: never;
|
|
844
622
|
head?: never;
|
|
845
623
|
patch?: never;
|
|
846
624
|
trace?: never;
|
|
847
625
|
};
|
|
848
|
-
"/api/v1/private-networks/{privateNetworkId}": {
|
|
849
|
-
parameters: {
|
|
850
|
-
query?: never;
|
|
851
|
-
header?: never;
|
|
852
|
-
path?: never;
|
|
853
|
-
cookie?: never;
|
|
854
|
-
};
|
|
855
|
-
/** 查看私有网络 */
|
|
856
|
-
get: operations["get-private-network"];
|
|
857
|
-
put?: never;
|
|
858
|
-
post?: never;
|
|
859
|
-
/**
|
|
860
|
-
* 释放私有网络
|
|
861
|
-
* @description 其中仍有云服务器或网卡时,释放会被拒绝。IPv6、路由器与安全组随之一并释放。
|
|
862
|
-
*/
|
|
863
|
-
delete: operations["delete-private-network"];
|
|
864
|
-
options?: never;
|
|
865
|
-
head?: never;
|
|
866
|
-
/**
|
|
867
|
-
* 重命名私有网络
|
|
868
|
-
* @description 仅修改显示名称。网段、路由与外网网关均不可修改。
|
|
869
|
-
*/
|
|
870
|
-
patch: operations["rename-private-network"];
|
|
871
|
-
trace?: never;
|
|
872
|
-
};
|
|
873
|
-
"/api/v1/private-networks/{privateNetworkId}/ipv6": {
|
|
874
|
-
parameters: {
|
|
875
|
-
query?: never;
|
|
876
|
-
header?: never;
|
|
877
|
-
path?: never;
|
|
878
|
-
cookie?: never;
|
|
879
|
-
};
|
|
880
|
-
/** 查看私有网络的 IPv6 */
|
|
881
|
-
get: operations["get-private-network-ipv6"];
|
|
882
|
-
put?: never;
|
|
883
|
-
/**
|
|
884
|
-
* 为私有网络启用 IPv6
|
|
885
|
-
* @description 为该私有网络分配一段 IPv6 地址。地址由私有网络自动下发至云服务器,无需也无法单独申领,也不占用公网 IPv4。
|
|
886
|
-
*
|
|
887
|
-
* 该私有网络尚未接入外网时会自动接入,无需单独操作。
|
|
888
|
-
*/
|
|
889
|
-
post: operations["enable-private-network-ipv6"];
|
|
890
|
-
/**
|
|
891
|
-
* 关闭私有网络的 IPv6
|
|
892
|
-
* @description 释放的前缀不会立即重新分配。
|
|
893
|
-
*/
|
|
894
|
-
delete: operations["disable-private-network-ipv6"];
|
|
895
|
-
options?: never;
|
|
896
|
-
head?: never;
|
|
897
|
-
patch?: never;
|
|
898
|
-
trace?: never;
|
|
899
|
-
};
|
|
900
|
-
"/api/v1/private-networks/{privateNetworkId}/routes": {
|
|
901
|
-
parameters: {
|
|
902
|
-
query?: never;
|
|
903
|
-
header?: never;
|
|
904
|
-
path?: never;
|
|
905
|
-
cookie?: never;
|
|
906
|
-
};
|
|
907
|
-
/** 列出静态路由 */
|
|
908
|
-
get: operations["list-routes"];
|
|
909
|
-
put?: never;
|
|
910
|
-
/**
|
|
911
|
-
* 创建静态路由
|
|
912
|
-
* @description 以下三种会导致网络中断的写法会被拒绝:目的网段为 0.0.0.0/0(覆盖默认路由,所有公网 IP 立即失效)、目的网段为某个子网自身(覆盖直连路由)、下一跳为某个子网的网关(指回路由器自身)。
|
|
913
|
-
*/
|
|
914
|
-
post: operations["create-route"];
|
|
915
|
-
delete?: never;
|
|
916
|
-
options?: never;
|
|
917
|
-
head?: never;
|
|
918
|
-
patch?: never;
|
|
919
|
-
trace?: never;
|
|
920
|
-
};
|
|
921
|
-
"/api/v1/private-networks/{privateNetworkId}/routes/{routeId}": {
|
|
922
|
-
parameters: {
|
|
923
|
-
query?: never;
|
|
924
|
-
header?: never;
|
|
925
|
-
path?: never;
|
|
926
|
-
cookie?: never;
|
|
927
|
-
};
|
|
928
|
-
get?: never;
|
|
929
|
-
put?: never;
|
|
930
|
-
post?: never;
|
|
931
|
-
/** 删除静态路由 */
|
|
932
|
-
delete: operations["delete-route"];
|
|
933
|
-
options?: never;
|
|
934
|
-
head?: never;
|
|
935
|
-
patch?: never;
|
|
936
|
-
trace?: never;
|
|
937
|
-
};
|
|
938
|
-
"/api/v1/private-networks/{privateNetworkId}/subnets": {
|
|
939
|
-
parameters: {
|
|
940
|
-
query?: never;
|
|
941
|
-
header?: never;
|
|
942
|
-
path?: never;
|
|
943
|
-
cookie?: never;
|
|
944
|
-
};
|
|
945
|
-
/**
|
|
946
|
-
* 列出子网
|
|
947
|
-
* @description IPv6 子网也在返回结果中,ip_version 为 6。它在启用 IPv6 时自动创建,不可单独删除。
|
|
948
|
-
*/
|
|
949
|
-
get: operations["list-subnets"];
|
|
950
|
-
put?: never;
|
|
951
|
-
/** 创建子网 */
|
|
952
|
-
post: operations["create-subnet"];
|
|
953
|
-
delete?: never;
|
|
954
|
-
options?: never;
|
|
955
|
-
head?: never;
|
|
956
|
-
patch?: never;
|
|
957
|
-
trace?: never;
|
|
958
|
-
};
|
|
959
|
-
"/api/v1/private-networks/{privateNetworkId}/subnets/next-free-cidr": {
|
|
960
|
-
parameters: {
|
|
961
|
-
query?: never;
|
|
962
|
-
header?: never;
|
|
963
|
-
path?: never;
|
|
964
|
-
cookie?: never;
|
|
965
|
-
};
|
|
966
|
-
/**
|
|
967
|
-
* 推荐下一个空闲网段
|
|
968
|
-
* @description 返回的只是建议值,创建子网时仍会重新校验。用于避免手工计算下一个空闲网段时出错。
|
|
969
|
-
*/
|
|
970
|
-
get: operations["suggest-subnet-cidr"];
|
|
971
|
-
put?: never;
|
|
972
|
-
post?: never;
|
|
973
|
-
delete?: never;
|
|
974
|
-
options?: never;
|
|
975
|
-
head?: never;
|
|
976
|
-
patch?: never;
|
|
977
|
-
trace?: never;
|
|
978
|
-
};
|
|
979
|
-
"/api/v1/private-networks/{privateNetworkId}/subnets/{subnetId}": {
|
|
980
|
-
parameters: {
|
|
981
|
-
query?: never;
|
|
982
|
-
header?: never;
|
|
983
|
-
path?: never;
|
|
984
|
-
cookie?: never;
|
|
985
|
-
};
|
|
986
|
-
get?: never;
|
|
987
|
-
put?: never;
|
|
988
|
-
post?: never;
|
|
989
|
-
/**
|
|
990
|
-
* 删除子网
|
|
991
|
-
* @description 该子网中仍有网卡,或仍有静态路由的下一跳落在该网段内时,删除会被拒绝。
|
|
992
|
-
*/
|
|
993
|
-
delete: operations["delete-subnet"];
|
|
994
|
-
options?: never;
|
|
995
|
-
head?: never;
|
|
996
|
-
patch?: never;
|
|
997
|
-
trace?: never;
|
|
998
|
-
};
|
|
999
|
-
"/api/v1/security-groups": {
|
|
1000
|
-
parameters: {
|
|
1001
|
-
query?: never;
|
|
1002
|
-
header?: never;
|
|
1003
|
-
path?: never;
|
|
1004
|
-
cookie?: never;
|
|
1005
|
-
};
|
|
1006
|
-
/** 列出安全组 */
|
|
1007
|
-
get: operations["list-security-groups"];
|
|
1008
|
-
put?: never;
|
|
1009
|
-
/**
|
|
1010
|
-
* 创建安全组
|
|
1011
|
-
* @description 新建的安全组带有一条规则:放行 ICMP 需要分片(type 3 code 4)。缺少该规则会导致路径 MTU 发现失败,表现为连接建立后传输大数据包时卡住。
|
|
1012
|
-
*/
|
|
1013
|
-
post: operations["create-security-group"];
|
|
1014
|
-
delete?: never;
|
|
1015
|
-
options?: never;
|
|
1016
|
-
head?: never;
|
|
1017
|
-
patch?: never;
|
|
1018
|
-
trace?: never;
|
|
1019
|
-
};
|
|
1020
|
-
"/api/v1/security-groups/{securityGroupId}": {
|
|
1021
|
-
parameters: {
|
|
1022
|
-
query?: never;
|
|
1023
|
-
header?: never;
|
|
1024
|
-
path?: never;
|
|
1025
|
-
cookie?: never;
|
|
1026
|
-
};
|
|
1027
|
-
/** 查看安全组 */
|
|
1028
|
-
get: operations["get-security-group"];
|
|
1029
|
-
put?: never;
|
|
1030
|
-
post?: never;
|
|
1031
|
-
/**
|
|
1032
|
-
* 删除安全组
|
|
1033
|
-
* @description 默认安全组不可删除,它随私有网络一并释放。仍被网卡引用的安全组也无法删除。
|
|
1034
|
-
*/
|
|
1035
|
-
delete: operations["delete-security-group"];
|
|
1036
|
-
options?: never;
|
|
1037
|
-
head?: never;
|
|
1038
|
-
patch?: never;
|
|
1039
|
-
trace?: never;
|
|
1040
|
-
};
|
|
1041
|
-
"/api/v1/security-groups/{securityGroupId}/rules": {
|
|
1042
|
-
parameters: {
|
|
1043
|
-
query?: never;
|
|
1044
|
-
header?: never;
|
|
1045
|
-
path?: never;
|
|
1046
|
-
cookie?: never;
|
|
1047
|
-
};
|
|
1048
|
-
/** 列出安全组规则 */
|
|
1049
|
-
get: operations["list-security-group-rules"];
|
|
1050
|
-
put?: never;
|
|
1051
|
-
/**
|
|
1052
|
-
* 创建安全组规则
|
|
1053
|
-
* @description 重复添加同一条规则会被拒绝。判重时 `0.0.0.0/0`、`::/0` 与留空视为等同。
|
|
1054
|
-
*/
|
|
1055
|
-
post: operations["create-security-group-rule"];
|
|
1056
|
-
delete?: never;
|
|
1057
|
-
options?: never;
|
|
1058
|
-
head?: never;
|
|
1059
|
-
patch?: never;
|
|
1060
|
-
trace?: never;
|
|
1061
|
-
};
|
|
1062
|
-
"/api/v1/security-groups/{securityGroupId}/rules/{ruleId}": {
|
|
1063
|
-
parameters: {
|
|
1064
|
-
query?: never;
|
|
1065
|
-
header?: never;
|
|
1066
|
-
path?: never;
|
|
1067
|
-
cookie?: never;
|
|
1068
|
-
};
|
|
1069
|
-
get?: never;
|
|
1070
|
-
put?: never;
|
|
1071
|
-
post?: never;
|
|
1072
|
-
/** 删除安全组规则 */
|
|
1073
|
-
delete: operations["delete-security-group-rule"];
|
|
1074
|
-
options?: never;
|
|
1075
|
-
head?: never;
|
|
1076
|
-
patch?: never;
|
|
1077
|
-
trace?: never;
|
|
1078
|
-
};
|
|
1079
|
-
"/api/v1/snapshots": {
|
|
1080
|
-
parameters: {
|
|
1081
|
-
query?: never;
|
|
1082
|
-
header?: never;
|
|
1083
|
-
path?: never;
|
|
1084
|
-
cookie?: never;
|
|
1085
|
-
};
|
|
1086
|
-
/** 列出快照 */
|
|
1087
|
-
get: operations["list-snapshots"];
|
|
1088
|
-
put?: never;
|
|
1089
|
-
/**
|
|
1090
|
-
* 创建快照
|
|
1091
|
-
* @description 运行中云服务器上挂载的云硬盘同样可以创建快照。快照记录的是某一时刻的块设备状态,文件系统层面可能不一致,重要数据建议先在云服务器内执行 sync。
|
|
1092
|
-
*
|
|
1093
|
-
* **系统盘的快照不能用于回滚该系统盘**:回滚要求先从云服务器上卸载,而系统盘不可卸载。它可用于创建一块新的数据盘。需要保留并恢复整个系统时,请使用自制镜像;需要可跨可用区、且在云硬盘删除后仍可恢复的副本时,请使用备份。
|
|
1094
|
-
*/
|
|
1095
|
-
post: operations["create-snapshot"];
|
|
1096
|
-
delete?: never;
|
|
1097
|
-
options?: never;
|
|
1098
|
-
head?: never;
|
|
1099
|
-
patch?: never;
|
|
1100
|
-
trace?: never;
|
|
1101
|
-
};
|
|
1102
|
-
"/api/v1/snapshots/{snapshotId}": {
|
|
1103
|
-
parameters: {
|
|
1104
|
-
query?: never;
|
|
1105
|
-
header?: never;
|
|
1106
|
-
path?: never;
|
|
1107
|
-
cookie?: never;
|
|
1108
|
-
};
|
|
1109
|
-
/** 查看快照 */
|
|
1110
|
-
get: operations["get-snapshot"];
|
|
1111
|
-
put?: never;
|
|
1112
|
-
post?: never;
|
|
1113
|
-
/** 删除快照 */
|
|
1114
|
-
delete: operations["delete-snapshot"];
|
|
1115
|
-
options?: never;
|
|
1116
|
-
head?: never;
|
|
1117
|
-
/** 重命名快照 */
|
|
1118
|
-
patch: operations["rename-snapshot"];
|
|
1119
|
-
trace?: never;
|
|
1120
|
-
};
|
|
1121
626
|
}
|
|
1122
627
|
export type webhooks = Record<string, never>;
|
|
1123
628
|
export interface components {
|
|
@@ -1125,103 +630,22 @@ export interface components {
|
|
|
1125
630
|
Error: {
|
|
1126
631
|
code?: string;
|
|
1127
632
|
message: string;
|
|
633
|
+
/**
|
|
634
|
+
* @description What a given `code` carries alongside the message. The keys depend on the code,
|
|
635
|
+
* and a client that does not recognise one ignores it.
|
|
636
|
+
*/
|
|
1128
637
|
meta?: {
|
|
1129
638
|
[key: string]: unknown;
|
|
1130
639
|
};
|
|
1131
640
|
/** Format: int64 */
|
|
1132
641
|
status: number;
|
|
1133
642
|
};
|
|
1134
|
-
BackupResource: {
|
|
1135
|
-
/** @description 源云硬盘所在的可用区。恢复时可选择本地区的其他可用区 */
|
|
1136
|
-
availability_zone: string;
|
|
1137
|
-
/** Format: date-time */
|
|
1138
|
-
created_at: string;
|
|
1139
|
-
/** Format: uuid */
|
|
1140
|
-
id: string;
|
|
1141
|
-
name: string;
|
|
1142
|
-
region_code: string;
|
|
1143
|
-
/**
|
|
1144
|
-
* Format: int64
|
|
1145
|
-
* @description 创建备份时源云硬盘的容量。恢复出的云硬盘不能小于此容量
|
|
1146
|
-
*/
|
|
1147
|
-
size_gb: number;
|
|
1148
|
-
/**
|
|
1149
|
-
* Format: uuid
|
|
1150
|
-
* @description 备份来源。该云硬盘删除后本备份仍然可用
|
|
1151
|
-
*/
|
|
1152
|
-
source_disk_id: string;
|
|
1153
|
-
/** @enum {string} */
|
|
1154
|
-
status: "provisioning" | "available" | "restoring" | "deleting" | "error";
|
|
1155
|
-
};
|
|
1156
|
-
BackupListResponseBody: {
|
|
1157
|
-
items: components["schemas"]["BackupResource"][] | null;
|
|
1158
|
-
};
|
|
1159
|
-
CreateBackupRequestBody: {
|
|
1160
|
-
/** Format: uuid */
|
|
1161
|
-
disk_id: string;
|
|
1162
|
-
name: string;
|
|
1163
|
-
};
|
|
1164
|
-
RenameBackupRequestBody: {
|
|
1165
|
-
name: string;
|
|
1166
|
-
};
|
|
1167
|
-
RestoreBackupRequestBody: {
|
|
1168
|
-
/**
|
|
1169
|
-
* Format: uuid
|
|
1170
|
-
* @description 可选择与源云硬盘不同的可用区,但必须在同一地区
|
|
1171
|
-
*/
|
|
1172
|
-
disk_type_id: string;
|
|
1173
|
-
name: string;
|
|
1174
|
-
/**
|
|
1175
|
-
* Format: int64
|
|
1176
|
-
* @description 留空时与备份等大。给出时不能小于备份
|
|
1177
|
-
*/
|
|
1178
|
-
size_gb?: number;
|
|
1179
|
-
};
|
|
1180
|
-
DiskResource: {
|
|
1181
|
-
attached_instance_id: string | null;
|
|
1182
|
-
/** @description 云硬盘实际所在的可用区。挂载时云服务器必须位于同一可用区 */
|
|
1183
|
-
availability_zone: string;
|
|
1184
|
-
/** Format: date-time */
|
|
1185
|
-
created_at: string;
|
|
1186
|
-
/** @description 系统分配的设备名,在云服务器内看到的即为该名称 */
|
|
1187
|
-
device: string | null;
|
|
1188
|
-
/** Format: uuid */
|
|
1189
|
-
disk_type_id: string;
|
|
1190
|
-
/** Format: uuid */
|
|
1191
|
-
id: string;
|
|
1192
|
-
/** @description 系统盘随云服务器一并释放,不能卸载也不能单独删除 */
|
|
1193
|
-
is_system: boolean;
|
|
1194
|
-
name: string;
|
|
1195
|
-
region_code: string;
|
|
1196
|
-
/** Format: int64 */
|
|
1197
|
-
size_gb: number;
|
|
1198
|
-
/** @enum {string} */
|
|
1199
|
-
status: "provisioning" | "available" | "attaching" | "in_use" | "detaching" | "resizing" | "reverting" | "restoring" | "releasing" | "deleting" | "error";
|
|
1200
|
-
};
|
|
1201
|
-
DiskTypeResource: {
|
|
1202
|
-
availability_zone_code: string;
|
|
1203
|
-
/** Format: uuid */
|
|
1204
|
-
id: string;
|
|
1205
|
-
iops_display: string;
|
|
1206
|
-
/** Format: int64 */
|
|
1207
|
-
max_size_gb: number;
|
|
1208
|
-
/** @enum {string} */
|
|
1209
|
-
media: "ssd" | "hdd" | "nvme";
|
|
1210
|
-
/** Format: int64 */
|
|
1211
|
-
min_size_gb: number;
|
|
1212
|
-
name: string;
|
|
1213
|
-
region_code: string;
|
|
1214
|
-
/** Format: int64 */
|
|
1215
|
-
step_gb: number;
|
|
1216
|
-
throughput_display: string;
|
|
1217
|
-
};
|
|
1218
|
-
DiskTypeListResponseBody: {
|
|
1219
|
-
items: components["schemas"]["DiskTypeResource"][] | null;
|
|
1220
|
-
};
|
|
1221
643
|
ImageResource: {
|
|
1222
644
|
architecture: string;
|
|
1223
645
|
/** Format: uuid */
|
|
1224
646
|
id: string;
|
|
647
|
+
/** @description The account this image lets you log in as. The password set at creation belongs to this account */
|
|
648
|
+
login_username: string;
|
|
1225
649
|
/** Format: int64 */
|
|
1226
650
|
min_disk_gb: number;
|
|
1227
651
|
/** Format: int64 */
|
|
@@ -1229,20 +653,48 @@ export interface components {
|
|
|
1229
653
|
name: string;
|
|
1230
654
|
os_family: string;
|
|
1231
655
|
os_version: string;
|
|
1232
|
-
|
|
1233
|
-
|
|
656
|
+
/** Format: uuid */
|
|
657
|
+
region_id: string;
|
|
658
|
+
/** @description False means a new password can only be set by rebuilding an instance created from this image */
|
|
1234
659
|
supports_password_reset: boolean;
|
|
1235
660
|
};
|
|
1236
661
|
ImageListResponseBody: {
|
|
1237
|
-
items: components["schemas"]["ImageResource"][]
|
|
662
|
+
items: components["schemas"]["ImageResource"][];
|
|
663
|
+
/** Format: int64 */
|
|
664
|
+
page: number;
|
|
665
|
+
/** Format: int64 */
|
|
666
|
+
page_size: number;
|
|
667
|
+
/** Format: int64 */
|
|
668
|
+
total_count?: number;
|
|
1238
669
|
};
|
|
1239
670
|
InstanceTypeResource: {
|
|
1240
|
-
/**
|
|
1241
|
-
|
|
671
|
+
/** Format: uuid */
|
|
672
|
+
availability_zone_id: string;
|
|
1242
673
|
/** Format: uuid */
|
|
1243
674
|
id: string;
|
|
1244
|
-
/**
|
|
675
|
+
/**
|
|
676
|
+
* Format: int64
|
|
677
|
+
* @description The most public bandwidth a machine of this type may be given, in Mbps. Asking for more
|
|
678
|
+
* when creating a machine, or raising a bound address past it, is refused.
|
|
679
|
+
*
|
|
680
|
+
* A ceiling on what can be bought, not a speed. How fast the machine's own interfaces run is
|
|
681
|
+
* `network_egress_kbps` / `network_ingress_kbps`.
|
|
682
|
+
*/
|
|
1245
683
|
max_bandwidth_mbps: number;
|
|
684
|
+
/**
|
|
685
|
+
* Format: int64
|
|
686
|
+
* @description Outbound ceiling of **each** network interface, in kbps. Null when this type is not
|
|
687
|
+
* rate-limited.
|
|
688
|
+
*
|
|
689
|
+
* Per interface rather than per machine: a machine with two interfaces has this ceiling on
|
|
690
|
+
* each of them, not shared between them. `max_ports` says how many it may have.
|
|
691
|
+
*/
|
|
692
|
+
network_egress_kbps: number | null;
|
|
693
|
+
/**
|
|
694
|
+
* Format: int64
|
|
695
|
+
* @description Inbound ceiling of each network interface, in kbps. Null when this type is not rate-limited
|
|
696
|
+
*/
|
|
697
|
+
network_ingress_kbps: number | null;
|
|
1246
698
|
/** Format: int64 */
|
|
1247
699
|
max_floating_ips: number;
|
|
1248
700
|
/** Format: int64 */
|
|
@@ -1250,253 +702,277 @@ export interface components {
|
|
|
1250
702
|
name: string;
|
|
1251
703
|
/** Format: int64 */
|
|
1252
704
|
ram_mb: number;
|
|
1253
|
-
region_code: string;
|
|
1254
|
-
/** Format: int64 */
|
|
1255
|
-
vcpus: number;
|
|
1256
|
-
};
|
|
1257
|
-
InstanceTypeListResponseBody: {
|
|
1258
|
-
items: components["schemas"]["InstanceTypeResource"][] | null;
|
|
1259
|
-
};
|
|
1260
|
-
RegionResource: {
|
|
1261
|
-
code: string;
|
|
1262
|
-
country_code: string;
|
|
1263
|
-
name: string;
|
|
1264
|
-
};
|
|
1265
|
-
RegionListResponseBody: {
|
|
1266
|
-
items: components["schemas"]["RegionResource"][] | null;
|
|
1267
|
-
};
|
|
1268
|
-
ZoneResource: {
|
|
1269
|
-
code: string;
|
|
1270
|
-
name: string;
|
|
1271
|
-
};
|
|
1272
|
-
ZoneListResponseBody: {
|
|
1273
|
-
items: components["schemas"]["ZoneResource"][] | null;
|
|
1274
|
-
};
|
|
1275
|
-
DiskListResponseBody: {
|
|
1276
|
-
items: components["schemas"]["DiskResource"][] | null;
|
|
1277
|
-
};
|
|
1278
|
-
CreateDiskRequestBody: {
|
|
1279
705
|
/** Format: uuid */
|
|
1280
|
-
|
|
1281
|
-
name: string;
|
|
706
|
+
region_id: string;
|
|
1282
707
|
/** Format: int64 */
|
|
1283
|
-
|
|
1284
|
-
/**
|
|
1285
|
-
* Format: uuid
|
|
1286
|
-
* @description 从该快照恢复。提供时容量只需不小于快照本身
|
|
1287
|
-
*/
|
|
1288
|
-
snapshot_id?: string;
|
|
1289
|
-
};
|
|
1290
|
-
RenameDiskRequestBody: {
|
|
1291
|
-
name: string;
|
|
1292
|
-
};
|
|
1293
|
-
ResizeDiskRequestBody: {
|
|
1294
|
-
/**
|
|
1295
|
-
* Format: int64
|
|
1296
|
-
* @description 必须大于当前容量
|
|
1297
|
-
*/
|
|
1298
|
-
size_gb: number;
|
|
1299
|
-
};
|
|
1300
|
-
RevertDiskRequestBody: {
|
|
708
|
+
vcpus: number;
|
|
1301
709
|
/**
|
|
1302
710
|
* Format: uuid
|
|
1303
|
-
* @description
|
|
711
|
+
* @description The Billing Plan for this type. Read its available prices from Billing; resource capacity and sellable quota are evaluated when placing the order.
|
|
1304
712
|
*/
|
|
1305
|
-
|
|
713
|
+
billing_plan_id: string;
|
|
1306
714
|
};
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
attached_fixed_ip: string | null;
|
|
1310
|
-
attached_port_id: string | null;
|
|
715
|
+
InstanceTypeListResponseBody: {
|
|
716
|
+
items: components["schemas"]["InstanceTypeResource"][];
|
|
1311
717
|
/** Format: int64 */
|
|
1312
|
-
|
|
1313
|
-
/** Format:
|
|
1314
|
-
|
|
1315
|
-
/** Format:
|
|
1316
|
-
|
|
1317
|
-
/** Format: uuid */
|
|
1318
|
-
id: string;
|
|
1319
|
-
region_code: string;
|
|
1320
|
-
/**
|
|
1321
|
-
* @description idle 表示尚未绑定到网卡
|
|
1322
|
-
* @enum {string}
|
|
1323
|
-
*/
|
|
1324
|
-
status: "idle" | "bound";
|
|
1325
|
-
};
|
|
1326
|
-
FloatingIPListResponseBody: {
|
|
1327
|
-
items: components["schemas"]["FloatingIPResource"][] | null;
|
|
1328
|
-
};
|
|
1329
|
-
AllocateFloatingIPRequestBody: {
|
|
1330
|
-
/** @description 指定要申领的地址。留空时由平台自动分配 */
|
|
1331
|
-
address?: string;
|
|
1332
|
-
/** Format: uuid */
|
|
1333
|
-
private_network_id: string;
|
|
1334
|
-
};
|
|
1335
|
-
SetBandwidthRequestBody: {
|
|
1336
|
-
/**
|
|
1337
|
-
* Format: int64
|
|
1338
|
-
* @description 出入方向均限制为该值
|
|
1339
|
-
*/
|
|
1340
|
-
mbps: number;
|
|
1341
|
-
};
|
|
1342
|
-
BindFloatingIPRequestBody: {
|
|
1343
|
-
/** Format: uuid */
|
|
1344
|
-
port_id: string;
|
|
718
|
+
page: number;
|
|
719
|
+
/** Format: int64 */
|
|
720
|
+
page_size: number;
|
|
721
|
+
/** Format: int64 */
|
|
722
|
+
total_count?: number;
|
|
1345
723
|
};
|
|
1346
724
|
InstanceResource: {
|
|
1347
|
-
|
|
725
|
+
/** Format: uuid */
|
|
726
|
+
availability_zone_id: string;
|
|
1348
727
|
/** Format: date-time */
|
|
1349
728
|
created_at: string;
|
|
1350
|
-
/** @description
|
|
729
|
+
/** @description Hostname inside the instance; equals the instance id */
|
|
1351
730
|
hostname: string;
|
|
1352
731
|
/** Format: uuid */
|
|
1353
732
|
id: string;
|
|
1354
733
|
/**
|
|
1355
734
|
* Format: uuid
|
|
1356
|
-
* @description
|
|
735
|
+
* @description Non-empty when the instance was created from a disk you already had, instead of from an image
|
|
736
|
+
*/
|
|
737
|
+
boot_disk_id: string | null;
|
|
738
|
+
/**
|
|
739
|
+
* Format: uuid
|
|
740
|
+
* @description Non-empty when the instance was created from a platform image
|
|
1357
741
|
*/
|
|
1358
742
|
image_id: string | null;
|
|
1359
743
|
/**
|
|
1360
744
|
* Format: uuid
|
|
1361
|
-
* @description
|
|
745
|
+
* @description The instance type in effect, and the basis for billing
|
|
1362
746
|
*/
|
|
1363
747
|
instance_type_id: string;
|
|
1364
|
-
/** @description
|
|
748
|
+
/** @description IPv6 address of the primary network interface. Assigned automatically once IPv6 is enabled on the private network */
|
|
1365
749
|
ipv6_address: string | null;
|
|
750
|
+
/** @description Your own classification of this instance, as key-value pairs. Empty when never set */
|
|
751
|
+
labels: {
|
|
752
|
+
[key: string]: string;
|
|
753
|
+
};
|
|
754
|
+
/** @description The account to log in as over SSH. The password set at creation belongs to this account */
|
|
755
|
+
login_username: string;
|
|
1366
756
|
name: string;
|
|
757
|
+
/** @description A free-text note about this instance. Empty when never set */
|
|
758
|
+
notes: string;
|
|
1367
759
|
/**
|
|
1368
760
|
* Format: uuid
|
|
1369
|
-
* @description
|
|
761
|
+
* @description Non-empty while a resize awaits confirmation. Confirming puts this type into effect, reverting discards it
|
|
1370
762
|
*/
|
|
1371
763
|
pending_instance_type_id: string | null;
|
|
1372
764
|
/**
|
|
1373
765
|
* Format: uuid
|
|
1374
|
-
* @description
|
|
766
|
+
* @description Non-empty when the instance was created from a private image
|
|
1375
767
|
*/
|
|
1376
768
|
private_image_id: string | null;
|
|
1377
|
-
/** @description
|
|
769
|
+
/** @description Private address of the instance */
|
|
1378
770
|
private_ip: string | null;
|
|
1379
|
-
/** @description
|
|
771
|
+
/** @description Private network of the primary network interface */
|
|
1380
772
|
private_network_id: string | null;
|
|
1381
|
-
/** @description
|
|
773
|
+
/** @description Floating IPv4 addresses bound to the primary network interface; an empty array when none are bound */
|
|
1382
774
|
public_ips: string[] | null;
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
status: "provisioning" | "running" | "stopped" | "rebooting" | "resizing" | "resize_verifying" | "error" | "deleting" | "suspended";
|
|
1386
|
-
/** @description 云服务器主网卡所在的子网 */
|
|
1387
|
-
subnet_id: string | null;
|
|
775
|
+
/** Format: uuid */
|
|
776
|
+
region_id: string;
|
|
1388
777
|
/**
|
|
1389
|
-
*
|
|
1390
|
-
* @
|
|
778
|
+
* @description Observed VM lifecycle state. This does not indicate the latest requested action or whether a business restriction applies.
|
|
779
|
+
* @enum {string}
|
|
1391
780
|
*/
|
|
1392
|
-
|
|
781
|
+
status: "pending" | "building" | "active" | "stopped" | "paused" | "suspended" | "shelved" | "shelved_offloaded" | "rescued" | "resized" | "deleting" | "deleted" | "error" | "unknown";
|
|
782
|
+
/** @description Subnet of the primary network interface */
|
|
783
|
+
subnet_id: string | null;
|
|
1393
784
|
/** Format: date-time */
|
|
1394
785
|
updated_at: string;
|
|
786
|
+
/**
|
|
787
|
+
* @description The order this instance was bought under, in billing's own identifiers. Empty when the
|
|
788
|
+
* deployment has no billing wired in.
|
|
789
|
+
*
|
|
790
|
+
* Kept so the question can be answered later. "Why was I charged for this" is asked days
|
|
791
|
+
* after the fact, and an order id handed back only in the launch response is one the
|
|
792
|
+
* person who needs it never had.
|
|
793
|
+
*/
|
|
794
|
+
billing_order_id: string;
|
|
795
|
+
subscription_item_ids?: string[];
|
|
796
|
+
/** @enum {string} */
|
|
797
|
+
desired_state: "running" | "stopped" | "deleted";
|
|
798
|
+
/** @enum {string} */
|
|
799
|
+
power_state: "no_state" | "running" | "paused" | "shutdown" | "crashed" | "suspended" | "unknown";
|
|
800
|
+
/** @description Current provider task, such as scheduling, networking, block_device_mapping or spawning. none means no task; unknown tasks remain observable and do not imply failure. */
|
|
801
|
+
task_state: string;
|
|
802
|
+
/** Format: int64 */
|
|
803
|
+
generation: number;
|
|
804
|
+
/**
|
|
805
|
+
* Format: date-time
|
|
806
|
+
* @description Timestamp of the last successful provider observation. An unreachable provider does not erase the last observation or prove deletion.
|
|
807
|
+
*/
|
|
808
|
+
observed_at?: string;
|
|
809
|
+
operation?: components["schemas"]["InstanceOperation"];
|
|
810
|
+
restrictions: components["schemas"]["InstanceRestriction"][];
|
|
1395
811
|
};
|
|
1396
812
|
InstanceListResponseBody: {
|
|
1397
|
-
items: components["schemas"]["InstanceResource"][]
|
|
813
|
+
items: components["schemas"]["InstanceResource"][];
|
|
814
|
+
/** Format: int64 */
|
|
815
|
+
page: number;
|
|
816
|
+
/** Format: int64 */
|
|
817
|
+
page_size: number;
|
|
818
|
+
/** Format: int64 */
|
|
819
|
+
total_count?: number;
|
|
1398
820
|
};
|
|
1399
821
|
LaunchInstanceRequestBody: {
|
|
822
|
+
/**
|
|
823
|
+
* Format: uuid
|
|
824
|
+
* @description Bind a floating IP you already hold, instead of allocating a new one. It must be idle and in
|
|
825
|
+
* the same region.
|
|
826
|
+
*
|
|
827
|
+
* Mutually exclusive with `bandwidth_mbps`: an address you already hold has its own bandwidth
|
|
828
|
+
* ceiling, set when it was allocated, and changing it is a separate operation.
|
|
829
|
+
*
|
|
830
|
+
* Like `bandwidth_mbps`, this happens **inside the creation**: if binding fails, no instance is
|
|
831
|
+
* created. Binding afterwards is still possible from the instance page, but then it is two
|
|
832
|
+
* operations and a failure in between leaves an instance you cannot reach.
|
|
833
|
+
*
|
|
834
|
+
* Only one instance can be created when it is used — one address binds to one interface.
|
|
835
|
+
*/
|
|
836
|
+
floating_ip_id?: string;
|
|
1400
837
|
/**
|
|
1401
838
|
* Format: int64
|
|
1402
|
-
* @description
|
|
839
|
+
* @description Number of instances to create; 1 when omitted. Names are numbered automatically for several
|
|
840
|
+
* @default 1
|
|
1403
841
|
*/
|
|
1404
842
|
count?: number;
|
|
1405
|
-
/** @description
|
|
843
|
+
/** @description Have the platform generate a random password, returned only in this response */
|
|
1406
844
|
generate_password?: boolean;
|
|
1407
845
|
/**
|
|
1408
846
|
* Format: uuid
|
|
1409
|
-
* @description
|
|
847
|
+
* @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`
|
|
848
|
+
*/
|
|
849
|
+
boot_disk_id?: string;
|
|
850
|
+
/**
|
|
851
|
+
* Format: uuid
|
|
852
|
+
* @description A platform image, and it must be one currently on sale. Exactly one of this, `private_image_id` and `boot_disk_id`
|
|
1410
853
|
*/
|
|
1411
854
|
image_id?: string;
|
|
1412
|
-
/**
|
|
855
|
+
/**
|
|
856
|
+
* Format: uuid
|
|
857
|
+
* @description An instance type currently on sale. A withdrawn one is rejected even though its identifier still resolves
|
|
858
|
+
*/
|
|
1413
859
|
instance_type_id: string;
|
|
860
|
+
/** @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 */
|
|
861
|
+
login_username?: string;
|
|
1414
862
|
name: string;
|
|
1415
|
-
/** @description root
|
|
863
|
+
/** @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
864
|
password?: string;
|
|
1417
865
|
/**
|
|
1418
866
|
* Format: uuid
|
|
1419
|
-
* @description
|
|
867
|
+
* @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
868
|
*/
|
|
1421
869
|
port_id?: string;
|
|
1422
870
|
/**
|
|
1423
871
|
* Format: uuid
|
|
1424
|
-
* @description
|
|
872
|
+
* @description A private image. Exactly one of this, `image_id` and `boot_disk_id`
|
|
1425
873
|
*/
|
|
1426
874
|
private_image_id?: string;
|
|
1427
|
-
/**
|
|
1428
|
-
* Format: int64
|
|
1429
|
-
* @description 系统盘容量(GB)。留空时按镜像要求与平台下限自动选择
|
|
1430
|
-
*/
|
|
1431
|
-
root_disk_gb?: number;
|
|
1432
|
-
/** @description 新建主网卡时必填,至少一个;不会自动使用默认安全组。使用 port_id 时忽略——那张网卡的安全组在创建它时已经定了 */
|
|
875
|
+
/** @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
876
|
security_group_ids?: string[] | null;
|
|
1434
877
|
/**
|
|
1435
878
|
* Format: uuid
|
|
1436
|
-
* @description
|
|
879
|
+
* @description Create the primary network interface in this subnet. Exactly one of this and `port_id`
|
|
1437
880
|
*/
|
|
1438
881
|
subnet_id?: string;
|
|
882
|
+
order: components["schemas"]["OrderOptions"];
|
|
883
|
+
price: components["schemas"]["CatalogReference"];
|
|
884
|
+
boot_disk?: components["schemas"]["NewBootDisk"];
|
|
885
|
+
floating_ip?: components["schemas"]["NewFloatingIP"];
|
|
1439
886
|
};
|
|
1440
887
|
LaunchInstanceResponseBody: {
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
888
|
+
order: components["schemas"]["PlacedOrder"];
|
|
889
|
+
/** @description Present only if generation was requested; store it securely. Idempotent retries do not generate another password. */
|
|
890
|
+
password?: string;
|
|
891
|
+
};
|
|
892
|
+
SetInstanceLabelsRequestBody: {
|
|
893
|
+
/** @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 */
|
|
894
|
+
labels: {
|
|
895
|
+
[key: string]: string;
|
|
896
|
+
};
|
|
897
|
+
};
|
|
898
|
+
SetInstanceNotesRequestBody: {
|
|
899
|
+
/** @description The complete note. Send an empty string to clear it */
|
|
900
|
+
notes: string;
|
|
1447
901
|
};
|
|
1448
902
|
RenameInstanceRequestBody: {
|
|
1449
903
|
name: string;
|
|
1450
904
|
};
|
|
1451
|
-
|
|
1452
|
-
/** @
|
|
1453
|
-
action: "start" | "stop" | "reboot";
|
|
1454
|
-
/** @description 仅适用于 reboot。强制重启不等待操作系统正常关闭,未落盘的数据会丢失,用于系统已无响应的情况 */
|
|
905
|
+
RebootInstanceRequestBody: {
|
|
906
|
+
/** @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
907
|
force?: boolean;
|
|
1456
908
|
};
|
|
909
|
+
RunCommandRequestBody: {
|
|
910
|
+
/** @description Run by the login shell, so pipes, redirection and `&&` work. It cannot read standard input */
|
|
911
|
+
command: string;
|
|
912
|
+
/**
|
|
913
|
+
* Format: int64
|
|
914
|
+
* @description Kill the command after this long. 60 when omitted
|
|
915
|
+
*/
|
|
916
|
+
timeout_seconds?: number;
|
|
917
|
+
};
|
|
918
|
+
CommandResultResponseBody: {
|
|
919
|
+
/**
|
|
920
|
+
* Format: int64
|
|
921
|
+
* @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
|
|
922
|
+
*/
|
|
923
|
+
exit_code: number | null;
|
|
924
|
+
stderr: string;
|
|
925
|
+
stdout: string;
|
|
926
|
+
/** @description True when the command was still running at the timeout and was killed */
|
|
927
|
+
timed_out: boolean;
|
|
928
|
+
/** @description True when either stream hit the 1 MiB cap and the rest was discarded */
|
|
929
|
+
truncated: boolean;
|
|
930
|
+
};
|
|
1457
931
|
ConsoleResponseBody: {
|
|
1458
|
-
/** @description
|
|
932
|
+
/** @description Connection address of the remote console; single-use and expires within minutes */
|
|
1459
933
|
console_url: string;
|
|
1460
934
|
};
|
|
1461
935
|
ConsoleOutputResponseBody: {
|
|
1462
|
-
/** @description
|
|
936
|
+
/** @description Raw text of the console output, in the same line order as inside the instance */
|
|
1463
937
|
output: string;
|
|
1464
938
|
};
|
|
1465
939
|
ResetPasswordRequestBody: {
|
|
1466
|
-
/** @description
|
|
940
|
+
/** @description Have the platform generate a random password, returned only in this response */
|
|
1467
941
|
generate_password?: boolean;
|
|
1468
|
-
/** @description
|
|
942
|
+
/** @description New root password. Exactly one of this and `generate_password` */
|
|
1469
943
|
password?: string;
|
|
1470
944
|
};
|
|
1471
945
|
ResetPasswordResponseBody: {
|
|
1472
|
-
/** @description
|
|
946
|
+
/** @description The password generated by the platform, returned only in this response. Empty when the password was supplied in the request */
|
|
1473
947
|
password: string;
|
|
1474
948
|
};
|
|
1475
949
|
RebuildInstanceRequestBody: {
|
|
1476
950
|
generate_password?: boolean;
|
|
1477
951
|
/**
|
|
1478
952
|
* Format: uuid
|
|
1479
|
-
* @description
|
|
953
|
+
* @description A platform image, which must be on sale unless it is the one this instance already runs. Exactly one of this and `private_image_id`
|
|
1480
954
|
*/
|
|
1481
955
|
image_id?: string;
|
|
1482
956
|
password?: string;
|
|
1483
957
|
/**
|
|
1484
958
|
* Format: uuid
|
|
1485
|
-
* @description
|
|
959
|
+
* @description A private image. Exactly one of this and `image_id`
|
|
1486
960
|
*/
|
|
1487
961
|
private_image_id?: string;
|
|
1488
962
|
};
|
|
1489
963
|
RebuildInstanceResponseBody: {
|
|
1490
964
|
instance: components["schemas"]["InstanceResource"];
|
|
1491
|
-
/** @description
|
|
965
|
+
/** @description Returned only in this response; store it immediately */
|
|
1492
966
|
password: string;
|
|
1493
967
|
};
|
|
1494
968
|
ResizeInstanceRequestBody: {
|
|
1495
969
|
/**
|
|
1496
970
|
* Format: uuid
|
|
1497
|
-
* @description
|
|
971
|
+
* @description Must be in the same region and availability zone as the current instance type
|
|
1498
972
|
*/
|
|
1499
973
|
instance_type_id: string;
|
|
974
|
+
order: components["schemas"]["OrderOptions"];
|
|
975
|
+
price: components["schemas"]["CatalogReference"];
|
|
1500
976
|
};
|
|
1501
977
|
AttachDiskRequestBody: {
|
|
1502
978
|
/** Format: uuid */
|
|
@@ -1506,112 +982,102 @@ export interface components {
|
|
|
1506
982
|
/** Format: uuid */
|
|
1507
983
|
floating_ip_id: string;
|
|
1508
984
|
};
|
|
1509
|
-
PortResource: {
|
|
1510
|
-
attached_instance_id: string | null;
|
|
1511
|
-
/** Format: uuid */
|
|
1512
|
-
id: string;
|
|
1513
|
-
ipv6_address: string | null;
|
|
1514
|
-
/** @description 主网卡随云服务器一并创建和释放,不可单独卸载 */
|
|
1515
|
-
is_primary: boolean;
|
|
1516
|
-
mac: string | null;
|
|
1517
|
-
name: string;
|
|
1518
|
-
private_ip: string | null;
|
|
1519
|
-
/** Format: uuid */
|
|
1520
|
-
private_network_id: string;
|
|
1521
|
-
/** @description 绑在这张网卡上的公网 IPv4,未绑定时为空数组 */
|
|
1522
|
-
public_ips: string[] | null;
|
|
1523
|
-
/** Format: uuid */
|
|
1524
|
-
subnet_id: string;
|
|
1525
|
-
};
|
|
1526
|
-
PortListResponseBody: {
|
|
1527
|
-
items: components["schemas"]["PortResource"][] | null;
|
|
1528
|
-
};
|
|
1529
985
|
AttachPortRequestBody: {
|
|
1530
986
|
/** Format: uuid */
|
|
1531
987
|
port_id: string;
|
|
1532
988
|
};
|
|
1533
989
|
OperationLogResource: {
|
|
1534
|
-
/** @description
|
|
990
|
+
/** @description Name of the operation; matches the operation id of the endpoint */
|
|
1535
991
|
action: string;
|
|
1536
|
-
/** @description
|
|
992
|
+
/** @description The user who initiated the operation. Empty when the platform performed it */
|
|
1537
993
|
actor: string | null;
|
|
1538
|
-
/**
|
|
994
|
+
/**
|
|
995
|
+
* @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.
|
|
996
|
+
*
|
|
997
|
+
* 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.
|
|
998
|
+
*/
|
|
999
|
+
actor_name: string | null;
|
|
1000
|
+
/** @description True when the operation was performed by the platform */
|
|
1539
1001
|
by_platform: boolean;
|
|
1540
1002
|
/** Format: date-time */
|
|
1541
1003
|
created_at: string;
|
|
1542
|
-
/** @description
|
|
1004
|
+
/** @description Brief reason for the failure */
|
|
1543
1005
|
failure: string | null;
|
|
1544
1006
|
/** Format: uuid */
|
|
1545
1007
|
id: string;
|
|
1546
|
-
/** @description
|
|
1008
|
+
/** @description Path and query parameters of the request. Fields such as passwords are redacted */
|
|
1547
1009
|
payload: {
|
|
1548
1010
|
[key: string]: unknown;
|
|
1549
1011
|
};
|
|
1550
|
-
|
|
1551
|
-
|
|
1012
|
+
/** Format: uuid */
|
|
1013
|
+
region_id: string | null;
|
|
1014
|
+
/** @description Empty for create operations: the id of the new resource is in the response, not in the request path */
|
|
1552
1015
|
subject_id: string;
|
|
1553
1016
|
subject_type: string;
|
|
1554
1017
|
succeeded: boolean;
|
|
1555
1018
|
};
|
|
1556
1019
|
OperationLogListResponseBody: {
|
|
1557
|
-
items: components["schemas"]["OperationLogResource"][]
|
|
1020
|
+
items: components["schemas"]["OperationLogResource"][];
|
|
1558
1021
|
/** Format: int64 */
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
private_ip?: string;
|
|
1565
|
-
/** @description 至少一个,且必须属于同一个私有网络 */
|
|
1566
|
-
security_group_ids: string[] | null;
|
|
1567
|
-
/** Format: uuid */
|
|
1568
|
-
subnet_id: string;
|
|
1022
|
+
page: number;
|
|
1023
|
+
/** Format: int64 */
|
|
1024
|
+
page_size: number;
|
|
1025
|
+
/** Format: int64 */
|
|
1026
|
+
total_count?: number;
|
|
1569
1027
|
};
|
|
1570
1028
|
PrivateImageResource: {
|
|
1571
1029
|
architecture: string;
|
|
1572
1030
|
/** Format: date-time */
|
|
1573
1031
|
created_at: string;
|
|
1574
|
-
/** @description
|
|
1032
|
+
/** @description Reason the capture failed; non-empty only when `status` is `error` */
|
|
1575
1033
|
failure: string | null;
|
|
1576
1034
|
/** Format: uuid */
|
|
1577
1035
|
id: string;
|
|
1036
|
+
/** @description The account this image lets you log in as. The password set at creation belongs to this account */
|
|
1037
|
+
login_username: string;
|
|
1578
1038
|
/**
|
|
1579
1039
|
* Format: int64
|
|
1580
|
-
* @description
|
|
1040
|
+
* @description The system disk of an instance created from this image cannot be smaller than this
|
|
1581
1041
|
*/
|
|
1582
1042
|
min_disk_gb: number;
|
|
1583
1043
|
/**
|
|
1584
1044
|
* Format: int64
|
|
1585
|
-
* @description
|
|
1045
|
+
* @description The instance type of an instance created from this image must have at least this much memory
|
|
1586
1046
|
*/
|
|
1587
1047
|
min_ram_mb: number;
|
|
1588
1048
|
name: string;
|
|
1589
1049
|
os_family: string;
|
|
1590
1050
|
os_version: string;
|
|
1591
|
-
/**
|
|
1592
|
-
|
|
1051
|
+
/** Format: uuid */
|
|
1052
|
+
region_id: string;
|
|
1593
1053
|
/**
|
|
1594
1054
|
* Format: int64
|
|
1595
|
-
* @description
|
|
1055
|
+
* @description Storage occupied by the image; 0 until the capture completes
|
|
1596
1056
|
*/
|
|
1597
1057
|
size_bytes: number;
|
|
1598
1058
|
/**
|
|
1599
1059
|
* Format: uuid
|
|
1600
|
-
* @description
|
|
1060
|
+
* @description The instance this image was captured from. The image remains usable after that instance is released
|
|
1601
1061
|
*/
|
|
1602
1062
|
source_instance_id: string | null;
|
|
1603
1063
|
/** @enum {string} */
|
|
1604
1064
|
status: "provisioning" | "uploading" | "available" | "deleting" | "error";
|
|
1605
|
-
/** @description
|
|
1065
|
+
/** @description False means a new password can only be set by rebuilding an instance created from this image */
|
|
1606
1066
|
supports_password_reset: boolean;
|
|
1607
1067
|
};
|
|
1608
1068
|
PrivateImageListResponseBody: {
|
|
1609
|
-
items: components["schemas"]["PrivateImageResource"][]
|
|
1069
|
+
items: components["schemas"]["PrivateImageResource"][];
|
|
1070
|
+
/** Format: int64 */
|
|
1071
|
+
page: number;
|
|
1072
|
+
/** Format: int64 */
|
|
1073
|
+
page_size: number;
|
|
1074
|
+
/** Format: int64 */
|
|
1075
|
+
total_count?: number;
|
|
1610
1076
|
};
|
|
1611
1077
|
CreatePrivateImageRequestBody: {
|
|
1612
1078
|
/**
|
|
1613
1079
|
* Format: uuid
|
|
1614
|
-
* @description
|
|
1080
|
+
* @description Captured from the system disk of this instance; data disks are not included
|
|
1615
1081
|
*/
|
|
1616
1082
|
instance_id: string;
|
|
1617
1083
|
name: string;
|
|
@@ -1619,1690 +1085,158 @@ export interface components {
|
|
|
1619
1085
|
RenamePrivateImageRequestBody: {
|
|
1620
1086
|
name: string;
|
|
1621
1087
|
};
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
id: string;
|
|
1629
|
-
name: string;
|
|
1630
|
-
region_code: string;
|
|
1631
|
-
/** @enum {string} */
|
|
1632
|
-
status: "available" | "error";
|
|
1633
|
-
/** Format: date-time */
|
|
1634
|
-
updated_at: string;
|
|
1635
|
-
};
|
|
1636
|
-
PrivateNetworkListResponseBody: {
|
|
1637
|
-
items: components["schemas"]["PrivateNetworkResource"][] | null;
|
|
1638
|
-
};
|
|
1639
|
-
CreatePrivateNetworkRequestBody: {
|
|
1640
|
-
/** @description 必须是 RFC1918 的私有网段,掩码在 /8 到 /24 之间,例如 10.0.0.0/16 */
|
|
1641
|
-
cidr: string;
|
|
1642
|
-
name: string;
|
|
1643
|
-
region_code: string;
|
|
1644
|
-
};
|
|
1645
|
-
RenamePrivateNetworkRequestBody: {
|
|
1646
|
-
name: string;
|
|
1647
|
-
};
|
|
1648
|
-
IPv6ResponseBody: {
|
|
1649
|
-
/** @description 已分配的 /64 前缀,未启用时为空 */
|
|
1650
|
-
cidr: string;
|
|
1651
|
-
enabled: boolean;
|
|
1652
|
-
/**
|
|
1653
|
-
* @description 为 active 时表示 IPv6 已完全可用
|
|
1654
|
-
* @enum {string}
|
|
1655
|
-
*/
|
|
1656
|
-
status: "pending" | "active" | "draining";
|
|
1657
|
-
};
|
|
1658
|
-
RouteResource: {
|
|
1659
|
-
/** Format: date-time */
|
|
1660
|
-
created_at: string;
|
|
1661
|
-
description: string;
|
|
1662
|
-
destination: string;
|
|
1663
|
-
/** Format: uuid */
|
|
1664
|
-
id: string;
|
|
1665
|
-
nexthop: string;
|
|
1666
|
-
};
|
|
1667
|
-
RouteListResponseBody: {
|
|
1668
|
-
items: components["schemas"]["RouteResource"][] | null;
|
|
1669
|
-
};
|
|
1670
|
-
CreateRouteRequestBody: {
|
|
1671
|
-
description?: string;
|
|
1672
|
-
/** @description 目的网段。不能为 0.0.0.0/0,也不能为某个子网自身的网段 */
|
|
1673
|
-
destination: string;
|
|
1674
|
-
/** @description 云服务器的私网地址,必须落在该私有网络的某个子网内 */
|
|
1675
|
-
nexthop: string;
|
|
1676
|
-
};
|
|
1677
|
-
SubnetResource: {
|
|
1678
|
-
cidr: string;
|
|
1679
|
-
gateway_ip: string | null;
|
|
1680
|
-
/** Format: uuid */
|
|
1681
|
-
id: string;
|
|
1682
|
-
/**
|
|
1683
|
-
* Format: int64
|
|
1684
|
-
* @enum {integer}
|
|
1685
|
-
*/
|
|
1686
|
-
ip_version: 4 | 6;
|
|
1687
|
-
name: string;
|
|
1688
|
-
/** Format: uuid */
|
|
1689
|
-
private_network_id: string;
|
|
1690
|
-
};
|
|
1691
|
-
SubnetListResponseBody: {
|
|
1692
|
-
items: components["schemas"]["SubnetResource"][] | null;
|
|
1693
|
-
};
|
|
1694
|
-
CreateSubnetRequestBody: {
|
|
1695
|
-
/** @description 必须落在私有网络的网段内,且不能与已有子网重叠 */
|
|
1696
|
-
cidr: string;
|
|
1697
|
-
name: string;
|
|
1698
|
-
};
|
|
1699
|
-
NextFreeCidrResponseBody: {
|
|
1700
|
-
/** @description 为空表示该私有网络内已无满足该掩码的空闲网段 */
|
|
1701
|
-
cidr: string;
|
|
1702
|
-
};
|
|
1703
|
-
SecurityGroupResource: {
|
|
1704
|
-
/** Format: date-time */
|
|
1705
|
-
created_at: string;
|
|
1706
|
-
description: string;
|
|
1707
|
-
/** Format: uuid */
|
|
1708
|
-
id: string;
|
|
1709
|
-
/** @description 默认安全组随私有网络一并释放,不可单独删除 */
|
|
1710
|
-
is_default: boolean;
|
|
1711
|
-
name: string;
|
|
1712
|
-
/** Format: uuid */
|
|
1713
|
-
private_network_id: string;
|
|
1714
|
-
};
|
|
1715
|
-
SecurityGroupListResponseBody: {
|
|
1716
|
-
items: components["schemas"]["SecurityGroupResource"][] | null;
|
|
1088
|
+
/** @description Reuse the same key for retries of the same purchase. Reusing it with a different request fails. Billing selects contract pricing, applies eligible grants and promotions, and owns payment challenges and expiry. */
|
|
1089
|
+
OrderOptions: {
|
|
1090
|
+
idempotency_key: string;
|
|
1091
|
+
payment_plan?: components["schemas"]["PaymentPlan"];
|
|
1092
|
+
expected_amount?: string;
|
|
1093
|
+
redemption_code?: string;
|
|
1717
1094
|
};
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
name: string;
|
|
1095
|
+
/** @description Specify exactly one of id or lookup_key. A lookup key is scoped to the product of the resource service. */
|
|
1096
|
+
CatalogReference: {
|
|
1721
1097
|
/** Format: uuid */
|
|
1722
|
-
|
|
1098
|
+
id?: string;
|
|
1099
|
+
lookup_key?: string;
|
|
1723
1100
|
};
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
/** Format: uuid */
|
|
1733
|
-
id: string;
|
|
1734
|
-
/**
|
|
1735
|
-
* Format: int64
|
|
1736
|
-
* @description ICMP 协议下表示 code,而非端口
|
|
1737
|
-
*/
|
|
1738
|
-
port_range_max: number | null;
|
|
1101
|
+
/**
|
|
1102
|
+
* @description A billable order has been created. Read it from the billing API to find out what is
|
|
1103
|
+
* owed and whether payment is still required.
|
|
1104
|
+
*
|
|
1105
|
+
* Only the identifier is returned. Amounts and state are not repeated here; the order
|
|
1106
|
+
* itself is the single source for them.
|
|
1107
|
+
*/
|
|
1108
|
+
PlacedOrder: {
|
|
1739
1109
|
/**
|
|
1740
|
-
* Format:
|
|
1741
|
-
* @description
|
|
1110
|
+
* Format: uuid
|
|
1111
|
+
* @description Identifies the order. Use it to read the order and, where payment is required,
|
|
1112
|
+
* to pay it.
|
|
1113
|
+
*
|
|
1114
|
+
* An order is created even when nothing is owed, such as a plan with no charge or one
|
|
1115
|
+
* covered entirely by granted credit. Such an order is already settled, and no
|
|
1116
|
+
* payment step applies.
|
|
1742
1117
|
*/
|
|
1743
|
-
|
|
1744
|
-
protocol: string | null;
|
|
1745
|
-
remote_ip_prefix: string | null;
|
|
1746
|
-
};
|
|
1747
|
-
SecurityRuleListResponseBody: {
|
|
1748
|
-
items: components["schemas"]["SecurityRuleResource"][] | null;
|
|
1118
|
+
order_id: string;
|
|
1749
1119
|
};
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
/** @enum {string} */
|
|
1753
|
-
direction: "ingress" | "egress";
|
|
1754
|
-
/** @enum {string} */
|
|
1755
|
-
ethertype: "IPv4" | "IPv6";
|
|
1756
|
-
/**
|
|
1757
|
-
* Format: int64
|
|
1758
|
-
* @description ICMP 协议下表示 code(0–255),而非端口
|
|
1759
|
-
*/
|
|
1760
|
-
port_range_max?: number | null;
|
|
1761
|
-
/**
|
|
1762
|
-
* Format: int64
|
|
1763
|
-
* @description ICMP 协议下表示 type(0–255),而非端口
|
|
1764
|
-
*/
|
|
1765
|
-
port_range_min?: number | null;
|
|
1766
|
-
/** @description 如 tcp、udp、icmp、ipv6-icmp。留空表示全部协议 */
|
|
1767
|
-
protocol?: string;
|
|
1768
|
-
/** @description 留空等同于 0.0.0.0/0 或 ::/0 */
|
|
1769
|
-
remote_ip_prefix?: string;
|
|
1770
|
-
};
|
|
1771
|
-
SnapshotResource: {
|
|
1772
|
-
/** @description 由该快照恢复的云硬盘必须位于此可用区 */
|
|
1773
|
-
availability_zone: string;
|
|
1774
|
-
/** Format: date-time */
|
|
1775
|
-
created_at: string;
|
|
1120
|
+
/** @description The consumer’s desired dependency. usage_id identifies the corresponding claim in the owning service; actual attachment state is read from that service. */
|
|
1121
|
+
ResourceDependency: {
|
|
1776
1122
|
/** Format: uuid */
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
name: string;
|
|
1781
|
-
region_code: string;
|
|
1782
|
-
/**
|
|
1783
|
-
* Format: int64
|
|
1784
|
-
* @description 创建快照时源云硬盘的容量。由该快照恢复的云硬盘不能小于此容量
|
|
1785
|
-
*/
|
|
1786
|
-
size_gb: number;
|
|
1123
|
+
usage_id: string;
|
|
1124
|
+
resource: components["schemas"]["ResourceReference"];
|
|
1125
|
+
purpose: string;
|
|
1787
1126
|
/** @enum {string} */
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
};
|
|
1793
|
-
CreateSnapshotRequestBody: {
|
|
1794
|
-
/** Format: uuid */
|
|
1795
|
-
disk_id: string;
|
|
1796
|
-
name: string;
|
|
1797
|
-
};
|
|
1798
|
-
RenameSnapshotRequestBody: {
|
|
1799
|
-
name: string;
|
|
1800
|
-
};
|
|
1801
|
-
};
|
|
1802
|
-
responses: never;
|
|
1803
|
-
parameters: never;
|
|
1804
|
-
requestBodies: never;
|
|
1805
|
-
headers: never;
|
|
1806
|
-
pathItems: never;
|
|
1807
|
-
}
|
|
1808
|
-
export type $defs = Record<string, never>;
|
|
1809
|
-
export interface operations {
|
|
1810
|
-
"list-backups": {
|
|
1811
|
-
parameters: {
|
|
1812
|
-
query?: {
|
|
1813
|
-
/** @description 只返回该云硬盘的备份 */
|
|
1814
|
-
disk_id?: string;
|
|
1815
|
-
};
|
|
1816
|
-
header?: never;
|
|
1817
|
-
path?: never;
|
|
1818
|
-
cookie?: never;
|
|
1819
|
-
};
|
|
1820
|
-
requestBody?: never;
|
|
1821
|
-
responses: {
|
|
1822
|
-
/** @description OK */
|
|
1823
|
-
200: {
|
|
1824
|
-
headers: {
|
|
1825
|
-
[name: string]: unknown;
|
|
1826
|
-
};
|
|
1827
|
-
content: {
|
|
1828
|
-
"application/json": components["schemas"]["BackupListResponseBody"];
|
|
1829
|
-
};
|
|
1830
|
-
};
|
|
1831
|
-
/** @description Error */
|
|
1832
|
-
default: {
|
|
1833
|
-
headers: {
|
|
1834
|
-
[name: string]: unknown;
|
|
1835
|
-
};
|
|
1836
|
-
content: {
|
|
1837
|
-
"application/json": components["schemas"]["Error"];
|
|
1838
|
-
};
|
|
1839
|
-
};
|
|
1840
|
-
};
|
|
1841
|
-
};
|
|
1842
|
-
"create-backup": {
|
|
1843
|
-
parameters: {
|
|
1844
|
-
query?: never;
|
|
1845
|
-
header?: never;
|
|
1846
|
-
path?: never;
|
|
1847
|
-
cookie?: never;
|
|
1848
|
-
};
|
|
1849
|
-
requestBody: {
|
|
1850
|
-
content: {
|
|
1851
|
-
"application/json": components["schemas"]["CreateBackupRequestBody"];
|
|
1852
|
-
};
|
|
1853
|
-
};
|
|
1854
|
-
responses: {
|
|
1855
|
-
/** @description Created */
|
|
1856
|
-
201: {
|
|
1857
|
-
headers: {
|
|
1858
|
-
[name: string]: unknown;
|
|
1859
|
-
};
|
|
1860
|
-
content: {
|
|
1861
|
-
"application/json": components["schemas"]["BackupResource"];
|
|
1862
|
-
};
|
|
1863
|
-
};
|
|
1864
|
-
/** @description Error */
|
|
1865
|
-
default: {
|
|
1866
|
-
headers: {
|
|
1867
|
-
[name: string]: unknown;
|
|
1868
|
-
};
|
|
1869
|
-
content: {
|
|
1870
|
-
"application/json": components["schemas"]["Error"];
|
|
1871
|
-
};
|
|
1872
|
-
};
|
|
1873
|
-
};
|
|
1874
|
-
};
|
|
1875
|
-
"get-backup": {
|
|
1876
|
-
parameters: {
|
|
1877
|
-
query?: never;
|
|
1878
|
-
header?: never;
|
|
1879
|
-
path: {
|
|
1880
|
-
backupId: string;
|
|
1881
|
-
};
|
|
1882
|
-
cookie?: never;
|
|
1883
|
-
};
|
|
1884
|
-
requestBody?: never;
|
|
1885
|
-
responses: {
|
|
1886
|
-
/** @description OK */
|
|
1887
|
-
200: {
|
|
1888
|
-
headers: {
|
|
1889
|
-
[name: string]: unknown;
|
|
1890
|
-
};
|
|
1891
|
-
content: {
|
|
1892
|
-
"application/json": components["schemas"]["BackupResource"];
|
|
1893
|
-
};
|
|
1894
|
-
};
|
|
1895
|
-
/** @description Error */
|
|
1896
|
-
default: {
|
|
1897
|
-
headers: {
|
|
1898
|
-
[name: string]: unknown;
|
|
1899
|
-
};
|
|
1900
|
-
content: {
|
|
1901
|
-
"application/json": components["schemas"]["Error"];
|
|
1902
|
-
};
|
|
1903
|
-
};
|
|
1904
|
-
};
|
|
1905
|
-
};
|
|
1906
|
-
"delete-backup": {
|
|
1907
|
-
parameters: {
|
|
1908
|
-
query?: never;
|
|
1909
|
-
header?: never;
|
|
1910
|
-
path: {
|
|
1911
|
-
backupId: string;
|
|
1912
|
-
};
|
|
1913
|
-
cookie?: never;
|
|
1914
|
-
};
|
|
1915
|
-
requestBody?: never;
|
|
1916
|
-
responses: {
|
|
1917
|
-
/** @description No Content */
|
|
1918
|
-
204: {
|
|
1919
|
-
headers: {
|
|
1920
|
-
[name: string]: unknown;
|
|
1921
|
-
};
|
|
1922
|
-
content?: never;
|
|
1923
|
-
};
|
|
1924
|
-
/** @description Error */
|
|
1925
|
-
default: {
|
|
1926
|
-
headers: {
|
|
1927
|
-
[name: string]: unknown;
|
|
1928
|
-
};
|
|
1929
|
-
content: {
|
|
1930
|
-
"application/json": components["schemas"]["Error"];
|
|
1931
|
-
};
|
|
1932
|
-
};
|
|
1933
|
-
};
|
|
1934
|
-
};
|
|
1935
|
-
"rename-backup": {
|
|
1936
|
-
parameters: {
|
|
1937
|
-
query?: never;
|
|
1938
|
-
header?: never;
|
|
1939
|
-
path: {
|
|
1940
|
-
backupId: string;
|
|
1941
|
-
};
|
|
1942
|
-
cookie?: never;
|
|
1943
|
-
};
|
|
1944
|
-
requestBody: {
|
|
1945
|
-
content: {
|
|
1946
|
-
"application/json": components["schemas"]["RenameBackupRequestBody"];
|
|
1947
|
-
};
|
|
1948
|
-
};
|
|
1949
|
-
responses: {
|
|
1950
|
-
/** @description OK */
|
|
1951
|
-
200: {
|
|
1952
|
-
headers: {
|
|
1953
|
-
[name: string]: unknown;
|
|
1954
|
-
};
|
|
1955
|
-
content: {
|
|
1956
|
-
"application/json": components["schemas"]["BackupResource"];
|
|
1957
|
-
};
|
|
1958
|
-
};
|
|
1959
|
-
/** @description Error */
|
|
1960
|
-
default: {
|
|
1961
|
-
headers: {
|
|
1962
|
-
[name: string]: unknown;
|
|
1963
|
-
};
|
|
1964
|
-
content: {
|
|
1965
|
-
"application/json": components["schemas"]["Error"];
|
|
1966
|
-
};
|
|
1967
|
-
};
|
|
1968
|
-
};
|
|
1969
|
-
};
|
|
1970
|
-
"restore-backup": {
|
|
1971
|
-
parameters: {
|
|
1972
|
-
query?: never;
|
|
1973
|
-
header?: never;
|
|
1974
|
-
path: {
|
|
1975
|
-
backupId: string;
|
|
1976
|
-
};
|
|
1977
|
-
cookie?: never;
|
|
1978
|
-
};
|
|
1979
|
-
requestBody: {
|
|
1980
|
-
content: {
|
|
1981
|
-
"application/json": components["schemas"]["RestoreBackupRequestBody"];
|
|
1982
|
-
};
|
|
1983
|
-
};
|
|
1984
|
-
responses: {
|
|
1985
|
-
/** @description Created */
|
|
1986
|
-
201: {
|
|
1987
|
-
headers: {
|
|
1988
|
-
[name: string]: unknown;
|
|
1989
|
-
};
|
|
1990
|
-
content: {
|
|
1991
|
-
"application/json": components["schemas"]["DiskResource"];
|
|
1992
|
-
};
|
|
1993
|
-
};
|
|
1994
|
-
/** @description Error */
|
|
1995
|
-
default: {
|
|
1996
|
-
headers: {
|
|
1997
|
-
[name: string]: unknown;
|
|
1998
|
-
};
|
|
1999
|
-
content: {
|
|
2000
|
-
"application/json": components["schemas"]["Error"];
|
|
2001
|
-
};
|
|
2002
|
-
};
|
|
2003
|
-
};
|
|
2004
|
-
};
|
|
2005
|
-
"list-disk-types": {
|
|
2006
|
-
parameters: {
|
|
2007
|
-
query: {
|
|
2008
|
-
region_code: string;
|
|
2009
|
-
};
|
|
2010
|
-
header?: never;
|
|
2011
|
-
path?: never;
|
|
2012
|
-
cookie?: never;
|
|
2013
|
-
};
|
|
2014
|
-
requestBody?: never;
|
|
2015
|
-
responses: {
|
|
2016
|
-
/** @description OK */
|
|
2017
|
-
200: {
|
|
2018
|
-
headers: {
|
|
2019
|
-
[name: string]: unknown;
|
|
2020
|
-
};
|
|
2021
|
-
content: {
|
|
2022
|
-
"application/json": components["schemas"]["DiskTypeListResponseBody"];
|
|
2023
|
-
};
|
|
2024
|
-
};
|
|
2025
|
-
/** @description Error */
|
|
2026
|
-
default: {
|
|
2027
|
-
headers: {
|
|
2028
|
-
[name: string]: unknown;
|
|
2029
|
-
};
|
|
2030
|
-
content: {
|
|
2031
|
-
"application/json": components["schemas"]["Error"];
|
|
2032
|
-
};
|
|
2033
|
-
};
|
|
2034
|
-
};
|
|
2035
|
-
};
|
|
2036
|
-
"list-images": {
|
|
2037
|
-
parameters: {
|
|
2038
|
-
query: {
|
|
2039
|
-
region_code: string;
|
|
2040
|
-
};
|
|
2041
|
-
header?: never;
|
|
2042
|
-
path?: never;
|
|
2043
|
-
cookie?: never;
|
|
2044
|
-
};
|
|
2045
|
-
requestBody?: never;
|
|
2046
|
-
responses: {
|
|
2047
|
-
/** @description OK */
|
|
2048
|
-
200: {
|
|
2049
|
-
headers: {
|
|
2050
|
-
[name: string]: unknown;
|
|
2051
|
-
};
|
|
2052
|
-
content: {
|
|
2053
|
-
"application/json": components["schemas"]["ImageListResponseBody"];
|
|
2054
|
-
};
|
|
2055
|
-
};
|
|
2056
|
-
/** @description Error */
|
|
2057
|
-
default: {
|
|
2058
|
-
headers: {
|
|
2059
|
-
[name: string]: unknown;
|
|
2060
|
-
};
|
|
2061
|
-
content: {
|
|
2062
|
-
"application/json": components["schemas"]["Error"];
|
|
2063
|
-
};
|
|
2064
|
-
};
|
|
2065
|
-
};
|
|
2066
|
-
};
|
|
2067
|
-
"list-instance-types": {
|
|
2068
|
-
parameters: {
|
|
2069
|
-
query: {
|
|
2070
|
-
region_code: string;
|
|
2071
|
-
};
|
|
2072
|
-
header?: never;
|
|
2073
|
-
path?: never;
|
|
2074
|
-
cookie?: never;
|
|
2075
|
-
};
|
|
2076
|
-
requestBody?: never;
|
|
2077
|
-
responses: {
|
|
2078
|
-
/** @description OK */
|
|
2079
|
-
200: {
|
|
2080
|
-
headers: {
|
|
2081
|
-
[name: string]: unknown;
|
|
2082
|
-
};
|
|
2083
|
-
content: {
|
|
2084
|
-
"application/json": components["schemas"]["InstanceTypeListResponseBody"];
|
|
2085
|
-
};
|
|
2086
|
-
};
|
|
2087
|
-
/** @description Error */
|
|
2088
|
-
default: {
|
|
2089
|
-
headers: {
|
|
2090
|
-
[name: string]: unknown;
|
|
2091
|
-
};
|
|
2092
|
-
content: {
|
|
2093
|
-
"application/json": components["schemas"]["Error"];
|
|
2094
|
-
};
|
|
2095
|
-
};
|
|
2096
|
-
};
|
|
2097
|
-
};
|
|
2098
|
-
"list-regions": {
|
|
2099
|
-
parameters: {
|
|
2100
|
-
query?: never;
|
|
2101
|
-
header?: never;
|
|
2102
|
-
path?: never;
|
|
2103
|
-
cookie?: never;
|
|
2104
|
-
};
|
|
2105
|
-
requestBody?: never;
|
|
2106
|
-
responses: {
|
|
2107
|
-
/** @description OK */
|
|
2108
|
-
200: {
|
|
2109
|
-
headers: {
|
|
2110
|
-
[name: string]: unknown;
|
|
2111
|
-
};
|
|
2112
|
-
content: {
|
|
2113
|
-
"application/json": components["schemas"]["RegionListResponseBody"];
|
|
2114
|
-
};
|
|
2115
|
-
};
|
|
2116
|
-
/** @description Error */
|
|
2117
|
-
default: {
|
|
2118
|
-
headers: {
|
|
2119
|
-
[name: string]: unknown;
|
|
2120
|
-
};
|
|
2121
|
-
content: {
|
|
2122
|
-
"application/json": components["schemas"]["Error"];
|
|
2123
|
-
};
|
|
2124
|
-
};
|
|
2125
|
-
};
|
|
2126
|
-
};
|
|
2127
|
-
"list-availability-zones": {
|
|
2128
|
-
parameters: {
|
|
2129
|
-
query?: never;
|
|
2130
|
-
header?: never;
|
|
2131
|
-
path: {
|
|
2132
|
-
regionCode: string;
|
|
2133
|
-
};
|
|
2134
|
-
cookie?: never;
|
|
2135
|
-
};
|
|
2136
|
-
requestBody?: never;
|
|
2137
|
-
responses: {
|
|
2138
|
-
/** @description OK */
|
|
2139
|
-
200: {
|
|
2140
|
-
headers: {
|
|
2141
|
-
[name: string]: unknown;
|
|
2142
|
-
};
|
|
2143
|
-
content: {
|
|
2144
|
-
"application/json": components["schemas"]["ZoneListResponseBody"];
|
|
2145
|
-
};
|
|
2146
|
-
};
|
|
2147
|
-
/** @description Error */
|
|
2148
|
-
default: {
|
|
2149
|
-
headers: {
|
|
2150
|
-
[name: string]: unknown;
|
|
2151
|
-
};
|
|
2152
|
-
content: {
|
|
2153
|
-
"application/json": components["schemas"]["Error"];
|
|
2154
|
-
};
|
|
2155
|
-
};
|
|
2156
|
-
};
|
|
2157
|
-
};
|
|
2158
|
-
"list-disks": {
|
|
2159
|
-
parameters: {
|
|
2160
|
-
query?: {
|
|
2161
|
-
region_code?: string;
|
|
2162
|
-
/** @description 与 region_code 同时提供,用于筛选可挂载的云硬盘 */
|
|
2163
|
-
availability_zone?: string;
|
|
2164
|
-
};
|
|
2165
|
-
header?: never;
|
|
2166
|
-
path?: never;
|
|
2167
|
-
cookie?: never;
|
|
2168
|
-
};
|
|
2169
|
-
requestBody?: never;
|
|
2170
|
-
responses: {
|
|
2171
|
-
/** @description OK */
|
|
2172
|
-
200: {
|
|
2173
|
-
headers: {
|
|
2174
|
-
[name: string]: unknown;
|
|
2175
|
-
};
|
|
2176
|
-
content: {
|
|
2177
|
-
"application/json": components["schemas"]["DiskListResponseBody"];
|
|
2178
|
-
};
|
|
2179
|
-
};
|
|
2180
|
-
/** @description Error */
|
|
2181
|
-
default: {
|
|
2182
|
-
headers: {
|
|
2183
|
-
[name: string]: unknown;
|
|
2184
|
-
};
|
|
2185
|
-
content: {
|
|
2186
|
-
"application/json": components["schemas"]["Error"];
|
|
2187
|
-
};
|
|
2188
|
-
};
|
|
2189
|
-
};
|
|
2190
|
-
};
|
|
2191
|
-
"create-disk": {
|
|
2192
|
-
parameters: {
|
|
2193
|
-
query?: never;
|
|
2194
|
-
header?: never;
|
|
2195
|
-
path?: never;
|
|
2196
|
-
cookie?: never;
|
|
2197
|
-
};
|
|
2198
|
-
requestBody: {
|
|
2199
|
-
content: {
|
|
2200
|
-
"application/json": components["schemas"]["CreateDiskRequestBody"];
|
|
2201
|
-
};
|
|
2202
|
-
};
|
|
2203
|
-
responses: {
|
|
2204
|
-
/** @description Created */
|
|
2205
|
-
201: {
|
|
2206
|
-
headers: {
|
|
2207
|
-
[name: string]: unknown;
|
|
2208
|
-
};
|
|
2209
|
-
content: {
|
|
2210
|
-
"application/json": components["schemas"]["DiskResource"];
|
|
2211
|
-
};
|
|
2212
|
-
};
|
|
2213
|
-
/** @description Error */
|
|
2214
|
-
default: {
|
|
2215
|
-
headers: {
|
|
2216
|
-
[name: string]: unknown;
|
|
2217
|
-
};
|
|
2218
|
-
content: {
|
|
2219
|
-
"application/json": components["schemas"]["Error"];
|
|
2220
|
-
};
|
|
2221
|
-
};
|
|
2222
|
-
};
|
|
2223
|
-
};
|
|
2224
|
-
"get-disk": {
|
|
2225
|
-
parameters: {
|
|
2226
|
-
query?: never;
|
|
2227
|
-
header?: never;
|
|
2228
|
-
path: {
|
|
2229
|
-
diskId: string;
|
|
2230
|
-
};
|
|
2231
|
-
cookie?: never;
|
|
2232
|
-
};
|
|
2233
|
-
requestBody?: never;
|
|
2234
|
-
responses: {
|
|
2235
|
-
/** @description OK */
|
|
2236
|
-
200: {
|
|
2237
|
-
headers: {
|
|
2238
|
-
[name: string]: unknown;
|
|
2239
|
-
};
|
|
2240
|
-
content: {
|
|
2241
|
-
"application/json": components["schemas"]["DiskResource"];
|
|
2242
|
-
};
|
|
2243
|
-
};
|
|
2244
|
-
/** @description Error */
|
|
2245
|
-
default: {
|
|
2246
|
-
headers: {
|
|
2247
|
-
[name: string]: unknown;
|
|
2248
|
-
};
|
|
2249
|
-
content: {
|
|
2250
|
-
"application/json": components["schemas"]["Error"];
|
|
2251
|
-
};
|
|
2252
|
-
};
|
|
2253
|
-
};
|
|
2254
|
-
};
|
|
2255
|
-
"delete-disk": {
|
|
2256
|
-
parameters: {
|
|
2257
|
-
query?: never;
|
|
2258
|
-
header?: never;
|
|
2259
|
-
path: {
|
|
2260
|
-
diskId: string;
|
|
2261
|
-
};
|
|
2262
|
-
cookie?: never;
|
|
2263
|
-
};
|
|
2264
|
-
requestBody?: never;
|
|
2265
|
-
responses: {
|
|
2266
|
-
/** @description No Content */
|
|
2267
|
-
204: {
|
|
2268
|
-
headers: {
|
|
2269
|
-
[name: string]: unknown;
|
|
2270
|
-
};
|
|
2271
|
-
content?: never;
|
|
2272
|
-
};
|
|
2273
|
-
/** @description Error */
|
|
2274
|
-
default: {
|
|
2275
|
-
headers: {
|
|
2276
|
-
[name: string]: unknown;
|
|
2277
|
-
};
|
|
2278
|
-
content: {
|
|
2279
|
-
"application/json": components["schemas"]["Error"];
|
|
2280
|
-
};
|
|
2281
|
-
};
|
|
2282
|
-
};
|
|
2283
|
-
};
|
|
2284
|
-
"rename-disk": {
|
|
2285
|
-
parameters: {
|
|
2286
|
-
query?: never;
|
|
2287
|
-
header?: never;
|
|
2288
|
-
path: {
|
|
2289
|
-
diskId: string;
|
|
2290
|
-
};
|
|
2291
|
-
cookie?: never;
|
|
2292
|
-
};
|
|
2293
|
-
requestBody: {
|
|
2294
|
-
content: {
|
|
2295
|
-
"application/json": components["schemas"]["RenameDiskRequestBody"];
|
|
2296
|
-
};
|
|
2297
|
-
};
|
|
2298
|
-
responses: {
|
|
2299
|
-
/** @description OK */
|
|
2300
|
-
200: {
|
|
2301
|
-
headers: {
|
|
2302
|
-
[name: string]: unknown;
|
|
2303
|
-
};
|
|
2304
|
-
content: {
|
|
2305
|
-
"application/json": components["schemas"]["DiskResource"];
|
|
2306
|
-
};
|
|
2307
|
-
};
|
|
2308
|
-
/** @description Error */
|
|
2309
|
-
default: {
|
|
2310
|
-
headers: {
|
|
2311
|
-
[name: string]: unknown;
|
|
2312
|
-
};
|
|
2313
|
-
content: {
|
|
2314
|
-
"application/json": components["schemas"]["Error"];
|
|
2315
|
-
};
|
|
2316
|
-
};
|
|
2317
|
-
};
|
|
2318
|
-
};
|
|
2319
|
-
"resize-disk": {
|
|
2320
|
-
parameters: {
|
|
2321
|
-
query?: never;
|
|
2322
|
-
header?: never;
|
|
2323
|
-
path: {
|
|
2324
|
-
diskId: string;
|
|
2325
|
-
};
|
|
2326
|
-
cookie?: never;
|
|
2327
|
-
};
|
|
2328
|
-
requestBody: {
|
|
2329
|
-
content: {
|
|
2330
|
-
"application/json": components["schemas"]["ResizeDiskRequestBody"];
|
|
2331
|
-
};
|
|
2332
|
-
};
|
|
2333
|
-
responses: {
|
|
2334
|
-
/** @description OK */
|
|
2335
|
-
200: {
|
|
2336
|
-
headers: {
|
|
2337
|
-
[name: string]: unknown;
|
|
2338
|
-
};
|
|
2339
|
-
content: {
|
|
2340
|
-
"application/json": components["schemas"]["DiskResource"];
|
|
2341
|
-
};
|
|
2342
|
-
};
|
|
2343
|
-
/** @description Error */
|
|
2344
|
-
default: {
|
|
2345
|
-
headers: {
|
|
2346
|
-
[name: string]: unknown;
|
|
2347
|
-
};
|
|
2348
|
-
content: {
|
|
2349
|
-
"application/json": components["schemas"]["Error"];
|
|
2350
|
-
};
|
|
2351
|
-
};
|
|
2352
|
-
};
|
|
2353
|
-
};
|
|
2354
|
-
"revert-disk": {
|
|
2355
|
-
parameters: {
|
|
2356
|
-
query?: never;
|
|
2357
|
-
header?: never;
|
|
2358
|
-
path: {
|
|
2359
|
-
diskId: string;
|
|
2360
|
-
};
|
|
2361
|
-
cookie?: never;
|
|
2362
|
-
};
|
|
2363
|
-
requestBody: {
|
|
2364
|
-
content: {
|
|
2365
|
-
"application/json": components["schemas"]["RevertDiskRequestBody"];
|
|
2366
|
-
};
|
|
2367
|
-
};
|
|
2368
|
-
responses: {
|
|
2369
|
-
/** @description OK */
|
|
2370
|
-
200: {
|
|
2371
|
-
headers: {
|
|
2372
|
-
[name: string]: unknown;
|
|
2373
|
-
};
|
|
2374
|
-
content: {
|
|
2375
|
-
"application/json": components["schemas"]["DiskResource"];
|
|
2376
|
-
};
|
|
2377
|
-
};
|
|
2378
|
-
/** @description Error */
|
|
2379
|
-
default: {
|
|
2380
|
-
headers: {
|
|
2381
|
-
[name: string]: unknown;
|
|
2382
|
-
};
|
|
2383
|
-
content: {
|
|
2384
|
-
"application/json": components["schemas"]["Error"];
|
|
2385
|
-
};
|
|
2386
|
-
};
|
|
2387
|
-
};
|
|
2388
|
-
};
|
|
2389
|
-
"list-floating-ips": {
|
|
2390
|
-
parameters: {
|
|
2391
|
-
query?: never;
|
|
2392
|
-
header?: never;
|
|
2393
|
-
path?: never;
|
|
2394
|
-
cookie?: never;
|
|
2395
|
-
};
|
|
2396
|
-
requestBody?: never;
|
|
2397
|
-
responses: {
|
|
2398
|
-
/** @description OK */
|
|
2399
|
-
200: {
|
|
2400
|
-
headers: {
|
|
2401
|
-
[name: string]: unknown;
|
|
2402
|
-
};
|
|
2403
|
-
content: {
|
|
2404
|
-
"application/json": components["schemas"]["FloatingIPListResponseBody"];
|
|
2405
|
-
};
|
|
2406
|
-
};
|
|
2407
|
-
/** @description Error */
|
|
2408
|
-
default: {
|
|
2409
|
-
headers: {
|
|
2410
|
-
[name: string]: unknown;
|
|
2411
|
-
};
|
|
2412
|
-
content: {
|
|
2413
|
-
"application/json": components["schemas"]["Error"];
|
|
2414
|
-
};
|
|
2415
|
-
};
|
|
2416
|
-
};
|
|
2417
|
-
};
|
|
2418
|
-
"allocate-floating-ip": {
|
|
2419
|
-
parameters: {
|
|
2420
|
-
query?: never;
|
|
2421
|
-
header?: never;
|
|
2422
|
-
path?: never;
|
|
2423
|
-
cookie?: never;
|
|
2424
|
-
};
|
|
2425
|
-
requestBody: {
|
|
2426
|
-
content: {
|
|
2427
|
-
"application/json": components["schemas"]["AllocateFloatingIPRequestBody"];
|
|
2428
|
-
};
|
|
2429
|
-
};
|
|
2430
|
-
responses: {
|
|
2431
|
-
/** @description Created */
|
|
2432
|
-
201: {
|
|
2433
|
-
headers: {
|
|
2434
|
-
[name: string]: unknown;
|
|
2435
|
-
};
|
|
2436
|
-
content: {
|
|
2437
|
-
"application/json": components["schemas"]["FloatingIPResource"];
|
|
2438
|
-
};
|
|
2439
|
-
};
|
|
2440
|
-
/** @description Error */
|
|
2441
|
-
default: {
|
|
2442
|
-
headers: {
|
|
2443
|
-
[name: string]: unknown;
|
|
2444
|
-
};
|
|
2445
|
-
content: {
|
|
2446
|
-
"application/json": components["schemas"]["Error"];
|
|
2447
|
-
};
|
|
2448
|
-
};
|
|
2449
|
-
};
|
|
2450
|
-
};
|
|
2451
|
-
"get-floating-ip": {
|
|
2452
|
-
parameters: {
|
|
2453
|
-
query?: never;
|
|
2454
|
-
header?: never;
|
|
2455
|
-
path: {
|
|
2456
|
-
floatingIpId: string;
|
|
2457
|
-
};
|
|
2458
|
-
cookie?: never;
|
|
2459
|
-
};
|
|
2460
|
-
requestBody?: never;
|
|
2461
|
-
responses: {
|
|
2462
|
-
/** @description OK */
|
|
2463
|
-
200: {
|
|
2464
|
-
headers: {
|
|
2465
|
-
[name: string]: unknown;
|
|
2466
|
-
};
|
|
2467
|
-
content: {
|
|
2468
|
-
"application/json": components["schemas"]["FloatingIPResource"];
|
|
2469
|
-
};
|
|
2470
|
-
};
|
|
2471
|
-
/** @description Error */
|
|
2472
|
-
default: {
|
|
2473
|
-
headers: {
|
|
2474
|
-
[name: string]: unknown;
|
|
2475
|
-
};
|
|
2476
|
-
content: {
|
|
2477
|
-
"application/json": components["schemas"]["Error"];
|
|
2478
|
-
};
|
|
2479
|
-
};
|
|
2480
|
-
};
|
|
2481
|
-
};
|
|
2482
|
-
"release-floating-ip": {
|
|
2483
|
-
parameters: {
|
|
2484
|
-
query?: never;
|
|
2485
|
-
header?: never;
|
|
2486
|
-
path: {
|
|
2487
|
-
floatingIpId: string;
|
|
2488
|
-
};
|
|
2489
|
-
cookie?: never;
|
|
2490
|
-
};
|
|
2491
|
-
requestBody?: never;
|
|
2492
|
-
responses: {
|
|
2493
|
-
/** @description No Content */
|
|
2494
|
-
204: {
|
|
2495
|
-
headers: {
|
|
2496
|
-
[name: string]: unknown;
|
|
2497
|
-
};
|
|
2498
|
-
content?: never;
|
|
2499
|
-
};
|
|
2500
|
-
/** @description Error */
|
|
2501
|
-
default: {
|
|
2502
|
-
headers: {
|
|
2503
|
-
[name: string]: unknown;
|
|
2504
|
-
};
|
|
2505
|
-
content: {
|
|
2506
|
-
"application/json": components["schemas"]["Error"];
|
|
2507
|
-
};
|
|
2508
|
-
};
|
|
2509
|
-
};
|
|
2510
|
-
};
|
|
2511
|
-
"set-floating-ip-bandwidth": {
|
|
2512
|
-
parameters: {
|
|
2513
|
-
query?: never;
|
|
2514
|
-
header?: never;
|
|
2515
|
-
path: {
|
|
2516
|
-
floatingIpId: string;
|
|
2517
|
-
};
|
|
2518
|
-
cookie?: never;
|
|
2519
|
-
};
|
|
2520
|
-
requestBody: {
|
|
2521
|
-
content: {
|
|
2522
|
-
"application/json": components["schemas"]["SetBandwidthRequestBody"];
|
|
2523
|
-
};
|
|
2524
|
-
};
|
|
2525
|
-
responses: {
|
|
2526
|
-
/** @description OK */
|
|
2527
|
-
200: {
|
|
2528
|
-
headers: {
|
|
2529
|
-
[name: string]: unknown;
|
|
2530
|
-
};
|
|
2531
|
-
content: {
|
|
2532
|
-
"application/json": components["schemas"]["FloatingIPResource"];
|
|
2533
|
-
};
|
|
2534
|
-
};
|
|
2535
|
-
/** @description Error */
|
|
2536
|
-
default: {
|
|
2537
|
-
headers: {
|
|
2538
|
-
[name: string]: unknown;
|
|
2539
|
-
};
|
|
2540
|
-
content: {
|
|
2541
|
-
"application/json": components["schemas"]["Error"];
|
|
2542
|
-
};
|
|
2543
|
-
};
|
|
2544
|
-
};
|
|
2545
|
-
};
|
|
2546
|
-
"bind-floating-ip": {
|
|
2547
|
-
parameters: {
|
|
2548
|
-
query?: never;
|
|
2549
|
-
header?: never;
|
|
2550
|
-
path: {
|
|
2551
|
-
floatingIpId: string;
|
|
2552
|
-
};
|
|
2553
|
-
cookie?: never;
|
|
2554
|
-
};
|
|
2555
|
-
requestBody: {
|
|
2556
|
-
content: {
|
|
2557
|
-
"application/json": components["schemas"]["BindFloatingIPRequestBody"];
|
|
2558
|
-
};
|
|
2559
|
-
};
|
|
2560
|
-
responses: {
|
|
2561
|
-
/** @description OK */
|
|
2562
|
-
200: {
|
|
2563
|
-
headers: {
|
|
2564
|
-
[name: string]: unknown;
|
|
2565
|
-
};
|
|
2566
|
-
content: {
|
|
2567
|
-
"application/json": components["schemas"]["FloatingIPResource"];
|
|
2568
|
-
};
|
|
2569
|
-
};
|
|
2570
|
-
/** @description Error */
|
|
2571
|
-
default: {
|
|
2572
|
-
headers: {
|
|
2573
|
-
[name: string]: unknown;
|
|
2574
|
-
};
|
|
2575
|
-
content: {
|
|
2576
|
-
"application/json": components["schemas"]["Error"];
|
|
2577
|
-
};
|
|
2578
|
-
};
|
|
2579
|
-
};
|
|
2580
|
-
};
|
|
2581
|
-
"unbind-floating-ip": {
|
|
2582
|
-
parameters: {
|
|
2583
|
-
query?: never;
|
|
2584
|
-
header?: never;
|
|
2585
|
-
path: {
|
|
2586
|
-
floatingIpId: string;
|
|
2587
|
-
};
|
|
2588
|
-
cookie?: never;
|
|
2589
|
-
};
|
|
2590
|
-
requestBody?: never;
|
|
2591
|
-
responses: {
|
|
2592
|
-
/** @description OK */
|
|
2593
|
-
200: {
|
|
2594
|
-
headers: {
|
|
2595
|
-
[name: string]: unknown;
|
|
2596
|
-
};
|
|
2597
|
-
content: {
|
|
2598
|
-
"application/json": components["schemas"]["FloatingIPResource"];
|
|
2599
|
-
};
|
|
2600
|
-
};
|
|
2601
|
-
/** @description Error */
|
|
2602
|
-
default: {
|
|
2603
|
-
headers: {
|
|
2604
|
-
[name: string]: unknown;
|
|
2605
|
-
};
|
|
2606
|
-
content: {
|
|
2607
|
-
"application/json": components["schemas"]["Error"];
|
|
2608
|
-
};
|
|
2609
|
-
};
|
|
2610
|
-
};
|
|
2611
|
-
};
|
|
2612
|
-
"list-instances": {
|
|
2613
|
-
parameters: {
|
|
2614
|
-
query?: never;
|
|
2615
|
-
header?: never;
|
|
2616
|
-
path?: never;
|
|
2617
|
-
cookie?: never;
|
|
2618
|
-
};
|
|
2619
|
-
requestBody?: never;
|
|
2620
|
-
responses: {
|
|
2621
|
-
/** @description OK */
|
|
2622
|
-
200: {
|
|
2623
|
-
headers: {
|
|
2624
|
-
[name: string]: unknown;
|
|
2625
|
-
};
|
|
2626
|
-
content: {
|
|
2627
|
-
"application/json": components["schemas"]["InstanceListResponseBody"];
|
|
2628
|
-
};
|
|
2629
|
-
};
|
|
2630
|
-
/** @description Error */
|
|
2631
|
-
default: {
|
|
2632
|
-
headers: {
|
|
2633
|
-
[name: string]: unknown;
|
|
2634
|
-
};
|
|
2635
|
-
content: {
|
|
2636
|
-
"application/json": components["schemas"]["Error"];
|
|
2637
|
-
};
|
|
2638
|
-
};
|
|
2639
|
-
};
|
|
2640
|
-
};
|
|
2641
|
-
"launch-instance": {
|
|
2642
|
-
parameters: {
|
|
2643
|
-
query?: never;
|
|
2644
|
-
header?: never;
|
|
2645
|
-
path?: never;
|
|
2646
|
-
cookie?: never;
|
|
2647
|
-
};
|
|
2648
|
-
requestBody: {
|
|
2649
|
-
content: {
|
|
2650
|
-
"application/json": components["schemas"]["LaunchInstanceRequestBody"];
|
|
2651
|
-
};
|
|
2652
|
-
};
|
|
2653
|
-
responses: {
|
|
2654
|
-
/** @description Created */
|
|
2655
|
-
201: {
|
|
2656
|
-
headers: {
|
|
2657
|
-
[name: string]: unknown;
|
|
2658
|
-
};
|
|
2659
|
-
content: {
|
|
2660
|
-
"application/json": components["schemas"]["LaunchInstanceResponseBody"];
|
|
2661
|
-
};
|
|
2662
|
-
};
|
|
2663
|
-
/** @description Error */
|
|
2664
|
-
default: {
|
|
2665
|
-
headers: {
|
|
2666
|
-
[name: string]: unknown;
|
|
2667
|
-
};
|
|
2668
|
-
content: {
|
|
2669
|
-
"application/json": components["schemas"]["Error"];
|
|
2670
|
-
};
|
|
2671
|
-
};
|
|
2672
|
-
};
|
|
2673
|
-
};
|
|
2674
|
-
"get-instance": {
|
|
2675
|
-
parameters: {
|
|
2676
|
-
query?: never;
|
|
2677
|
-
header?: never;
|
|
2678
|
-
path: {
|
|
2679
|
-
instanceId: string;
|
|
2680
|
-
};
|
|
2681
|
-
cookie?: never;
|
|
2682
|
-
};
|
|
2683
|
-
requestBody?: never;
|
|
2684
|
-
responses: {
|
|
2685
|
-
/** @description OK */
|
|
2686
|
-
200: {
|
|
2687
|
-
headers: {
|
|
2688
|
-
[name: string]: unknown;
|
|
2689
|
-
};
|
|
2690
|
-
content: {
|
|
2691
|
-
"application/json": components["schemas"]["InstanceResource"];
|
|
2692
|
-
};
|
|
2693
|
-
};
|
|
2694
|
-
/** @description Error */
|
|
2695
|
-
default: {
|
|
2696
|
-
headers: {
|
|
2697
|
-
[name: string]: unknown;
|
|
2698
|
-
};
|
|
2699
|
-
content: {
|
|
2700
|
-
"application/json": components["schemas"]["Error"];
|
|
2701
|
-
};
|
|
2702
|
-
};
|
|
2703
|
-
};
|
|
2704
|
-
};
|
|
2705
|
-
"delete-instance": {
|
|
2706
|
-
parameters: {
|
|
2707
|
-
query?: never;
|
|
2708
|
-
header?: never;
|
|
2709
|
-
path: {
|
|
2710
|
-
instanceId: string;
|
|
2711
|
-
};
|
|
2712
|
-
cookie?: never;
|
|
2713
|
-
};
|
|
2714
|
-
requestBody?: never;
|
|
2715
|
-
responses: {
|
|
2716
|
-
/** @description No Content */
|
|
2717
|
-
204: {
|
|
2718
|
-
headers: {
|
|
2719
|
-
[name: string]: unknown;
|
|
2720
|
-
};
|
|
2721
|
-
content?: never;
|
|
2722
|
-
};
|
|
2723
|
-
/** @description Error */
|
|
2724
|
-
default: {
|
|
2725
|
-
headers: {
|
|
2726
|
-
[name: string]: unknown;
|
|
2727
|
-
};
|
|
2728
|
-
content: {
|
|
2729
|
-
"application/json": components["schemas"]["Error"];
|
|
2730
|
-
};
|
|
2731
|
-
};
|
|
2732
|
-
};
|
|
2733
|
-
};
|
|
2734
|
-
"rename-instance": {
|
|
2735
|
-
parameters: {
|
|
2736
|
-
query?: never;
|
|
2737
|
-
header?: never;
|
|
2738
|
-
path: {
|
|
2739
|
-
instanceId: string;
|
|
2740
|
-
};
|
|
2741
|
-
cookie?: never;
|
|
2742
|
-
};
|
|
2743
|
-
requestBody: {
|
|
2744
|
-
content: {
|
|
2745
|
-
"application/json": components["schemas"]["RenameInstanceRequestBody"];
|
|
2746
|
-
};
|
|
2747
|
-
};
|
|
2748
|
-
responses: {
|
|
2749
|
-
/** @description OK */
|
|
2750
|
-
200: {
|
|
2751
|
-
headers: {
|
|
2752
|
-
[name: string]: unknown;
|
|
2753
|
-
};
|
|
2754
|
-
content: {
|
|
2755
|
-
"application/json": components["schemas"]["InstanceResource"];
|
|
2756
|
-
};
|
|
2757
|
-
};
|
|
2758
|
-
/** @description Error */
|
|
2759
|
-
default: {
|
|
2760
|
-
headers: {
|
|
2761
|
-
[name: string]: unknown;
|
|
2762
|
-
};
|
|
2763
|
-
content: {
|
|
2764
|
-
"application/json": components["schemas"]["Error"];
|
|
2765
|
-
};
|
|
2766
|
-
};
|
|
2767
|
-
};
|
|
2768
|
-
};
|
|
2769
|
-
"act-on-instance": {
|
|
2770
|
-
parameters: {
|
|
2771
|
-
query?: never;
|
|
2772
|
-
header?: never;
|
|
2773
|
-
path: {
|
|
2774
|
-
instanceId: string;
|
|
2775
|
-
};
|
|
2776
|
-
cookie?: never;
|
|
2777
|
-
};
|
|
2778
|
-
requestBody: {
|
|
2779
|
-
content: {
|
|
2780
|
-
"application/json": components["schemas"]["ActOnInstanceRequestBody"];
|
|
2781
|
-
};
|
|
2782
|
-
};
|
|
2783
|
-
responses: {
|
|
2784
|
-
/** @description OK */
|
|
2785
|
-
200: {
|
|
2786
|
-
headers: {
|
|
2787
|
-
[name: string]: unknown;
|
|
2788
|
-
};
|
|
2789
|
-
content: {
|
|
2790
|
-
"application/json": components["schemas"]["InstanceResource"];
|
|
2791
|
-
};
|
|
2792
|
-
};
|
|
2793
|
-
/** @description Error */
|
|
2794
|
-
default: {
|
|
2795
|
-
headers: {
|
|
2796
|
-
[name: string]: unknown;
|
|
2797
|
-
};
|
|
2798
|
-
content: {
|
|
2799
|
-
"application/json": components["schemas"]["Error"];
|
|
2800
|
-
};
|
|
2801
|
-
};
|
|
2802
|
-
};
|
|
2803
|
-
};
|
|
2804
|
-
"open-instance-console": {
|
|
2805
|
-
parameters: {
|
|
2806
|
-
query?: never;
|
|
2807
|
-
header?: never;
|
|
2808
|
-
path: {
|
|
2809
|
-
instanceId: string;
|
|
2810
|
-
};
|
|
2811
|
-
cookie?: never;
|
|
2812
|
-
};
|
|
2813
|
-
requestBody?: never;
|
|
2814
|
-
responses: {
|
|
2815
|
-
/** @description OK */
|
|
2816
|
-
200: {
|
|
2817
|
-
headers: {
|
|
2818
|
-
[name: string]: unknown;
|
|
2819
|
-
};
|
|
2820
|
-
content: {
|
|
2821
|
-
"application/json": components["schemas"]["ConsoleResponseBody"];
|
|
2822
|
-
};
|
|
2823
|
-
};
|
|
2824
|
-
/** @description Error */
|
|
2825
|
-
default: {
|
|
2826
|
-
headers: {
|
|
2827
|
-
[name: string]: unknown;
|
|
2828
|
-
};
|
|
2829
|
-
content: {
|
|
2830
|
-
"application/json": components["schemas"]["Error"];
|
|
2831
|
-
};
|
|
2832
|
-
};
|
|
2833
|
-
};
|
|
2834
|
-
};
|
|
2835
|
-
"get-instance-console-output": {
|
|
2836
|
-
parameters: {
|
|
2837
|
-
query?: {
|
|
2838
|
-
/** @description 返回末尾多少行,0 表示全部 */
|
|
2839
|
-
lines?: number;
|
|
2840
|
-
};
|
|
2841
|
-
header?: never;
|
|
2842
|
-
path: {
|
|
2843
|
-
instanceId: string;
|
|
2844
|
-
};
|
|
2845
|
-
cookie?: never;
|
|
2846
|
-
};
|
|
2847
|
-
requestBody?: never;
|
|
2848
|
-
responses: {
|
|
2849
|
-
/** @description OK */
|
|
2850
|
-
200: {
|
|
2851
|
-
headers: {
|
|
2852
|
-
[name: string]: unknown;
|
|
2853
|
-
};
|
|
2854
|
-
content: {
|
|
2855
|
-
"application/json": components["schemas"]["ConsoleOutputResponseBody"];
|
|
2856
|
-
};
|
|
2857
|
-
};
|
|
2858
|
-
/** @description Error */
|
|
2859
|
-
default: {
|
|
2860
|
-
headers: {
|
|
2861
|
-
[name: string]: unknown;
|
|
2862
|
-
};
|
|
2863
|
-
content: {
|
|
2864
|
-
"application/json": components["schemas"]["Error"];
|
|
2865
|
-
};
|
|
2866
|
-
};
|
|
2867
|
-
};
|
|
2868
|
-
};
|
|
2869
|
-
"reset-instance-password": {
|
|
2870
|
-
parameters: {
|
|
2871
|
-
query?: never;
|
|
2872
|
-
header?: never;
|
|
2873
|
-
path: {
|
|
2874
|
-
instanceId: string;
|
|
2875
|
-
};
|
|
2876
|
-
cookie?: never;
|
|
2877
|
-
};
|
|
2878
|
-
requestBody: {
|
|
2879
|
-
content: {
|
|
2880
|
-
"application/json": components["schemas"]["ResetPasswordRequestBody"];
|
|
2881
|
-
};
|
|
2882
|
-
};
|
|
2883
|
-
responses: {
|
|
2884
|
-
/** @description OK */
|
|
2885
|
-
200: {
|
|
2886
|
-
headers: {
|
|
2887
|
-
[name: string]: unknown;
|
|
2888
|
-
};
|
|
2889
|
-
content: {
|
|
2890
|
-
"application/json": components["schemas"]["ResetPasswordResponseBody"];
|
|
2891
|
-
};
|
|
2892
|
-
};
|
|
2893
|
-
/** @description Error */
|
|
2894
|
-
default: {
|
|
2895
|
-
headers: {
|
|
2896
|
-
[name: string]: unknown;
|
|
2897
|
-
};
|
|
2898
|
-
content: {
|
|
2899
|
-
"application/json": components["schemas"]["Error"];
|
|
2900
|
-
};
|
|
2901
|
-
};
|
|
2902
|
-
};
|
|
2903
|
-
};
|
|
2904
|
-
"rebuild-instance": {
|
|
2905
|
-
parameters: {
|
|
2906
|
-
query?: never;
|
|
2907
|
-
header?: never;
|
|
2908
|
-
path: {
|
|
2909
|
-
instanceId: string;
|
|
2910
|
-
};
|
|
2911
|
-
cookie?: never;
|
|
2912
|
-
};
|
|
2913
|
-
requestBody: {
|
|
2914
|
-
content: {
|
|
2915
|
-
"application/json": components["schemas"]["RebuildInstanceRequestBody"];
|
|
2916
|
-
};
|
|
2917
|
-
};
|
|
2918
|
-
responses: {
|
|
2919
|
-
/** @description OK */
|
|
2920
|
-
200: {
|
|
2921
|
-
headers: {
|
|
2922
|
-
[name: string]: unknown;
|
|
2923
|
-
};
|
|
2924
|
-
content: {
|
|
2925
|
-
"application/json": components["schemas"]["RebuildInstanceResponseBody"];
|
|
2926
|
-
};
|
|
2927
|
-
};
|
|
2928
|
-
/** @description Error */
|
|
2929
|
-
default: {
|
|
2930
|
-
headers: {
|
|
2931
|
-
[name: string]: unknown;
|
|
2932
|
-
};
|
|
2933
|
-
content: {
|
|
2934
|
-
"application/json": components["schemas"]["Error"];
|
|
2935
|
-
};
|
|
2936
|
-
};
|
|
2937
|
-
};
|
|
2938
|
-
};
|
|
2939
|
-
"resize-instance": {
|
|
2940
|
-
parameters: {
|
|
2941
|
-
query?: never;
|
|
2942
|
-
header?: never;
|
|
2943
|
-
path: {
|
|
2944
|
-
instanceId: string;
|
|
2945
|
-
};
|
|
2946
|
-
cookie?: never;
|
|
2947
|
-
};
|
|
2948
|
-
requestBody: {
|
|
2949
|
-
content: {
|
|
2950
|
-
"application/json": components["schemas"]["ResizeInstanceRequestBody"];
|
|
2951
|
-
};
|
|
2952
|
-
};
|
|
2953
|
-
responses: {
|
|
2954
|
-
/** @description OK */
|
|
2955
|
-
200: {
|
|
2956
|
-
headers: {
|
|
2957
|
-
[name: string]: unknown;
|
|
2958
|
-
};
|
|
2959
|
-
content: {
|
|
2960
|
-
"application/json": components["schemas"]["InstanceResource"];
|
|
2961
|
-
};
|
|
2962
|
-
};
|
|
2963
|
-
/** @description Error */
|
|
2964
|
-
default: {
|
|
2965
|
-
headers: {
|
|
2966
|
-
[name: string]: unknown;
|
|
2967
|
-
};
|
|
2968
|
-
content: {
|
|
2969
|
-
"application/json": components["schemas"]["Error"];
|
|
2970
|
-
};
|
|
2971
|
-
};
|
|
2972
|
-
};
|
|
2973
|
-
};
|
|
2974
|
-
"confirm-instance-resize": {
|
|
2975
|
-
parameters: {
|
|
2976
|
-
query?: never;
|
|
2977
|
-
header?: never;
|
|
2978
|
-
path: {
|
|
2979
|
-
instanceId: string;
|
|
2980
|
-
};
|
|
2981
|
-
cookie?: never;
|
|
2982
|
-
};
|
|
2983
|
-
requestBody?: never;
|
|
2984
|
-
responses: {
|
|
2985
|
-
/** @description OK */
|
|
2986
|
-
200: {
|
|
2987
|
-
headers: {
|
|
2988
|
-
[name: string]: unknown;
|
|
2989
|
-
};
|
|
2990
|
-
content: {
|
|
2991
|
-
"application/json": components["schemas"]["InstanceResource"];
|
|
2992
|
-
};
|
|
2993
|
-
};
|
|
2994
|
-
/** @description Error */
|
|
2995
|
-
default: {
|
|
2996
|
-
headers: {
|
|
2997
|
-
[name: string]: unknown;
|
|
2998
|
-
};
|
|
2999
|
-
content: {
|
|
3000
|
-
"application/json": components["schemas"]["Error"];
|
|
3001
|
-
};
|
|
3002
|
-
};
|
|
3003
|
-
};
|
|
3004
|
-
};
|
|
3005
|
-
"revert-instance-resize": {
|
|
3006
|
-
parameters: {
|
|
3007
|
-
query?: never;
|
|
3008
|
-
header?: never;
|
|
3009
|
-
path: {
|
|
3010
|
-
instanceId: string;
|
|
3011
|
-
};
|
|
3012
|
-
cookie?: never;
|
|
3013
|
-
};
|
|
3014
|
-
requestBody?: never;
|
|
3015
|
-
responses: {
|
|
3016
|
-
/** @description OK */
|
|
3017
|
-
200: {
|
|
3018
|
-
headers: {
|
|
3019
|
-
[name: string]: unknown;
|
|
3020
|
-
};
|
|
3021
|
-
content: {
|
|
3022
|
-
"application/json": components["schemas"]["InstanceResource"];
|
|
3023
|
-
};
|
|
3024
|
-
};
|
|
3025
|
-
/** @description Error */
|
|
3026
|
-
default: {
|
|
3027
|
-
headers: {
|
|
3028
|
-
[name: string]: unknown;
|
|
3029
|
-
};
|
|
3030
|
-
content: {
|
|
3031
|
-
"application/json": components["schemas"]["Error"];
|
|
3032
|
-
};
|
|
3033
|
-
};
|
|
3034
|
-
};
|
|
3035
|
-
};
|
|
3036
|
-
"list-instance-disks": {
|
|
3037
|
-
parameters: {
|
|
3038
|
-
query?: never;
|
|
3039
|
-
header?: never;
|
|
3040
|
-
path: {
|
|
3041
|
-
instanceId: string;
|
|
3042
|
-
};
|
|
3043
|
-
cookie?: never;
|
|
3044
|
-
};
|
|
3045
|
-
requestBody?: never;
|
|
3046
|
-
responses: {
|
|
3047
|
-
/** @description OK */
|
|
3048
|
-
200: {
|
|
3049
|
-
headers: {
|
|
3050
|
-
[name: string]: unknown;
|
|
3051
|
-
};
|
|
3052
|
-
content: {
|
|
3053
|
-
"application/json": components["schemas"]["DiskListResponseBody"];
|
|
3054
|
-
};
|
|
3055
|
-
};
|
|
3056
|
-
/** @description Error */
|
|
3057
|
-
default: {
|
|
3058
|
-
headers: {
|
|
3059
|
-
[name: string]: unknown;
|
|
3060
|
-
};
|
|
3061
|
-
content: {
|
|
3062
|
-
"application/json": components["schemas"]["Error"];
|
|
3063
|
-
};
|
|
3064
|
-
};
|
|
3065
|
-
};
|
|
3066
|
-
};
|
|
3067
|
-
"attach-disk": {
|
|
3068
|
-
parameters: {
|
|
3069
|
-
query?: never;
|
|
3070
|
-
header?: never;
|
|
3071
|
-
path: {
|
|
3072
|
-
instanceId: string;
|
|
3073
|
-
};
|
|
3074
|
-
cookie?: never;
|
|
3075
|
-
};
|
|
3076
|
-
requestBody: {
|
|
3077
|
-
content: {
|
|
3078
|
-
"application/json": components["schemas"]["AttachDiskRequestBody"];
|
|
3079
|
-
};
|
|
3080
|
-
};
|
|
3081
|
-
responses: {
|
|
3082
|
-
/** @description OK */
|
|
3083
|
-
200: {
|
|
3084
|
-
headers: {
|
|
3085
|
-
[name: string]: unknown;
|
|
3086
|
-
};
|
|
3087
|
-
content: {
|
|
3088
|
-
"application/json": components["schemas"]["DiskResource"];
|
|
3089
|
-
};
|
|
3090
|
-
};
|
|
3091
|
-
/** @description Error */
|
|
3092
|
-
default: {
|
|
3093
|
-
headers: {
|
|
3094
|
-
[name: string]: unknown;
|
|
3095
|
-
};
|
|
3096
|
-
content: {
|
|
3097
|
-
"application/json": components["schemas"]["Error"];
|
|
3098
|
-
};
|
|
3099
|
-
};
|
|
3100
|
-
};
|
|
3101
|
-
};
|
|
3102
|
-
"detach-disk": {
|
|
3103
|
-
parameters: {
|
|
3104
|
-
query?: never;
|
|
3105
|
-
header?: never;
|
|
3106
|
-
path: {
|
|
3107
|
-
instanceId: string;
|
|
3108
|
-
diskId: string;
|
|
3109
|
-
};
|
|
3110
|
-
cookie?: never;
|
|
3111
|
-
};
|
|
3112
|
-
requestBody?: never;
|
|
3113
|
-
responses: {
|
|
3114
|
-
/** @description OK */
|
|
3115
|
-
200: {
|
|
3116
|
-
headers: {
|
|
3117
|
-
[name: string]: unknown;
|
|
3118
|
-
};
|
|
3119
|
-
content: {
|
|
3120
|
-
"application/json": components["schemas"]["DiskResource"];
|
|
3121
|
-
};
|
|
3122
|
-
};
|
|
3123
|
-
/** @description Error */
|
|
3124
|
-
default: {
|
|
3125
|
-
headers: {
|
|
3126
|
-
[name: string]: unknown;
|
|
3127
|
-
};
|
|
3128
|
-
content: {
|
|
3129
|
-
"application/json": components["schemas"]["Error"];
|
|
3130
|
-
};
|
|
3131
|
-
};
|
|
3132
|
-
};
|
|
3133
|
-
};
|
|
3134
|
-
"attach-instance-floating-ip": {
|
|
3135
|
-
parameters: {
|
|
3136
|
-
query?: never;
|
|
3137
|
-
header?: never;
|
|
3138
|
-
path: {
|
|
3139
|
-
instanceId: string;
|
|
3140
|
-
};
|
|
3141
|
-
cookie?: never;
|
|
3142
|
-
};
|
|
3143
|
-
requestBody: {
|
|
3144
|
-
content: {
|
|
3145
|
-
"application/json": components["schemas"]["AttachFloatingIPRequestBody"];
|
|
3146
|
-
};
|
|
3147
|
-
};
|
|
3148
|
-
responses: {
|
|
3149
|
-
/** @description OK */
|
|
3150
|
-
200: {
|
|
3151
|
-
headers: {
|
|
3152
|
-
[name: string]: unknown;
|
|
3153
|
-
};
|
|
3154
|
-
content: {
|
|
3155
|
-
"application/json": components["schemas"]["FloatingIPResource"];
|
|
3156
|
-
};
|
|
3157
|
-
};
|
|
3158
|
-
/** @description Error */
|
|
3159
|
-
default: {
|
|
3160
|
-
headers: {
|
|
3161
|
-
[name: string]: unknown;
|
|
3162
|
-
};
|
|
3163
|
-
content: {
|
|
3164
|
-
"application/json": components["schemas"]["Error"];
|
|
3165
|
-
};
|
|
3166
|
-
};
|
|
3167
|
-
};
|
|
3168
|
-
};
|
|
3169
|
-
"detach-instance-floating-ip": {
|
|
3170
|
-
parameters: {
|
|
3171
|
-
query?: never;
|
|
3172
|
-
header?: never;
|
|
3173
|
-
path: {
|
|
3174
|
-
instanceId: string;
|
|
3175
|
-
floatingIpId: string;
|
|
3176
|
-
};
|
|
3177
|
-
cookie?: never;
|
|
3178
|
-
};
|
|
3179
|
-
requestBody?: never;
|
|
3180
|
-
responses: {
|
|
3181
|
-
/** @description OK */
|
|
3182
|
-
200: {
|
|
3183
|
-
headers: {
|
|
3184
|
-
[name: string]: unknown;
|
|
3185
|
-
};
|
|
3186
|
-
content: {
|
|
3187
|
-
"application/json": components["schemas"]["FloatingIPResource"];
|
|
3188
|
-
};
|
|
3189
|
-
};
|
|
3190
|
-
/** @description Error */
|
|
3191
|
-
default: {
|
|
3192
|
-
headers: {
|
|
3193
|
-
[name: string]: unknown;
|
|
3194
|
-
};
|
|
3195
|
-
content: {
|
|
3196
|
-
"application/json": components["schemas"]["Error"];
|
|
3197
|
-
};
|
|
3198
|
-
};
|
|
1127
|
+
desired_state: "present" | "absent";
|
|
1128
|
+
delete_with_consumer: boolean;
|
|
1129
|
+
/** Format: int64 */
|
|
1130
|
+
generation: number;
|
|
3199
1131
|
};
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
cookie?: never;
|
|
1132
|
+
ResourceDependencyList: {
|
|
1133
|
+
items: components["schemas"]["ResourceDependency"][];
|
|
1134
|
+
/** Format: int64 */
|
|
1135
|
+
page: number;
|
|
1136
|
+
/** Format: int64 */
|
|
1137
|
+
page_size: number;
|
|
1138
|
+
/** Format: int64 */
|
|
1139
|
+
total_count?: number;
|
|
3209
1140
|
};
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
/**
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
content: {
|
|
3227
|
-
"application/json": components["schemas"]["Error"];
|
|
3228
|
-
};
|
|
3229
|
-
};
|
|
1141
|
+
/** @description Storage creates and bills this system disk as a separate order line. Required when booting from an image; mutually exclusive with boot_disk_id. The selected disk type must be attachable in the instance location. */
|
|
1142
|
+
NewBootDisk: {
|
|
1143
|
+
/** Format: uuid */
|
|
1144
|
+
disk_type_id: string;
|
|
1145
|
+
/** Format: int64 */
|
|
1146
|
+
size_gb: number;
|
|
1147
|
+
price: components["schemas"]["CatalogReference"];
|
|
1148
|
+
/** @default true */
|
|
1149
|
+
delete_with_instance?: boolean;
|
|
1150
|
+
};
|
|
1151
|
+
/** @description Fabric creates an address and bandwidth subscription in the same purchase. Mutually exclusive with floating_ip_id. Fabric owns the address and its retention policy. */
|
|
1152
|
+
NewFloatingIP: {
|
|
1153
|
+
price: components["schemas"]["CatalogReference"];
|
|
1154
|
+
bandwidth_price: components["schemas"]["CatalogReference"];
|
|
1155
|
+
/** Format: int64 */
|
|
1156
|
+
bandwidth_mbps: number;
|
|
3230
1157
|
};
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
1158
|
+
/** @description An independent restriction on use. Removing one restriction never removes another source’s restriction or changes the user’s desired power state. */
|
|
1159
|
+
InstanceRestriction: {
|
|
1160
|
+
/** Format: uuid */
|
|
1161
|
+
id: string;
|
|
1162
|
+
/** @enum {string} */
|
|
1163
|
+
source: "billing" | "iam" | "operator";
|
|
1164
|
+
source_id: string;
|
|
1165
|
+
reason_code: string;
|
|
1166
|
+
/** Format: date-time */
|
|
1167
|
+
created_at: string;
|
|
3240
1168
|
};
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
1169
|
+
/** @description The durable action currently being processed or most recently completed. Success requires observed completion; accepting a provider command is not success. */
|
|
1170
|
+
InstanceOperation: {
|
|
1171
|
+
/** Format: uuid */
|
|
1172
|
+
id: string;
|
|
1173
|
+
/** @enum {string} */
|
|
1174
|
+
type: "create" | "start" | "stop" | "reboot" | "rebuild" | "resize" | "confirm_resize" | "revert_resize" | "attach_disk" | "detach_disk" | "attach_port" | "detach_port" | "delete";
|
|
1175
|
+
/** @enum {string} */
|
|
1176
|
+
state: "pending" | "running" | "waiting" | "succeeded" | "failed";
|
|
1177
|
+
phase: string;
|
|
1178
|
+
/** Format: int64 */
|
|
1179
|
+
generation: number;
|
|
1180
|
+
failure_code?: string;
|
|
1181
|
+
/** Format: date-time */
|
|
1182
|
+
created_at: string;
|
|
1183
|
+
/** Format: date-time */
|
|
1184
|
+
updated_at: string;
|
|
3245
1185
|
};
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
[name: string]: unknown;
|
|
3251
|
-
};
|
|
3252
|
-
content: {
|
|
3253
|
-
"application/json": components["schemas"]["PortResource"];
|
|
3254
|
-
};
|
|
3255
|
-
};
|
|
3256
|
-
/** @description Error */
|
|
3257
|
-
default: {
|
|
3258
|
-
headers: {
|
|
3259
|
-
[name: string]: unknown;
|
|
3260
|
-
};
|
|
3261
|
-
content: {
|
|
3262
|
-
"application/json": components["schemas"]["Error"];
|
|
3263
|
-
};
|
|
3264
|
-
};
|
|
1186
|
+
PowerRequest: {
|
|
1187
|
+
idempotency_key: string;
|
|
1188
|
+
/** Format: int64 */
|
|
1189
|
+
expected_generation?: number;
|
|
3265
1190
|
};
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
1191
|
+
/** @description An authoritative claim held by the resource owner. Reserved, active and releasing claims all prevent idle reclamation. Stopped consumers retain their claims. Released claims remain readable. */
|
|
1192
|
+
ResourceUsage: {
|
|
1193
|
+
/** Format: uuid */
|
|
1194
|
+
id: string;
|
|
1195
|
+
/** Format: uuid */
|
|
1196
|
+
project_id: string;
|
|
1197
|
+
resource: components["schemas"]["ResourceReference"];
|
|
1198
|
+
consumer: components["schemas"]["ResourceReference"];
|
|
1199
|
+
purpose: string;
|
|
1200
|
+
/** @enum {string} */
|
|
1201
|
+
state: "reserved" | "active" | "releasing" | "released";
|
|
1202
|
+
/** Format: int64 */
|
|
1203
|
+
generation: number;
|
|
1204
|
+
/** Format: uuid */
|
|
1205
|
+
operation_id: string;
|
|
1206
|
+
/** Format: date-time */
|
|
1207
|
+
created_at: string;
|
|
1208
|
+
/** Format: date-time */
|
|
1209
|
+
updated_at: string;
|
|
1210
|
+
/** Format: date-time */
|
|
1211
|
+
released_at?: string;
|
|
3276
1212
|
};
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
/** @description Error */
|
|
3289
|
-
default: {
|
|
3290
|
-
headers: {
|
|
3291
|
-
[name: string]: unknown;
|
|
3292
|
-
};
|
|
3293
|
-
content: {
|
|
3294
|
-
"application/json": components["schemas"]["Error"];
|
|
3295
|
-
};
|
|
3296
|
-
};
|
|
1213
|
+
/** @description Requested funding split. This does not select a card or payment provider; complete payment through Billing. */
|
|
1214
|
+
PaymentPlan: {
|
|
1215
|
+
balance_amount: string;
|
|
1216
|
+
provider_amount: string;
|
|
1217
|
+
};
|
|
1218
|
+
/** @description A resource identified within its owning service. The project is taken from the containing usage or request. */
|
|
1219
|
+
ResourceReference: {
|
|
1220
|
+
service: string;
|
|
1221
|
+
type: string;
|
|
1222
|
+
/** Format: uuid */
|
|
1223
|
+
id: string;
|
|
3297
1224
|
};
|
|
3298
1225
|
};
|
|
3299
|
-
|
|
1226
|
+
responses: never;
|
|
1227
|
+
parameters: never;
|
|
1228
|
+
requestBodies: never;
|
|
1229
|
+
headers: never;
|
|
1230
|
+
pathItems: never;
|
|
1231
|
+
}
|
|
1232
|
+
export type $defs = Record<string, never>;
|
|
1233
|
+
export interface operations {
|
|
1234
|
+
"list-images": {
|
|
3300
1235
|
parameters: {
|
|
3301
|
-
query
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
offset?: number;
|
|
1236
|
+
query: {
|
|
1237
|
+
region_id: string;
|
|
1238
|
+
page?: number;
|
|
1239
|
+
page_size?: number;
|
|
3306
1240
|
};
|
|
3307
1241
|
header?: never;
|
|
3308
1242
|
path?: never;
|
|
@@ -3316,7 +1250,7 @@ export interface operations {
|
|
|
3316
1250
|
[name: string]: unknown;
|
|
3317
1251
|
};
|
|
3318
1252
|
content: {
|
|
3319
|
-
"application/json": components["schemas"]["
|
|
1253
|
+
"application/json": components["schemas"]["ImageListResponseBody"];
|
|
3320
1254
|
};
|
|
3321
1255
|
};
|
|
3322
1256
|
/** @description Error */
|
|
@@ -3330,9 +1264,13 @@ export interface operations {
|
|
|
3330
1264
|
};
|
|
3331
1265
|
};
|
|
3332
1266
|
};
|
|
3333
|
-
"list-
|
|
1267
|
+
"list-instance-types": {
|
|
3334
1268
|
parameters: {
|
|
3335
|
-
query
|
|
1269
|
+
query: {
|
|
1270
|
+
region_id: string;
|
|
1271
|
+
page?: number;
|
|
1272
|
+
page_size?: number;
|
|
1273
|
+
};
|
|
3336
1274
|
header?: never;
|
|
3337
1275
|
path?: never;
|
|
3338
1276
|
cookie?: never;
|
|
@@ -3345,70 +1283,8 @@ export interface operations {
|
|
|
3345
1283
|
[name: string]: unknown;
|
|
3346
1284
|
};
|
|
3347
1285
|
content: {
|
|
3348
|
-
"application/json": components["schemas"]["
|
|
3349
|
-
};
|
|
3350
|
-
};
|
|
3351
|
-
/** @description Error */
|
|
3352
|
-
default: {
|
|
3353
|
-
headers: {
|
|
3354
|
-
[name: string]: unknown;
|
|
3355
|
-
};
|
|
3356
|
-
content: {
|
|
3357
|
-
"application/json": components["schemas"]["Error"];
|
|
3358
|
-
};
|
|
3359
|
-
};
|
|
3360
|
-
};
|
|
3361
|
-
};
|
|
3362
|
-
"create-port": {
|
|
3363
|
-
parameters: {
|
|
3364
|
-
query?: never;
|
|
3365
|
-
header?: never;
|
|
3366
|
-
path?: never;
|
|
3367
|
-
cookie?: never;
|
|
3368
|
-
};
|
|
3369
|
-
requestBody: {
|
|
3370
|
-
content: {
|
|
3371
|
-
"application/json": components["schemas"]["CreatePortRequestBody"];
|
|
3372
|
-
};
|
|
3373
|
-
};
|
|
3374
|
-
responses: {
|
|
3375
|
-
/** @description Created */
|
|
3376
|
-
201: {
|
|
3377
|
-
headers: {
|
|
3378
|
-
[name: string]: unknown;
|
|
3379
|
-
};
|
|
3380
|
-
content: {
|
|
3381
|
-
"application/json": components["schemas"]["PortResource"];
|
|
3382
|
-
};
|
|
3383
|
-
};
|
|
3384
|
-
/** @description Error */
|
|
3385
|
-
default: {
|
|
3386
|
-
headers: {
|
|
3387
|
-
[name: string]: unknown;
|
|
3388
|
-
};
|
|
3389
|
-
content: {
|
|
3390
|
-
"application/json": components["schemas"]["Error"];
|
|
3391
|
-
};
|
|
3392
|
-
};
|
|
3393
|
-
};
|
|
3394
|
-
};
|
|
3395
|
-
"delete-port": {
|
|
3396
|
-
parameters: {
|
|
3397
|
-
query?: never;
|
|
3398
|
-
header?: never;
|
|
3399
|
-
path: {
|
|
3400
|
-
portId: string;
|
|
3401
|
-
};
|
|
3402
|
-
cookie?: never;
|
|
3403
|
-
};
|
|
3404
|
-
requestBody?: never;
|
|
3405
|
-
responses: {
|
|
3406
|
-
/** @description No Content */
|
|
3407
|
-
204: {
|
|
3408
|
-
headers: {
|
|
3409
|
-
[name: string]: unknown;
|
|
1286
|
+
"application/json": components["schemas"]["InstanceTypeListResponseBody"];
|
|
3410
1287
|
};
|
|
3411
|
-
content?: never;
|
|
3412
1288
|
};
|
|
3413
1289
|
/** @description Error */
|
|
3414
1290
|
default: {
|
|
@@ -3421,11 +1297,13 @@ export interface operations {
|
|
|
3421
1297
|
};
|
|
3422
1298
|
};
|
|
3423
1299
|
};
|
|
3424
|
-
"list-
|
|
1300
|
+
"list-instances": {
|
|
3425
1301
|
parameters: {
|
|
3426
1302
|
query?: {
|
|
3427
|
-
/** @description
|
|
3428
|
-
|
|
1303
|
+
/** @description Only instances carrying this label, written as `key:value` — for example `env:prod`. Both halves are matched exactly */
|
|
1304
|
+
label?: string;
|
|
1305
|
+
page?: number;
|
|
1306
|
+
page_size?: number;
|
|
3429
1307
|
};
|
|
3430
1308
|
header?: never;
|
|
3431
1309
|
path?: never;
|
|
@@ -3439,7 +1317,7 @@ export interface operations {
|
|
|
3439
1317
|
[name: string]: unknown;
|
|
3440
1318
|
};
|
|
3441
1319
|
content: {
|
|
3442
|
-
"application/json": components["schemas"]["
|
|
1320
|
+
"application/json": components["schemas"]["InstanceListResponseBody"];
|
|
3443
1321
|
};
|
|
3444
1322
|
};
|
|
3445
1323
|
/** @description Error */
|
|
@@ -3453,7 +1331,7 @@ export interface operations {
|
|
|
3453
1331
|
};
|
|
3454
1332
|
};
|
|
3455
1333
|
};
|
|
3456
|
-
"
|
|
1334
|
+
"launch-instance": {
|
|
3457
1335
|
parameters: {
|
|
3458
1336
|
query?: never;
|
|
3459
1337
|
header?: never;
|
|
@@ -3462,17 +1340,17 @@ export interface operations {
|
|
|
3462
1340
|
};
|
|
3463
1341
|
requestBody: {
|
|
3464
1342
|
content: {
|
|
3465
|
-
"application/json": components["schemas"]["
|
|
1343
|
+
"application/json": components["schemas"]["LaunchInstanceRequestBody"];
|
|
3466
1344
|
};
|
|
3467
1345
|
};
|
|
3468
1346
|
responses: {
|
|
3469
|
-
/** @description
|
|
3470
|
-
|
|
1347
|
+
/** @description Accepted */
|
|
1348
|
+
202: {
|
|
3471
1349
|
headers: {
|
|
3472
1350
|
[name: string]: unknown;
|
|
3473
1351
|
};
|
|
3474
1352
|
content: {
|
|
3475
|
-
"application/json": components["schemas"]["
|
|
1353
|
+
"application/json": components["schemas"]["LaunchInstanceResponseBody"];
|
|
3476
1354
|
};
|
|
3477
1355
|
};
|
|
3478
1356
|
/** @description Error */
|
|
@@ -3486,12 +1364,12 @@ export interface operations {
|
|
|
3486
1364
|
};
|
|
3487
1365
|
};
|
|
3488
1366
|
};
|
|
3489
|
-
"get-
|
|
1367
|
+
"get-instance": {
|
|
3490
1368
|
parameters: {
|
|
3491
1369
|
query?: never;
|
|
3492
1370
|
header?: never;
|
|
3493
1371
|
path: {
|
|
3494
|
-
|
|
1372
|
+
instanceId: string;
|
|
3495
1373
|
};
|
|
3496
1374
|
cookie?: never;
|
|
3497
1375
|
};
|
|
@@ -3503,7 +1381,7 @@ export interface operations {
|
|
|
3503
1381
|
[name: string]: unknown;
|
|
3504
1382
|
};
|
|
3505
1383
|
content: {
|
|
3506
|
-
"application/json": components["schemas"]["
|
|
1384
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3507
1385
|
};
|
|
3508
1386
|
};
|
|
3509
1387
|
/** @description Error */
|
|
@@ -3517,12 +1395,12 @@ export interface operations {
|
|
|
3517
1395
|
};
|
|
3518
1396
|
};
|
|
3519
1397
|
};
|
|
3520
|
-
"delete-
|
|
1398
|
+
"delete-instance": {
|
|
3521
1399
|
parameters: {
|
|
3522
1400
|
query?: never;
|
|
3523
1401
|
header?: never;
|
|
3524
1402
|
path: {
|
|
3525
|
-
|
|
1403
|
+
instanceId: string;
|
|
3526
1404
|
};
|
|
3527
1405
|
cookie?: never;
|
|
3528
1406
|
};
|
|
@@ -3546,52 +1424,20 @@ export interface operations {
|
|
|
3546
1424
|
};
|
|
3547
1425
|
};
|
|
3548
1426
|
};
|
|
3549
|
-
"rename-
|
|
1427
|
+
"rename-instance": {
|
|
3550
1428
|
parameters: {
|
|
3551
1429
|
query?: never;
|
|
3552
1430
|
header?: never;
|
|
3553
1431
|
path: {
|
|
3554
|
-
|
|
1432
|
+
instanceId: string;
|
|
3555
1433
|
};
|
|
3556
1434
|
cookie?: never;
|
|
3557
1435
|
};
|
|
3558
1436
|
requestBody: {
|
|
3559
1437
|
content: {
|
|
3560
|
-
"application/json": components["schemas"]["
|
|
3561
|
-
};
|
|
3562
|
-
};
|
|
3563
|
-
responses: {
|
|
3564
|
-
/** @description OK */
|
|
3565
|
-
200: {
|
|
3566
|
-
headers: {
|
|
3567
|
-
[name: string]: unknown;
|
|
3568
|
-
};
|
|
3569
|
-
content: {
|
|
3570
|
-
"application/json": components["schemas"]["PrivateImageResource"];
|
|
3571
|
-
};
|
|
3572
|
-
};
|
|
3573
|
-
/** @description Error */
|
|
3574
|
-
default: {
|
|
3575
|
-
headers: {
|
|
3576
|
-
[name: string]: unknown;
|
|
3577
|
-
};
|
|
3578
|
-
content: {
|
|
3579
|
-
"application/json": components["schemas"]["Error"];
|
|
3580
|
-
};
|
|
3581
|
-
};
|
|
3582
|
-
};
|
|
3583
|
-
};
|
|
3584
|
-
"list-private-networks": {
|
|
3585
|
-
parameters: {
|
|
3586
|
-
query?: {
|
|
3587
|
-
/** @description 不传时返回全部地区 */
|
|
3588
|
-
region_code?: string;
|
|
1438
|
+
"application/json": components["schemas"]["RenameInstanceRequestBody"];
|
|
3589
1439
|
};
|
|
3590
|
-
header?: never;
|
|
3591
|
-
path?: never;
|
|
3592
|
-
cookie?: never;
|
|
3593
1440
|
};
|
|
3594
|
-
requestBody?: never;
|
|
3595
1441
|
responses: {
|
|
3596
1442
|
/** @description OK */
|
|
3597
1443
|
200: {
|
|
@@ -3599,7 +1445,7 @@ export interface operations {
|
|
|
3599
1445
|
[name: string]: unknown;
|
|
3600
1446
|
};
|
|
3601
1447
|
content: {
|
|
3602
|
-
"application/json": components["schemas"]["
|
|
1448
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3603
1449
|
};
|
|
3604
1450
|
};
|
|
3605
1451
|
/** @description Error */
|
|
@@ -3613,26 +1459,28 @@ export interface operations {
|
|
|
3613
1459
|
};
|
|
3614
1460
|
};
|
|
3615
1461
|
};
|
|
3616
|
-
"
|
|
1462
|
+
"run-instance-command": {
|
|
3617
1463
|
parameters: {
|
|
3618
1464
|
query?: never;
|
|
3619
1465
|
header?: never;
|
|
3620
|
-
path
|
|
1466
|
+
path: {
|
|
1467
|
+
instanceId: string;
|
|
1468
|
+
};
|
|
3621
1469
|
cookie?: never;
|
|
3622
1470
|
};
|
|
3623
1471
|
requestBody: {
|
|
3624
1472
|
content: {
|
|
3625
|
-
"application/json": components["schemas"]["
|
|
1473
|
+
"application/json": components["schemas"]["RunCommandRequestBody"];
|
|
3626
1474
|
};
|
|
3627
1475
|
};
|
|
3628
1476
|
responses: {
|
|
3629
|
-
/** @description
|
|
3630
|
-
|
|
1477
|
+
/** @description OK */
|
|
1478
|
+
200: {
|
|
3631
1479
|
headers: {
|
|
3632
1480
|
[name: string]: unknown;
|
|
3633
1481
|
};
|
|
3634
1482
|
content: {
|
|
3635
|
-
"application/json": components["schemas"]["
|
|
1483
|
+
"application/json": components["schemas"]["CommandResultResponseBody"];
|
|
3636
1484
|
};
|
|
3637
1485
|
};
|
|
3638
1486
|
/** @description Error */
|
|
@@ -3646,12 +1494,12 @@ export interface operations {
|
|
|
3646
1494
|
};
|
|
3647
1495
|
};
|
|
3648
1496
|
};
|
|
3649
|
-
"
|
|
1497
|
+
"open-instance-console": {
|
|
3650
1498
|
parameters: {
|
|
3651
1499
|
query?: never;
|
|
3652
1500
|
header?: never;
|
|
3653
1501
|
path: {
|
|
3654
|
-
|
|
1502
|
+
instanceId: string;
|
|
3655
1503
|
};
|
|
3656
1504
|
cookie?: never;
|
|
3657
1505
|
};
|
|
@@ -3663,7 +1511,7 @@ export interface operations {
|
|
|
3663
1511
|
[name: string]: unknown;
|
|
3664
1512
|
};
|
|
3665
1513
|
content: {
|
|
3666
|
-
"application/json": components["schemas"]["
|
|
1514
|
+
"application/json": components["schemas"]["ConsoleResponseBody"];
|
|
3667
1515
|
};
|
|
3668
1516
|
};
|
|
3669
1517
|
/** @description Error */
|
|
@@ -3677,23 +1525,28 @@ export interface operations {
|
|
|
3677
1525
|
};
|
|
3678
1526
|
};
|
|
3679
1527
|
};
|
|
3680
|
-
"
|
|
1528
|
+
"get-instance-console-output": {
|
|
3681
1529
|
parameters: {
|
|
3682
|
-
query?:
|
|
1530
|
+
query?: {
|
|
1531
|
+
/** @description Number of trailing lines to return; 0 returns the entire output */
|
|
1532
|
+
lines?: number;
|
|
1533
|
+
};
|
|
3683
1534
|
header?: never;
|
|
3684
1535
|
path: {
|
|
3685
|
-
|
|
1536
|
+
instanceId: string;
|
|
3686
1537
|
};
|
|
3687
1538
|
cookie?: never;
|
|
3688
1539
|
};
|
|
3689
1540
|
requestBody?: never;
|
|
3690
1541
|
responses: {
|
|
3691
|
-
/** @description
|
|
3692
|
-
|
|
1542
|
+
/** @description OK */
|
|
1543
|
+
200: {
|
|
3693
1544
|
headers: {
|
|
3694
1545
|
[name: string]: unknown;
|
|
3695
1546
|
};
|
|
3696
|
-
content
|
|
1547
|
+
content: {
|
|
1548
|
+
"application/json": components["schemas"]["ConsoleOutputResponseBody"];
|
|
1549
|
+
};
|
|
3697
1550
|
};
|
|
3698
1551
|
/** @description Error */
|
|
3699
1552
|
default: {
|
|
@@ -3706,18 +1559,18 @@ export interface operations {
|
|
|
3706
1559
|
};
|
|
3707
1560
|
};
|
|
3708
1561
|
};
|
|
3709
|
-
"
|
|
1562
|
+
"set-instance-labels": {
|
|
3710
1563
|
parameters: {
|
|
3711
1564
|
query?: never;
|
|
3712
1565
|
header?: never;
|
|
3713
1566
|
path: {
|
|
3714
|
-
|
|
1567
|
+
instanceId: string;
|
|
3715
1568
|
};
|
|
3716
1569
|
cookie?: never;
|
|
3717
1570
|
};
|
|
3718
1571
|
requestBody: {
|
|
3719
1572
|
content: {
|
|
3720
|
-
"application/json": components["schemas"]["
|
|
1573
|
+
"application/json": components["schemas"]["SetInstanceLabelsRequestBody"];
|
|
3721
1574
|
};
|
|
3722
1575
|
};
|
|
3723
1576
|
responses: {
|
|
@@ -3727,7 +1580,7 @@ export interface operations {
|
|
|
3727
1580
|
[name: string]: unknown;
|
|
3728
1581
|
};
|
|
3729
1582
|
content: {
|
|
3730
|
-
"application/json": components["schemas"]["
|
|
1583
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3731
1584
|
};
|
|
3732
1585
|
};
|
|
3733
1586
|
/** @description Error */
|
|
@@ -3741,16 +1594,20 @@ export interface operations {
|
|
|
3741
1594
|
};
|
|
3742
1595
|
};
|
|
3743
1596
|
};
|
|
3744
|
-
"
|
|
1597
|
+
"set-instance-notes": {
|
|
3745
1598
|
parameters: {
|
|
3746
1599
|
query?: never;
|
|
3747
1600
|
header?: never;
|
|
3748
1601
|
path: {
|
|
3749
|
-
|
|
1602
|
+
instanceId: string;
|
|
3750
1603
|
};
|
|
3751
1604
|
cookie?: never;
|
|
3752
1605
|
};
|
|
3753
|
-
requestBody
|
|
1606
|
+
requestBody: {
|
|
1607
|
+
content: {
|
|
1608
|
+
"application/json": components["schemas"]["SetInstanceNotesRequestBody"];
|
|
1609
|
+
};
|
|
1610
|
+
};
|
|
3754
1611
|
responses: {
|
|
3755
1612
|
/** @description OK */
|
|
3756
1613
|
200: {
|
|
@@ -3758,7 +1615,7 @@ export interface operations {
|
|
|
3758
1615
|
[name: string]: unknown;
|
|
3759
1616
|
};
|
|
3760
1617
|
content: {
|
|
3761
|
-
"application/json": components["schemas"]["
|
|
1618
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3762
1619
|
};
|
|
3763
1620
|
};
|
|
3764
1621
|
/** @description Error */
|
|
@@ -3772,16 +1629,20 @@ export interface operations {
|
|
|
3772
1629
|
};
|
|
3773
1630
|
};
|
|
3774
1631
|
};
|
|
3775
|
-
"
|
|
1632
|
+
"reset-instance-password": {
|
|
3776
1633
|
parameters: {
|
|
3777
1634
|
query?: never;
|
|
3778
1635
|
header?: never;
|
|
3779
1636
|
path: {
|
|
3780
|
-
|
|
1637
|
+
instanceId: string;
|
|
3781
1638
|
};
|
|
3782
1639
|
cookie?: never;
|
|
3783
1640
|
};
|
|
3784
|
-
requestBody
|
|
1641
|
+
requestBody: {
|
|
1642
|
+
content: {
|
|
1643
|
+
"application/json": components["schemas"]["ResetPasswordRequestBody"];
|
|
1644
|
+
};
|
|
1645
|
+
};
|
|
3785
1646
|
responses: {
|
|
3786
1647
|
/** @description OK */
|
|
3787
1648
|
200: {
|
|
@@ -3789,7 +1650,7 @@ export interface operations {
|
|
|
3789
1650
|
[name: string]: unknown;
|
|
3790
1651
|
};
|
|
3791
1652
|
content: {
|
|
3792
|
-
"application/json": components["schemas"]["
|
|
1653
|
+
"application/json": components["schemas"]["ResetPasswordResponseBody"];
|
|
3793
1654
|
};
|
|
3794
1655
|
};
|
|
3795
1656
|
/** @description Error */
|
|
@@ -3803,23 +1664,29 @@ export interface operations {
|
|
|
3803
1664
|
};
|
|
3804
1665
|
};
|
|
3805
1666
|
};
|
|
3806
|
-
"
|
|
1667
|
+
"reboot-instance": {
|
|
3807
1668
|
parameters: {
|
|
3808
1669
|
query?: never;
|
|
3809
1670
|
header?: never;
|
|
3810
1671
|
path: {
|
|
3811
|
-
|
|
1672
|
+
instanceId: string;
|
|
3812
1673
|
};
|
|
3813
1674
|
cookie?: never;
|
|
3814
1675
|
};
|
|
3815
|
-
requestBody
|
|
1676
|
+
requestBody: {
|
|
1677
|
+
content: {
|
|
1678
|
+
"application/json": components["schemas"]["RebootInstanceRequestBody"];
|
|
1679
|
+
};
|
|
1680
|
+
};
|
|
3816
1681
|
responses: {
|
|
3817
|
-
/** @description
|
|
3818
|
-
|
|
1682
|
+
/** @description OK */
|
|
1683
|
+
200: {
|
|
3819
1684
|
headers: {
|
|
3820
1685
|
[name: string]: unknown;
|
|
3821
1686
|
};
|
|
3822
|
-
content
|
|
1687
|
+
content: {
|
|
1688
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
1689
|
+
};
|
|
3823
1690
|
};
|
|
3824
1691
|
/** @description Error */
|
|
3825
1692
|
default: {
|
|
@@ -3832,16 +1699,20 @@ export interface operations {
|
|
|
3832
1699
|
};
|
|
3833
1700
|
};
|
|
3834
1701
|
};
|
|
3835
|
-
"
|
|
1702
|
+
"rebuild-instance": {
|
|
3836
1703
|
parameters: {
|
|
3837
1704
|
query?: never;
|
|
3838
1705
|
header?: never;
|
|
3839
1706
|
path: {
|
|
3840
|
-
|
|
1707
|
+
instanceId: string;
|
|
3841
1708
|
};
|
|
3842
1709
|
cookie?: never;
|
|
3843
1710
|
};
|
|
3844
|
-
requestBody
|
|
1711
|
+
requestBody: {
|
|
1712
|
+
content: {
|
|
1713
|
+
"application/json": components["schemas"]["RebuildInstanceRequestBody"];
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
3845
1716
|
responses: {
|
|
3846
1717
|
/** @description OK */
|
|
3847
1718
|
200: {
|
|
@@ -3849,7 +1720,7 @@ export interface operations {
|
|
|
3849
1720
|
[name: string]: unknown;
|
|
3850
1721
|
};
|
|
3851
1722
|
content: {
|
|
3852
|
-
"application/json": components["schemas"]["
|
|
1723
|
+
"application/json": components["schemas"]["RebuildInstanceResponseBody"];
|
|
3853
1724
|
};
|
|
3854
1725
|
};
|
|
3855
1726
|
/** @description Error */
|
|
@@ -3863,28 +1734,28 @@ export interface operations {
|
|
|
3863
1734
|
};
|
|
3864
1735
|
};
|
|
3865
1736
|
};
|
|
3866
|
-
"
|
|
1737
|
+
"resize-instance": {
|
|
3867
1738
|
parameters: {
|
|
3868
1739
|
query?: never;
|
|
3869
1740
|
header?: never;
|
|
3870
1741
|
path: {
|
|
3871
|
-
|
|
1742
|
+
instanceId: string;
|
|
3872
1743
|
};
|
|
3873
1744
|
cookie?: never;
|
|
3874
1745
|
};
|
|
3875
1746
|
requestBody: {
|
|
3876
1747
|
content: {
|
|
3877
|
-
"application/json": components["schemas"]["
|
|
1748
|
+
"application/json": components["schemas"]["ResizeInstanceRequestBody"];
|
|
3878
1749
|
};
|
|
3879
1750
|
};
|
|
3880
1751
|
responses: {
|
|
3881
|
-
/** @description
|
|
3882
|
-
|
|
1752
|
+
/** @description Accepted */
|
|
1753
|
+
202: {
|
|
3883
1754
|
headers: {
|
|
3884
1755
|
[name: string]: unknown;
|
|
3885
1756
|
};
|
|
3886
1757
|
content: {
|
|
3887
|
-
"application/json": components["schemas"]["
|
|
1758
|
+
"application/json": components["schemas"]["PlacedOrder"];
|
|
3888
1759
|
};
|
|
3889
1760
|
};
|
|
3890
1761
|
/** @description Error */
|
|
@@ -3898,24 +1769,25 @@ export interface operations {
|
|
|
3898
1769
|
};
|
|
3899
1770
|
};
|
|
3900
1771
|
};
|
|
3901
|
-
"
|
|
1772
|
+
"confirm-instance-resize": {
|
|
3902
1773
|
parameters: {
|
|
3903
1774
|
query?: never;
|
|
3904
1775
|
header?: never;
|
|
3905
1776
|
path: {
|
|
3906
|
-
|
|
3907
|
-
routeId: string;
|
|
1777
|
+
instanceId: string;
|
|
3908
1778
|
};
|
|
3909
1779
|
cookie?: never;
|
|
3910
1780
|
};
|
|
3911
1781
|
requestBody?: never;
|
|
3912
1782
|
responses: {
|
|
3913
|
-
/** @description
|
|
3914
|
-
|
|
1783
|
+
/** @description OK */
|
|
1784
|
+
200: {
|
|
3915
1785
|
headers: {
|
|
3916
1786
|
[name: string]: unknown;
|
|
3917
1787
|
};
|
|
3918
|
-
content
|
|
1788
|
+
content: {
|
|
1789
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
1790
|
+
};
|
|
3919
1791
|
};
|
|
3920
1792
|
/** @description Error */
|
|
3921
1793
|
default: {
|
|
@@ -3928,12 +1800,12 @@ export interface operations {
|
|
|
3928
1800
|
};
|
|
3929
1801
|
};
|
|
3930
1802
|
};
|
|
3931
|
-
"
|
|
1803
|
+
"revert-instance-resize": {
|
|
3932
1804
|
parameters: {
|
|
3933
1805
|
query?: never;
|
|
3934
1806
|
header?: never;
|
|
3935
1807
|
path: {
|
|
3936
|
-
|
|
1808
|
+
instanceId: string;
|
|
3937
1809
|
};
|
|
3938
1810
|
cookie?: never;
|
|
3939
1811
|
};
|
|
@@ -3945,7 +1817,7 @@ export interface operations {
|
|
|
3945
1817
|
[name: string]: unknown;
|
|
3946
1818
|
};
|
|
3947
1819
|
content: {
|
|
3948
|
-
"application/json": components["schemas"]["
|
|
1820
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3949
1821
|
};
|
|
3950
1822
|
};
|
|
3951
1823
|
/** @description Error */
|
|
@@ -3959,28 +1831,63 @@ export interface operations {
|
|
|
3959
1831
|
};
|
|
3960
1832
|
};
|
|
3961
1833
|
};
|
|
3962
|
-
"
|
|
1834
|
+
"start-instance": {
|
|
3963
1835
|
parameters: {
|
|
3964
1836
|
query?: never;
|
|
3965
1837
|
header?: never;
|
|
3966
1838
|
path: {
|
|
3967
|
-
|
|
1839
|
+
instanceId: string;
|
|
3968
1840
|
};
|
|
3969
1841
|
cookie?: never;
|
|
3970
1842
|
};
|
|
3971
1843
|
requestBody: {
|
|
3972
1844
|
content: {
|
|
3973
|
-
"application/json": components["schemas"]["
|
|
1845
|
+
"application/json": components["schemas"]["PowerRequest"];
|
|
3974
1846
|
};
|
|
3975
1847
|
};
|
|
3976
1848
|
responses: {
|
|
3977
|
-
/** @description
|
|
3978
|
-
|
|
1849
|
+
/** @description Accepted */
|
|
1850
|
+
202: {
|
|
1851
|
+
headers: {
|
|
1852
|
+
[name: string]: unknown;
|
|
1853
|
+
};
|
|
1854
|
+
content: {
|
|
1855
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
1856
|
+
};
|
|
1857
|
+
};
|
|
1858
|
+
/** @description Error */
|
|
1859
|
+
default: {
|
|
1860
|
+
headers: {
|
|
1861
|
+
[name: string]: unknown;
|
|
1862
|
+
};
|
|
1863
|
+
content: {
|
|
1864
|
+
"application/json": components["schemas"]["Error"];
|
|
1865
|
+
};
|
|
1866
|
+
};
|
|
1867
|
+
};
|
|
1868
|
+
};
|
|
1869
|
+
"stop-instance": {
|
|
1870
|
+
parameters: {
|
|
1871
|
+
query?: never;
|
|
1872
|
+
header?: never;
|
|
1873
|
+
path: {
|
|
1874
|
+
instanceId: string;
|
|
1875
|
+
};
|
|
1876
|
+
cookie?: never;
|
|
1877
|
+
};
|
|
1878
|
+
requestBody: {
|
|
1879
|
+
content: {
|
|
1880
|
+
"application/json": components["schemas"]["PowerRequest"];
|
|
1881
|
+
};
|
|
1882
|
+
};
|
|
1883
|
+
responses: {
|
|
1884
|
+
/** @description Accepted */
|
|
1885
|
+
202: {
|
|
3979
1886
|
headers: {
|
|
3980
1887
|
[name: string]: unknown;
|
|
3981
1888
|
};
|
|
3982
1889
|
content: {
|
|
3983
|
-
"application/json": components["schemas"]["
|
|
1890
|
+
"application/json": components["schemas"]["InstanceResource"];
|
|
3984
1891
|
};
|
|
3985
1892
|
};
|
|
3986
1893
|
/** @description Error */
|
|
@@ -3994,14 +1901,15 @@ export interface operations {
|
|
|
3994
1901
|
};
|
|
3995
1902
|
};
|
|
3996
1903
|
};
|
|
3997
|
-
"
|
|
1904
|
+
"list-instance-disks": {
|
|
3998
1905
|
parameters: {
|
|
3999
1906
|
query?: {
|
|
4000
|
-
|
|
1907
|
+
page?: number;
|
|
1908
|
+
page_size?: number;
|
|
4001
1909
|
};
|
|
4002
1910
|
header?: never;
|
|
4003
1911
|
path: {
|
|
4004
|
-
|
|
1912
|
+
instanceId: string;
|
|
4005
1913
|
};
|
|
4006
1914
|
cookie?: never;
|
|
4007
1915
|
};
|
|
@@ -4013,7 +1921,7 @@ export interface operations {
|
|
|
4013
1921
|
[name: string]: unknown;
|
|
4014
1922
|
};
|
|
4015
1923
|
content: {
|
|
4016
|
-
"application/json": components["schemas"]["
|
|
1924
|
+
"application/json": components["schemas"]["ResourceDependencyList"];
|
|
4017
1925
|
};
|
|
4018
1926
|
};
|
|
4019
1927
|
/** @description Error */
|
|
@@ -4027,24 +1935,29 @@ export interface operations {
|
|
|
4027
1935
|
};
|
|
4028
1936
|
};
|
|
4029
1937
|
};
|
|
4030
|
-
"
|
|
1938
|
+
"attach-disk": {
|
|
4031
1939
|
parameters: {
|
|
4032
1940
|
query?: never;
|
|
4033
1941
|
header?: never;
|
|
4034
1942
|
path: {
|
|
4035
|
-
|
|
4036
|
-
subnetId: string;
|
|
1943
|
+
instanceId: string;
|
|
4037
1944
|
};
|
|
4038
1945
|
cookie?: never;
|
|
4039
1946
|
};
|
|
4040
|
-
requestBody
|
|
1947
|
+
requestBody: {
|
|
1948
|
+
content: {
|
|
1949
|
+
"application/json": components["schemas"]["AttachDiskRequestBody"];
|
|
1950
|
+
};
|
|
1951
|
+
};
|
|
4041
1952
|
responses: {
|
|
4042
|
-
/** @description
|
|
4043
|
-
|
|
1953
|
+
/** @description OK */
|
|
1954
|
+
200: {
|
|
4044
1955
|
headers: {
|
|
4045
1956
|
[name: string]: unknown;
|
|
4046
1957
|
};
|
|
4047
|
-
content
|
|
1958
|
+
content: {
|
|
1959
|
+
"application/json": components["schemas"]["ResourceDependency"];
|
|
1960
|
+
};
|
|
4048
1961
|
};
|
|
4049
1962
|
/** @description Error */
|
|
4050
1963
|
default: {
|
|
@@ -4057,15 +1970,14 @@ export interface operations {
|
|
|
4057
1970
|
};
|
|
4058
1971
|
};
|
|
4059
1972
|
};
|
|
4060
|
-
"
|
|
1973
|
+
"detach-disk": {
|
|
4061
1974
|
parameters: {
|
|
4062
|
-
query?:
|
|
4063
|
-
region_code?: string;
|
|
4064
|
-
/** @description 只返回该私有网络下的安全组 */
|
|
4065
|
-
private_network_id?: string;
|
|
4066
|
-
};
|
|
1975
|
+
query?: never;
|
|
4067
1976
|
header?: never;
|
|
4068
|
-
path
|
|
1977
|
+
path: {
|
|
1978
|
+
instanceId: string;
|
|
1979
|
+
diskId: string;
|
|
1980
|
+
};
|
|
4069
1981
|
cookie?: never;
|
|
4070
1982
|
};
|
|
4071
1983
|
requestBody?: never;
|
|
@@ -4076,7 +1988,7 @@ export interface operations {
|
|
|
4076
1988
|
[name: string]: unknown;
|
|
4077
1989
|
};
|
|
4078
1990
|
content: {
|
|
4079
|
-
"application/json": components["schemas"]["
|
|
1991
|
+
"application/json": components["schemas"]["ResourceDependency"];
|
|
4080
1992
|
};
|
|
4081
1993
|
};
|
|
4082
1994
|
/** @description Error */
|
|
@@ -4090,26 +2002,28 @@ export interface operations {
|
|
|
4090
2002
|
};
|
|
4091
2003
|
};
|
|
4092
2004
|
};
|
|
4093
|
-
"
|
|
2005
|
+
"attach-instance-floating-ip": {
|
|
4094
2006
|
parameters: {
|
|
4095
2007
|
query?: never;
|
|
4096
2008
|
header?: never;
|
|
4097
|
-
path
|
|
2009
|
+
path: {
|
|
2010
|
+
instanceId: string;
|
|
2011
|
+
};
|
|
4098
2012
|
cookie?: never;
|
|
4099
2013
|
};
|
|
4100
2014
|
requestBody: {
|
|
4101
2015
|
content: {
|
|
4102
|
-
"application/json": components["schemas"]["
|
|
2016
|
+
"application/json": components["schemas"]["AttachFloatingIPRequestBody"];
|
|
4103
2017
|
};
|
|
4104
2018
|
};
|
|
4105
2019
|
responses: {
|
|
4106
|
-
/** @description
|
|
4107
|
-
|
|
2020
|
+
/** @description Accepted */
|
|
2021
|
+
202: {
|
|
4108
2022
|
headers: {
|
|
4109
2023
|
[name: string]: unknown;
|
|
4110
2024
|
};
|
|
4111
2025
|
content: {
|
|
4112
|
-
"application/json": components["schemas"]["
|
|
2026
|
+
"application/json": components["schemas"]["ResourceUsage"];
|
|
4113
2027
|
};
|
|
4114
2028
|
};
|
|
4115
2029
|
/** @description Error */
|
|
@@ -4123,24 +2037,25 @@ export interface operations {
|
|
|
4123
2037
|
};
|
|
4124
2038
|
};
|
|
4125
2039
|
};
|
|
4126
|
-
"
|
|
2040
|
+
"detach-instance-floating-ip": {
|
|
4127
2041
|
parameters: {
|
|
4128
2042
|
query?: never;
|
|
4129
2043
|
header?: never;
|
|
4130
2044
|
path: {
|
|
4131
|
-
|
|
2045
|
+
instanceId: string;
|
|
2046
|
+
floatingIpId: string;
|
|
4132
2047
|
};
|
|
4133
2048
|
cookie?: never;
|
|
4134
2049
|
};
|
|
4135
2050
|
requestBody?: never;
|
|
4136
2051
|
responses: {
|
|
4137
|
-
/** @description
|
|
4138
|
-
|
|
2052
|
+
/** @description Accepted */
|
|
2053
|
+
202: {
|
|
4139
2054
|
headers: {
|
|
4140
2055
|
[name: string]: unknown;
|
|
4141
2056
|
};
|
|
4142
2057
|
content: {
|
|
4143
|
-
"application/json": components["schemas"]["
|
|
2058
|
+
"application/json": components["schemas"]["ResourceUsage"];
|
|
4144
2059
|
};
|
|
4145
2060
|
};
|
|
4146
2061
|
/** @description Error */
|
|
@@ -4154,23 +2069,28 @@ export interface operations {
|
|
|
4154
2069
|
};
|
|
4155
2070
|
};
|
|
4156
2071
|
};
|
|
4157
|
-
"
|
|
2072
|
+
"list-instance-ports": {
|
|
4158
2073
|
parameters: {
|
|
4159
|
-
query?:
|
|
2074
|
+
query?: {
|
|
2075
|
+
page?: number;
|
|
2076
|
+
page_size?: number;
|
|
2077
|
+
};
|
|
4160
2078
|
header?: never;
|
|
4161
2079
|
path: {
|
|
4162
|
-
|
|
2080
|
+
instanceId: string;
|
|
4163
2081
|
};
|
|
4164
2082
|
cookie?: never;
|
|
4165
2083
|
};
|
|
4166
2084
|
requestBody?: never;
|
|
4167
2085
|
responses: {
|
|
4168
|
-
/** @description
|
|
4169
|
-
|
|
2086
|
+
/** @description OK */
|
|
2087
|
+
200: {
|
|
4170
2088
|
headers: {
|
|
4171
2089
|
[name: string]: unknown;
|
|
4172
2090
|
};
|
|
4173
|
-
content
|
|
2091
|
+
content: {
|
|
2092
|
+
"application/json": components["schemas"]["ResourceDependencyList"];
|
|
2093
|
+
};
|
|
4174
2094
|
};
|
|
4175
2095
|
/** @description Error */
|
|
4176
2096
|
default: {
|
|
@@ -4183,16 +2103,20 @@ export interface operations {
|
|
|
4183
2103
|
};
|
|
4184
2104
|
};
|
|
4185
2105
|
};
|
|
4186
|
-
"
|
|
2106
|
+
"attach-port": {
|
|
4187
2107
|
parameters: {
|
|
4188
2108
|
query?: never;
|
|
4189
2109
|
header?: never;
|
|
4190
2110
|
path: {
|
|
4191
|
-
|
|
2111
|
+
instanceId: string;
|
|
4192
2112
|
};
|
|
4193
2113
|
cookie?: never;
|
|
4194
2114
|
};
|
|
4195
|
-
requestBody
|
|
2115
|
+
requestBody: {
|
|
2116
|
+
content: {
|
|
2117
|
+
"application/json": components["schemas"]["AttachPortRequestBody"];
|
|
2118
|
+
};
|
|
2119
|
+
};
|
|
4196
2120
|
responses: {
|
|
4197
2121
|
/** @description OK */
|
|
4198
2122
|
200: {
|
|
@@ -4200,7 +2124,7 @@ export interface operations {
|
|
|
4200
2124
|
[name: string]: unknown;
|
|
4201
2125
|
};
|
|
4202
2126
|
content: {
|
|
4203
|
-
"application/json": components["schemas"]["
|
|
2127
|
+
"application/json": components["schemas"]["ResourceDependency"];
|
|
4204
2128
|
};
|
|
4205
2129
|
};
|
|
4206
2130
|
/** @description Error */
|
|
@@ -4214,28 +2138,25 @@ export interface operations {
|
|
|
4214
2138
|
};
|
|
4215
2139
|
};
|
|
4216
2140
|
};
|
|
4217
|
-
"
|
|
2141
|
+
"detach-port": {
|
|
4218
2142
|
parameters: {
|
|
4219
2143
|
query?: never;
|
|
4220
2144
|
header?: never;
|
|
4221
2145
|
path: {
|
|
4222
|
-
|
|
2146
|
+
instanceId: string;
|
|
2147
|
+
portId: string;
|
|
4223
2148
|
};
|
|
4224
2149
|
cookie?: never;
|
|
4225
2150
|
};
|
|
4226
|
-
requestBody
|
|
4227
|
-
content: {
|
|
4228
|
-
"application/json": components["schemas"]["CreateSecurityRuleRequestBody"];
|
|
4229
|
-
};
|
|
4230
|
-
};
|
|
2151
|
+
requestBody?: never;
|
|
4231
2152
|
responses: {
|
|
4232
|
-
/** @description
|
|
4233
|
-
|
|
2153
|
+
/** @description OK */
|
|
2154
|
+
200: {
|
|
4234
2155
|
headers: {
|
|
4235
2156
|
[name: string]: unknown;
|
|
4236
2157
|
};
|
|
4237
2158
|
content: {
|
|
4238
|
-
"application/json": components["schemas"]["
|
|
2159
|
+
"application/json": components["schemas"]["ResourceDependency"];
|
|
4239
2160
|
};
|
|
4240
2161
|
};
|
|
4241
2162
|
/** @description Error */
|
|
@@ -4249,24 +2170,28 @@ export interface operations {
|
|
|
4249
2170
|
};
|
|
4250
2171
|
};
|
|
4251
2172
|
};
|
|
4252
|
-
"
|
|
2173
|
+
"list-operation-logs": {
|
|
4253
2174
|
parameters: {
|
|
4254
|
-
query?:
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
2175
|
+
query?: {
|
|
2176
|
+
/** @description Return a single kind of operation; the value matches the operation id of the endpoint */
|
|
2177
|
+
action?: string;
|
|
2178
|
+
page?: number;
|
|
2179
|
+
page_size?: number;
|
|
4259
2180
|
};
|
|
2181
|
+
header?: never;
|
|
2182
|
+
path?: never;
|
|
4260
2183
|
cookie?: never;
|
|
4261
2184
|
};
|
|
4262
2185
|
requestBody?: never;
|
|
4263
2186
|
responses: {
|
|
4264
|
-
/** @description
|
|
4265
|
-
|
|
2187
|
+
/** @description OK */
|
|
2188
|
+
200: {
|
|
4266
2189
|
headers: {
|
|
4267
2190
|
[name: string]: unknown;
|
|
4268
2191
|
};
|
|
4269
|
-
content
|
|
2192
|
+
content: {
|
|
2193
|
+
"application/json": components["schemas"]["OperationLogListResponseBody"];
|
|
2194
|
+
};
|
|
4270
2195
|
};
|
|
4271
2196
|
/** @description Error */
|
|
4272
2197
|
default: {
|
|
@@ -4279,11 +2204,13 @@ export interface operations {
|
|
|
4279
2204
|
};
|
|
4280
2205
|
};
|
|
4281
2206
|
};
|
|
4282
|
-
"list-
|
|
2207
|
+
"list-private-images": {
|
|
4283
2208
|
parameters: {
|
|
4284
2209
|
query?: {
|
|
4285
|
-
/** @description
|
|
4286
|
-
|
|
2210
|
+
/** @description Return only the images of this region. An image can only be used in the region that holds it */
|
|
2211
|
+
region_id?: string;
|
|
2212
|
+
page?: number;
|
|
2213
|
+
page_size?: number;
|
|
4287
2214
|
};
|
|
4288
2215
|
header?: never;
|
|
4289
2216
|
path?: never;
|
|
@@ -4297,7 +2224,7 @@ export interface operations {
|
|
|
4297
2224
|
[name: string]: unknown;
|
|
4298
2225
|
};
|
|
4299
2226
|
content: {
|
|
4300
|
-
"application/json": components["schemas"]["
|
|
2227
|
+
"application/json": components["schemas"]["PrivateImageListResponseBody"];
|
|
4301
2228
|
};
|
|
4302
2229
|
};
|
|
4303
2230
|
/** @description Error */
|
|
@@ -4311,7 +2238,7 @@ export interface operations {
|
|
|
4311
2238
|
};
|
|
4312
2239
|
};
|
|
4313
2240
|
};
|
|
4314
|
-
"create-
|
|
2241
|
+
"create-private-image": {
|
|
4315
2242
|
parameters: {
|
|
4316
2243
|
query?: never;
|
|
4317
2244
|
header?: never;
|
|
@@ -4320,7 +2247,7 @@ export interface operations {
|
|
|
4320
2247
|
};
|
|
4321
2248
|
requestBody: {
|
|
4322
2249
|
content: {
|
|
4323
|
-
"application/json": components["schemas"]["
|
|
2250
|
+
"application/json": components["schemas"]["CreatePrivateImageRequestBody"];
|
|
4324
2251
|
};
|
|
4325
2252
|
};
|
|
4326
2253
|
responses: {
|
|
@@ -4330,7 +2257,7 @@ export interface operations {
|
|
|
4330
2257
|
[name: string]: unknown;
|
|
4331
2258
|
};
|
|
4332
2259
|
content: {
|
|
4333
|
-
"application/json": components["schemas"]["
|
|
2260
|
+
"application/json": components["schemas"]["PrivateImageResource"];
|
|
4334
2261
|
};
|
|
4335
2262
|
};
|
|
4336
2263
|
/** @description Error */
|
|
@@ -4344,12 +2271,12 @@ export interface operations {
|
|
|
4344
2271
|
};
|
|
4345
2272
|
};
|
|
4346
2273
|
};
|
|
4347
|
-
"get-
|
|
2274
|
+
"get-private-image": {
|
|
4348
2275
|
parameters: {
|
|
4349
2276
|
query?: never;
|
|
4350
2277
|
header?: never;
|
|
4351
2278
|
path: {
|
|
4352
|
-
|
|
2279
|
+
privateImageId: string;
|
|
4353
2280
|
};
|
|
4354
2281
|
cookie?: never;
|
|
4355
2282
|
};
|
|
@@ -4361,7 +2288,7 @@ export interface operations {
|
|
|
4361
2288
|
[name: string]: unknown;
|
|
4362
2289
|
};
|
|
4363
2290
|
content: {
|
|
4364
|
-
"application/json": components["schemas"]["
|
|
2291
|
+
"application/json": components["schemas"]["PrivateImageResource"];
|
|
4365
2292
|
};
|
|
4366
2293
|
};
|
|
4367
2294
|
/** @description Error */
|
|
@@ -4375,12 +2302,12 @@ export interface operations {
|
|
|
4375
2302
|
};
|
|
4376
2303
|
};
|
|
4377
2304
|
};
|
|
4378
|
-
"delete-
|
|
2305
|
+
"delete-private-image": {
|
|
4379
2306
|
parameters: {
|
|
4380
2307
|
query?: never;
|
|
4381
2308
|
header?: never;
|
|
4382
2309
|
path: {
|
|
4383
|
-
|
|
2310
|
+
privateImageId: string;
|
|
4384
2311
|
};
|
|
4385
2312
|
cookie?: never;
|
|
4386
2313
|
};
|
|
@@ -4404,20 +2331,54 @@ export interface operations {
|
|
|
4404
2331
|
};
|
|
4405
2332
|
};
|
|
4406
2333
|
};
|
|
4407
|
-
"rename-
|
|
2334
|
+
"rename-private-image": {
|
|
4408
2335
|
parameters: {
|
|
4409
2336
|
query?: never;
|
|
4410
2337
|
header?: never;
|
|
4411
2338
|
path: {
|
|
4412
|
-
|
|
2339
|
+
privateImageId: string;
|
|
4413
2340
|
};
|
|
4414
2341
|
cookie?: never;
|
|
4415
2342
|
};
|
|
4416
2343
|
requestBody: {
|
|
4417
2344
|
content: {
|
|
4418
|
-
"application/json": components["schemas"]["
|
|
2345
|
+
"application/json": components["schemas"]["RenamePrivateImageRequestBody"];
|
|
2346
|
+
};
|
|
2347
|
+
};
|
|
2348
|
+
responses: {
|
|
2349
|
+
/** @description OK */
|
|
2350
|
+
200: {
|
|
2351
|
+
headers: {
|
|
2352
|
+
[name: string]: unknown;
|
|
2353
|
+
};
|
|
2354
|
+
content: {
|
|
2355
|
+
"application/json": components["schemas"]["PrivateImageResource"];
|
|
2356
|
+
};
|
|
2357
|
+
};
|
|
2358
|
+
/** @description Error */
|
|
2359
|
+
default: {
|
|
2360
|
+
headers: {
|
|
2361
|
+
[name: string]: unknown;
|
|
2362
|
+
};
|
|
2363
|
+
content: {
|
|
2364
|
+
"application/json": components["schemas"]["Error"];
|
|
2365
|
+
};
|
|
2366
|
+
};
|
|
2367
|
+
};
|
|
2368
|
+
};
|
|
2369
|
+
"list-instance-dependencies": {
|
|
2370
|
+
parameters: {
|
|
2371
|
+
query?: {
|
|
2372
|
+
page?: number;
|
|
2373
|
+
page_size?: number;
|
|
2374
|
+
};
|
|
2375
|
+
header?: never;
|
|
2376
|
+
path: {
|
|
2377
|
+
instanceId: string;
|
|
4419
2378
|
};
|
|
2379
|
+
cookie?: never;
|
|
4420
2380
|
};
|
|
2381
|
+
requestBody?: never;
|
|
4421
2382
|
responses: {
|
|
4422
2383
|
/** @description OK */
|
|
4423
2384
|
200: {
|
|
@@ -4425,7 +2386,7 @@ export interface operations {
|
|
|
4425
2386
|
[name: string]: unknown;
|
|
4426
2387
|
};
|
|
4427
2388
|
content: {
|
|
4428
|
-
"application/json": components["schemas"]["
|
|
2389
|
+
"application/json": components["schemas"]["ResourceDependencyList"];
|
|
4429
2390
|
};
|
|
4430
2391
|
};
|
|
4431
2392
|
/** @description Error */
|