-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathubicloud_openapi.yml
More file actions
4938 lines (4938 loc) · 152 KB
/
Copy pathubicloud_openapi.yml
File metadata and controls
4938 lines (4938 loc) · 152 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
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
description: API for managing resources on Ubicloud
title: Clover API
version: 0.1.0
contact:
url: https://www.ubicloud.com/
email: support@ubicloud.com
license:
name: GNU Affero General Public License v3.0 (AGPL-3.0)
url: https://www.gnu.org/licenses/agpl-3.0.en.html
servers:
- url: https://api.ubicloud.com
paths:
/project:
get:
operationId: listProjects
summary: List all projects
parameters:
- $ref: '#/components/parameters/start_after'
- $ref: '#/components/parameters/page_size'
- $ref: '#/components/parameters/order_column'
responses:
'200':
$ref: '#/components/responses/Projects'
default:
$ref: '#/components/responses/Error'
tags:
- Project
post:
operationId: createProject
summary: Create a new project
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
type: string
example: my-project-name
additionalProperties: false
required:
- name
responses:
'200':
$ref: '#/components/responses/Project'
default:
$ref: '#/components/responses/Error'
tags:
- Project
/project/{project_id}:
parameters:
- $ref: '#/components/parameters/project_id'
delete:
operationId: deleteProject
summary: Delete a project
responses:
'204':
$ref: '#/components/responses/Delete'
default:
$ref: '#/components/responses/Error'
tags:
- Project
get:
operationId: getProject
summary: Retrieve a project
responses:
'200':
$ref: '#/components/responses/Project'
default:
$ref: '#/components/responses/Error'
tags:
- Project
/project/{project_id}/audit-log:
parameters:
- $ref: '#/components/parameters/project_id'
get:
operationId: searchProjectAuditLog
summary: Search project audit log entries
parameters:
- name: action
in: query
description: Filter by action type
required: false
schema:
type: string
example: vm, create, vm/create
- name: end
in: query
description: Filter by end_date (shows 3 months prior)
required: false
schema:
type: string
- name: limit
in: query
description: Limit the number of returned records (1-1000)
required: false
schema:
type: number
- name: subject
in: query
description: Filter by account name/email/ID
required: false
schema:
type: string
- name: object
in: query
description: Filter by object ID
required: false
schema:
type: string
- name: pagination_key
in: query
description: Key for paginating results
required: false
schema:
type: string
responses:
'200':
$ref: '#/components/responses/AuditLogs'
default:
$ref: '#/components/responses/Error'
tags:
- Audit Log
/project/{project_id}/firewall:
parameters:
- $ref: '#/components/parameters/project_id'
get:
operationId: getFirewall
summary: List all firewalls
responses:
'200':
$ref: '#/components/responses/Firewalls'
default:
$ref: '#/components/responses/Error'
tags:
- Firewall
/project/{project_id}/github:
parameters:
- $ref: '#/components/parameters/project_id'
get:
operationId: getGithubInstallations
summary: List all GitHub installations
responses:
'200':
$ref: '#/components/responses/GithubInstallations'
default:
$ref: '#/components/responses/Error'
tags:
- GitHub
/project/{project_id}/github/{github_installation_reference}:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/github_installation_reference'
get:
operationId: getGithubInstallation
summary: Get GitHub installation details
responses:
'200':
$ref: '#/components/responses/GithubInstallation'
default:
$ref: '#/components/responses/Error'
tags:
- GitHub
/project/{project_id}/github/{github_installation_reference}/repository:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/github_installation_reference'
get:
operationId: getGithubInstallationRepositories
summary: List repositories for a GitHub installation
responses:
'200':
$ref: '#/components/responses/GithubRepositories'
default:
$ref: '#/components/responses/Error'
tags:
- GitHub
/project/{project_id}/github/{github_installation_reference}/repository/{github_repository_reference}:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/github_installation_reference'
- $ref: '#/components/parameters/github_repository_reference'
get:
operationId: getGithubRepository
summary: Get GitHub repository details
responses:
'200':
$ref: '#/components/responses/GithubRepository'
default:
$ref: '#/components/responses/Error'
tags:
- GitHub
/project/{project_id}/github/{github_installation_reference}/repository/{github_repository_reference}/cache:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/github_installation_reference'
- $ref: '#/components/parameters/github_repository_reference'
get:
operationId: getGithubCacheEntries
summary: List all cache entries for a GitHub repository
responses:
'200':
$ref: '#/components/responses/GithubCacheEntries'
default:
$ref: '#/components/responses/Error'
tags:
- GitHub
delete:
operationId: deleteAllGithubCacheEntries
summary: Delete all cache entries for a GitHub repository
responses:
'204':
$ref: '#/components/responses/Delete'
default:
$ref: '#/components/responses/Error'
tags:
- GitHub
/project/{project_id}/github/{github_installation_reference}/repository/{github_repository_reference}/cache/{github_cache_entry_id}:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/github_installation_reference'
- $ref: '#/components/parameters/github_repository_reference'
- $ref: '#/components/parameters/github_cache_entry_id'
get:
operationId: getGithubCacheEntry
summary: Get cache entry details
responses:
'200':
$ref: '#/components/responses/GithubCacheEntry'
default:
$ref: '#/components/responses/Error'
tags:
- GitHub
delete:
operationId: deleteGithubCacheEntry
summary: Delete a cache entry
responses:
'204':
$ref: '#/components/responses/Delete'
default:
$ref: '#/components/responses/Error'
tags:
- GitHub
/project/{project_id}/inference-api-key:
parameters:
- $ref: '#/components/parameters/project_id'
get:
operationId: getInferenceApiKeys
summary: List all inference API keys
responses:
'200':
$ref: '#/components/responses/InferenceApiKeys'
default:
$ref: '#/components/responses/Error'
tags:
- Inference Api Key
post:
operationId: createInferenceApiKey
summary: Create a new inference API key
requestBody:
required: true
content:
application/json:
schema:
type: object
properties: {}
additionalProperties: false
responses:
'200':
$ref: '#/components/responses/InferenceApiKey'
default:
$ref: '#/components/responses/Error'
tags:
- Inference Api Key
/project/{project_id}/inference-api-key/{inference_api_key_id}:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/inference_api_key_id'
get:
operationId: getInferenceApiKey
summary: Get inference API key details
responses:
'200':
$ref: '#/components/responses/InferenceApiKey'
default:
$ref: '#/components/responses/Error'
tags:
- Inference Api Key
delete:
operationId: deleteInferenceApiKey
summary: Delete a specific inference API key
responses:
'204':
$ref: '#/components/responses/Delete'
default:
$ref: '#/components/responses/Error'
tags:
- Inference Api Key
/project/{project_id}/inference-endpoint:
parameters:
- $ref: '#/components/parameters/project_id'
get:
operationId: listInferenceEndpoints
summary: List all inference endpoints
responses:
'200':
$ref: '#/components/responses/InferenceEndpoints'
default:
$ref: '#/components/responses/Error'
tags:
- Inference Endpoint
/project/{project_id}/kubernetes-cluster:
get:
operationId: listProjectKubernetesClusters
summary: List all kubernetes clusters
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/start_after'
- $ref: '#/components/parameters/page_size'
- $ref: '#/components/parameters/order_column'
responses:
'200':
$ref: '#/components/responses/KubernetesClusters'
default:
$ref: '#/components/responses/Error'
tags:
- Kubernetes Cluster
/project/{project_id}/load-balancer:
get:
operationId: listLoadBalancers
summary: List all load balancers
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/start_after'
- $ref: '#/components/parameters/page_size'
- $ref: '#/components/parameters/order_column'
responses:
'200':
$ref: '#/components/responses/LoadBalancers'
default:
$ref: '#/components/responses/Error'
tags:
- Load Balancer
/project/{project_id}/location/{location}/firewall:
parameters:
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/project_id'
get:
operationId: getLocationFirewall
summary: List firewalls in a location
responses:
'200':
$ref: '#/components/responses/Firewalls'
default:
$ref: '#/components/responses/Error'
tags:
- Firewall
/project/{project_id}/location/{location}/firewall/{firewall_reference}:
parameters:
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/firewall_reference'
delete:
operationId: deleteLocationFirewall
summary: Delete a firewall
responses:
'204':
$ref: '#/components/responses/Delete'
default:
$ref: '#/components/responses/Error'
tags:
- Firewall
get:
operationId: getLocationFirewallDetails
summary: Get firewall details
responses:
'200':
$ref: '#/components/responses/FirewallDetailed'
default:
$ref: '#/components/responses/Error'
tags:
- Firewall
post:
operationId: createLocationFirewall
summary: Create a new firewall
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
description:
description: Description of the firewall
type: string
additionalProperties: false
responses:
'200':
$ref: '#/components/responses/Firewall'
default:
$ref: '#/components/responses/Error'
tags:
- Firewall
patch:
operationId: updateFirewall
summary: Update a firewall
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
description:
description: New description for firewall
type: string
additionalProperties: false
required:
- description
responses:
'200':
$ref: '#/components/responses/Firewall'
default:
$ref: '#/components/responses/Error'
tags:
- Firewall
/project/{project_id}/location/{location}/firewall/{firewall_reference}/attach-subnet:
parameters:
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/firewall_reference'
post:
operationId: actionLocationFirewallAttachSubnet
summary: Attach a subnet to firewall
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
private_subnet_id:
description: Private subnet id to attach
type: string
additionalProperties: false
required:
- private_subnet_id
responses:
'200':
$ref: '#/components/responses/FirewallDetailed'
default:
$ref: '#/components/responses/Error'
tags:
- Firewall
/project/{project_id}/location/{location}/firewall/{firewall_reference}/detach-subnet:
parameters:
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/firewall_reference'
post:
operationId: actionLocationFirewallDetachSubnet
summary: Detach a subnet from firewall
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
private_subnet_id:
description: Private subnet id to detach
type: string
additionalProperties: false
required:
- private_subnet_id
responses:
'200':
$ref: '#/components/responses/FirewallDetailed'
default:
$ref: '#/components/responses/Error'
tags:
- Firewall
/project/{project_id}/location/{location}/firewall/{firewall_reference}/firewall-rule:
parameters:
- $ref: '#/components/parameters/firewall_reference'
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/project_id'
post:
operationId: createLocationFirewallRule
summary: Create a new firewall rule
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
cidr:
description: CIDR or private subnet id or name to allow
type: string
firewall_id:
type: string
port_range:
description: Port range to allow
type: string
protocol:
description: Protocol to allow (tcp or udp, default tcp)
type: string
description:
description: Description to use for the firewall rule
type: string
project_id:
type: string
additionalProperties: false
required:
- cidr
responses:
'200':
$ref: '#/components/responses/FirewallRuleOrRules'
default:
$ref: '#/components/responses/Error'
tags:
- Firewall Rule
/project/{project_id}/location/{location}/firewall/{firewall_reference}/firewall-rule/{firewall_rule_id}:
parameters:
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/firewall_reference'
- $ref: '#/components/parameters/firewall_rule_id'
delete:
operationId: deleteLocationFirewallFirewallRule
summary: Delete a firewall rule
responses:
'204':
$ref: '#/components/responses/Delete'
default:
$ref: '#/components/responses/Error'
tags:
- Firewall Rule
get:
operationId: getLocationFirewallFirewallRuleDetails
summary: Get firewall rule details
responses:
'200':
$ref: '#/components/responses/FirewallRule'
default:
$ref: '#/components/responses/Error'
tags:
- Firewall Rule
patch:
operationId: modifyFirewallRule
summary: Modify a firewall rule
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/FirewallRuleUpdate'
responses:
'200':
$ref: '#/components/responses/FirewallRule'
default:
$ref: '#/components/responses/Error'
tags:
- Firewall Rule
/project/{project_id}/location/{location}/firewall/{firewall_reference}/rename:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/firewall_reference'
post:
operationId: renameFirewall
summary: Rename a firewall
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
description: New name for firewall
type: string
additionalProperties: false
required:
- name
responses:
'200':
$ref: '#/components/responses/Firewall'
default:
$ref: '#/components/responses/Error'
tags:
- Firewall
/project/{project_id}/location/{location}/kubernetes-cluster:
get:
operationId: listLocationKubernetesClusters
summary: List kubernetes clusters in a location
parameters:
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/start_after'
- $ref: '#/components/parameters/page_size'
- $ref: '#/components/parameters/order_column'
responses:
'200':
$ref: '#/components/responses/KubernetesClusters'
default:
$ref: '#/components/responses/Error'
tags:
- Kubernetes Cluster
/project/{project_id}/location/{location}/kubernetes-cluster/{kubernetes_cluster_reference}:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/kubernetes_cluster_reference'
delete:
operationId: deleteKubernetesCluster
summary: Delete a kubernetes cluster
responses:
'204':
$ref: '#/components/responses/Delete'
default:
$ref: '#/components/responses/Error'
tags:
- Kubernetes Cluster
get:
operationId: getKubernetesClusterDetails
summary: Get kubernetes cluster details
responses:
'200':
$ref: '#/components/responses/KubernetesCluster'
default:
$ref: '#/components/responses/Error'
tags:
- Kubernetes Cluster
post:
operationId: createKubernetesCluster
summary: Create a new kubernetes cluster
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
version:
description: Version of the kubernetes cluster
type: string
worker_size:
description: Size of each worker VM
type: string
cp_nodes:
description: Number of control plane nodes
type: integer
worker_nodes:
description: Number of worker nodes
type: integer
additionalProperties: false
required:
- version
- worker_size
responses:
'200':
$ref: '#/components/responses/KubernetesCluster'
default:
$ref: '#/components/responses/Error'
tags:
- Kubernetes Cluster
/project/{project_id}/location/{location}/kubernetes-cluster/{kubernetes_cluster_reference}/kubeconfig:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/kubernetes_cluster_reference'
get:
operationId: getKubernetesKubeconfigFile
summary: Get kubeconfig file
responses:
'200':
$ref: '#/components/responses/Kubeconfig'
default:
$ref: '#/components/responses/Error'
tags:
- Kubernetes Cluster
/project/{project_id}/location/{location}/kubernetes-cluster/{kubernetes_cluster_reference}/node/{kubernetes_node_name}/retire:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/kubernetes_cluster_reference'
- $ref: '#/components/parameters/kubernetes_node_name'
post:
operationId: retireKubernetesNode
summary: Retire a worker node from a kubernetes cluster
responses:
'200':
$ref: '#/components/responses/KubernetesNodepool'
default:
$ref: '#/components/responses/Error'
tags:
- Kubernetes Cluster
/project/{project_id}/location/{location}/kubernetes-cluster/{kubernetes_cluster_reference}/nodepool/{kubernetes_nodepool_reference}/resize:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/kubernetes_cluster_reference'
- $ref: '#/components/parameters/kubernetes_nodepool_reference'
post:
operationId: resizeKubernetesNodepool
summary: Change number of nodes of a kubernetes nodepool
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
node_count:
description: New number of nodes for the kubernetes nodepool
type: integer
additionalProperties: false
required:
- node_count
responses:
'200':
$ref: '#/components/responses/KubernetesNodepool'
default:
$ref: '#/components/responses/Error'
tags:
- Kubernetes Cluster
/project/{project_id}/location/{location}/kubernetes-cluster/{kubernetes_cluster_reference}/rename:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/kubernetes_cluster_reference'
post:
operationId: renameKubernetesCluster
summary: Rename a kubernetes cluster
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
description: New name for kubernetes cluster
type: string
additionalProperties: false
required:
- name
responses:
'200':
$ref: '#/components/responses/KubernetesCluster'
default:
$ref: '#/components/responses/Error'
tags:
- Kubernetes Cluster
/project/{project_id}/location/{location}/kubernetes-cluster/{kubernetes_cluster_reference}/upgrade:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/kubernetes_cluster_reference'
post:
operationId: upgradeKubernetesCluster
summary: Upgrade a kubernetes cluster
responses:
'200':
$ref: '#/components/responses/KubernetesCluster'
default:
$ref: '#/components/responses/Error'
tags:
- Kubernetes Cluster
/project/{project_id}/location/{location}/load-balancer:
get:
operationId: listLocationLoadBalancers
summary: List load balancers in a location
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/start_after'
- $ref: '#/components/parameters/page_size'
- $ref: '#/components/parameters/order_column'
responses:
'200':
$ref: '#/components/responses/LoadBalancers'
default:
$ref: '#/components/responses/Error'
tags:
- Load Balancer
/project/{project_id}/location/{location}/load-balancer/{load_balancer_reference}:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/load_balancer_reference'
delete:
operationId: deleteLoadBalancer
summary: Delete a load balancer
responses:
'204':
$ref: '#/components/responses/Delete'
default:
$ref: '#/components/responses/Error'
tags:
- Load Balancer
get:
operationId: getLoadBalancerDetails
summary: Get load balancer details
responses:
'200':
$ref: '#/components/responses/LoadBalancer'
default:
$ref: '#/components/responses/Error'
tags:
- Load Balancer
patch:
operationId: patchLocationLoadBalancer
summary: Update a load balancer
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
algorithm:
description: Algorithm of the Load Balancer
type: string
stack:
description: Networking stack of the Load Balancer (ipv4, ipv6, or dual)
type: string
dst_port:
description: Destination port for the Load Balancer
type: integer
health_check_endpoint:
description: Health check endpoint URL
type: string
src_port:
description: Source port for the Load Balancer
type: integer
vms:
description: List of VM apids for the Load Balancer
type: array
items:
type: string
cert_enabled:
description: Whether SSL certificates are enabled for the Load Balancer
type: boolean
nullable: true
additionalProperties: false
required:
- algorithm
- dst_port
- health_check_endpoint
- src_port
- vms
responses:
'200':
$ref: '#/components/responses/LoadBalancer'
default:
$ref: '#/components/responses/Error'
tags:
- Load Balancer
post:
operationId: createLocationLoadBalancer
summary: Create a new load balancer
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
algorithm:
description: Algorithm of the Load Balancer
type: string
stack:
description: Networking stack of the Load Balancer (ipv4, ipv6, or dual)
type: string
dst_port:
description: Destination port for the Load Balancer
type: integer
health_check_endpoint:
description: Health check endpoint URL
type: string
health_check_protocol:
description: Health check endpoint protocol
type: string
private_subnet_id:
description: ID of Private Subnet
type: string
src_port:
description: Source port for the Load Balancer
type: integer
cert_enabled:
description: Whether SSL certificates are enabled for the Load Balancer
type: boolean
additionalProperties: false
required:
- algorithm
- dst_port
- health_check_protocol
- private_subnet_id
- src_port
responses:
'200':
$ref: '#/components/responses/LoadBalancer'
default:
$ref: '#/components/responses/Error'
tags:
- Load Balancer
/project/{project_id}/location/{location}/load-balancer/{load_balancer_reference}/attach-vm:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/load_balancer_reference'
post:
operationId: attachVmLocationLoadBalancer
summary: Attach a VM to a load balancer
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
vm_id:
description: Apid of VM to attach to Load Balancer
type: string
additionalProperties: false
required:
- vm_id
responses:
'200':
$ref: '#/components/responses/LoadBalancer'
default:
$ref: '#/components/responses/Error'
tags:
- Load Balancer
/project/{project_id}/location/{location}/load-balancer/{load_balancer_reference}/detach-vm:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/load_balancer_reference'
post:
operationId: detachVmLocationLoadBalancer
summary: Detach a VM from a load balancer
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
vm_id:
description: Apid of VM to detach from Load Balancer
type: string
additionalProperties: false
required:
- vm_id
responses:
'200':
$ref: '#/components/responses/LoadBalancer'
default:
$ref: '#/components/responses/Error'
tags:
- Load Balancer
/project/{project_id}/location/{location}/load-balancer/{load_balancer_reference}/rename:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/location'
- $ref: '#/components/parameters/load_balancer_reference'
post:
operationId: renameLoadBalancer
summary: Rename a load balancer
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
name:
description: New name for load balancer
type: string
additionalProperties: false
required:
- name
responses:
'200':
$ref: '#/components/responses/LoadBalancer'
default:
$ref: '#/components/responses/Error'
tags:
- Load Balancer
/project/{project_id}/location/{location}/load-balancer/{load_balancer_reference}/toggle-ssl-certificate:
parameters:
- $ref: '#/components/parameters/project_id'
- $ref: '#/components/parameters/location'