-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi.yml
More file actions
814 lines (721 loc) · 29.2 KB
/
api.yml
File metadata and controls
814 lines (721 loc) · 29.2 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
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
openapi: 3.1.0
servers:
- description: Cycle Platform API
url: https://api.cycle.io
info:
license:
name: Apache-2.0
url: http://www.apache.org/licenses/LICENSE-2.0
x-logo:
url: https://static.cycle.io/icons/logo/logo-white.svg
description: |
The Cycle Platform API is a [REST-based](http://en.wikipedia.org/wiki/Representational_state_transfer), resource-oriented API
designed to be easy to use and understand. Using this API, you are able to fully interact with the Cycle Platform.
All API responses return JSON, including errors. There is also support for cross-origin resource sharing, so this API can be used
in a client-side web application as well.
## Auth Basics
Every API request much have an accompanying API key in the Authorization header. For more information on generating an API key head over to the [Portal Docs](https://cycle.io/docs/portal/managing-an-api-key-and-settings#creating-an-api-key).
Your API key should never be made publicly available, published to a public repository, or used on a client side
web app. If you would like to use the API from a web app, you should create a thin-client service that acts as a passthrough for
your API requests.
## The Root Document
Every response follows the same structure, known as the root document. The main data structure, known as a
resource, is nested under a data field. If you request a collection of resources, the
data field will be an array of those resources. If you request a single resource, the data field will be
equal to that resource.
If there is an error, the error field will be present, and the data field will be present and null.
The root resource. If fetching a collection, this will be an array of resource objects.
Includes fields - the key will be the name of the included item passed. All values of include fields
will be a full resource structure. (i.e. including environments will embed full environment objects by ID)
Meta Fields - the key will be equal to the name of the meta field provided. Values of meta
fields will vary based on the resource. These values are injected into the data object(s).
## Scope
In order to fetch resources that are part of a hub (containers, environments, etc.), you will need to pass an
X-Hub-ID header. When fetching collections of resources, this will limit the response to contain only resources from
the specified hub. Most requests require this header.
## Queries
When trying to gather more complete or specific data you can use query parameters to supplement the normal return (metas,
includes) and you can also add specificity to the format and the order (sort, filter). It's worth understanding that
sort & filter should only be used on collections.
**Sort** - An array of sort values. To sort descending, put a `-`n front of the value, i.e. `-id`.
**Include** - An array of include values. Included resources will show up under the root document's `include` field, with the key being the id
of the included resource. In the case of applying an include to a collection of resources, if two resources share the same
include, it will only appear once in the return.
**Meta** - An array of meta values. Meta values will show up under a resource's `meta` field. In the case of applying a meta to a
collection of resources, each resource will have it's own relevant meta data. In some rare cases, meta may not apply to
individual resources, and may appear in the root document. These will be clearly labeled.
**Filter** - The filter field is a key-value object, where the key is what you would like to filter, and the value is the value you're filtering for.
version: 1.0.0
title: Cycle Platform API
contact:
email: support@cycle.io
x-tagGroups:
- name: Accounts
tags:
- Accounts
- Memberships
- Two-Factor Auth
- name: Billing
tags:
- Credits
- Invoices
- Methods
- Orders
- Plans
- Services
- name: Containers
tags:
- Containers
- Instances
- Backups
- name: DNS
tags:
- Zones
- Records
- TLS
- name: Environments
tags:
- Environments
- Deployments
- Scoped Variables
- Services/Discovery
- Services/Gateway
- Services/Load Balancer
- Services/Scheduler
- Services/VPN
- name: Hubs
tags:
- Hubs
- API Keys
- Integrations
- Members
- Hub Notifications
- Roles
- name: Images
tags:
- Images
- Image Sources
- name: Infrastructure
tags:
- Infrastructure
- External Volumes
- Auto-Scale Groups
- Clusters
- Providers
- Virtual Providers
- Servers
- SANs
- IPs
- name: Jobs
tags:
- Jobs
- name: Monitoring
tags:
- Monitoring
- name: Pipelines
tags:
- Pipelines
- Trigger Keys
- name: SDN
tags:
- Networks
- name: Search
tags:
- Search
- name: Stacks
tags:
- Stacks
- Stack Builds
- name: Virtual Machines
tags:
- Virtual Machines
- name: Utility
tags:
- Utility
tags:
- name: Accounts
description: Endpoints related to managing your account on Cycle.
- name: Memberships
description: Endpoints related to account hub memberships, such as sending invitations to hubs or listing the hubs your account is a member of.
- name: Two-Factor Auth
description: Endpoints related to setting up two-factor authorization on a Cycle account.
- name: Announcements
description: Endpoints for reading announcements posted by the Cycle team.
# Billing
- name: Credits
description: Endpoints related to credits applied to a hub.
- name: Invoices
description: Endpoints related to hub invoices, including the ability to pay an invoice.
- name: Methods
description: Endpoints related to managing payment methods associated with a hubs.
- name: Orders
description: Endpoints related to orders placed on a hub.
- name: Plans
description: Endpoints for fetching the available billing plans for a hub.
- name: Services
description: Endpoints related to the active services used by a hub.
# Containers
- name: Containers
description: Endpoints related to managing containers, such as starting/stopping/reconfiguring and telemetry.
- name: Instances
description: Endpoints related to managing a container's instances, including connecting to the console and credentials for SSH.
- name: Backups
description: Endpoints related to managing container backups.
# DNS
- name: Zones
description: Endpoints related to DNS zones.
- name: Records
description: Endpoints related to managing DNS zone records.
- name: TLS
description: Endpoints related to TLS certificate generation.
# Environments
- name: Environments
description: Endpoints related to managing an environment.
- name: Deployments
description: Endpoints related to environment deployments.
- name: Scoped Variables
description: Endpoints related to managing an environment's scoped variables.
- name: Services/Discovery
description: Endpoints related to managing an environment's gateway service.
- name: Services/Gateway
description: Endpoints related to managing an environment's discovery service.
- name: Services/Load Balancer
description: Endpoints related to managing an environment's load balancer service.
- name: Services/Scheduler
description: Endpoints related to managing an envrionment's scheduler service.
- name: Services/VPN
description: Endpoints related to managing an environment's VPN service.
# Hubs
- name: Hubs
description: Endpoints related to managing hubs on Cycle.
- name: API Keys
description: Endpoints related to managing a hub's API keys.
- name: Integrations
description: Endpoints related to managing a hub's integrations.
- name: Hub Members
x-displayName: Members
description: Endpoints related to managing members of the current hub.
- name: Hub Notifications
x-displayName: Notifications
description: Endpoints related to receiving hub notifications.
- name: Roles
description: Endpoints related to managing a hub's role based access controls.
- name: Images
description: Endpoints related to managing container images.
- name: Image Sources
description: Endpoints related to managing image sources.
- name: Infrastructure
description: Endpoints related to managing physical/virtual infrastructure on Cycle.
- name: Auto-Scale Groups
description: Endpoints for managing groups of infrastructure that can be used for auto-scaling.
- name: Clusters
description: Endpoints related to managing infrastructure clusters.
- name: Providers
description: Endpoints related to providers configured for a hub.
- name: Virtual Providers
description: Endpoints related to virtual provider configurations.
- name: Servers
description: Endpoints related to managing servers on Cycle.
- name: SANs
description: Endpoints for managing SANs.
- name: IPs
description: Endpoints for managing IP allocations.
- name: Jobs
description: Endpoints related to managing long-running tasks, known as jobs, on Cycle.
- name: Monitoring
description: Endpoints related to gathered metrics for building dashboards, charts, and graphs.
- name: Pipelines
description: Endpoints related to pipelines, used for integrating with CI/CD solutions and automating deployments or other tasks.
- name: Trigger Keys
description: Endpoints for managing the trigger keys used to kick off a pipeline run.
- name: Networks
description: Endpoints for managing software-defined networks, for linking multiple environments together.
- name: Search
description: Endpoints related to search functionality on a hub.
- name: Stacks
description: Endpoints for managing Cycle stacks.
- name: Stack Builds
description: Endpoints for managing builds of a Cycle stack, including deploying a stack build to an environment.
- name: Virtual Machines
description: Endpoints for managing virtual machines.
- name: Utility
description: Extra utility endpoints that aren't related to a specific resource.
security:
- bearerAuth: []
hubAuth: []
paths:
# --Accounts
"/v1/account":
$ref: "./paths/accounts/account.yml"
"/v1/account/logins":
$ref: "./paths/accounts/logins.yml"
"/v1/account/password":
$ref: "./paths/accounts/update-password.yml"
"/v1/account/reset-password":
$ref: "./paths/accounts/reset-password.yml"
## Memberships
"/v1/account/invites":
$ref: "./paths/accounts/memberships/invites.yml"
"/v1/account/invites/{inviteId}":
$ref: "./paths/accounts/memberships/invite.yml"
"/v1/account/memberships":
$ref: "./paths/accounts/memberships/memberships.yml"
## Two-Factor Auth
"/v1/account/2fa/setup":
$ref: "./paths/accounts/twofactor/setup.yml"
"/v1/account/2fa/disable":
$ref: "./paths/accounts/twofactor/disable.yml"
"/v1/account/2fa/recover":
$ref: "./paths/accounts/twofactor/recover.yml"
# --Announcements
"/v1/announcements":
$ref: "./paths/announcements/announcements.yml"
# --Billing
"/v1/billing/status":
$ref: "./paths/billing/status.yml"
## Credits
"/v1/billing/credits":
$ref: "./paths/billing/credits/credits.yml"
"/v1/billing/credits/{creditsId}":
$ref: "./paths/billing/credits/credit.yml"
# Changelog
"/v1/changelog":
$ref: ./paths/changelog/changelog.yml
## Invoices
"/v1/billing/invoices":
$ref: "./paths/billing/invoices/invoices.yml"
"/v1/billing/invoices/{invoiceId}":
$ref: "./paths/billing/invoices/invoice.yml"
"/v1/billing/invoices/{invoiceId}/tasks":
$ref: "./paths/billing/invoices/tasks.yml"
## Methods
"/v1/billing/methods":
$ref: "./paths/billing/methods/methods.yml"
"/v1/billing/methods/{methodId}":
$ref: "./paths/billing/methods/method.yml"
"/v1/billing/methods/{methodId}/tasks":
$ref: "./paths/billing/methods/tasks.yml"
## Orders
"/v1/billing/orders":
$ref: "./paths/billing/orders/orders.yml"
"/v1/billing/orders/{orderId}":
$ref: "./paths/billing/orders/order.yml"
"/v1/billing/orders/{orderId}/tasks":
$ref: "./paths/billing/orders/tasks.yml"
## Plans
"/v1/billing/plans/support":
$ref: "./paths/billing/plans/support.yml"
"/v1/billing/plans/tiers":
$ref: "./paths/billing/plans/tiers.yml"
## Services
"/v1/billing/services":
$ref: "./paths/billing/services/services.yml"
"/v1/billing/services/{servicesId}":
$ref: "./paths/billing/services/service.yml"
"/v1/billing/services/overages":
$ref: "./paths/billing/services/overages.yml"
# -- Containers
"/v1/containers":
$ref: "./paths/containers/containers.yml"
"/v1/containers/{containerId}":
$ref: "./paths/containers/container.yml"
"/v1/containers/{containerId}/summary":
$ref: "./paths/containers/summary.yml"
"/v1/containers/{containerId}/tasks":
$ref: "./paths/containers/tasks.yml"
"/v1/containers/{containerId}/servers":
$ref: "./paths/containers/servers.yml"
"/v1/containers/{containerId}/servers/usable":
$ref: paths/containers/compatibleServers.yml
"/v1/containers/{containerId}/compatible-images":
$ref: "./paths/containers/compatibleImages.yml"
## -- Instances
"/v1/containers/{containerId}/instances":
$ref: "./paths/containers/instances/instances.yml"
"/v1/containers/{containerId}/instances/{instanceId}":
$ref: "./paths/containers/instances/instance.yml"
"/v1/containers/{containerId}/instances/{instanceId}/ssh":
$ref: "./paths/containers/instances/ssh.yml"
"/v1/containers/{containerId}/instances/{instanceId}/tasks":
$ref: "./paths/containers/instances/tasks.yml"
"/v1/containers/{containerId}/instances/{instanceId}/volumes":
$ref: "./paths/containers/instances/volumes.yml"
"/v1/containers/{containerId}/instances/{instanceId}/telemetry/resources/report":
$ref: paths/containers/instances/telemetry/report.yml
"/v1/containers/{containerId}/instances/{instanceId}/telemetry/resources/stream":
$ref: paths/containers/instances/telemetry/stream.yml
"/v1/containers/{containerId}/instances/{instanceId}/console":
$ref: "paths/containers/instances/console.yml"
"/v1/containers/{containerId}/functions/tasks":
$ref: paths/containers/functions/tasks.yml
## Backups
"/v1/containers/{containerId}/backups":
$ref: "./paths/containers/backups/backups.yml"
"/v1/containers/{containerId}/backups/{backupId}":
$ref: "./paths/containers/backups/backup.yml"
"/v1/containers/{containerId}/backups/{backupId}/tasks":
$ref: "./paths/containers/backups/tasks.yml"
"/v1/containers/{containerId}/backups/{backupId}/logs":
$ref: "./paths/containers/backups/backupLogs.yml"
# --DNS
## Zones
"/v1/dns/zones":
$ref: "./paths/dns/zones.yml"
"/v1/dns/zones/{zoneId}":
$ref: "./paths/dns/zone.yml"
"/v1/dns/zones/{zoneId}/access":
$ref: "./paths/dns/access.yml"
"/v1/dns/zones/{zoneId}/tasks":
$ref: "./paths/dns/tasks.yml"
## Records
"/v1/dns/zones/{zoneId}/records":
$ref: "./paths/dns/records/records.yml"
"/v1/dns/zones/{zoneId}/records/{recordId}":
$ref: "./paths/dns/records/record.yml"
"/v1/dns/zones/{zoneId}/records/{recordId}/tasks":
$ref: "./paths/dns/records/tasks.yml"
## TLS
"/v1/dns/tls/attempts":
$ref: "./paths/dns/tls/attempts.yml"
"/v1/dns/tls/certificates":
$ref: "./paths/dns/tls/certificates.yml"
"/v1/dns/tls/certificates/lookup":
$ref: "./paths/dns/tls/lookup.yml"
"/v1/dns/tls/certificates/user-supplied":
$ref: "./paths/dns/tls/user-supplied/certificates.yml"
"/v1/dns/tls/certificates/user-supplied/{certificateId}":
$ref: "./paths/dns/tls/user-supplied/certificate.yml"
"/v1/dns/tls/certificates/user-supplied/{certificateId}/tasks":
$ref: "./paths/dns/tls/user-supplied/tasks.yml"
# --Environments
"/v1/environments":
$ref: "./paths/environments/environments.yml"
"/v1/environments/{environmentId}":
$ref: "./paths/environments/environment.yml"
"/v1/environments/{environmentId}/access":
$ref: "./paths/environments/access.yml"
"/v1/environments/{environmentId}/tasks":
$ref: "./paths/environments/tasks.yml"
"/v1/environments/{environmentId}/summary":
$ref: "./paths/environments/summary.yml"
## Deployments
"/v1/environments/{environmentId}/deployments":
$ref: "./paths/environments/deployments.yml"
## Export
"/v1/environments/{environmentId}/export/stack":
$ref: "./paths/environments/exports/stack.yml"
## Scoped Variables
"/v1/environments/{environmentId}/scoped-variables":
$ref: "./paths/environments/scoped-variables.yml"
"/v1/environments/{environmentId}/scoped-variables/{scopedVariableId}":
$ref: "./paths/environments/scoped-variable.yml"
## Services/Discovery
"/v1/environments/{environmentId}/services/discovery/tasks":
$ref: "./paths/environments/services/discovery/tasks.yml"
## Services/Gateway
"/v1/environments/{environmentId}/services/gateway/tasks":
$ref: "./paths/environments/services/gateway/tasks.yml"
## Services/Load Balancer
"/v1/environments/{environmentId}/services/lb":
$ref: "./paths/environments/services/loadbalancer/loadbalancer.yml"
"/v1/environments/{environmentId}/services/lb/tasks":
$ref: "./paths/environments/services/loadbalancer/tasks.yml"
"/v1/environments/{environmentId}/services/lb/telemetry/report":
$ref: "./paths/environments/services/loadbalancer/telemetry/report.yml"
"/v1/environments/{environmentId}/services/lb/telemetry/latest":
$ref: "./paths/environments/services/loadbalancer/telemetry/latest.yml"
"/v1/environments/{environmentId}/services/lb/telemetry/latest-controllers":
$ref: "./paths/environments/services/loadbalancer/telemetry/controllers.yml"
## Services/Scheduler
"/v1/environments/{environmentId}/services/scheduler/tasks":
$ref: "./paths/environments/services/scheduler/tasks.yml"
## Services/VPN
"/v1/environments/{environmentId}/services/vpn":
$ref: paths/environments/services/vpn/vpn.yml
"/v1/environments/{environmentId}/services/vpn/logins":
$ref: "./paths/environments/services/vpn/vpnLogins.yml"
"/v1/environments/{environmentId}/services/vpn/users":
$ref: "./paths/environments/services/vpn/users.yml"
"/v1/environments/{environmentId}/services/vpn/users/{userId}":
$ref: "./paths/environments/services/vpn/deleteUser.yml"
"/v1/environments/{environmentId}/services/vpn/tasks":
$ref: "./paths/environments/services/vpn/tasks.yml"
# --Hubs
"/v1/hubs":
$ref: "./paths/hubs/hubs.yml"
"/v1/hubs/current":
$ref: "./paths/hubs/hub.yml"
"/v1/hubs/capabilities":
$ref: "./paths/hubs/capabilities.yml"
"/v1/hubs/current/usage":
$ref: "./paths/hubs/usage.yml"
"/v1/hubs/current/activity":
$ref: "./paths/hubs/activity.yml"
## API Keys
"/v1/hubs/current/api-keys":
$ref: "./paths/hubs/keys/keys.yml"
"/v1/hubs/current/api-keys/{apikeyId}":
$ref: "./paths/hubs/keys/key.yml"
## Integrations
"/v1/hubs/current/integrations/{integrationId}":
$ref: paths/hubs/integrations/integration.yml
"/v1/hubs/current/integrations":
$ref: paths/hubs/integrations/integrations.yml
"/v1/hubs/current/integrations/available":
$ref: paths/hubs/integrations/availableIntegrations.yml
"/v1/hubs/current/integrations/{integrationId}/tasks":
$ref: paths/hubs/integrations/tasks.yml
## Hub Members
"/v1/hubs/current/members":
$ref: "./paths/hubs/members/members.yml"
"/v1/hubs/current/membership":
$ref: "./paths/hubs/members/membership.yml"
"/v1/hubs/current/members/{memberId}":
$ref: "./paths/hubs/members/member.yml"
"/v1/hubs/current/members/account/{accountId}":
$ref: "./paths/hubs/members/account.yml"
"/v1/hubs/current/invites":
$ref: "./paths/hubs/invites/invites.yml"
"/v1/hubs/current/invites/{inviteId}":
$ref: "./paths/hubs/invites/invite.yml"
## Hub Notifications
"/v1/hubs/current/notifications":
$ref: paths/hubs/notifications/pipeline.yml
## Roles
"/v1/hubs/current/roles":
$ref: "./paths/hubs/roles/roles.yml"
"/v1/hubs/current/roles/{roleId}":
$ref: "./paths/hubs/roles/role.yml"
"/v1/hubs/current/roles/defaults":
$ref: "./paths/hubs/roles/defaults.yml"
# --Images
"/v1/images":
$ref: "./paths/images/images.yml"
"/v1/images/{imageId}":
$ref: "./paths/images/image.yml"
"/v1/images/{imageId}/build-log":
$ref: "./paths/images/buildLog.yml"
"/v1/images/tasks":
$ref: paths/images/rootTasks.yml
"/v1/images/{imageId}/tasks":
$ref: "./paths/images/tasks.yml"
## Image Sources
"/v1/images/sources":
$ref: "./paths/images/sources/sources.yml"
"/v1/images/sources/{sourceId}":
$ref: "./paths/images/sources/source.yml"
"/v1/images/sources/{sourceId}/access":
$ref: "./paths/images/sources/access.yml"
# --Infrastructure
"/v1/infrastructure/summary":
$ref: "./paths/infrastructure/summary.yml"
"/v1/infrastructure/deployment-strategies":
$ref: "./paths/infrastructure/deploymentStrategies.yml"
"/v1/infrastructure/monitoring-tiers":
$ref: "./paths/infrastructure/tiers.yml"
## External Volumes
"/v1/infrastructure/external-volumes":
$ref: "./paths/infrastructure/external-volumes/external-volumes.yml"
"/v1/infrastructure/external-volumes/tasks":
$ref: "./paths/infrastructure/external-volumes/rootTasks.yml"
"/v1/infrastructure/external-volumes/{externalVolumeId}":
$ref: "./paths/infrastructure/external-volumes/external-volume.yml"
"/v1/infrastructure/external-volumes/sources":
$ref: "./paths/infrastructure/external-volumes/sources.yml"
"/v1/infrastructure/external-volumes/{externalVolumeId}/access":
$ref: "./paths/infrastructure/external-volumes/access.yml"
"/v1/infrastructure/external-volumes/{externalVolumeId}/tasks":
$ref: "./paths/infrastructure/external-volumes/tasks.yml"
## Auto-Scale Groups
"/v1/infrastructure/auto-scale/groups":
$ref: "./paths/infrastructure/auto-scale/groups/groups.yml"
"/v1/infrastructure/auto-scale/groups/{groupId}":
$ref: "./paths/infrastructure/auto-scale/groups/group.yml"
"/v1/infrastructure/auto-scale/groups/{groupId}/access":
$ref: "./paths/infrastructure/auto-scale/groups/access.yml"
## Providers
"/v1/infrastructure/providers/{integrationId}/servers":
$ref: "./paths/infrastructure/providers/serverModels.yml"
"/v1/infrastructure/providers/{integrationId}/locations":
$ref: "./paths/infrastructure/providers/locations.yml"
## Virtual Providers
"/v1/infrastructure/virtual-providers/{integrationId}/isos":
$ref: "./paths/infrastructure/virtual-providers/isos/isos.yml"
"/v1/infrastructure/virtual-providers/{integrationId}/isos/{isoId}":
$ref: "./paths/infrastructure/virtual-providers/isos/iso.yml"
"/v1/infrastructure/virtual-providers/{integrationId}/isos/{isoId}/tasks":
$ref: "./paths/infrastructure/virtual-providers/isos/tasks.yml"
"/v1/infrastructure/virtual-providers/{integrationId}/isos/{isoId}/download":
$ref: "./paths/infrastructure/virtual-providers/isos/download.yml"
## Clusters
"/v1/infrastructure/clusters":
$ref: "./paths/infrastructure/clusters/clusters.yml"
"/v1/infrastructure/clusters/{clusterId}":
$ref: "./paths/infrastructure/clusters/cluster.yml"
"/v1/infrastructure/clusters/{clusterId}/access":
$ref: "./paths/infrastructure/clusters/access.yml"
"/v1/infrastructure/clusters/{clusterId}/tasks":
$ref: "./paths/infrastructure/clusters/tasks.yml"
## Servers
"/v1/infrastructure/servers":
$ref: "./paths/infrastructure/servers/servers.yml"
"/v1/infrastructure/servers/{serverId}":
$ref: "./paths/infrastructure/servers/server.yml"
"/v1/infrastructure/servers/{serverId}/telemetry":
$ref: "./paths/infrastructure/servers/telemetry.yml"
"/v1/infrastructure/servers/{serverId}/instances":
$ref: "./paths/infrastructure/servers/instances.yml"
"/v1/infrastructure/servers/{serverId}/tasks":
$ref: "./paths/infrastructure/servers/tasks.yml"
"/v1/infrastructure/servers/tags":
$ref: "./paths/infrastructure/servers/tags.yml"
"/v1/infrastructure/servers/{serverId}/usage":
$ref: "./paths/infrastructure/servers/usage.yml"
"/v1/infrastructure/servers/{serverId}/console":
$ref: "./paths/infrastructure/servers/console.yml"
## IPs
"/v1/infrastructure/ips/pools":
$ref: "./paths/infrastructure/ips/pools.yml"
"/v1/infrastructure/ips/pools/{poolId}":
$ref: "./paths/infrastructure/ips/pool.yml"
"/v1/infrastructure/ips/pools/{poolId}/ips":
$ref: "./paths/infrastructure/ips/ips.yml"
"/v1/infrastructure/ips/pools/{poolId}/tasks":
$ref: "./paths/infrastructure/ips/tasks.yml"
# --Jobs
"/v1/jobs":
$ref: "./paths/jobs/jobs.yml"
"/v1/jobs/{jobId}":
$ref: "./paths/jobs/job.yml"
"/v1/jobs/latest":
$ref: "./paths/jobs/latest.yml"
# -- Monitoring
"/v1/monitoring/metrics":
$ref: paths/monitoring/metrics/metrics.yml
"/v1/monitoring/metrics/aggregate":
$ref: paths/monitoring/metrics/aggregate.yml
"/v1/monitoring/events":
$ref: paths/monitoring/events/events.yml
"/v1/monitoring/events/aggregate":
$ref: paths/monitoring/events/aggregate.yml
"/v1/monitoring/logs/aggregate":
$ref: paths/monitoring/logs/aggregate.yml
"/v1/monitoring/monitors":
$ref: paths/monitoring/monitors/monitors.yml
# --Pipelines
"/v1/pipelines":
$ref: "./paths/pipelines/pipelines.yml"
"/v1/pipelines/{pipelineId}":
$ref: "./paths/pipelines/pipeline.yml"
"/v1/pipelines/{pipelineId}/access":
$ref: "./paths/pipelines/access.yml"
"/v1/pipelines/runs":
$ref: "./paths/pipelines/all-runs.yml"
"/v1/pipelines/{pipelineId}/runs":
$ref: "./paths/pipelines/runs.yml"
"/v1/pipelines/{pipelineId}/runs/{runId}":
$ref: "./paths/pipelines/run.yml"
"/v1/pipelines/{pipelineId}/tasks":
$ref: "./paths/pipelines/tasks.yml"
"/v1/pipelines/clone":
$ref: "./paths/pipelines/clone.yml"
"/v1/pipelines/{pipelineId}/trigger":
$ref: "./paths/pipelines/trigger.yml"
## Trigger Keys
"/v1/pipelines/{pipelineId}/keys":
$ref: "./paths/pipelines/triggerKeys/triggerKeys.yml"
"/v1/pipelines/{pipelineId}/keys/{triggerKeyId}":
$ref: "./paths/pipelines/triggerKeys/triggerKey.yml"
# --SDN
## Networks
"/v1/sdn/networks":
$ref: "./paths/sdn/networks.yml"
"/v1/sdn/networks/{networkId}":
$ref: "./paths/sdn/network.yml"
"/v1/sdn/networks/{networkId}/access":
$ref: "./paths/sdn/access.yml"
"/v1/sdn/networks/{networkId}/tasks":
$ref: "./paths/sdn/tasks.yml"
# --Search
"/v1/search/index":
$ref: "./paths/search/index.yml"
# --Stacks
"/v1/stacks":
$ref: "./paths/stacks/stacks.yml"
"/v1/stacks/{stackId}":
$ref: "./paths/stacks/stack.yml"
"/v1/stacks/{stackId}/access":
$ref: "./paths/stacks/access.yml"
"/v1/stacks/{stackId}/tasks":
$ref: "./paths/stacks/tasks.yml"
## Stack Builds
"/v1/stacks/builds":
$ref: "./paths/stacks/builds/all-builds.yml"
"/v1/stacks/builds/{buildId}":
$ref: "./paths/stacks/builds/lookup.yml"
"/v1/stacks/{stackId}/builds":
$ref: "./paths/stacks/builds/builds.yml"
"/v1/stacks/{stackId}/builds/{buildId}":
$ref: "./paths/stacks/builds/build.yml"
"/v1/stacks/{stackId}/builds/{buildId}/build-log":
$ref: "./paths/stacks/builds/buildLog.yml"
"/v1/stacks/{stackId}/builds/{buildId}/tasks":
$ref: "./paths/stacks/builds/tasks.yml"
# --Virtual Machines
"/v1/virtual-machines":
$ref: "./paths/virtual-machines/virtual-machines.yml"
"/v1/virtual-machines/{virtualMachineId}":
$ref: "./paths/virtual-machines/virtual-machine.yml"
"/v1/virtual-machines/{virtualMachineId}/tasks":
$ref: "./paths/virtual-machines/tasks.yml"
"/v1/virtual-machines/images/base":
$ref: "./paths/virtual-machines/images/base.yml"
"/v1/virtual-machines/{virtualMachineId}/sos":
$ref: paths/virtual-machines/sos/sos.yml
"/v1/virtual-machines/ssh-keys":
$ref: paths/virtual-machines/ssh-keys/ssh-keys.yml
"/v1/virtual-machines/ssh-keys/{sshKeyId}":
$ref: paths/virtual-machines/ssh-keys/ssh-key.yml
"/v1/virtual-machines/{virtualMachineId}/available-ips":
$ref: "./paths/virtual-machines/available-ips.yml"
# --Utility
"/v1/utils/resource/lookup":
$ref: paths/utils/resource/lookup.yml
"/v1/utils/components/lookup":
$ref: paths/utils/components/lookup.yml
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
hubAuth:
name: X-Hub-Id
in: header
type: apiKey
description: Defines the scope of the request to a specific Hub.
webhooks:
environmentMetricsPush:
post:
operationId: environmentMetricsPush
summary: Environment Metrics Push
description: Regularly sends metrics from an environment to an endpoint.
requestBody:
content:
application/json:
schema:
type: array
items:
$ref: ../components/schemas/monitoring/Metric.yml
environmentEventsPush:
post:
operationId: environmentEventsPush
summary: Environment Events Push
description: Regularly sends events from an environment to an endpoint.
requestBody:
content:
application/json:
schema:
type: array
items:
$ref: ../components/schemas/monitoring/events/Event.yml