-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathopenapi.yaml
More file actions
1280 lines (1252 loc) · 38.7 KB
/
openapi.yaml
File metadata and controls
1280 lines (1252 loc) · 38.7 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.0
info:
description: Red Hat Advanced Cluster Security (RHACS) Service Fleet Manager is
a Rest API to manage instances of ACS components.
title: Red Hat Advanced Cluster Security Service Fleet Manager
version: 1.2.0
servers:
- description: Main (production) server
url: https://api.openshift.com
- description: Staging server
url: https://api.stage.openshift.com
- description: localhost
url: http://localhost:8000
- description: current domain
url: /
paths:
/api/rhacs/v1:
get:
operationId: getVersionMetadata
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/VersionMetadata'
description: Version metadata
summary: Returns the version metadata
/api/rhacs/v1/errors/{id}:
get:
operationId: getErrorById
parameters:
- description: The ID of record
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Get error by Id
summary: Returns the error by id
tags:
- errors
/api/rhacs/v1/errors:
get:
operationId: getErrors
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorList'
description: List of possible errors
summary: Returns the list of possible API errors
tags:
- errors
/api/rhacs/v1/status:
get:
operationId: getServiceStatus
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/ServiceStatus'
description: Ok
"500":
content:
application/json:
examples:
"500Example":
$ref: '#/components/examples/500Example'
schema:
$ref: '#/components/schemas/Error'
description: Unexpected error occurred
security:
- Bearer: []
summary: Returns the status of resources, such as whether maximum service capacity
has been reached
/api/rhacs/v1/centrals/{id}:
delete:
description: |
The only users authorized for this operation are:
1) The administrator of the owner organisation of the specified Central.
2) The owner user, and only if it is also part of the owner organisation of the specified Central.
operationId: deleteCentralById
parameters:
- description: The ID of record
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
- description: Perform the action in an asynchronous manner
explode: true
in: query
name: async
required: true
schema:
type: boolean
style: form
responses:
"202":
description: Deleted
"400":
content:
application/json:
examples:
"400DeletionExample":
$ref: '#/components/examples/400DeletionExample'
schema:
$ref: '#/components/schemas/Error'
description: Validation errors occurred
"401":
content:
application/json:
examples:
"401Example":
$ref: '#/components/examples/401Example'
schema:
$ref: '#/components/schemas/Error'
description: Auth token is invalid
"403":
content:
application/json:
examples:
"403Example":
$ref: '#/components/examples/403Example'
schema:
$ref: '#/components/schemas/Error'
description: User not authorized to access the service
"404":
content:
application/json:
examples:
"404DeleteExample":
$ref: '#/components/examples/404DeleteExample'
schema:
$ref: '#/components/schemas/Error'
description: No Central request with specified ID exists
"500":
content:
application/json:
examples:
"500DeleteExample":
$ref: '#/components/examples/500DeleteExample'
schema:
$ref: '#/components/schemas/Error'
description: Unexpected error occurred
security:
- Bearer: []
summary: Deletes a Central request by ID
get:
description: This operation is only authorized to users in the same organisation
as the owner organisation of the specified Central.
operationId: getCentralById
parameters:
- description: The ID of record
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
responses:
"200":
content:
application/json:
examples:
CentralRequestGetResponseExample:
$ref: '#/components/examples/CentralRequestExample'
CentralRequestGetResponseWithFailedCreationStatusExample:
$ref: '#/components/examples/CentralRequestFailedCreationStatusExample'
schema:
$ref: '#/components/schemas/CentralRequest'
description: Central request found by ID
"401":
content:
application/json:
examples:
"401Example":
$ref: '#/components/examples/401Example'
schema:
$ref: '#/components/schemas/Error'
description: Auth token is invalid
"403":
content:
application/json:
examples:
"403Example":
$ref: '#/components/examples/403Example'
schema:
$ref: '#/components/schemas/Error'
description: User not authorized to access the service
"404":
content:
application/json:
examples:
"404Example":
$ref: '#/components/examples/404Example'
schema:
$ref: '#/components/schemas/Error'
description: No Central request with specified ID exists
"500":
content:
application/json:
examples:
"500Example":
$ref: '#/components/examples/500Example'
schema:
$ref: '#/components/schemas/Error'
description: Unexpected error occurred
security:
- Bearer: []
summary: Returns a Central request by ID
/api/rhacs/v1/centrals:
get:
description: Only returns those centrals that are owned by the organisation
of the user authenticated for the request.
operationId: getCentrals
parameters:
- description: Page index
examples:
page:
value: "1"
explode: true
in: query
name: page
required: false
schema:
type: string
style: form
- description: Number of items in each page
examples:
size:
value: "100"
explode: true
in: query
name: size
required: false
schema:
type: string
style: form
- description: |-
Specifies the order by criteria. The syntax of this parameter is
similar to the syntax of the `order by` clause of an SQL statement.
Each query can be ordered by any of the following `centralRequests` fields:
* centralUIURL
* centralDataURL
* cloud_provider
* cluster_id
* created_at
* href
* id
* instance_type
* multi_az
* name
* organisation_id
* owner
* region
* status
* updated_at
* version
For example, to return all Central instances ordered by their name, use the following syntax:
```sql
name asc
```
To return all Central instances ordered by their name _and_ created date, use the following syntax:
```sql
name asc, created_at asc
```
If the parameter isn't provided, or if the value is empty, then
the results are ordered by name.
examples:
orderBy:
value: name asc
explode: true
in: query
name: orderBy
required: false
schema:
type: string
style: form
- description: |
Search criteria.
The syntax of this parameter is similar to the syntax of the `where` clause of an
SQL statement. Allowed fields in the search are `cloud_provider`, `name`, `owner`, `region`, and `status`. Allowed comparators are `<>`, `=`, or `LIKE`.
Allowed joins are `AND` and `OR`. However, you can use a maximum of 10 joins in a search query.
Examples:
To return a Central instance with the name `my-central` and the region `aws`, use the following syntax:
```
name = my-central and cloud_provider = aws
```[p-]
To return a Central instance with a name that starts with `my`, use the following syntax:
```
name like my%25
```
If the parameter isn't provided, or if the value is empty, then all the Central instances
that the user has permission to see are returned.
Note. If the query is invalid, an error is returned.
examples:
search:
value: name = my-central and cloud_provider = aws
explode: true
in: query
name: search
required: false
schema:
type: string
style: form
responses:
"200":
content:
application/json:
examples:
CentralRequestListExample:
$ref: '#/components/examples/CentralRequestListExample'
schema:
$ref: '#/components/schemas/CentralRequestList'
description: A list of Central requests
"400":
content:
application/json:
examples:
InvalidQueryExample:
$ref: '#/components/examples/400InvalidQueryExample'
schema:
$ref: '#/components/schemas/Error'
description: Bad request
"401":
content:
application/json:
examples:
"401Example":
$ref: '#/components/examples/401Example'
schema:
$ref: '#/components/schemas/Error'
description: Auth token is invalid
"403":
content:
application/json:
examples:
"403Example":
$ref: '#/components/examples/403Example'
schema:
$ref: '#/components/schemas/Error'
description: User not authorized to access the service
"500":
content:
application/json:
examples:
"500Example":
$ref: '#/components/examples/500Example'
schema:
$ref: '#/components/schemas/Error'
description: Unexpected error occurred
security:
- Bearer: []
summary: Returns a list of Central requests
post:
description: Each central has a single owner organisation and a single owner
user. Creates a new Central that is owned by the user and organisation authenticated
for the request.
operationId: createCentral
parameters:
- description: Perform the action in an asynchronous manner
explode: true
in: query
name: async
required: true
schema:
type: boolean
style: form
requestBody:
content:
application/json:
examples:
USRegion:
$ref: '#/components/examples/USRegionExample'
EURegion:
$ref: '#/components/examples/EURegionExample'
schema:
$ref: '#/components/schemas/CentralRequestPayload'
description: Central data
required: true
responses:
"202":
content:
application/json:
examples:
CentralRequestPostResponseExample:
$ref: '#/components/examples/CentralRequestExample'
schema:
$ref: '#/components/schemas/CentralRequest'
description: Accepted
"400":
content:
application/json:
examples:
"400CreationExample":
$ref: '#/components/examples/400CreationExample'
schema:
$ref: '#/components/schemas/Error'
description: Validation errors occurred
"401":
content:
application/json:
examples:
"401Example":
$ref: '#/components/examples/401Example'
schema:
$ref: '#/components/schemas/Error'
description: Auth token is invalid
"403":
content:
application/json:
examples:
"403Example":
$ref: '#/components/examples/403Example'
"403MaxAllowedInstanceReachedExample":
$ref: '#/components/examples/403MaxAllowedInstanceReachedExample'
"403TermsNotAcceptedExample":
$ref: '#/components/examples/403TermsNotAcceptedExample'
schema:
$ref: '#/components/schemas/Error'
description: User forbidden either because the user is not authorized to
access the service or because the maximum number of instances that can
be created by this user has been reached.
"404":
content:
application/json:
examples:
"404Example":
$ref: '#/components/examples/404Example'
schema:
$ref: '#/components/schemas/Error'
description: The requested resource doesn't exist
"409":
content:
application/json:
examples:
"409NameConflictExample":
$ref: '#/components/examples/409NameConflictExample'
schema:
$ref: '#/components/schemas/Error'
description: A conflict has been detected in the creation of this resource
"500":
content:
application/json:
examples:
"500Example":
$ref: '#/components/examples/500Example'
schema:
$ref: '#/components/schemas/Error'
description: An unexpected error occurred while creating the Central request
security:
- Bearer: []
summary: Creates a Central request
/api/rhacs/v1/cloud_providers:
get:
operationId: getCloudProviders
parameters:
- description: Page index
examples:
page:
value: "1"
explode: true
in: query
name: page
required: false
schema:
type: string
style: form
- description: Number of items in each page
examples:
size:
value: "100"
explode: true
in: query
name: size
required: false
schema:
type: string
style: form
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/CloudProviderList'
description: Returned list of supported cloud providers
"401":
content:
application/json:
examples:
"401Example":
$ref: '#/components/examples/401Example'
schema:
$ref: '#/components/schemas/Error'
description: Auth token is invalid
"500":
content:
application/json:
examples:
"500Example":
$ref: '#/components/examples/500Example'
schema:
$ref: '#/components/schemas/Error'
description: Unexpected error occurred
security:
- Bearer: []
summary: Returns the list of supported cloud providers
/api/rhacs/v1/cloud_providers/{id}/regions:
get:
operationId: getCloudProviderRegions
parameters:
- description: The ID of record
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
- description: Page index
examples:
page:
value: "1"
explode: true
in: query
name: page
required: false
schema:
type: string
style: form
- description: Number of items in each page
examples:
size:
value: "100"
explode: true
in: query
name: size
required: false
schema:
type: string
style: form
- description: The Central instance type to filter the results by
examples:
eval_instance_type:
value: eval
standard_instance_type:
value: standard
explode: true
in: query
name: instance_type
required: false
schema:
type: string
style: form
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/CloudRegionList'
description: Returned list of supported cloud provider regions
"401":
content:
application/json:
examples:
"401Example":
$ref: '#/components/examples/401Example'
schema:
$ref: '#/components/schemas/Error'
description: Auth token is invalid
"500":
content:
application/json:
examples:
"500Example":
$ref: '#/components/examples/500Example'
schema:
$ref: '#/components/schemas/Error'
description: Unexpected error occurred
security:
- Bearer: []
summary: Returns the list of supported regions of the supported cloud provider
/api/rhacs/v1/cloud_accounts:
get:
operationId: getCloudAccounts
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/CloudAccountsList'
description: Returned list of supported cloud provider regions
"401":
content:
application/json:
examples:
"401Example":
$ref: '#/components/examples/401Example'
schema:
$ref: '#/components/schemas/Error'
description: Auth token is invalid
"500":
content:
application/json:
examples:
"500Example":
$ref: '#/components/examples/500Example'
schema:
$ref: '#/components/schemas/Error'
description: Unexpected error occurred
security:
- Bearer: []
summary: Returns the list of cloud accounts which belong to user's organization
components:
examples:
USRegionExample:
value:
region: us-east-1
cloud_provider: aws
name: serviceapitest
EURegionExample:
value:
region: eu-west-1
cloud_provider: aws
name: serviceapitest
CentralRequestExample:
value:
id: a3a9c5b9-0283-4ff8-9b9e-da2209da17c3
kind: central
href: /api/rhacs/v1/centrals/a3a9c5b9-0283-4ff8-9b9e-da2209da17c3
status: ready
cloud_provider: aws
multi_az: true
region: us-east-1
owner: api_central_service
name: serviceapi
centralUIURL: https://rhacs-a3a9c5b9-0283-4ff8-9b9e-da2209da17c3.example.rhacs.com
centralDataURL: https://rhacs-data-a3a9c5b9-0283-4ff8-9b9e-da2209da17c3.example.rhacs.com
created_at: 2020-10-05T12:51:24.053142Z
updated_at: 2020-10-05T12:56:36.362208Z
version: 2.6.0
instance_type: standard
CentralRequestFailedCreationStatusExample:
value:
id: a3a9c5b9-0283-4ff8-9b9e-da2209da17c3
kind: central
href: /api/rhacs/v1/centrals/a3a9c5b9-0283-4ff8-9b9e-da2209da17c3
status: failed
cloud_provider: aws
multi_az: true
region: us-east-1
owner: api_central_service
name: serviceapi
centralUIURL: https://rhacs-a3a9c5b9-0283-4ff8-9b9e-da2209da17c3.example.rhacs.com
centralDataURL: https://rhacs-data-a3a9c5b9-0283-4ff8-9b9e-da2209da17c3.example.rhacs.com
created_at: 2020-10-05T12:51:24.053142Z
updated_at: 2020-10-05T12:56:36.362208Z
failed_reason: a reason the Central request creation failed
instance_type: standard
CentralRequestListExample:
value:
kind: CentralRequestList
size: "1"
page: "1"
total: "1"
items:
- id: a3a9c5b9-0283-4ff8-9b9e-da2209da17c3
kind: central
href: /api/rhacs/v1/centrals/a3a9c5b9-0283-4ff8-9b9e-da2209da17c3
status: ready
cloud_provider: aws
multi_az: true
region: us-east-1
owner: alice
name: serviceapi
centralUIURL: https://rhacs-a3a9c5b9-0283-4ff8-9b9e-da2209da17c3.example.rhacs.com
centralDataURL: https://rhacs-data-a3a9c5b9-0283-4ff8-9b9e-da2209da17c3.example.rhacs.com
created_at: 2020-10-05T12:51:24.053142Z
updated_at: 2020-10-05T12:56:36.362208Z
version: 2.6.0
instance_type: standard
CloudProviderExample:
value:
kind: CloudProvider
id: aws
name: aws
display_name: Amazon Web Services
enabled: true
CloudRegionExample:
value:
kind: CloudRegion
id: us-east-1
display_name: US East, N. Virginia
enabled: true
supported_instance_types:
- standard
- eval
CloudAccountsList:
value:
cloudAccounts:
- cloudAccountId: cloudAccountId
cloudProviderId: cloudProviderId
"400DeletionExample":
value:
id: "103"
kind: Error
href: /api/rhacs/v1/errors/103
code: RHACS-MGMT-103
reason: Synchronous action is not supported, use async=true parameter
operation_id: 1iWIimqGcrDuL61aUxIZqBTqNRa
"400CreationExample":
value:
id: "103"
kind: Error
href: /api/rhacs/v1/errors/103
code: RHACS-MGMT-103
reason: Synchronous action is not supported, use async=true parameter
operation_id: 1iWIimqGcrDuL61aUxIZqBTqNRa
"400InvalidQueryExample":
value:
id: "23"
kind: Error
href: /api/rhacs/v1/errors/23
code: RHACS-MGMT-23
reason: 'Failed to parse search query: Unable to list Central requests for
api_central_service: RHACS-MGMT-23: Failed to parse search query: Unsupported
column name for search: ''id''. Supported column names are: region, name,
cloud_provider, name, status. Query invalid: id = 123'
operation_id: 1lWDGuybIrEnxrAem724gqkkiDv
"400MissingParameterExample":
value:
id: "21"
kind: Error
href: /api/rhacs/v1/errors/21
code: RHACS-MGMT-21
reason: 'missing path parameter: central id'
operation_id: 1lWDGuybIrEnxrAem724gqkkiDv
"404Example":
value:
id: "7"
kind: Error
href: /api/rhacs/v1/errors/7
code: RHACS-MGMT-7
reason: The requested resource doesn't exist
"404DeleteExample":
value:
id: "7"
kind: Error
href: /api/rhacs/v1/errors/7
code: RHACS-MGMT-7
reason: CentralResource with id='1iK3duVYIvv5YvLlyz1mGR3JyqN' not found
operation_id: 1iYO7g2g6HTdUKUa2ksH82kQD3y
"401Example":
value:
id: "11"
kind: Error
href: /api/rhacs/v1/errors/11
code: RHACS-MGMT-11
reason: 'Unable to verify JWT token: Required authorization token not found'
operation_id: 1iY3UhEhwmXBpWPfI2lNekpd4ZD
"403Example":
value:
id: "4"
kind: Error
href: /api/rhacs/v1/errors/4
code: RHACS-MGMT-4
reason: User 'foo-bar' is not authorized to access the service.
operation_id: 1lY3UiEhznXBpWPfI2lNejpd4YC
"403MaxAllowedInstanceReachedExample":
value:
id: "5"
kind: Error
href: /api/rhacs/v1/errors/5
code: RHACS-MGMT-5
reason: User 'foo-bar' has reached a maximum number of 6 allowed instances.
operation_id: 1lY3UiEkxnXBpVPeI2oNejd3XB
"403TermsNotAcceptedExample":
value:
id: "12"
kind: Error
href: /api/rhacs/v1/errors/12
code: RHACS-MGMT-12
reason: Required terms have not been accepted
operation_id: kXCzWPeI2oXBpVPeI2LvF9jMQY
"409NameConflictExample":
value:
id: "36"
kind: Error
href: /api/rhacs/v1/errors/36
code: RHACS-MGMT-36
reason: Cental name is already used
operation_id: 6kY0UiEkzkXCzWPeI2oYehd3ED
"500Example":
value:
id: "9"
kind: Error
href: /api/rhacs/v1/errors/9
code: RHACS-MGMT-9
reason: Unspecified error
operation_id: 1ieELvF9jMQY6YghfM9gGRsHvEW
"500DeleteExample":
value:
id: "9"
kind: Error
href: /api/rhacs/v1/errors/9
code: RHACS-MGMT-9
reason: 'error deleting syncset: OCM-EX-9: failed to delete syncset: ext-serviceapi-1ix03lndlmq0qfc7sita5sljv8e
for cluster id: 1g5d88q0lrcdv4g7alb7slfgnj3dhbsj%!(EXTRA *errors.Error=identifier
is ''404'', code is ''CLUSTERS-MGMT-404'' and operation identifier is ''1g5or50viu07oealuehrkc26dgftj1ac'':
Cluster ''1g5d88q0lrcdv4g7alb7slfgnj3dhbsj'' not found)'
operation_id: 1iYTsWry6nsqb2sNmFj5bXpD7Ca
parameters:
id:
description: The ID of record
explode: false
in: path
name: id
required: true
schema:
type: string
style: simple
duration:
description: The length of time in minutes for which to return the metrics
examples:
duration:
value: 5
explode: true
in: query
name: duration
required: true
schema:
default: 5
format: int64
maximum: 4320
minimum: 1
type: integer
style: form
interval:
description: The interval in seconds between data points
examples:
interval:
value: 30
explode: true
in: query
name: interval
required: true
schema:
default: 30
format: int64
maximum: 10800
minimum: 1
type: integer
style: form
filters:
description: List of metrics to fetch. Fetch all metrics when empty. List entries
are Central internal metric names.
explode: true
in: query
name: filters
required: false
schema:
default: []
items:
type: string
type: array
style: form
page:
description: Page index
examples:
page:
value: "1"
explode: true
in: query
name: page
required: false
schema:
type: string
style: form
size:
description: Number of items in each page
examples:
size:
value: "100"
explode: true
in: query
name: size
required: false
schema:
type: string
style: form
orderBy:
description: |-
Specifies the order by criteria. The syntax of this parameter is
similar to the syntax of the `order by` clause of an SQL statement.
Each query can be ordered by any of the following `centralRequests` fields:
* centralUIURL
* centralDataURL
* cloud_provider
* cluster_id
* created_at
* href
* id
* instance_type
* multi_az
* name
* organisation_id
* owner
* region
* status
* updated_at
* version
For example, to return all Central instances ordered by their name, use the following syntax:
```sql
name asc
```
To return all Central instances ordered by their name _and_ created date, use the following syntax:
```sql
name asc, created_at asc
```
If the parameter isn't provided, or if the value is empty, then
the results are ordered by name.
examples:
orderBy:
value: name asc
explode: true
in: query
name: orderBy
required: false
schema:
type: string
style: form
search:
description: |
Search criteria.
The syntax of this parameter is similar to the syntax of the `where` clause of an
SQL statement. Allowed fields in the search are `cloud_provider`, `name`, `owner`, `region`, and `status`. Allowed comparators are `<>`, `=`, or `LIKE`.
Allowed joins are `AND` and `OR`. However, you can use a maximum of 10 joins in a search query.
Examples:
To return a Central instance with the name `my-central` and the region `aws`, use the following syntax:
```
name = my-central and cloud_provider = aws
```[p-]
To return a Central instance with a name that starts with `my`, use the following syntax:
```
name like my%25
```
If the parameter isn't provided, or if the value is empty, then all the Central instances
that the user has permission to see are returned.
Note. If the query is invalid, an error is returned.
examples:
search:
value: name = my-central and cloud_provider = aws
explode: true
in: query
name: search
required: false
schema:
type: string