|
60 | 60 | },
|
61 | 61 | "description": "Status ok"
|
62 | 62 | },
|
| 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 | + }, |
63 | 79 | "unavailable": {
|
64 | 80 | "content": {
|
65 | 81 | "text/plain": {}
|
|
537 | 553 | },
|
538 | 554 | "400": {
|
539 | 555 | "description": "Invalid request, usually caused when some cluster belongs to different organization."
|
| 556 | + }, |
| 557 | + "403": { |
| 558 | + "$ref": "#/components/responses/unauthorized" |
540 | 559 | }
|
541 | 560 | },
|
542 | 561 | "summary": "Returns the latest reports for the given list of clusters.",
|
|
613 | 632 | },
|
614 | 633 | "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."
|
615 | 634 | },
|
| 635 | + "403": { |
| 636 | + "$ref": "#/components/responses/unauthorized" |
| 637 | + }, |
616 | 638 | "404": {
|
617 | 639 | "description": "Resource not found, usually caused when the cluster ID is not registered and request come from Insights Operator."
|
618 | 640 | }
|
|
671 | 693 | }
|
672 | 694 | },
|
673 | 695 | "description": "Metainformation about the latest available report for the given organization and cluster combination."
|
| 696 | + }, |
| 697 | + "403": { |
| 698 | + "$ref": "#/components/responses/unauthorized" |
674 | 699 | }
|
675 | 700 | },
|
676 | 701 | "summary": "Returns metainformations about the latest report for the given cluster.",
|
|
720 | 745 | }
|
721 | 746 | },
|
722 | 747 | "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" |
723 | 751 | }
|
724 | 752 | },
|
725 | 753 | "summary": "Returns the latest single rule report for a cluster that contains information and content.",
|
|
750 | 778 | "400": {
|
751 | 779 | "description": "Invalid request, usually caused when some cluster belongs to different organization."
|
752 | 780 | },
|
| 781 | + "403": { |
| 782 | + "$ref": "#/components/responses/unauthorized" |
| 783 | + }, |
753 | 784 | "404": {
|
754 | 785 | "description": "Resource not found, usually caused when the rule ID and error key combination doesn't exist in the content service"
|
755 | 786 | }
|
|
815 | 846 | "400": {
|
816 | 847 | "description": "Invalid request, usually caused when some cluster belongs to different organization."
|
817 | 848 | },
|
| 849 | + "403": { |
| 850 | + "$ref": "#/components/responses/unauthorized" |
| 851 | + }, |
818 | 852 | "404": {
|
819 | 853 | "description": "Resource not found, usually caused when the rule ID and error key combination doesn't exist in the content service"
|
820 | 854 | }
|
|
848 | 882 | "400": {
|
849 | 883 | "description": "Invalid request, usually caused when some cluster belongs to different organization."
|
850 | 884 | },
|
| 885 | + "403": { |
| 886 | + "$ref": "#/components/responses/unauthorized" |
| 887 | + }, |
851 | 888 | "404": {
|
852 | 889 | "description": "Resource not found, usually caused when the rule ID and error key combination doesn't exist in the content service"
|
853 | 890 | }
|
|
881 | 918 | "400": {
|
882 | 919 | "description": "Invalid request, usually caused when some cluster belongs to different organization."
|
883 | 920 | },
|
| 921 | + "403": { |
| 922 | + "$ref": "#/components/responses/unauthorized" |
| 923 | + }, |
884 | 924 | "404": {
|
885 | 925 | "description": "Resource not found, usually caused when the rule ID and error key combination doesn't exist in the content service"
|
886 | 926 | }
|
|
914 | 954 | "400": {
|
915 | 955 | "description": "Invalid request, usually caused when some cluster belongs to different organization."
|
916 | 956 | },
|
| 957 | + "403": { |
| 958 | + "$ref": "#/components/responses/unauthorized" |
| 959 | + }, |
917 | 960 | "404": {
|
918 | 961 | "description": "Resource not found, usually caused when the rule ID and error key combination doesn't exist in the content service"
|
919 | 962 | }
|
|
947 | 990 | "400": {
|
948 | 991 | "description": "Invalid request, usually caused when some cluster belongs to different organization."
|
949 | 992 | },
|
| 993 | + "403": { |
| 994 | + "$ref": "#/components/responses/unauthorized" |
| 995 | + }, |
950 | 996 | "404": {
|
951 | 997 | "description": "Resource not found, usually caused when the rule ID and error key combination doesn't exist in the content service"
|
952 | 998 | }
|
|
990 | 1036 | },
|
991 | 1037 | "400": {
|
992 | 1038 | "description": "Invalid request, usually caused when some cluster belongs to different organization."
|
| 1039 | + }, |
| 1040 | + "403": { |
| 1041 | + "$ref": "#/components/responses/unauthorized" |
993 | 1042 | }
|
994 | 1043 | },
|
995 | 1044 | "summary": "Returns the latest reports for the given list of clusters.",
|
|
1024 | 1073 | }
|
1025 | 1074 | },
|
1026 | 1075 | "description": "A JSON object with the content."
|
| 1076 | + }, |
| 1077 | + "403": { |
| 1078 | + "$ref": "#/components/responses/unauthorized" |
1027 | 1079 | }
|
1028 | 1080 | },
|
1029 | 1081 | "summary": "Get all static content",
|
|
1073 | 1125 | },
|
1074 | 1126 | "description": "A JSON array of groups."
|
1075 | 1127 | },
|
| 1128 | + "403": { |
| 1129 | + "$ref": "#/components/responses/unauthorized" |
| 1130 | + }, |
1076 | 1131 | "503": {
|
1077 | 1132 | "content": {
|
1078 | 1133 | "text/plain": {}
|
|
1205 | 1260 | }
|
1206 | 1261 | },
|
1207 | 1262 | "description": "Summary of results by cluster"
|
| 1263 | + }, |
| 1264 | + "403": { |
| 1265 | + "$ref": "#/components/responses/unauthorized" |
1208 | 1266 | }
|
1209 | 1267 | },
|
1210 | 1268 | "summary": "Retrieve an overview of rule hits affecting all clusters in an organization. Organization ID is retrieved from the auth token.",
|
|
1245 | 1303 | }
|
1246 | 1304 | },
|
1247 | 1305 | "description": "Status ok"
|
| 1306 | + }, |
| 1307 | + "403": { |
| 1308 | + "$ref": "#/components/responses/unauthorized" |
1248 | 1309 | }
|
1249 | 1310 | },
|
1250 | 1311 | "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 | 1353 | }
|
1293 | 1354 | },
|
1294 | 1355 | "description": "A JSON array of clusters that belong to the specified organization."
|
| 1356 | + }, |
| 1357 | + "403": { |
| 1358 | + "$ref": "#/components/responses/unauthorized" |
1295 | 1359 | }
|
1296 | 1360 | },
|
1297 | 1361 | "summary": "Returns a list of clusters associated with the specified organization ID.",
|
|
1326 | 1390 | }
|
1327 | 1391 | },
|
1328 | 1392 | "description": "A JSON array of all the rule IDs."
|
| 1393 | + }, |
| 1394 | + "403": { |
| 1395 | + "$ref": "#/components/responses/unauthorized" |
1329 | 1396 | }
|
1330 | 1397 | },
|
1331 | 1398 | "summary": "Returns the rule IDs of all the rules.",
|
|
1363 | 1430 | },
|
1364 | 1431 | "description": "A JSON object with the content."
|
1365 | 1432 | },
|
| 1433 | + "403": { |
| 1434 | + "$ref": "#/components/responses/unauthorized" |
| 1435 | + }, |
1366 | 1436 | "404": {
|
1367 | 1437 | "content": {
|
1368 | 1438 | "application/json": {
|
|
0 commit comments