Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncing API #478

Merged
merged 1 commit into from
Apr 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8227,7 +8227,7 @@
"Purge": {
"properties": {
"finished_before": {
"default": "2025-02-24",
"default": "2025-03-03",
"description": "Purge tasks completed earlier than this timestamp. Format '%Y-%m-%d[T%H:%M:%S]'",
"format": "date-time",
"type": "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,37 @@
"last_modified_at"
]
},
"BlueprintLint": {
"description": "Linting errors in the current blueprint, these might need to be resolved before the\nblueprint can be used to build images again.\n",
"properties": {
"errors": {
"items": {
"$ref": "#/components/schemas/BlueprintLintItem"
},
"type": "array"
}
},
"required": [
"errors"
]
},
"BlueprintLintItem": {
"properties": {
"description": {
"example": "package a required by policy is not present",
"type": "string"
},
"name": {
"example": "Compliance",
"type": "string"
}
},
"required": [
"name",
"description"
],
"type": "object"
},
"BlueprintMetadata": {
"properties": {
"exported_at": {
Expand Down Expand Up @@ -294,6 +325,9 @@
"type": "array",
"uniqueItems": true
},
"lint": {
"$ref": "#/components/schemas/BlueprintLint"
},
"name": {
"type": "string"
}
Expand All @@ -302,6 +336,7 @@
"id",
"name",
"description",
"lint",
"distribution",
"image_requests",
"customizations"
Expand Down Expand Up @@ -2764,6 +2799,33 @@
]
}
},
"/experimental/blueprints/{id}/fixup": {
"parameters": [
{
"description": "UUID of a blueprint",
"example": "123e4567-e89b-12d3-a456-426655440000",
"in": "path",
"name": "id",
"required": true,
"schema": {
"format": "uuid",
"type": "string"
}
}
],
"post": {
"description": "Apply fixes which should fix any lint errors in the blueprint.\n",
"responses": {
"200": {
"description": "successful update"
},
"404": {
"description": "blueprint was not found"
}
},
"summary": "Apply linter fixes to blueprint"
}
},
"/experimental/recommendations": {
"post": {
"description": "Returns a list of recommended packages for given list of packages.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,16 @@
"type": "string"
},
"rating": {
"allOf": [
{
"$ref": "#/components/schemas/RatingEnum"
}
"description": "* `-1` - Dislike\n* `0` - Neutral\n* `1` - Like",
"enum": [
-1,
0,
1
],
"maximum": 32767,
"minimum": -32768
"minimum": -32768,
"type": "integer",
"x-spec-enum-id": "77fd471e36283637"
},
"rule": {
"description": "Rule ID from Insights",
Expand Down Expand Up @@ -1183,15 +1186,6 @@
],
"type": "object"
},
"RatingEnum": {
"description": "* `-1` - Dislike\n* `0` - Neutral\n* `1` - Like",
"enum": [
-1,
0,
1
],
"type": "integer"
},
"Report": {
"properties": {
"details": {},
Expand Down Expand Up @@ -1716,13 +1710,16 @@
"description": "Rule ratings list the rating (-1, 0 or +1) for one or more rules. The\nrule is listed by its Insights Rule ID.",
"properties": {
"rating": {
"allOf": [
{
"$ref": "#/components/schemas/RatingEnum"
}
"description": "* `-1` - Dislike\n* `0` - Neutral\n* `1` - Like",
"enum": [
-1,
0,
1
],
"maximum": 32767,
"minimum": -32768
"minimum": -32768,
"type": "integer",
"x-spec-enum-id": "77fd471e36283637"
},
"rule": {
"description": "Rule ID from Insights",
Expand Down Expand Up @@ -2197,8 +2194,8 @@
}
},
"info": {
"description": "The API of the Advisor project in Insights",
"title": "Insights Advisor API",
"description": "The API for managing and issuing Red Hat generated tasks on your infrastructure",
"title": "Insights Tasks API",
"version": "1.0.1"
},
"openapi": "3.0.3",
Expand Down Expand Up @@ -6193,6 +6190,54 @@
"get": {
"description": "Show overview statistics for this user\n\nThis gives the number of pathways, and incident, critical and\nimportant recommendations, affecting systems that the user can see.",
"operationId": "stats_overview_retrieve",
"parameters": [
{
"description": "Tags have a namespace, key and value in the form namespace/key=value",
"in": "query",
"name": "tags",
"schema": {
"items": {
"format": "regex",
"type": "string"
},
"type": "array"
},
"style": "form"
},
{
"description": "List of Inventory host group names",
"in": "query",
"name": "groups",
"schema": {
"items": {
"type": "string"
},
"type": "array"
},
"style": "form"
},
{
"description": "Is this a SAP system?",
"in": "query",
"name": "filter[system_profile][sap_system]",
"schema": {
"type": "boolean"
}
},
{
"description": "Are there systems which contain these SAP SIDs?",
"in": "query",
"name": "filter[system_profile][sap_sids][contains]",
"schema": {
"items": {
"format": "regex",
"type": "string"
},
"type": "array"
},
"style": "form"
}
],
"responses": {
"200": {
"content": {
Expand All @@ -6219,6 +6264,54 @@
"get": {
"description": "Show statistics of reports impacting across categories and risks.\n\nOnly current reports are considered.",
"operationId": "stats_reports_retrieve",
"parameters": [
{
"description": "Tags have a namespace, key and value in the form namespace/key=value",
"in": "query",
"name": "tags",
"schema": {
"items": {
"format": "regex",
"type": "string"
},
"type": "array"
},
"style": "form"
},
{
"description": "List of Inventory host group names",
"in": "query",
"name": "groups",
"schema": {
"items": {
"type": "string"
},
"type": "array"
},
"style": "form"
},
{
"description": "Is this a SAP system?",
"in": "query",
"name": "filter[system_profile][sap_system]",
"schema": {
"type": "boolean"
}
},
{
"description": "Are there systems which contain these SAP SIDs?",
"in": "query",
"name": "filter[system_profile][sap_sids][contains]",
"schema": {
"items": {
"format": "regex",
"type": "string"
},
"type": "array"
},
"style": "form"
}
],
"responses": {
"200": {
"content": {
Expand All @@ -6245,6 +6338,54 @@
"get": {
"description": "Show statistics of rule usage across categories and risks.\n\nOnly current reports are considered.",
"operationId": "stats_rules_retrieve",
"parameters": [
{
"description": "Tags have a namespace, key and value in the form namespace/key=value",
"in": "query",
"name": "tags",
"schema": {
"items": {
"format": "regex",
"type": "string"
},
"type": "array"
},
"style": "form"
},
{
"description": "List of Inventory host group names",
"in": "query",
"name": "groups",
"schema": {
"items": {
"type": "string"
},
"type": "array"
},
"style": "form"
},
{
"description": "Is this a SAP system?",
"in": "query",
"name": "filter[system_profile][sap_system]",
"schema": {
"type": "boolean"
}
},
{
"description": "Are there systems which contain these SAP SIDs?",
"in": "query",
"name": "filter[system_profile][sap_sids][contains]",
"schema": {
"items": {
"format": "regex",
"type": "string"
},
"type": "array"
},
"style": "form"
}
],
"responses": {
"200": {
"content": {
Expand All @@ -6271,6 +6412,54 @@
"get": {
"description": "Show statistics of systems being impacted across categories and risks.\n\nOnly current reports are considered.",
"operationId": "stats_systems_retrieve",
"parameters": [
{
"description": "Tags have a namespace, key and value in the form namespace/key=value",
"in": "query",
"name": "tags",
"schema": {
"items": {
"format": "regex",
"type": "string"
},
"type": "array"
},
"style": "form"
},
{
"description": "List of Inventory host group names",
"in": "query",
"name": "groups",
"schema": {
"items": {
"type": "string"
},
"type": "array"
},
"style": "form"
},
{
"description": "Is this a SAP system?",
"in": "query",
"name": "filter[system_profile][sap_system]",
"schema": {
"type": "boolean"
}
},
{
"description": "Are there systems which contain these SAP SIDs?",
"in": "query",
"name": "filter[system_profile][sap_sids][contains]",
"schema": {
"items": {
"format": "regex",
"type": "string"
},
"type": "array"
},
"style": "form"
}
],
"responses": {
"200": {
"content": {
Expand Down
Loading