Skip to content

Commit f8aef84

Browse files
nacho-botweb-flow
andauthored
Syncing API (#480)
Co-authored-by: GitHub <[email protected]>
1 parent 29eb1c7 commit f8aef84

File tree

10 files changed

+1585
-6493
lines changed

10 files changed

+1585
-6493
lines changed

packages/common/config/apis/hcc-insights/automation-hub/content.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8227,7 +8227,7 @@
82278227
"Purge": {
82288228
"properties": {
82298229
"finished_before": {
8230-
"default": "2025-03-03",
8230+
"default": "2025-03-15",
82318231
"description": "Purge tasks completed earlier than this timestamp. Format '%Y-%m-%d[T%H:%M:%S]'",
82328232
"format": "date-time",
82338233
"type": "string"

packages/common/config/apis/hcc-insights/image-builder/content.json

+8
Original file line numberDiff line numberDiff line change
@@ -1319,6 +1319,10 @@
13191319
],
13201320
"type": "string"
13211321
},
1322+
"content_template": {
1323+
"description": "ID of the content template. A content template and snapshot date cannot both be specified.\nIf a content template is specified, the snapshot date used will be the one from the content template.\n",
1324+
"type": "string"
1325+
},
13221326
"image_type": {
13231327
"$ref": "#/components/schemas/ImageTypes"
13241328
},
@@ -1929,6 +1933,10 @@
19291933
},
19301934
"type": "array"
19311935
},
1936+
"hasPassword": {
1937+
"description": "Indicates whether the user has a password set.\n",
1938+
"type": "boolean"
1939+
},
19321940
"name": {
19331941
"example": "user1",
19341942
"type": "string"

packages/common/config/apis/hcc-insights/insights-advisor/content.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -2194,8 +2194,8 @@
21942194
}
21952195
},
21962196
"info": {
2197-
"description": "The API for managing and issuing Red Hat generated tasks on your infrastructure",
2198-
"title": "Insights Tasks API",
2197+
"description": "The API of the Advisor project in Insights",
2198+
"title": "Insights Advisor API",
21992199
"version": "1.0.1"
22002200
},
22012201
"openapi": "3.0.3",

packages/common/config/apis/hcc-insights/insights-results-aggregator_v1/content.json

