@antelopejs/cloud-sdk 0.0.0-stage → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +67 -2
- package/dist/api-error.d.ts +21 -0
- package/dist/api-error.js +27 -0
- package/dist/api.d.ts +193 -0
- package/dist/api.js +224 -0
- package/dist/environments.d.ts +48 -0
- package/dist/environments.js +81 -0
- package/dist/generated/cloud-api.d.ts +1612 -0
- package/dist/generated/cloud-api.js +6 -0
- package/dist/guards.d.ts +9 -0
- package/dist/guards.js +16 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +5 -0
- package/dist/resources.d.ts +43 -0
- package/dist/resources.js +2 -0
- package/dist/result.d.ts +25 -0
- package/dist/result.js +36 -0
- package/dist/sse.d.ts +6 -0
- package/dist/sse.js +45 -0
- package/openapi/cloud.openapi.yaml +556 -0
- package/openapi/environments.yaml +341 -0
- package/openapi/resources.openapi.yaml +274 -0
- package/openapi/variables.parts.yaml +127 -0
- package/package.json +69 -4
|
@@ -0,0 +1,556 @@
|
|
|
1
|
+
openapi: 3.1.0
|
|
2
|
+
info:
|
|
3
|
+
title: AntelopeJS Cloud CLI API
|
|
4
|
+
version: 1.0.0
|
|
5
|
+
servers:
|
|
6
|
+
- url: https://api.antelopejs.cloud
|
|
7
|
+
components:
|
|
8
|
+
securitySchemes:
|
|
9
|
+
bearerAuth:
|
|
10
|
+
type: http
|
|
11
|
+
scheme: bearer
|
|
12
|
+
responses:
|
|
13
|
+
Error:
|
|
14
|
+
description: Stable API error
|
|
15
|
+
content:
|
|
16
|
+
application/json:
|
|
17
|
+
schema:
|
|
18
|
+
$ref: '#/components/schemas/Error'
|
|
19
|
+
schemas:
|
|
20
|
+
Error:
|
|
21
|
+
description: A canonical machine-readable error code, as a plain string or named field.
|
|
22
|
+
oneOf:
|
|
23
|
+
- type: string
|
|
24
|
+
- type: object
|
|
25
|
+
properties:
|
|
26
|
+
code: { type: string }
|
|
27
|
+
error: { type: string }
|
|
28
|
+
message: { type: string }
|
|
29
|
+
anyOf:
|
|
30
|
+
- required: [code]
|
|
31
|
+
- required: [error]
|
|
32
|
+
- required: [message]
|
|
33
|
+
DeviceAuthorization:
|
|
34
|
+
type: object
|
|
35
|
+
required: [device_code, user_code, verification_uri, verification_uri_complete, expires_in, interval]
|
|
36
|
+
properties:
|
|
37
|
+
device_code: { type: string }
|
|
38
|
+
user_code: { type: string }
|
|
39
|
+
verification_uri: { type: string, format: uri }
|
|
40
|
+
verification_uri_complete: { type: string, format: uri }
|
|
41
|
+
expires_in: { type: integer }
|
|
42
|
+
interval: { type: integer }
|
|
43
|
+
DeviceToken:
|
|
44
|
+
type: object
|
|
45
|
+
required: [access_token, token_type, workspace_id]
|
|
46
|
+
properties:
|
|
47
|
+
access_token: { type: string }
|
|
48
|
+
token_type: { type: string, const: Bearer }
|
|
49
|
+
workspace_id: { type: string }
|
|
50
|
+
workspace_name:
|
|
51
|
+
description: Name of the workspace the token is for; absent on servers that predate it.
|
|
52
|
+
type: string
|
|
53
|
+
VariableOrigin: { $ref: './variables.parts.yaml#/schemas/VariableOrigin' }
|
|
54
|
+
EnvironmentVariable: { $ref: './variables.parts.yaml#/schemas/EnvironmentVariable' }
|
|
55
|
+
EnvironmentVariableList: { $ref: './variables.parts.yaml#/schemas/EnvironmentVariableList' }
|
|
56
|
+
VariableWrite: { $ref: './variables.parts.yaml#/schemas/VariableWrite' }
|
|
57
|
+
Service:
|
|
58
|
+
type: object
|
|
59
|
+
required: [id, name, status, primaryHost, deployment]
|
|
60
|
+
properties:
|
|
61
|
+
id: { type: string }
|
|
62
|
+
name: { type: string }
|
|
63
|
+
status: { type: string }
|
|
64
|
+
primaryHost: { type: [string, "null"] }
|
|
65
|
+
linkedServiceIds:
|
|
66
|
+
description: The services this one reads a variable from; deploy ships them first. Absent from an API older than this field.
|
|
67
|
+
type: array
|
|
68
|
+
items: { type: string }
|
|
69
|
+
deployment:
|
|
70
|
+
description: The deployment that shipped the service; null before the first one.
|
|
71
|
+
oneOf:
|
|
72
|
+
- $ref: '#/components/schemas/ServiceDeployment'
|
|
73
|
+
- type: "null"
|
|
74
|
+
ServiceDeployment:
|
|
75
|
+
description: The deployment a service is running. Services shipped together share it.
|
|
76
|
+
type: object
|
|
77
|
+
required: [number, occurredAt]
|
|
78
|
+
properties:
|
|
79
|
+
number: { type: integer }
|
|
80
|
+
occurredAt: { type: string, format: date-time }
|
|
81
|
+
Environment:
|
|
82
|
+
type: object
|
|
83
|
+
required: [id, name, services]
|
|
84
|
+
properties:
|
|
85
|
+
id: { type: string }
|
|
86
|
+
name: { type: string }
|
|
87
|
+
services:
|
|
88
|
+
type: array
|
|
89
|
+
items: { $ref: '#/components/schemas/Service' }
|
|
90
|
+
Project:
|
|
91
|
+
type: object
|
|
92
|
+
required: [id, slug, region, environments]
|
|
93
|
+
properties:
|
|
94
|
+
id: { type: string }
|
|
95
|
+
slug: { type: string }
|
|
96
|
+
region: { type: string }
|
|
97
|
+
environments:
|
|
98
|
+
type: array
|
|
99
|
+
items: { $ref: '#/components/schemas/Environment' }
|
|
100
|
+
ProjectList:
|
|
101
|
+
type: object
|
|
102
|
+
required: [projects]
|
|
103
|
+
properties:
|
|
104
|
+
projects:
|
|
105
|
+
type: array
|
|
106
|
+
items:
|
|
107
|
+
type: object
|
|
108
|
+
required: [id, slug, status]
|
|
109
|
+
properties:
|
|
110
|
+
id: { type: string }
|
|
111
|
+
slug: { type: string }
|
|
112
|
+
status: { type: string }
|
|
113
|
+
DeploymentReceipt:
|
|
114
|
+
type: object
|
|
115
|
+
required: [deploymentId, buildId, status]
|
|
116
|
+
properties:
|
|
117
|
+
deploymentId: { type: string }
|
|
118
|
+
buildId: { type: string }
|
|
119
|
+
status: { type: string, const: queued }
|
|
120
|
+
ActiveBuild:
|
|
121
|
+
description: A build of the service still queued or running, and the deployment it belongs to.
|
|
122
|
+
type: object
|
|
123
|
+
required: [id, deploymentId, status, queuePosition, createdAt]
|
|
124
|
+
properties:
|
|
125
|
+
id: { type: string }
|
|
126
|
+
deploymentId: { type: string }
|
|
127
|
+
status: { type: string, enum: [queued, starting, running] }
|
|
128
|
+
queuePosition: { type: [integer, "null"] }
|
|
129
|
+
createdAt: { type: string, format: date-time }
|
|
130
|
+
DeploymentHistory:
|
|
131
|
+
type: object
|
|
132
|
+
required: [revisions, desiredRevisionId]
|
|
133
|
+
properties:
|
|
134
|
+
activeBuilds:
|
|
135
|
+
type: array
|
|
136
|
+
items: { $ref: '#/components/schemas/ActiveBuild' }
|
|
137
|
+
desiredRevisionId: { type: [string, "null"] }
|
|
138
|
+
revisions:
|
|
139
|
+
type: array
|
|
140
|
+
items:
|
|
141
|
+
type: object
|
|
142
|
+
required: [id, number, isDesired, canRollback]
|
|
143
|
+
properties:
|
|
144
|
+
id: { type: string }
|
|
145
|
+
number: { type: integer }
|
|
146
|
+
isDesired: { type: boolean }
|
|
147
|
+
canRollback: { type: boolean }
|
|
148
|
+
state:
|
|
149
|
+
description: Where the revision is; preparing and pending ones are still rolling out.
|
|
150
|
+
type: string
|
|
151
|
+
enum: [preparing, pending, succeeded, failed]
|
|
152
|
+
deploymentId:
|
|
153
|
+
description: The deployment that rolls the revision out; null when none of the recent ones links to it.
|
|
154
|
+
type: [string, "null"]
|
|
155
|
+
DeploymentDetail:
|
|
156
|
+
type: object
|
|
157
|
+
required: [id, status, failure]
|
|
158
|
+
properties:
|
|
159
|
+
id: { type: string }
|
|
160
|
+
status: { type: string }
|
|
161
|
+
failure:
|
|
162
|
+
description: Why the deployment failed; null unless it did.
|
|
163
|
+
oneOf:
|
|
164
|
+
- type: object
|
|
165
|
+
required: [key]
|
|
166
|
+
properties:
|
|
167
|
+
key: { type: string }
|
|
168
|
+
params: { type: object, additionalProperties: true }
|
|
169
|
+
- type: "null"
|
|
170
|
+
builds:
|
|
171
|
+
description: The deployment's builds; a failed one carries why it failed.
|
|
172
|
+
type: array
|
|
173
|
+
items: { $ref: '#/components/schemas/DeploymentBuild' }
|
|
174
|
+
DeploymentBuild:
|
|
175
|
+
type: object
|
|
176
|
+
required: [id, status]
|
|
177
|
+
properties:
|
|
178
|
+
id: { type: string }
|
|
179
|
+
status: { type: string }
|
|
180
|
+
failureReason:
|
|
181
|
+
description: Why the build failed, read from its log; null unless it did.
|
|
182
|
+
oneOf:
|
|
183
|
+
- type: object
|
|
184
|
+
required: [code, platform, summary]
|
|
185
|
+
properties:
|
|
186
|
+
code: { type: string }
|
|
187
|
+
platform:
|
|
188
|
+
description: The platform failed, not the source; retrying the same commit is the way out.
|
|
189
|
+
type: boolean
|
|
190
|
+
summary: { type: string }
|
|
191
|
+
step: { type: [integer, "null"] }
|
|
192
|
+
- type: "null"
|
|
193
|
+
WorkspaceProvisioning:
|
|
194
|
+
description: Whether the workspace can build and deploy yet, and why not.
|
|
195
|
+
type: object
|
|
196
|
+
required: [phase, owner, reasonCode, retryAt, canRetry]
|
|
197
|
+
properties:
|
|
198
|
+
phase: { type: string, enum: [pending, reconciling, ready, blocked, revoking, revoked] }
|
|
199
|
+
owner: { type: [string, "null"] }
|
|
200
|
+
reasonCode: { type: [string, "null"] }
|
|
201
|
+
retryAt: { type: [string, "null"], format: date-time }
|
|
202
|
+
canRetry: { type: boolean }
|
|
203
|
+
OnboardingState:
|
|
204
|
+
type: object
|
|
205
|
+
required: [canCreateProjects, regions, defaultRegion]
|
|
206
|
+
properties:
|
|
207
|
+
canCreateProjects: { type: boolean }
|
|
208
|
+
regions:
|
|
209
|
+
type: array
|
|
210
|
+
items: { type: string }
|
|
211
|
+
defaultRegion: { type: string }
|
|
212
|
+
NewProject:
|
|
213
|
+
type: object
|
|
214
|
+
required: [slug]
|
|
215
|
+
properties:
|
|
216
|
+
slug: { type: string }
|
|
217
|
+
region: { type: string }
|
|
218
|
+
CreatedProject:
|
|
219
|
+
type: object
|
|
220
|
+
required: [projectId, slug, region, environmentId]
|
|
221
|
+
properties:
|
|
222
|
+
projectId: { type: string }
|
|
223
|
+
slug: { type: string }
|
|
224
|
+
region: { type: string }
|
|
225
|
+
environmentId: { type: string }
|
|
226
|
+
serviceId: { type: [string, "null"] }
|
|
227
|
+
NewUploadService:
|
|
228
|
+
type: object
|
|
229
|
+
required: [name, appName, source]
|
|
230
|
+
properties:
|
|
231
|
+
name: { type: string }
|
|
232
|
+
appName: { type: string }
|
|
233
|
+
source:
|
|
234
|
+
type: object
|
|
235
|
+
required: [type]
|
|
236
|
+
properties:
|
|
237
|
+
type: { type: string, const: upload }
|
|
238
|
+
port: { type: [integer, "null"] }
|
|
239
|
+
isPublic: { type: boolean }
|
|
240
|
+
CreatedService:
|
|
241
|
+
type: object
|
|
242
|
+
required: [serviceId, name, appName]
|
|
243
|
+
properties:
|
|
244
|
+
serviceId: { type: string }
|
|
245
|
+
name: { type: string }
|
|
246
|
+
appName: { type: string }
|
|
247
|
+
ServicePricing:
|
|
248
|
+
type: object
|
|
249
|
+
required: [currency, cpuHourUnitPrice, memoryHourUnitPrice, hoursPerMonth]
|
|
250
|
+
properties:
|
|
251
|
+
currency: { type: string }
|
|
252
|
+
cpuHourUnitPrice: { type: number }
|
|
253
|
+
memoryHourUnitPrice: { type: number }
|
|
254
|
+
hoursPerMonth: { type: number }
|
|
255
|
+
ServiceBounds:
|
|
256
|
+
type: object
|
|
257
|
+
required: [replicas, cpu, memory]
|
|
258
|
+
properties:
|
|
259
|
+
replicas:
|
|
260
|
+
type: object
|
|
261
|
+
required: [min, max]
|
|
262
|
+
properties:
|
|
263
|
+
min: { type: integer }
|
|
264
|
+
max: { type: integer }
|
|
265
|
+
cpu: { type: number }
|
|
266
|
+
memory: { type: number }
|
|
267
|
+
ServiceSettings:
|
|
268
|
+
type: object
|
|
269
|
+
required: [serviceId, scaling, volumeLimits]
|
|
270
|
+
properties:
|
|
271
|
+
serviceId: { type: string }
|
|
272
|
+
scaling:
|
|
273
|
+
type: object
|
|
274
|
+
required: [bounds, replicaLimit, pricing]
|
|
275
|
+
properties:
|
|
276
|
+
bounds: { $ref: '#/components/schemas/ServiceBounds' }
|
|
277
|
+
replicaLimit: { type: integer }
|
|
278
|
+
pricing:
|
|
279
|
+
oneOf:
|
|
280
|
+
- $ref: '#/components/schemas/ServicePricing'
|
|
281
|
+
- type: "null"
|
|
282
|
+
volumeLimits:
|
|
283
|
+
type: object
|
|
284
|
+
required: [minGb, maxGb, removedRetentionDays]
|
|
285
|
+
properties:
|
|
286
|
+
minGb: { type: integer }
|
|
287
|
+
maxGb: { type: integer }
|
|
288
|
+
removedRetentionDays:
|
|
289
|
+
description: Days support can still recover a detached volume's latest snapshot.
|
|
290
|
+
type: integer
|
|
291
|
+
paths:
|
|
292
|
+
/api/cloud/onboarding/:
|
|
293
|
+
get:
|
|
294
|
+
operationId: readOnboardingState
|
|
295
|
+
security: [{ bearerAuth: [] }]
|
|
296
|
+
responses:
|
|
297
|
+
'200':
|
|
298
|
+
content:
|
|
299
|
+
application/json:
|
|
300
|
+
schema: { $ref: '#/components/schemas/OnboardingState' }
|
|
301
|
+
default: { $ref: '#/components/responses/Error' }
|
|
302
|
+
/api/cloud/workspace-provisioning:
|
|
303
|
+
get:
|
|
304
|
+
operationId: readWorkspaceProvisioning
|
|
305
|
+
security: [{ bearerAuth: [] }]
|
|
306
|
+
responses:
|
|
307
|
+
'200':
|
|
308
|
+
content:
|
|
309
|
+
application/json:
|
|
310
|
+
schema: { $ref: '#/components/schemas/WorkspaceProvisioning' }
|
|
311
|
+
default: { $ref: '#/components/responses/Error' }
|
|
312
|
+
/api/cloud/cli/device:
|
|
313
|
+
post:
|
|
314
|
+
operationId: createDeviceAuthorization
|
|
315
|
+
requestBody:
|
|
316
|
+
content:
|
|
317
|
+
application/json:
|
|
318
|
+
schema:
|
|
319
|
+
type: object
|
|
320
|
+
properties:
|
|
321
|
+
device_name: { type: string }
|
|
322
|
+
responses:
|
|
323
|
+
'200':
|
|
324
|
+
content:
|
|
325
|
+
application/json:
|
|
326
|
+
schema: { $ref: '#/components/schemas/DeviceAuthorization' }
|
|
327
|
+
default: { $ref: '#/components/responses/Error' }
|
|
328
|
+
/api/cloud/cli/token:
|
|
329
|
+
post:
|
|
330
|
+
operationId: exchangeDeviceCode
|
|
331
|
+
requestBody:
|
|
332
|
+
required: true
|
|
333
|
+
content:
|
|
334
|
+
application/json:
|
|
335
|
+
schema:
|
|
336
|
+
type: object
|
|
337
|
+
required: [device_code]
|
|
338
|
+
properties:
|
|
339
|
+
device_code: { type: string }
|
|
340
|
+
responses:
|
|
341
|
+
'200':
|
|
342
|
+
content:
|
|
343
|
+
application/json:
|
|
344
|
+
schema: { $ref: '#/components/schemas/DeviceToken' }
|
|
345
|
+
default: { $ref: '#/components/responses/Error' }
|
|
346
|
+
/api/cloud/projects/:
|
|
347
|
+
get:
|
|
348
|
+
operationId: listProjects
|
|
349
|
+
security: [{ bearerAuth: [] }]
|
|
350
|
+
responses:
|
|
351
|
+
'200':
|
|
352
|
+
content:
|
|
353
|
+
application/json:
|
|
354
|
+
schema: { $ref: '#/components/schemas/ProjectList' }
|
|
355
|
+
default: { $ref: '#/components/responses/Error' }
|
|
356
|
+
post:
|
|
357
|
+
operationId: createProject
|
|
358
|
+
security: [{ bearerAuth: [] }]
|
|
359
|
+
requestBody:
|
|
360
|
+
required: true
|
|
361
|
+
content:
|
|
362
|
+
application/json:
|
|
363
|
+
schema: { $ref: '#/components/schemas/NewProject' }
|
|
364
|
+
responses:
|
|
365
|
+
'200':
|
|
366
|
+
content:
|
|
367
|
+
application/json:
|
|
368
|
+
schema: { $ref: '#/components/schemas/CreatedProject' }
|
|
369
|
+
default: { $ref: '#/components/responses/Error' }
|
|
370
|
+
/api/cloud/projects/{projectId}:
|
|
371
|
+
get:
|
|
372
|
+
operationId: readProject
|
|
373
|
+
security: [{ bearerAuth: [] }]
|
|
374
|
+
parameters:
|
|
375
|
+
- in: path
|
|
376
|
+
name: projectId
|
|
377
|
+
required: true
|
|
378
|
+
schema: { type: string }
|
|
379
|
+
responses:
|
|
380
|
+
'200':
|
|
381
|
+
content:
|
|
382
|
+
application/json:
|
|
383
|
+
schema: { $ref: '#/components/schemas/Project' }
|
|
384
|
+
default: { $ref: '#/components/responses/Error' }
|
|
385
|
+
/api/cloud/projects/{projectId}/repository: { $ref: 'environments.yaml#/paths/repository' }
|
|
386
|
+
/api/cloud/projects/{projectId}/environments: { $ref: 'environments.yaml#/paths/environments' }
|
|
387
|
+
/api/cloud/projects/{projectId}/environments/{environmentId}: { $ref: 'environments.yaml#/paths/environment' }
|
|
388
|
+
/api/cloud/projects/{projectId}/environments/{environmentId}/deletion: { $ref: 'environments.yaml#/paths/deletion' }
|
|
389
|
+
/api/cloud/projects/{projectId}/environments/{environmentId}/promotion: { $ref: 'environments.yaml#/paths/promotion' }
|
|
390
|
+
/api/cloud/projects/{projectId}/environments/{environmentId}/health: { $ref: 'environments.yaml#/paths/health' }
|
|
391
|
+
/api/cloud/projects/{projectId}/environments/{environmentId}/services:
|
|
392
|
+
post:
|
|
393
|
+
operationId: createService
|
|
394
|
+
security: [{ bearerAuth: [] }]
|
|
395
|
+
parameters:
|
|
396
|
+
- in: path
|
|
397
|
+
name: projectId
|
|
398
|
+
required: true
|
|
399
|
+
schema: { type: string }
|
|
400
|
+
- in: path
|
|
401
|
+
name: environmentId
|
|
402
|
+
required: true
|
|
403
|
+
schema: { type: string }
|
|
404
|
+
requestBody:
|
|
405
|
+
required: true
|
|
406
|
+
content:
|
|
407
|
+
application/json:
|
|
408
|
+
schema: { $ref: '#/components/schemas/NewUploadService' }
|
|
409
|
+
responses:
|
|
410
|
+
'200':
|
|
411
|
+
content:
|
|
412
|
+
application/json:
|
|
413
|
+
schema: { $ref: '#/components/schemas/CreatedService' }
|
|
414
|
+
default: { $ref: '#/components/responses/Error' }
|
|
415
|
+
/api/cloud/projects/{projectId}/environments/{environmentId}/variables:
|
|
416
|
+
$ref: './variables.parts.yaml#/listPath'
|
|
417
|
+
/api/cloud/projects/{projectId}/environments/{environmentId}/services/{serviceId}/variables/{key}:
|
|
418
|
+
$ref: './variables.parts.yaml#/itemPath'
|
|
419
|
+
/api/cloud/projects/{projectId}/environments/{environmentId}/resources:
|
|
420
|
+
$ref: 'resources.openapi.yaml#/paths/~1api~1cloud~1projects~1{projectId}~1environments~1{environmentId}~1resources'
|
|
421
|
+
/api/cloud/projects/{projectId}/environments/{environmentId}/resource-plan:
|
|
422
|
+
$ref: 'resources.openapi.yaml#/paths/~1api~1cloud~1projects~1{projectId}~1environments~1{environmentId}~1resource-plan'
|
|
423
|
+
/api/cloud/projects/{projectId}/environments/{environmentId}/resource-plan/apply:
|
|
424
|
+
$ref: 'resources.openapi.yaml#/paths/~1api~1cloud~1projects~1{projectId}~1environments~1{environmentId}~1resource-plan~1apply'
|
|
425
|
+
/api/cloud/services/{serviceId}/settings:
|
|
426
|
+
get:
|
|
427
|
+
operationId: readServiceSettings
|
|
428
|
+
security: [{ bearerAuth: [] }]
|
|
429
|
+
parameters:
|
|
430
|
+
- in: path
|
|
431
|
+
name: serviceId
|
|
432
|
+
required: true
|
|
433
|
+
schema: { type: string }
|
|
434
|
+
responses:
|
|
435
|
+
'200':
|
|
436
|
+
content:
|
|
437
|
+
application/json:
|
|
438
|
+
schema: { $ref: '#/components/schemas/ServiceSettings' }
|
|
439
|
+
default: { $ref: '#/components/responses/Error' }
|
|
440
|
+
/api/cloud/services/{serviceId}/source-deployments:
|
|
441
|
+
post:
|
|
442
|
+
operationId: deploySource
|
|
443
|
+
security: [{ bearerAuth: [] }]
|
|
444
|
+
parameters:
|
|
445
|
+
- in: path
|
|
446
|
+
name: serviceId
|
|
447
|
+
required: true
|
|
448
|
+
schema: { type: string }
|
|
449
|
+
requestBody:
|
|
450
|
+
required: true
|
|
451
|
+
content:
|
|
452
|
+
multipart/form-data:
|
|
453
|
+
schema:
|
|
454
|
+
type: object
|
|
455
|
+
additionalProperties: false
|
|
456
|
+
required: [source]
|
|
457
|
+
properties:
|
|
458
|
+
source:
|
|
459
|
+
type: string
|
|
460
|
+
format: binary
|
|
461
|
+
description: Non-empty source tar archive (.tar) of at most 95 MiB, the upload_bytes ceiling no plan raises. The Cloudflare edge refuses a request body above 100 MB with its own 413 page before the API sees it. No other parts are accepted. Tenant upload quotas also apply.
|
|
462
|
+
encoding:
|
|
463
|
+
source:
|
|
464
|
+
contentType: application/x-tar
|
|
465
|
+
responses:
|
|
466
|
+
'202':
|
|
467
|
+
content:
|
|
468
|
+
application/json:
|
|
469
|
+
schema: { $ref: '#/components/schemas/DeploymentReceipt' }
|
|
470
|
+
default: { $ref: '#/components/responses/Error' }
|
|
471
|
+
/api/cloud/services/{serviceId}/deployments:
|
|
472
|
+
get:
|
|
473
|
+
operationId: deploymentHistory
|
|
474
|
+
security: [{ bearerAuth: [] }]
|
|
475
|
+
parameters:
|
|
476
|
+
- in: path
|
|
477
|
+
name: serviceId
|
|
478
|
+
required: true
|
|
479
|
+
schema: { type: string }
|
|
480
|
+
responses:
|
|
481
|
+
'200':
|
|
482
|
+
content:
|
|
483
|
+
application/json:
|
|
484
|
+
schema: { $ref: '#/components/schemas/DeploymentHistory' }
|
|
485
|
+
default: { $ref: '#/components/responses/Error' }
|
|
486
|
+
/api/cloud/services/{serviceId}/deployments/{revisionId}/rollback:
|
|
487
|
+
post:
|
|
488
|
+
operationId: rollbackDeployment
|
|
489
|
+
security: [{ bearerAuth: [] }]
|
|
490
|
+
parameters:
|
|
491
|
+
- in: path
|
|
492
|
+
name: serviceId
|
|
493
|
+
required: true
|
|
494
|
+
schema: { type: string }
|
|
495
|
+
- in: path
|
|
496
|
+
name: revisionId
|
|
497
|
+
required: true
|
|
498
|
+
schema: { type: string }
|
|
499
|
+
responses:
|
|
500
|
+
'200':
|
|
501
|
+
content:
|
|
502
|
+
application/json:
|
|
503
|
+
schema:
|
|
504
|
+
type: object
|
|
505
|
+
additionalProperties: true
|
|
506
|
+
default: { $ref: '#/components/responses/Error' }
|
|
507
|
+
/api/cloud/services/{serviceId}/logs:
|
|
508
|
+
get:
|
|
509
|
+
operationId: streamServiceLogs
|
|
510
|
+
security: [{ bearerAuth: [] }]
|
|
511
|
+
parameters:
|
|
512
|
+
- in: path
|
|
513
|
+
name: serviceId
|
|
514
|
+
required: true
|
|
515
|
+
schema: { type: string }
|
|
516
|
+
- in: query
|
|
517
|
+
name: follow
|
|
518
|
+
schema: { type: boolean }
|
|
519
|
+
responses:
|
|
520
|
+
'200':
|
|
521
|
+
description: Server-sent log events
|
|
522
|
+
content:
|
|
523
|
+
text/event-stream:
|
|
524
|
+
schema: { type: string }
|
|
525
|
+
default: { $ref: '#/components/responses/Error' }
|
|
526
|
+
/api/cloud/deployments/{deploymentId}:
|
|
527
|
+
get:
|
|
528
|
+
operationId: readDeployment
|
|
529
|
+
security: [{ bearerAuth: [] }]
|
|
530
|
+
parameters:
|
|
531
|
+
- in: path
|
|
532
|
+
name: deploymentId
|
|
533
|
+
required: true
|
|
534
|
+
schema: { type: string }
|
|
535
|
+
responses:
|
|
536
|
+
'200':
|
|
537
|
+
content:
|
|
538
|
+
application/json:
|
|
539
|
+
schema: { $ref: '#/components/schemas/DeploymentDetail' }
|
|
540
|
+
default: { $ref: '#/components/responses/Error' }
|
|
541
|
+
/api/cloud/deployments/{deploymentId}/progress:
|
|
542
|
+
get:
|
|
543
|
+
operationId: streamDeploymentProgress
|
|
544
|
+
security: [{ bearerAuth: [] }]
|
|
545
|
+
parameters:
|
|
546
|
+
- in: path
|
|
547
|
+
name: deploymentId
|
|
548
|
+
required: true
|
|
549
|
+
schema: { type: string }
|
|
550
|
+
responses:
|
|
551
|
+
'200':
|
|
552
|
+
description: Server-sent deployment progress events
|
|
553
|
+
content:
|
|
554
|
+
text/event-stream:
|
|
555
|
+
schema: { type: string }
|
|
556
|
+
default: { $ref: '#/components/responses/Error' }
|