diff --git a/docs/v3/openapi.json b/docs/v3/openapi.json index 7aa0b055c..b8b99e8b0 100644 --- a/docs/v3/openapi.json +++ b/docs/v3/openapi.json @@ -366,7 +366,9 @@ "stale", "status", "template", - "groups" + "groups", + "satellite_managed", + "built_pkgcache" ] } }, @@ -426,6 +428,22 @@ "type": "string" } }, + { + "name": "filter[satellite_managed]", + "in": "query", + "description": "Filter", + "schema": { + "type": "string" + } + }, + { + "name": "filter[built_pkgcache]", + "in": "query", + "description": "Filter", + "schema": { + "type": "string" + } + }, { "name": "tags", "in": "query", @@ -3446,6 +3464,14 @@ "schema": { "type": "string" } + }, + { + "name": "filter[satellite_managed]", + "in": "query", + "description": "Filter systems managed by satellite", + "schema": { + "type": "string" + } } ], "responses": { @@ -4353,6 +4379,14 @@ "type": "string" } }, + { + "name": "filter[satellite_managed]", + "in": "query", + "description": "Filter systems managed by satellite", + "schema": { + "type": "string" + } + }, { "name": "filter[updatable]", "in": "query", @@ -4531,7 +4565,9 @@ "stale", "packages_installed", "baseline_name", - "groups" + "groups", + "satellite_managed", + "built_pkgcache" ] } }, @@ -4655,6 +4691,22 @@ "type": "string" } }, + { + "name": "filter[satellite_managed]", + "in": "query", + "description": "Filter", + "schema": { + "type": "string" + } + }, + { + "name": "filter[built_pkgcache]", + "in": "query", + "description": "Filter", + "schema": { + "type": "string" + } + }, { "name": "filter[os]", "in": "query", diff --git a/manager/controllers/advisory_systems.go b/manager/controllers/advisory_systems.go index 89c1e256a..79fccf1e8 100644 --- a/manager/controllers/advisory_systems.go +++ b/manager/controllers/advisory_systems.go @@ -82,7 +82,7 @@ func advisorySystemsCommon(c *gin.Context) (*gorm.DB, *ListMeta, []string, error // @Param advisory_id path string true "Advisory ID" // @Param limit query int false "Limit for paging, set -1 to return all" // @Param offset query int false "Offset for paging" -// @Param sort query string false "Sort field" Enums(id,display_name,last_evaluation,last_upload,stale,status,template,groups) +// @Param sort query string false "Sort field" Enums(id,display_name,last_evaluation,last_upload,stale,status,template,groups,satellite_managed,built_pkgcache) // @Param search query string false "Find matching text" // @Param filter[id] query string false "Filter" // @Param filter[display_name] query string false "Filter" @@ -90,6 +90,8 @@ func advisorySystemsCommon(c *gin.Context) (*gorm.DB, *ListMeta, []string, error // @Param filter[status] query string false "Filter" // @Param filter[template] query string false "Filter" // @Param filter[os] query string false "Filter OS version" +// @Param filter[satellite_managed] query string false "Filter" +// @Param filter[built_pkgcache] query string false "Filter" // @Param tags query []string false "Tag filter" // @Param filter[group_name] query []string false "Filter systems by inventory groups" // @Param filter[system_profile][sap_system] query string false "Filter only SAP systems" diff --git a/manager/controllers/package_systems.go b/manager/controllers/package_systems.go index 11bcb3300..d8e77403e 100644 --- a/manager/controllers/package_systems.go +++ b/manager/controllers/package_systems.go @@ -134,6 +134,7 @@ func packageSystemsCommon(db *gorm.DB, c *gin.Context) (*gorm.DB, *ListMeta, []s // @Param filter[system_profile][ansible][controller_version] query string false "Filter systems by ansible version" // @Param filter[system_profile][mssql] query string false "Filter systems by mssql version" // @Param filter[system_profile][mssql][version] query string false "Filter systems by mssql version" +// @Param filter[satellite_managed] query string false "Filter systems managed by satellite" // @Param filter[updatable] query bool false "Filter" // @Success 200 {object} PackageSystemsResponseV3 // @Failure 400 {object} utils.ErrorResponse @@ -199,6 +200,7 @@ func PackageSystemsListHandler(c *gin.Context) { // @Param filter[system_profile][ansible][controller_version] query string false "Filter systems by ansible version" // @Param filter[system_profile][mssql] query string false "Filter systems by mssql version" // @Param filter[system_profile][mssql][version] query string false "Filter systems by mssql version" +// @Param filter[satellite_managed] query string false "Filter systems managed by satellite" // @Success 200 {object} IDsStatusResponse // @Failure 400 {object} utils.ErrorResponse // @Failure 404 {object} utils.ErrorResponse diff --git a/manager/controllers/systems.go b/manager/controllers/systems.go index 38bb0a00d..a509914cc 100644 --- a/manager/controllers/systems.go +++ b/manager/controllers/systems.go @@ -199,7 +199,7 @@ func systemsCommon(c *gin.Context, apiver int) (*gorm.DB, *ListMeta, []string, e // @Produce json // @Param limit query int false "Limit for paging, set -1 to return all" // @Param offset query int false "Offset for paging" -// @Param sort query string false "Sort field" Enums(id,display_name,last_upload,rhsa_count,rhba_count,rhea_count,other_count,stale,packages_installed,baseline_name,groups) +// @Param sort query string false "Sort field" Enums(id,display_name,last_upload,rhsa_count,rhba_count,rhea_count,other_count,stale,packages_installed,baseline_name,groups,satellite_managed,built_pkgcache) // @Param search query string false "Find matching text" // @Param filter[id] query string false "Filter" // @Param filter[display_name] query string false "Filter" @@ -215,6 +215,8 @@ func systemsCommon(c *gin.Context, apiver int) (*gorm.DB, *ListMeta, []string, e // @Param filter[culled_timestamp] query string false "Filter" // @Param filter[created] query string false "Filter" // @Param filter[baseline_name] query string false "Filter" +// @Param filter[satellite_managed] query string false "Filter" +// @Param filter[built_pkgcache] query string false "Filter" // @Param filter[os] query string false "Filter OS version" // @Param tags query []string false "Tag filter" // @Param filter[group_name] query []string false "Filter systems by inventory groups"