+70
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,22 @@
6060
},
6161
"description": "Status ok"
6262
},
63+
"unauthorized": {
64+
"content": {
65+
"application/json": {
66+
"schema": {
67+
"properties": {
68+
"status": {
69+
"example": "Account does not have the required permissions",
70+
"type": "string"
71+
}
72+
},
73+
"type": "object"
74+
}
75+
}
76+
},
77+
"description": "The requester is unauthorized. If using a service account, you may not belong to the right group with the right role. Please make sure you configured your user access on the console."
78+
},
6379
"unavailable": {
6480
"content": {
6581
"text/plain": {}
@@ -537,6 +553,9 @@
537553
},
538554
"400": {
539555
"description": "Invalid request, usually caused when some cluster belongs to different organization."
556+
},
557+
"403": {
558+
"$ref": "#/components/responses/unauthorized"
540559
}
541560
},
542561
"summary": "Returns the latest reports for the given list of clusters.",
@@ -613,6 +632,9 @@
613632
},
614633
"description": "Latest available report for the given organization and cluster combination. Returns rules and their descriptions that were hit by the cluster. Disabled rules are ommitted by default unless the get_disabled query param is provided."
615634
},
635+
"403": {
636+
"$ref": "#/components/responses/unauthorized"
637+
},
616638
"404": {
617639
"description": "Resource not found, usually caused when the cluster ID is not registered and request come from Insights Operator."
618640
}
@@ -671,6 +693,9 @@
671693
}
672694
},
673695
"description": "Metainformation about the latest available report for the given organization and cluster combination."
696+
},
697+
"403": {
698+
"$ref": "#/components/responses/unauthorized"
674699
}
675700
},
676701
"summary": "Returns metainformations about the latest report for the given cluster.",
@@ -720,6 +745,9 @@
720745
}
721746
},
722747
"description": "Latest available rule report for the given organization, cluster combination and rule ID. Returns rule and it description that were hit by the cluster."
748+
},
749+
"403": {
750+
"$ref": "#/components/responses/unauthorized"
723751
}
724752
},
725753
"summary": "Returns the latest single rule report for a cluster that contains information and content.",
@@ -750,6 +778,9 @@
750778
"400": {
751779
"description": "Invalid request, usually caused when some cluster belongs to different organization."
752780
},
781+
"403": {
782+
"$ref": "#/components/responses/unauthorized"
783+
},
753784
"404": {
754785
"description": "Resource not found, usually caused when the rule ID and error key combination doesn't exist in the content service"
755786
}
@@ -815,6 +846,9 @@
815846
"400": {
816847
"description": "Invalid request, usually caused when some cluster belongs to different organization."
817848
},
849+
"403": {
850+
"$ref": "#/components/responses/unauthorized"
851+
},
818852
"404": {
819853
"description": "Resource not found, usually caused when the rule ID and error key combination doesn't exist in the content service"
820854
}
@@ -848,6 +882,9 @@
848882
"400": {
849883
"description": "Invalid request, usually caused when some cluster belongs to different organization."
850884
},
885+
"403": {
886+
"$ref": "#/components/responses/unauthorized"
887+
},
851888
"404": {
852889
"description": "Resource not found, usually caused when the rule ID and error key combination doesn't exist in the content service"
853890
}
@@ -881,6 +918,9 @@
881918
"400": {
882919
"description": "Invalid request, usually caused when some cluster belongs to different organization."
883920
},
921+
"403": {
922+
"$ref": "#/components/responses/unauthorized"
923+
},
884924
"404": {
885925
"description": "Resource not found, usually caused when the rule ID and error key combination doesn't exist in the content service"
886926
}
@@ -914,6 +954,9 @@
914954
"400": {
915955
"description": "Invalid request, usually caused when some cluster belongs to different organization."
916956
},
957+
"403": {
958+
"$ref": "#/components/responses/unauthorized"
959+
},
917960
"404": {
918961
"description": "Resource not found, usually caused when the rule ID and error key combination doesn't exist in the content service"
919962
}
@@ -947,6 +990,9 @@
947990
"400": {
948991
"description": "Invalid request, usually caused when some cluster belongs to different organization."
949992
},
993+
"403": {
994+
"$ref": "#/components/responses/unauthorized"
995+
},
950996
"404": {
951997
"description": "Resource not found, usually caused when the rule ID and error key combination doesn't exist in the content service"
952998
}
@@ -990,6 +1036,9 @@
9901036
},
9911037
"400": {
9921038
"description": "Invalid request, usually caused when some cluster belongs to different organization."
1039+
},
1040+
"403": {
1041+
"$ref": "#/components/responses/unauthorized"
9931042
}
9941043
},
9951044
"summary": "Returns the latest reports for the given list of clusters.",
@@ -1024,6 +1073,9 @@
10241073
}
10251074
},
10261075
"description": "A JSON object with the content."
1076+
},
1077+
"403": {
1078+
"$ref": "#/components/responses/unauthorized"
10271079
}
10281080
},
10291081
"summary": "Get all static content",
@@ -1073,6 +1125,9 @@
10731125
},
10741126
"description": "A JSON array of groups."
10751127
},
1128+
"403": {
1129+
"$ref": "#/components/responses/unauthorized"
1130+
},
10761131
"503": {
10771132
"content": {
10781133
"text/plain": {}
@@ -1205,6 +1260,9 @@
12051260
}
12061261
},
12071262
"description": "Summary of results by cluster"
1263+
},
1264+
"403": {
1265+
"$ref": "#/components/responses/unauthorized"
12081266
}
12091267
},
12101268
"summary": "Retrieve an overview of rule hits affecting all clusters in an organization. Organization ID is retrieved from the auth token.",
@@ -1245,6 +1303,9 @@
12451303
}
12461304
},
12471305
"description": "Status ok"
1306+
},
1307+
"403": {
1308+
"$ref": "#/components/responses/unauthorized"
12481309
}
12491310
},
12501311
"summary": "DEPRACATED: Use GET instead. Retrieve an overview of rule hits affecting all clusters in an organization. Organization ID is retrieved from the auth token.",
@@ -1292,6 +1353,9 @@
12921353
}
12931354
},
12941355
"description": "A JSON array of clusters that belong to the specified organization."
1356+
},
1357+
"403": {
1358+
"$ref": "#/components/responses/unauthorized"
12951359
}
12961360
},
12971361
"summary": "Returns a list of clusters associated with the specified organization ID.",
@@ -1326,6 +1390,9 @@
13261390
}
13271391
},
13281392
"description": "A JSON array of all the rule IDs."
1393+
},
1394+
"403": {
1395+
"$ref": "#/components/responses/unauthorized"
13291396
}
13301397
},
13311398
"summary": "Returns the rule IDs of all the rules.",
@@ -1363,6 +1430,9 @@
13631430
},
13641431
"description": "A JSON object with the content."
13651432
},
1433+
"403": {
1434+
"$ref": "#/components/responses/unauthorized"
1435+
},
13661436
"404": {
13671437
"content": {
13681438
"application/json": {

0 commit comments

Comments
 (0)