-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedgegap-v2-openapi.yaml
More file actions
696 lines (696 loc) · 24.3 KB
/
edgegap-v2-openapi.yaml
File metadata and controls
696 lines (696 loc) · 24.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
openapi: 3.0.1
info:
title: Edgegap v2 API
description: 'Maintained by [Edgegap Technologies](https://edgegap.com/)'
version: 2026.03.16
tags: []
paths:
/deployments:
post:
summary: '[v2] Deploy'
deprecated: false
description: >-
<strong>[Rate Limit: 40/seconds]</strong> Initiate a new deployment. A
deployment is a containerized server instance of an application version
running on the Edgegap platform.
operationId: deployment-create
tags: []
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/DeploymentCreate'
examples: {}
responses:
'202':
description: Deployment Request Accepted
content:
application/json:
schema:
title: ''
type: object
properties:
request_id:
type: string
description: Request ID. Unique identifier of the deployment request
example: a69f8e3e0555
required:
- request_id
headers: {}
'400':
description: Client Side Request Error
content:
application/json:
schema:
title: ''
type: object
properties:
message:
type: string
description: Error message
example: Error message
details:
type: object
description: Additional error details
properties: {}
required:
- message
headers: {}
'401':
description: Unauthorized - Missing Token
content:
application/json:
schema:
title: ''
type: object
properties:
message:
type: string
description: Error message
example: Error message
details:
type: object
description: Additional error details
properties: {}
required:
- message
headers: {}
'422':
description: Couldn't Allocate Server
content:
application/json:
schema:
title: ''
type: object
properties:
request_id:
type: string
description: Request ID. Unique identifier of the deployment request
example: a69f8e3e0555
message:
type: string
description: Error message
example: Error message
required:
- request_id
- message
headers: {}
'500':
description: Internal Server Error
content:
application/json:
schema:
title: ''
type: object
properties:
message:
type: string
description: Error message
example: Error message
details:
type: object
description: Additional error details
properties: {}
required:
- message
headers: {}
security:
- api-token: []
/private-fleets/{fleet-name}/hosts:
get:
summary: List Private Fleet Hosts
deprecated: false
description: >-
<strong>[Rate Limit: 10/seconds]</strong> List all hosts in a private
fleet.
operationId: private-fleet-hosts-list
tags: []
parameters:
- name: fleet-name
in: path
description: Name of your private fleet.
required: true
schema:
type: string
example: test-fleet
responses:
'200':
description: ''
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
host_id:
type: string
description: >-
Unique private fleet host identifier, used to deploy
on this host.
example: alpha-north-america-95fab093
status:
type: string
description: >-
Lifecycle stage of the host, only ACTIVE hosts
accept deployments.
enum:
- PENDING
- ACTIVE
example: ACTIVE
ip_address:
type: string
description: Public IP address of the host.
nullable: true
example: 192.53.120.48
latitude:
type: number
description: Approximate geographic latitude of the host.
nullable: true
example: 43.6173
longitude:
type: number
description: Approximate geographic longitude of the host.
nullable: true
example: -79.3186
city:
type: string
description: City in which the host is located.
nullable: true
example: Toronto
country:
type: string
description: Country in which the host is located.
nullable: true
example: Canada
continent:
type: string
description: Continent in which the host is located.
nullable: true
example: North America
allocated_cpu_units:
type: integer
description: >-
Total virtual CPU units currently in use for
deployments, beacons, and orchestration.
nullable: true
example: 1152
allocated_memory_mb:
type: integer
description: >-
Total memory in MB currently in use for deployments,
beacons, and orchestration.
example: 2176
allocatable_cpu_units:
type: integer
description: Total available virtual CPU units for deployments.
nullable: true
example: 12928
allocatable_memory_mb:
type: integer
description: Total available memory in MB for deployments.
nullable: true
example: 25178
beacon:
type: object
properties:
tcp_port:
type: integer
description: >-
External beacon TCP port used to perform TCP
ping.
example: 30974
udp_port:
type: integer
description: >-
External beacon UDP port used to perform UDP
ping.
example: 31843
ip_address:
type: string
description: >-
Public IP address used to perform ping
measurement.
example: 192.53.120.48
required:
- tcp_port
- udp_port
- ip_address
description: >-
Assigned beacon information, if enabled for this
fleet.
nullable: true
created_at:
type: string
description: Timestamp of creation in UTC, ISO 8601 format.
example: '2025-11-26T16:32:30.825138Z'
updated_at:
type: string
description: Timestamp of last update in UTC, ISO 8601 format.
example: '2025-11-26T16:32:30.825144Z'
centroid:
type: object
properties:
label:
type: string
description: Human readable label.
example: Alpha
latitude:
type: number
description: Approximate geographic latitude of the centroid.
example: 43.98884323260136
longitude:
type: number
description: >-
Approximate geographic longitude of the
centroid.
example: -78.67419552556069
radius_km:
type: number
description: >-
Approximate geographic radius used to pick
primary and fallback locations.
desired_host_count:
type: integer
description: >-
Requested amount of hosts to be started under
this centroid.
example: 1
required:
- label
- latitude
- longitude
- radius_km
- desired_host_count
description: >-
Centroid information used to orchestrate placement
of the host.
delete_schedule:
type: object
properties:
uuid:
type: string
description: Unique identifier of deletion schedule.
example: 10287c9b-a6e2-4909-84c8-59daf74895b5
scheduled_at:
type: string
description: >-
Timestamp of scheduled deletion in UTC, ISO 8601
format.
example: '2025-11-30T23:59:00Z'
description: If defined, specified when the host will be deleted.
required:
- uuid
- scheduled_at
nullable: true
fleet_host_specifications:
type: object
properties:
cpu_units:
type: integer
description: >-
Host specification vCPU units selected during
fleet creation.
example: 16384
memory_mb:
type: integer
description: >-
Host specification memory MB selected during
fleet creation.
example: 32768
base_clock_speed_mhz:
type: integer
description: >-
Host specification base CPU clock frequency
selected during fleet creation.
example: 2000
required:
- cpu_units
- memory_mb
- base_clock_speed_mhz
description: List of private fleet hosts.
required:
- host_id
- status
- allocated_cpu_units
- allocated_memory_mb
- created_at
- updated_at
- centroid
- fleet_host_specifications
required:
- data
headers: {}
'400':
description: ''
content:
application/json:
schema:
title: ''
type: object
properties:
message:
type: string
description: Error message
example: Error message
details:
type: object
description: Additional error details
properties: {}
required:
- message
headers: {}
'401':
description: ''
content:
application/json:
schema:
title: ''
type: object
properties:
message:
type: string
description: Error message
example: Error message
details:
type: object
description: Additional error details
properties: {}
required:
- message
headers: {}
'500':
description: ''
content:
application/json:
schema:
title: ''
type: object
properties:
message:
type: string
description: Error message
example: Error message
details:
type: object
description: Additional error details
properties: {}
required:
- message
headers: {}
security:
- api-token: []
/private-fleets/deployments:
post:
summary: Deploy to Fleet
deprecated: false
description: >-
<strong>[Rate Limit: 40/seconds]</strong> Initiate a new private fleet
deployment. A deployment is a containerized server instance of an
application version running on the Edgegap platform.
operationId: private-fleets-deployment-create
tags: []
parameters: []
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PrivateFleetDeploymentCreate'
examples: {}
responses:
'202':
description: ''
content:
application/json:
schema:
title: ''
type: object
properties:
request_id:
type: string
description: Request ID. Unique identifier of the deployment request
example: a69f8e3e0555
required:
- request_id
headers: {}
'400':
description: >-
Invalid Application or Application Version. No deployment has been
created
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers: {}
'401':
description: Unauthorized. No deployment has been created.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers: {}
'422':
description: >-
Could not allocate an Edge Server for the deployment. A deployment
has been created. Deployment is in error state. You can delete it
manually or it will be deleted automatically by our system after
some some times
content:
application/json:
schema:
$ref: '#/components/schemas/ParameterError422'
headers: {}
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
headers: {}
security:
- api-token: []
components:
schemas:
DeploymentResponse:
required:
- request_id
properties:
request_id:
type: string
description: Request ID. Unique identifier of the deployment request
example: a69f8e3e0555
type: object
ParameterError422:
required:
- message
- request_id
properties:
request_id:
type: string
description: Request ID. Unique identifier of the deployment request
example: a69f8e3e0555
message:
type: string
description: Error message
example: Error message
type: object
Error:
required:
- message
properties:
message:
type: string
description: Error message
example: Error message
details:
type: object
description: Additional error details
properties: {}
type: object
PrivateFleetDeploymentCreate:
type: object
properties:
application:
type: string
description: Name of the application that will be deployed
example: my-app
version:
type: string
description: Name of the version within the application that will be deployed
example: 25.05.30-16.45.19-04
require_cached_locations:
type: boolean
default: false
description: Deploy faster by limiting placement to locations with cached image.
nullable: true
private_host_ids:
type: array
items:
type: string
example: alpha-north-america-95fab093
description: >-
Preferred and prioritized Private Host IDs to try before overflowing
to cloud.
minItems: 1
uniqueItems: true
users:
type: array
description: >-
List of users. These users will be used to select the locations for
the deployment
minItems: 1
items:
$ref: '#/components/schemas/User'
example:
- user_type: ip_address
user_data:
ip_address: 75.28.35.192
- user_type: geo_coordinates
user_data:
latitude: 45.508888
longitude: -73.561668
environment_variables:
type: array
description: List of environment variables to inject into the deployment
items:
$ref: '#/components/schemas/DeploymentEnvironmentVariable'
tags:
type: array
description: List of tags to associate with the deployment
items:
type: string
example: my-custom-tag
webhook_on_ready:
description: Webhook to call when the deployment is ready
allOf:
- $ref: '#/components/schemas/BasicWebhook'
webhook_on_error:
description: Webhook to call when the deployment is in error
allOf:
- $ref: '#/components/schemas/BasicWebhook'
webhook_on_terminated:
description: Webhook to call when the deployment is terminated
allOf:
- $ref: '#/components/schemas/BasicWebhook'
required:
- application
- users
- version
- private_host_ids
DeploymentCreate:
required:
- application
- users
- version
properties:
application:
type: string
description: Name of the application that will be deployed
example: my-app
version:
type: string
description: Name of the version within the application that will be deployed
example: 25.05.30-16.45.19-04
require_cached_locations:
type: boolean
default: false
description: Deploy faster by limiting placement to locations with cached image.
nullable: true
users:
type: array
description: >-
List of users. These users will be used to select the locations for
the deployment
minItems: 1
items:
$ref: '#/components/schemas/User'
example:
- user_type: ip_address
user_data:
ip_address: 75.28.35.192
- user_type: geo_coordinates
user_data:
latitude: 45.508888
longitude: -73.561668
environment_variables:
type: array
description: List of environment variables to inject into the deployment
items:
$ref: '#/components/schemas/DeploymentEnvironmentVariable'
tags:
type: array
description: List of tags to associate with the deployment
items:
type: string
example: my-custom-tag
webhook_on_ready:
description: Webhook to call when the deployment is ready
allOf:
- $ref: '#/components/schemas/BasicWebhook'
webhook_on_error:
description: Webhook to call when the deployment is in error
allOf:
- $ref: '#/components/schemas/BasicWebhook'
webhook_on_terminated:
description: Webhook to call when the deployment is terminated
allOf:
- $ref: '#/components/schemas/BasicWebhook'
type: object
User:
required:
- user_data
- user_type
properties:
user_type:
type: string
description: Type of user (e.g., ip_address or geo_coordinates)
user_data:
type: object
description: Dynamic user data depending on user_type
properties: {}
example:
ip_address: 75.28.35.192
type: object
DeploymentEnvironmentVariable:
required:
- is_hidden
- key
- value
properties:
key:
type: string
description: Environment variable key
example: MY_ENVIRONMENT_VARIABLE
value:
type: string
description: Environment variable value
example: my-value
is_hidden:
type: boolean
description: An hidden environment variable is not shown in the UI
example: false
type: object
BasicWebhook:
required:
- url
properties:
url:
type: string
description: Webhook URL
example: https://my-webhook.com
type: object
responses: {}
securitySchemes:
api-token:
type: apiKey
in: header
name: Authorization
servers:
- url: https://api.edgegap.com/v2
description: Edgegap V2
security:
- api-token: []