From 1e6a22d14a08732b1a1cc120faa0e80b1e556a11 Mon Sep 17 00:00:00 2001 From: mhornick Date: Wed, 14 Apr 2021 13:40:01 +0200 Subject: [PATCH] Update clients to provide pkgtree item defintions --- inventory/api/openapi.json | 2 +- inventory/api/openapi.yaml | 43 +++ inventory/api_hosts.go | 8 + inventory/docs/HostsApi.md | 6 +- .../SystemProfileSpecYamlSystemProfile.md | 26 ++ ...system_profile_spec_yaml_system_profile.go | 36 +++ vmaas/.openapi-generator/FILES | 6 + vmaas/README.md | 5 +- vmaas/api/openapi.json | 2 +- vmaas/api/openapi.yaml | 240 ++++++++++---- vmaas/api_default.go | 2 +- vmaas/api_experimental.go | 2 +- vmaas/client.go | 4 +- vmaas/configuration.go | 2 +- vmaas/docs/PkgTreeItem.md | 124 ++++++++ vmaas/docs/PkgTreeItemErrata.md | 98 ++++++ vmaas/docs/PkgTreeItemRepositories.md | 187 +++++++++++ vmaas/docs/PkgtreeResponse.md | 8 +- vmaas/model_cves_request.go | 2 +- vmaas/model_cves_response.go | 2 +- vmaas/model_cves_response_cve_list.go | 2 +- vmaas/model_db_change_response.go | 2 +- vmaas/model_db_change_response_dbchange.go | 2 +- vmaas/model_errata_request.go | 2 +- vmaas/model_errata_response.go | 2 +- vmaas/model_errata_response_errata_list.go | 2 +- vmaas/model_packages_request.go | 2 +- vmaas/model_packages_response.go | 2 +- vmaas/model_packages_response_package_list.go | 2 +- vmaas/model_packages_response_repositories.go | 2 +- vmaas/model_patches_request.go | 2 +- vmaas/model_patches_response.go | 2 +- vmaas/model_pkg_tree_item.go | 210 +++++++++++++ vmaas/model_pkg_tree_item_errata.go | 174 ++++++++++ vmaas/model_pkg_tree_item_repositories.go | 297 ++++++++++++++++++ vmaas/model_pkgtree_request.go | 2 +- vmaas/model_pkgtree_response.go | 14 +- vmaas/model_repos_request.go | 2 +- vmaas/model_repos_response.go | 2 +- vmaas/model_rpm_pkg_names_request.go | 2 +- vmaas/model_rpm_pkg_names_response.go | 2 +- vmaas/model_srpm_pkg_names_request.go | 2 +- vmaas/model_srpm_pkg_names_response.go | 2 +- vmaas/model_updates_v2_response.go | 2 +- ...l_updates_v2_response_available_updates.go | 2 +- .../model_updates_v2_response_update_list.go | 2 +- vmaas/model_updates_v3_request.go | 2 +- .../model_updates_v3_request_modules_list.go | 2 +- vmaas/model_vulnerabilities_request.go | 2 +- vmaas/model_vulnerabilities_response.go | 2 +- vmaas/response.go | 2 +- vmaas/utils.go | 2 +- 52 files changed, 1436 insertions(+), 120 deletions(-) create mode 100644 vmaas/docs/PkgTreeItem.md create mode 100644 vmaas/docs/PkgTreeItemErrata.md create mode 100644 vmaas/docs/PkgTreeItemRepositories.md create mode 100644 vmaas/model_pkg_tree_item.go create mode 100644 vmaas/model_pkg_tree_item_errata.go create mode 100644 vmaas/model_pkg_tree_item_repositories.go diff --git a/inventory/api/openapi.json b/inventory/api/openapi.json index 03dccb1..55f06a4 100644 --- a/inventory/api/openapi.json +++ b/inventory/api/openapi.json @@ -1 +1 @@ -{"components":{"parameters":{"branchId":{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}},"factsNamespace":{"description":"A namespace of the merged facts.","in":"path","name":"namespace","required":true,"schema":{"type":"string"}},"fields_param":{"description":"Fetches only mentioned system_profile fields","explode":true,"in":"query","name":"fields","required":false,"schema":{"description":"System profile field values to fetch","type":"object"},"style":"deepObject"},"filter_param":{"description":"Filters hosts based on system_profile fields","explode":true,"in":"query","name":"filter","required":false,"schema":{"description":"System profile field values to filter with","type":"object"},"style":"deepObject"},"hostIdList":{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},"orderByParam":{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"enum":["display_name","updated"],"type":"string"}},"orderHowParam":{"description":"Direction of the ordering, defaults to ASC for display_name and to DESC for updated","in":"query","name":"order_how","required":false,"schema":{"enum":["ASC","DESC"],"type":"string"}},"pageParam":{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"type":"integer"}},"perPageParam":{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},"registered_with":{"description":"Filters out any host not registered with the specified service","in":"query","name":"registered_with","required":false,"schema":{"enum":["insights"],"type":"string"}},"searchParam":{"description":"Only include tags that match the given search string. The value is matched against namespace, key and value.","in":"query","name":"search","required":false,"schema":{"type":"string"}},"stalenessParam":{"description":"Culling states of the hosts. Default: fresh,stale,unknown","in":"query","name":"staleness","required":false,"schema":{"default":["fresh","stale","unknown"],"items":{"enum":["fresh","stale","stale_warning","unknown"],"type":"string"},"type":"array"}},"tagsOrderBy":{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"default":"tag","enum":["tag","count"],"type":"string"}},"tagsOrderHow":{"description":"Direction of the ordering. Default to ASC","in":"query","name":"order_how","required":false,"schema":{"default":"ASC","enum":["ASC","DESC"],"type":"string"}},"tagsParam":{"description":"filters out hosts not tagged by the given tags","in":"query","name":"tags","required":false,"schema":{"items":{"pattern":"^([^=/]+/)?[^=/]+(=[^=/]+)?$","type":"string"},"type":"array"}}},"responses":{"PageOutOfBounds":{"description":"Requested page is outside of the range of available pages"}},"schemas":{"ActiveTags":{"example":{"count":3,"page":1,"per_page":50,"results":[{"count":3,"tag":{"key":"env","namespace":"Sat","value":"prod"}},{"count":1,"tag":{"key":"region","namespace":"aws","value":"us-east-1"}},{"count":-1,"tag":{"key":"web","namespace":"insights-client","value":null}}],"total":3},"properties":{"count":{"description":"The number of items on the current page","type":"integer"},"page":{"description":"The page number","type":"integer"},"per_page":{"description":"The number of items to return per page","type":"integer"},"results":{"items":{"description":"Information about a host tag","properties":{"count":{"description":"The number of hosts with the given tag. If the value is null this indicates that the count is unknown.","nullable":true,"type":"integer"},"tag":{"properties":{"key":{"type":"string"},"namespace":{"nullable":true,"type":"string"},"value":{"nullable":true,"type":"string"}},"type":"object"}},"required":["tag","count"],"title":"ActiveTag","type":"object"},"type":"array"},"total":{"description":"Total number of items","type":"integer"}},"required":["total","count","page","per_page","results"],"title":"Host data","type":"object"},"BiosUuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"CanonicalFactsIn":{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"bios_uuid":{"nullable":false,"type":"string"},"external_id":{"nullable":false,"type":"string"},"fqdn":{"nullable":false,"type":"string"},"insights_id":{"nullable":false,"type":"string"},"ip_addresses":{"items":{"type":"string"},"nullable":false,"type":"array"},"mac_addresses":{"items":{"type":"string"},"nullable":false,"type":"array"},"rhel_machine_id":{"nullable":false,"type":"string"},"satellite_id":{"nullable":false,"type":"string"},"subscription_manager_id":{"nullable":false,"type":"string"}}},{"anyOf":[{"required":["insights_id"]},{"required":["rhel_machine_id"]},{"required":["subscription_manager_id"]},{"required":["satellite_id"]},{"required":["bios_uuid"]},{"required":["ip_addresses"]},{"required":["fqdn"]},{"required":["mac_addresses"]},{"required":["external_id"]}]}]},"CanonicalFactsOut":{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},"Count":{"description":"The number of items on the current page","type":"integer"},"CreateCheckIn":{"allOf":[{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"bios_uuid":{"nullable":false,"type":"string"},"external_id":{"nullable":false,"type":"string"},"fqdn":{"nullable":false,"type":"string"},"insights_id":{"nullable":false,"type":"string"},"ip_addresses":{"items":{"type":"string"},"nullable":false,"type":"array"},"mac_addresses":{"items":{"type":"string"},"nullable":false,"type":"array"},"rhel_machine_id":{"nullable":false,"type":"string"},"satellite_id":{"nullable":false,"type":"string"},"subscription_manager_id":{"nullable":false,"type":"string"}}},{"anyOf":[{"required":["insights_id"]},{"required":["rhel_machine_id"]},{"required":["subscription_manager_id"]},{"required":["satellite_id"]},{"required":["bios_uuid"]},{"required":["ip_addresses"]},{"required":["fqdn"]},{"required":["mac_addresses"]},{"required":["external_id"]}]}]},{"properties":{"checkin_frequency":{"description":"How long from now to expect another check-in (in minutes).","example":1440,"maximum":2880,"minimum":1,"type":"integer"}}}],"description":"Data required to create a check-in record for a host.","title":"Check-in data","type":"object"},"CreateHostOut":{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"account":{"description":"A Red Hat Account number that owns the host.","example":"000102","type":"string"},"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","nullable":true,"type":"string"},"created":{"description":"A timestamp when the entry was created.","format":"date-time","type":"string"},"culled_timestamp":{"description":"Timestamp from which the host is considered deleted.","format":"date-time","nullable":true,"type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","nullable":true,"type":"string"},"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"},"id":{"description":"A durable and reliable platform-wide host identifier. Applications should use this identifier to reference hosts.","example":"3f01b55457674041b75e41829bcee1dc","type":"string"},"reporter":{"description":"Reporting source of the host. Used when updating the stale_timestamp.","nullable":true,"type":"string"},"stale_timestamp":{"description":"Timestamp from which the host is considered stale.","format":"date-time","nullable":true,"type":"string"},"stale_warning_timestamp":{"description":"Timestamp from which the host is considered too stale to be listed without an explicit toggle.","format":"date-time","nullable":true,"type":"string"},"updated":{"description":"A timestamp when the entry was last updated.","format":"date-time","type":"string"}},"required":["account"]}],"description":"Data of a single host belonging to an account. Represents the hosts without its Inventory metadata.","title":"Create Host Out","type":"object"},"ExternalId":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"FactSet":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"Facts":{"description":"A set of string facts about a host.","example":{"fact1":"value1","fact2":"value2"},"title":"Host facts","type":"object"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"HostOut":{"allOf":[{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"account":{"description":"A Red Hat Account number that owns the host.","example":"000102","type":"string"},"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","nullable":true,"type":"string"},"created":{"description":"A timestamp when the entry was created.","format":"date-time","type":"string"},"culled_timestamp":{"description":"Timestamp from which the host is considered deleted.","format":"date-time","nullable":true,"type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","nullable":true,"type":"string"},"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"},"id":{"description":"A durable and reliable platform-wide host identifier. Applications should use this identifier to reference hosts.","example":"3f01b55457674041b75e41829bcee1dc","type":"string"},"reporter":{"description":"Reporting source of the host. Used when updating the stale_timestamp.","nullable":true,"type":"string"},"stale_timestamp":{"description":"Timestamp from which the host is considered stale.","format":"date-time","nullable":true,"type":"string"},"stale_warning_timestamp":{"description":"Timestamp from which the host is considered too stale to be listed without an explicit toggle.","format":"date-time","nullable":true,"type":"string"},"updated":{"description":"A timestamp when the entry was last updated.","format":"date-time","type":"string"}},"required":["account"]}],"description":"Data of a single host belonging to an account. Represents the hosts without its Inventory metadata.","title":"Create Host Out","type":"object"},{"properties":{"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"}},"type":"object"}],"description":"A database entry representing a single host with its Inventory metadata.","title":"A Host Inventory entry"},"HostQueryOutput":{"description":"A paginated host search query result with host entries and their Inventory metadata.","properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"description":"Actual host search query result entries.","items":{"allOf":[{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"account":{"description":"A Red Hat Account number that owns the host.","example":"000102","type":"string"},"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","nullable":true,"type":"string"},"created":{"description":"A timestamp when the entry was created.","format":"date-time","type":"string"},"culled_timestamp":{"description":"Timestamp from which the host is considered deleted.","format":"date-time","nullable":true,"type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","nullable":true,"type":"string"},"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"},"id":{"description":"A durable and reliable platform-wide host identifier. Applications should use this identifier to reference hosts.","example":"3f01b55457674041b75e41829bcee1dc","type":"string"},"reporter":{"description":"Reporting source of the host. Used when updating the stale_timestamp.","nullable":true,"type":"string"},"stale_timestamp":{"description":"Timestamp from which the host is considered stale.","format":"date-time","nullable":true,"type":"string"},"stale_warning_timestamp":{"description":"Timestamp from which the host is considered too stale to be listed without an explicit toggle.","format":"date-time","nullable":true,"type":"string"},"updated":{"description":"A timestamp when the entry was last updated.","format":"date-time","type":"string"}},"required":["account"]}],"description":"Data of a single host belonging to an account. Represents the hosts without its Inventory metadata.","title":"Create Host Out","type":"object"},{"properties":{"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"}},"type":"object"}],"description":"A database entry representing a single host with its Inventory metadata.","title":"A Host Inventory entry"},"type":"array"},"total":{"description":"A total count of the found entries.","type":"integer"}},"required":["count","page","per_page","total","results"],"title":"A Host Inventory query result","type":"object"},"HostSystemProfileOut":{"description":"Individual host record that contains only the host id and system profile","properties":{"id":{"type":"string"},"system_profile":{"$ref":"#/components/schemas/system_profile.spec.yaml_SystemProfile","x-scope":[""]}},"title":"Structure of an individual host system profile output"},"InsightsId":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"IpAddresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"MacAddresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"NonNullableString":{"nullable":false,"type":"string"},"NonNullableStringArray":{"items":{"type":"string"},"nullable":false,"type":"array"},"Page":{"description":"The page number","type":"integer"},"PatchHostIn":{"description":"Data of a single host to be updated.","properties":{"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","type":"string"}},"title":"Host data","type":"object"},"PerPage":{"description":"The number of items to return per page","type":"integer"},"RhelMachineId":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"SatelliteId":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"StructuredTag":{"properties":{"key":{"type":"string"},"namespace":{"nullable":true,"type":"string"},"value":{"nullable":true,"type":"string"}},"type":"object"},"SubscriptionManagerId":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"SystemProfile":{"$ref":"#/components/schemas/system_profile.spec.yaml_SystemProfile","x-scope":[""]},"SystemProfileByHostOut":{"description":"Structure of the output of the host system profile query","properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"description":"Actual host search query result entries.","items":{"description":"Individual host record that contains only the host id and system profile","properties":{"id":{"type":"string"},"system_profile":{"$ref":"#/components/schemas/system_profile.spec.yaml_SystemProfile","x-scope":[""]}},"title":"Structure of an individual host system profile output"},"type":"array"},"total":{"description":"A total count of the found entries.","type":"integer"}},"required":["count","page","per_page","total","results"],"title":"A host system profile query result","type":"object"},"SystemProfileSapSystemOut":{"properties":{"count":{"description":"The number of items on the current page","type":"integer"},"results":{"description":"The list of sap_system values on the account","items":{"properties":{"count":{"type":"integer"},"value":{"type":"string"}},"type":"object"},"type":"array"},"total":{"description":"Total number of items","type":"integer"}},"type":"object"},"TagCountOut":{"properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"additionalProperties":{"type":"integer"},"description":"The list of tags on the systems","type":"object"},"total":{"description":"Total number of items in the \"data\" list.","type":"integer"}},"type":"object"},"TagsOut":{"properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"additionalProperties":{"items":{"properties":{"key":{"type":"string"},"namespace":{"nullable":true,"type":"string"},"value":{"nullable":true,"type":"string"}},"type":"object"},"type":"array"},"description":"The list of tags on the systems","type":"object"},"total":{"description":"Total number of items in the \"data\" list.","type":"integer"}},"type":"object"},"Total":{"description":"Total number of items","type":"integer"},"system_profile.spec.yaml_DiskDevice":{"description":"Representation of one mounted device","properties":{"device":{"example":"/dev/fdd0","maxLength":2048,"type":"string"},"label":{"description":"User-defined mount label","maxLength":1024,"type":"string"},"mount_point":{"description":"The mount point","example":"/mnt/remote_nfs_shares","maxLength":2048,"type":"string"},"options":{"$ref":"#/components/schemas/system_profile.spec.yaml_NestedObject","x-scope":["","#/components/schemas/system_profile.spec.yaml_SystemProfile","#/components/schemas/system_profile.spec.yaml_DiskDevice"]},"type":{"description":"The mount type","example":"ext3","maxLength":256,"type":"string"}},"type":"object"},"system_profile.spec.yaml_DnfModule":{"description":"Representation of one DNF module","properties":{"name":{"maxLength":128,"type":"string"},"stream":{"maxLength":2048,"type":"string"}},"type":"object"},"system_profile.spec.yaml_InstalledProduct":{"description":"Representation of one installed product","properties":{"id":{"description":"The product ID","example":"71","maxLength":64,"type":"string"},"name":{"maxLength":512,"type":"string"},"status":{"description":"Subscription status for product","example":"Subscribed","maxLength":256,"type":"string"}},"type":"object"},"system_profile.spec.yaml_NestedObject":{"additionalProperties":{"not":{"type":"object"}},"description":"An arbitrary object that does not allow empty string keys.","type":"object","x-propertyNames":{"minLength":1}},"system_profile.spec.yaml_NetworkInterface":{"description":"Representation of one network interface","properties":{"ipv4_addresses":{"items":{"description":"The ipv4 address of the system","example":"123.456.789.012","format":"ipv4","type":"string"},"type":"array"},"ipv6_addresses":{"items":{"description":"The ipv6 address of the system","example":"0123:4567:89ab:cdef:0123:4567:89ab:cdef","format":"ipv6","type":"string"},"type":"array"},"mac_address":{"description":"MAC address (with or without colons)","example":"00:00:00:00:00:00","maxLength":59,"type":"string"},"mtu":{"description":"MTU (Maximum transmission unit)","type":"integer"},"name":{"description":"Name of interface","example":"eth0","maxLength":50,"minLength":1,"type":"string"},"state":{"description":"Interface state (UP, DOWN, UNKNOWN)","example":"UP","maxLength":25,"type":"string"},"type":{"description":"Interface type (ether, loopback)","example":"ether","maxLength":18,"type":"string"}},"type":"object"},"system_profile.spec.yaml_SystemProfile":{"description":"Representation of the system profile fields","properties":{"arch":{"maxLength":50,"type":"string"},"bios_release_date":{"maxLength":50,"type":"string"},"bios_vendor":{"maxLength":100,"type":"string"},"bios_version":{"maxLength":100,"type":"string"},"captured_date":{"maxLength":32,"type":"string"},"cloud_provider":{"maxLength":100,"type":"string"},"cores_per_socket":{"type":"integer"},"cpu_flags":{"items":{"maxLength":30,"type":"string"},"type":"array"},"cpu_model":{"description":"The cpu model name","example":"Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz","maxLength":100,"type":"string"},"disk_devices":{"items":{"$ref":"#/components/schemas/system_profile.spec.yaml_DiskDevice","x-scope":["","#/components/schemas/system_profile.spec.yaml_SystemProfile"]},"type":"array"},"dnf_modules":{"items":{"$ref":"#/components/schemas/system_profile.spec.yaml_DnfModule","x-scope":["","#/components/schemas/system_profile.spec.yaml_SystemProfile"]},"type":"array"},"enabled_services":{"items":{"maxLength":512,"type":"string"},"type":"array"},"infrastructure_type":{"maxLength":100,"type":"string"},"infrastructure_vendor":{"maxLength":100,"type":"string"},"insights_client_version":{"maxLength":50,"type":"string"},"insights_egg_version":{"maxLength":50,"type":"string"},"installed_packages":{"items":{"description":"A NEVRA string for a single installed package","example":"krb5-libs-0:-1.16.1-23.fc29.i686","maxLength":512,"type":"string"},"type":"array"},"installed_packages_delta":{"items":{"description":"A NEVRA string for a single installed package","example":"krb5-libs-0:-1.16.1-23.fc29.i686","maxLength":512,"type":"string"},"type":"array"},"installed_products":{"items":{"$ref":"#/components/schemas/system_profile.spec.yaml_InstalledProduct","x-scope":["","#/components/schemas/system_profile.spec.yaml_SystemProfile"]},"type":"array"},"installed_services":{"items":{"maxLength":512,"type":"string"},"type":"array"},"is_marketplace":{"description":"Indicates whether the host is part of a marketplace install from AWS, Azure, etc.","type":"boolean"},"katello_agent_running":{"type":"boolean"},"kernel_modules":{"items":{"maxLength":255,"type":"string"},"type":"array"},"last_boot_time":{"format":"date-time","maxLength":50,"type":"string"},"network_interfaces":{"items":{"$ref":"#/components/schemas/system_profile.spec.yaml_NetworkInterface","x-scope":["","#/components/schemas/system_profile.spec.yaml_SystemProfile"]},"type":"array"},"number_of_cpus":{"type":"integer"},"number_of_sockets":{"type":"integer"},"operating_system":{"description":"Object for OS details","properties":{"major":{"description":"Major release of OS (aka the x version)","example":6,"maximum":99,"minimum":0,"type":"integer"},"minor":{"description":"Minor release of OS (aka the y version)","example":8,"maximum":99,"minimum":0,"type":"integer"},"name":{"description":"Name of the distro/os","enum":["RHEL"],"example":"RHEL","maxLength":4,"type":"string"}},"type":"object"},"os_kernel_version":{"description":"The kernel version represented with a three, optionally four, number scheme.","example":"3.10.0","maxLength":20,"pattern":"^\\d+\\.\\d+\\.\\d+(\\.\\d+)?$","type":"string"},"os_release":{"maxLength":100,"type":"string"},"owner_id":{"description":"A UUID associated with the host's RHSM certificate","example":"22cd8e39-13bb-4d02-8316-84b850dc5136","maxLength":36,"pattern":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}","type":"string"},"rhc_client_id":{"description":"A UUID associated with a cloud_connector","example":"22cd8e39-13bb-4d02-8316-84b850dc5136","maxLength":36,"pattern":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}","type":"string"},"rhc_config_state":{"description":"A UUID associated with the config manager state","example":"22cd8e39-13bb-4d02-8316-84b850dc5136","maxLength":36,"pattern":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}","type":"string"},"rhsm":{"description":"Object for subscription-manager details","properties":{"version":{"description":"System release set by subscription-manager","example":"8.1","maxLength":255,"type":"string"}},"type":"object"},"running_processes":{"items":{"description":"A single running process. This will be truncated to 1000 characters when saved.","maxLength":1000,"type":"string"},"type":"array"},"sap_instance_number":{"description":"The instance number of the SAP HANA system (a two-digit number between 00 and 99)","example":"03","maxLength":2,"pattern":"^[0-9]{2}$","type":"string"},"sap_sids":{"items":{"description":"The SAP system ID (SID)","example":"H2O","maxLength":3,"pattern":"^[A-Z][A-Z0-9]{2}$","type":"string"},"type":"array","uniqueItems":true},"sap_system":{"description":"Indicates if SAP is installed on the system","type":"boolean"},"sap_version":{"description":"The version of the SAP HANA lifecycle management program","example":"1.00.122.04.1478575636","maxLength":22,"pattern":"^[0-9].[0-9]{2}.[0-9]{3}.[0-9]{2}.[0-9]{10}$","type":"string"},"satellite_managed":{"type":"boolean"},"selinux_config_file":{"description":"The SELinux mode provided in the config file","example":"permissive","maxLength":128,"type":"string"},"selinux_current_mode":{"description":"The current SELinux mode, either enforcing, permissive, or disabled","enum":["enforcing","permissive","disabled"],"example":"enforcing","maxLength":10,"type":"string"},"subscription_auto_attach":{"maxLength":100,"type":"string"},"subscription_status":{"maxLength":100,"type":"string"},"system_memory_bytes":{"format":"int64","type":"integer"},"tuned_profile":{"description":"Current profile resulting from command tuned-adm active","example":"desktop","maxLength":256,"type":"string"},"yum_repos":{"items":{"$ref":"#/components/schemas/system_profile.spec.yaml_YumRepo","x-scope":["","#/components/schemas/system_profile.spec.yaml_SystemProfile"]},"type":"array"}},"type":"object"},"system_profile.spec.yaml_YumRepo":{"description":"Representation of one yum repository","properties":{"base_url":{"format":"uri","maxLength":2048,"type":"string"},"enabled":{"type":"boolean"},"gpgcheck":{"type":"boolean"},"id":{"maxLength":256,"type":"string"},"name":{"maxLength":1024,"type":"string"}},"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"description":"Base64-encoded JSON identity header provided by 3Scale. Contains an account number of the user issuing the request. Format of the JSON: {\"identity\": {\"account_number\": \"12345678\"}}","in":"header","name":"x-rh-identity","type":"apiKey","x-apikeyInfoFunc":"app.auth.authentication_header_handler"},"BearerAuth":{"scheme":"bearer","type":"http","x-bearerInfoFunc":"app.auth.bearer_token_handler"}}},"info":{"description":"REST interface for the Insights Platform Host Inventory application.","title":"Insights Host Inventory REST Interface","version":"1.0.0"},"openapi":"3.0.0","paths":{"/hosts":{"get":{"description":"Read the entire list of all hosts available to the account.

Required permissions: inventory:hosts:read","operationId":"api.host.get_host_list","parameters":[{"description":"A part of a searched host\u2019s display name.","in":"query","name":"display_name","required":false,"schema":{"type":"string"}},{"description":"Filter by a host's FQDN","in":"query","name":"fqdn","required":false,"schema":{"type":"string"}},{"description":"Search for a host by display_name, fqdn, id","in":"query","name":"hostname_or_id","required":false,"schema":{"type":"string"}},{"description":"Search for a host by insights_id","in":"query","name":"insights_id","required":false,"schema":{"format":"uuid","type":"string"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"type":"integer"}},{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"enum":["display_name","updated"],"type":"string"}},{"description":"Direction of the ordering, defaults to ASC for display_name and to DESC for updated","in":"query","name":"order_how","required":false,"schema":{"enum":["ASC","DESC"],"type":"string"}},{"description":"Culling states of the hosts. Default: fresh,stale,unknown","in":"query","name":"staleness","required":false,"schema":{"default":["fresh","stale","unknown"],"items":{"enum":["fresh","stale","stale_warning","unknown"],"type":"string"},"type":"array"}},{"description":"filters out hosts not tagged by the given tags","in":"query","name":"tags","required":false,"schema":{"items":{"pattern":"^([^=/]+/)?[^=/]+(=[^=/]+)?$","type":"string"},"type":"array"}},{"description":"Filters out any host not registered with the specified service","in":"query","name":"registered_with","required":false,"schema":{"enum":["insights"],"type":"string"}},{"description":"Filters hosts based on system_profile fields","explode":true,"in":"query","name":"filter","required":false,"schema":{"description":"System profile field values to filter with","type":"object"},"style":"deepObject"}],"responses":{"200":{"content":{"application/json":{"schema":{"description":"A paginated host search query result with host entries and their Inventory metadata.","properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"description":"Actual host search query result entries.","items":{"allOf":[{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"account":{"description":"A Red Hat Account number that owns the host.","example":"000102","type":"string"},"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","nullable":true,"type":"string"},"created":{"description":"A timestamp when the entry was created.","format":"date-time","type":"string"},"culled_timestamp":{"description":"Timestamp from which the host is considered deleted.","format":"date-time","nullable":true,"type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","nullable":true,"type":"string"},"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"},"id":{"description":"A durable and reliable platform-wide host identifier. Applications should use this identifier to reference hosts.","example":"3f01b55457674041b75e41829bcee1dc","type":"string"},"reporter":{"description":"Reporting source of the host. Used when updating the stale_timestamp.","nullable":true,"type":"string"},"stale_timestamp":{"description":"Timestamp from which the host is considered stale.","format":"date-time","nullable":true,"type":"string"},"stale_warning_timestamp":{"description":"Timestamp from which the host is considered too stale to be listed without an explicit toggle.","format":"date-time","nullable":true,"type":"string"},"updated":{"description":"A timestamp when the entry was last updated.","format":"date-time","type":"string"}},"required":["account"]}],"description":"Data of a single host belonging to an account. Represents the hosts without its Inventory metadata.","title":"Create Host Out","type":"object"},{"properties":{"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"}},"type":"object"}],"description":"A database entry representing a single host with its Inventory metadata.","title":"A Host Inventory entry"},"type":"array"},"total":{"description":"A total count of the found entries.","type":"integer"}},"required":["count","page","per_page","total","results"],"title":"A Host Inventory query result","type":"object"}}},"description":"Successfully read the hosts list."}},"security":[{"ApiKeyAuth":[]}],"summary":"Read the entire list of hosts","tags":["hosts"]}},"/hosts/checkin":{"post":{"description":"Finds a host and updates its staleness timestamps. It uses the supplied canonical facts to determine which host to update. By default, the staleness timestamp is set to 1 hour from when the request is received; however, this can be overridden by supplying the interval.

Required permissions: inventory:hosts:write","operationId":"api.host.host_checkin","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"bios_uuid":{"nullable":false,"type":"string"},"external_id":{"nullable":false,"type":"string"},"fqdn":{"nullable":false,"type":"string"},"insights_id":{"nullable":false,"type":"string"},"ip_addresses":{"items":{"type":"string"},"nullable":false,"type":"array"},"mac_addresses":{"items":{"type":"string"},"nullable":false,"type":"array"},"rhel_machine_id":{"nullable":false,"type":"string"},"satellite_id":{"nullable":false,"type":"string"},"subscription_manager_id":{"nullable":false,"type":"string"}}},{"anyOf":[{"required":["insights_id"]},{"required":["rhel_machine_id"]},{"required":["subscription_manager_id"]},{"required":["satellite_id"]},{"required":["bios_uuid"]},{"required":["ip_addresses"]},{"required":["fqdn"]},{"required":["mac_addresses"]},{"required":["external_id"]}]}]},{"properties":{"checkin_frequency":{"description":"How long from now to expect another check-in (in minutes).","example":1440,"maximum":2880,"minimum":1,"type":"integer"}}}],"description":"Data required to create a check-in record for a host.","title":"Check-in data","type":"object"}}},"description":"Data required to create a check-in record for a host.","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"account":{"description":"A Red Hat Account number that owns the host.","example":"000102","type":"string"},"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","nullable":true,"type":"string"},"created":{"description":"A timestamp when the entry was created.","format":"date-time","type":"string"},"culled_timestamp":{"description":"Timestamp from which the host is considered deleted.","format":"date-time","nullable":true,"type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","nullable":true,"type":"string"},"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"},"id":{"description":"A durable and reliable platform-wide host identifier. Applications should use this identifier to reference hosts.","example":"3f01b55457674041b75e41829bcee1dc","type":"string"},"reporter":{"description":"Reporting source of the host. Used when updating the stale_timestamp.","nullable":true,"type":"string"},"stale_timestamp":{"description":"Timestamp from which the host is considered stale.","format":"date-time","nullable":true,"type":"string"},"stale_warning_timestamp":{"description":"Timestamp from which the host is considered too stale to be listed without an explicit toggle.","format":"date-time","nullable":true,"type":"string"},"updated":{"description":"A timestamp when the entry was last updated.","format":"date-time","type":"string"}},"required":["account"]}],"description":"Data of a single host belonging to an account. Represents the hosts without its Inventory metadata.","title":"Create Host Out","type":"object"}}},"description":"Successfully checked in Host."},"404":{"description":"Not Found."}},"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"summary":"Update staleness timestamps for a host matching the provided facts","tags":["hosts"]}},"/hosts/{host_id_list}":{"delete":{"description":"Delete hosts by IDs

Required permissions: inventory:hosts:write","operationId":"api.host.delete_by_id","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully deleted hosts."},"400":{"description":"Invalid request."},"404":{"description":"Host not found."}},"security":[{"ApiKeyAuth":[]}],"summary":"Delete hosts by IDs","tags":["hosts"]},"get":{"description":"Find one or more hosts by their ID.

Required permissions: inventory:hosts:read","operationId":"api.host.get_host_by_id","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"type":"integer"}},{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"enum":["display_name","updated"],"type":"string"}},{"description":"Direction of the ordering, defaults to ASC for display_name and to DESC for updated","in":"query","name":"order_how","required":false,"schema":{"enum":["ASC","DESC"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"description":"A paginated host search query result with host entries and their Inventory metadata.","properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"description":"Actual host search query result entries.","items":{"allOf":[{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"account":{"description":"A Red Hat Account number that owns the host.","example":"000102","type":"string"},"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","nullable":true,"type":"string"},"created":{"description":"A timestamp when the entry was created.","format":"date-time","type":"string"},"culled_timestamp":{"description":"Timestamp from which the host is considered deleted.","format":"date-time","nullable":true,"type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","nullable":true,"type":"string"},"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"},"id":{"description":"A durable and reliable platform-wide host identifier. Applications should use this identifier to reference hosts.","example":"3f01b55457674041b75e41829bcee1dc","type":"string"},"reporter":{"description":"Reporting source of the host. Used when updating the stale_timestamp.","nullable":true,"type":"string"},"stale_timestamp":{"description":"Timestamp from which the host is considered stale.","format":"date-time","nullable":true,"type":"string"},"stale_warning_timestamp":{"description":"Timestamp from which the host is considered too stale to be listed without an explicit toggle.","format":"date-time","nullable":true,"type":"string"},"updated":{"description":"A timestamp when the entry was last updated.","format":"date-time","type":"string"}},"required":["account"]}],"description":"Data of a single host belonging to an account. Represents the hosts without its Inventory metadata.","title":"Create Host Out","type":"object"},{"properties":{"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"}},"type":"object"}],"description":"A database entry representing a single host with its Inventory metadata.","title":"A Host Inventory entry"},"type":"array"},"total":{"description":"A total count of the found entries.","type":"integer"}},"required":["count","page","per_page","total","results"],"title":"A Host Inventory query result","type":"object"}}},"description":"Successfully searched for hosts."},"400":{"description":"Invalid request."},"404":{"description":"Host not found."}},"security":[{"ApiKeyAuth":[]}],"summary":"Find hosts by their IDs","tags":["hosts"]},"patch":{"description":"Update a host

Required permissions: inventory:hosts:write","operationId":"api.host.patch_by_id","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"Data of a single host to be updated.","properties":{"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","type":"string"}},"title":"Host data","type":"object"}}},"description":"A group of fields to be updated on the host","required":true},"responses":{"200":{"description":"Successfully updated the host."},"400":{"description":"Invalid request."},"404":{"description":"Host not found."}},"security":[{"ApiKeyAuth":[]}],"summary":"Update a host","tags":["hosts"]}},"/hosts/{host_id_list}/facts/{namespace}":{"patch":{"description":"Merge one or multiple hosts facts under a namespace.

Required permissions: inventory:hosts:write","operationId":"api.host.merge_facts","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"A namespace of the merged facts.","in":"path","name":"namespace","required":true,"schema":{"type":"string"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"A set of string facts about a host.","example":{"fact1":"value1","fact2":"value2"},"title":"Host facts","type":"object"}}},"description":"A dictionary with the new facts to merge with the original ones.","required":true},"responses":{"200":{"description":"Successfully merged facts."},"400":{"description":"Invalid request."},"404":{"description":"Host or namespace not found."}},"security":[{"ApiKeyAuth":[]}],"summary":"Merge facts under a namespace","tags":["hosts"]},"put":{"description":"Replace facts under a namespace

Required permissions: inventory:hosts:write","operationId":"api.host.replace_facts","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"A namespace of the merged facts.","in":"path","name":"namespace","required":true,"schema":{"type":"string"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"A set of string facts about a host.","example":{"fact1":"value1","fact2":"value2"},"title":"Host facts","type":"object"}}},"description":"A dictionary with the new facts to replace the original ones.","required":true},"responses":{"200":{"description":"Successfully replaced facts."},"400":{"description":"Invalid request."},"404":{"description":"Host or namespace not found."}},"security":[{"ApiKeyAuth":[]}],"summary":"Replace facts under a namespace","tags":["hosts"]}},"/hosts/{host_id_list}/system_profile":{"get":{"description":"Find one or more hosts by their ID and return the id and system profile

Required permissions: inventory:hosts:read","operationId":"api.host.get_host_system_profile_by_id","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"type":"integer"}},{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"enum":["display_name","updated"],"type":"string"}},{"description":"Direction of the ordering, defaults to ASC for display_name and to DESC for updated","in":"query","name":"order_how","required":false,"schema":{"enum":["ASC","DESC"],"type":"string"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}},{"description":"Fetches only mentioned system_profile fields","explode":true,"in":"query","name":"fields","required":false,"schema":{"description":"System profile field values to fetch","type":"object"},"style":"deepObject"}],"responses":{"200":{"content":{"application/json":{"schema":{"description":"Structure of the output of the host system profile query","properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"description":"Actual host search query result entries.","items":{"description":"Individual host record that contains only the host id and system profile","properties":{"id":{"type":"string"},"system_profile":{"$ref":"#/components/schemas/system_profile.spec.yaml_SystemProfile","x-scope":[""]}},"title":"Structure of an individual host system profile output"},"type":"array"},"total":{"description":"A total count of the found entries.","type":"integer"}},"required":["count","page","per_page","total","results"],"title":"A host system profile query result","type":"object"}}},"description":"Successfully searched for hosts."},"400":{"description":"Invalid request."},"404":{"description":"Host not found."}},"security":[{"ApiKeyAuth":[]}],"summary":"Return one or more hosts system profile","tags":["hosts"]}},"/hosts/{host_id_list}/tags":{"get":{"description":"Get the tags on a host

Required permissions: inventory:hosts:read","operationId":"api.host.get_host_tags","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"type":"integer"}},{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"enum":["display_name","updated"],"type":"string"}},{"description":"Direction of the ordering, defaults to ASC for display_name and to DESC for updated","in":"query","name":"order_how","required":false,"schema":{"enum":["ASC","DESC"],"type":"string"}},{"description":"Only include tags that match the given search string. The value is matched against namespace, key and value.","in":"query","name":"search","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"additionalProperties":{"items":{"properties":{"key":{"type":"string"},"namespace":{"nullable":true,"type":"string"},"value":{"nullable":true,"type":"string"}},"type":"object"},"type":"array"},"description":"The list of tags on the systems","type":"object"},"total":{"description":"Total number of items in the \"data\" list.","type":"integer"}},"type":"object"}}},"description":"Successfully found tags."},"400":{"description":"Invalid request."}},"security":[{"ApiKeyAuth":[]}],"summary":"Get the tags on a host","tags":["hosts"]}},"/hosts/{host_id_list}/tags/count":{"get":{"description":"Get the number of tags on a host

Required permissions: inventory:hosts:read","operationId":"api.host.get_host_tag_count","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"type":"integer"}},{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"enum":["display_name","updated"],"type":"string"}},{"description":"Direction of the ordering, defaults to ASC for display_name and to DESC for updated","in":"query","name":"order_how","required":false,"schema":{"enum":["ASC","DESC"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"additionalProperties":{"type":"integer"},"description":"The list of tags on the systems","type":"object"},"total":{"description":"Total number of items in the \"data\" list.","type":"integer"}},"type":"object"}}},"description":"Successfully found tag count."},"400":{"description":"Invalid request."}},"security":[{"ApiKeyAuth":[]}],"summary":"Get the number of tags on a host","tags":["hosts"]}},"/system_profile/sap_sids":{"get":{"description":"Required permissions: inventory:hosts:read","operationId":"api.system_profile.get_sap_sids","parameters":[{"description":"Only include tags that match the given search string. The value is matched against namespace, key and value.","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"filters out hosts not tagged by the given tags","in":"query","name":"tags","required":false,"schema":{"items":{"pattern":"^([^=/]+/)?[^=/]+(=[^=/]+)?$","type":"string"},"type":"array"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"type":"integer"}},{"description":"Culling states of the hosts. Default: fresh,stale,unknown","in":"query","name":"staleness","required":false,"schema":{"default":["fresh","stale","unknown"],"items":{"enum":["fresh","stale","stale_warning","unknown"],"type":"string"},"type":"array"}},{"description":"Filters out any host not registered with the specified service","in":"query","name":"registered_with","required":false,"schema":{"enum":["insights"],"type":"string"}},{"description":"Filters hosts based on system_profile fields","explode":true,"in":"query","name":"filter","required":false,"schema":{"description":"System profile field values to filter with","type":"object"},"style":"deepObject"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"count":{"description":"The number of items on the current page","type":"integer"},"results":{"description":"The list of sap_system values on the account","items":{"properties":{"count":{"type":"integer"},"value":{"type":"string"}},"type":"object"},"type":"array"},"total":{"description":"Total number of items","type":"integer"}},"type":"object"}}},"description":"sap_system values and counts for account"},"400":{"description":"Invalid request."},"404":{"description":"Requested page is outside of the range of available pages"}},"security":[{"ApiKeyAuth":[]}],"summary":"get sap system values","tags":["sap_system"]}},"/system_profile/sap_system":{"get":{"description":"Required permissions: inventory:hosts:read","operationId":"api.system_profile.get_sap_system","parameters":[{"description":"filters out hosts not tagged by the given tags","in":"query","name":"tags","required":false,"schema":{"items":{"pattern":"^([^=/]+/)?[^=/]+(=[^=/]+)?$","type":"string"},"type":"array"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"type":"integer"}},{"description":"Culling states of the hosts. Default: fresh,stale,unknown","in":"query","name":"staleness","required":false,"schema":{"default":["fresh","stale","unknown"],"items":{"enum":["fresh","stale","stale_warning","unknown"],"type":"string"},"type":"array"}},{"description":"Filters out any host not registered with the specified service","in":"query","name":"registered_with","required":false,"schema":{"enum":["insights"],"type":"string"}},{"description":"Filters hosts based on system_profile fields","explode":true,"in":"query","name":"filter","required":false,"schema":{"description":"System profile field values to filter with","type":"object"},"style":"deepObject"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"count":{"description":"The number of items on the current page","type":"integer"},"results":{"description":"The list of sap_system values on the account","items":{"properties":{"count":{"type":"integer"},"value":{"type":"string"}},"type":"object"},"type":"array"},"total":{"description":"Total number of items","type":"integer"}},"type":"object"}}},"description":"sap_system values and counts for account"},"400":{"description":"Invalid request."},"404":{"description":"Requested page is outside of the range of available pages"}},"security":[{"ApiKeyAuth":[]}],"summary":"get sap system values","tags":["sap_system"]}},"/system_profile/validate_schema":{"post":{"description":"Validates System Profile data from recent Kafka messages against a given spec, and compares it with the current one. Only HBI Admins can access this endpoint.","operationId":"api.system_profile.validate_schema","parameters":[{"description":"The fork of the inventory-schemas repo to use","in":"query","name":"repo_fork","schema":{"type":"string"}},{"description":"The branch of the inventory-schemas repo to use","in":"query","name":"repo_branch","required":true,"schema":{"type":"string"}},{"description":"How many days worth of data to validate","in":"query","name":"days","schema":{"minimum":1,"type":"integer"}},{"description":"Stops polling when this number of messages has been collected","in":"query","name":"max_messages","schema":{"default":10000,"minimum":1,"type":"integer"}}],"responses":{"200":{"description":"Host validation results"},"403":{"description":"Forbidden"}},"security":[{"ApiKeyAuth":[]}],"summary":"validate system profile schema"}},"/tags":{"get":{"description":"Required permissions: inventory:hosts:read","operationId":"api.tag.get_tags","parameters":[{"description":"filters out hosts not tagged by the given tags","in":"query","name":"tags","required":false,"schema":{"items":{"pattern":"^([^=/]+/)?[^=/]+(=[^=/]+)?$","type":"string"},"type":"array"}},{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"default":"tag","enum":["tag","count"],"type":"string"}},{"description":"Direction of the ordering. Default to ASC","in":"query","name":"order_how","required":false,"schema":{"default":"ASC","enum":["ASC","DESC"],"type":"string"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"type":"integer"}},{"description":"Culling states of the hosts. Default: fresh,stale,unknown","in":"query","name":"staleness","required":false,"schema":{"default":["fresh","stale","unknown"],"items":{"enum":["fresh","stale","stale_warning","unknown"],"type":"string"},"type":"array"}},{"description":"Only include tags that match the given search string. The value is matched against namespace, key and value.","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"Filters out any host not registered with the specified service","in":"query","name":"registered_with","required":false,"schema":{"enum":["insights"],"type":"string"}},{"description":"Filters hosts based on system_profile fields","explode":true,"in":"query","name":"filter","required":false,"schema":{"description":"System profile field values to filter with","type":"object"},"style":"deepObject"}],"responses":{"200":{"content":{"application/json":{"schema":{"example":{"count":3,"page":1,"per_page":50,"results":[{"count":3,"tag":{"key":"env","namespace":"Sat","value":"prod"}},{"count":1,"tag":{"key":"region","namespace":"aws","value":"us-east-1"}},{"count":-1,"tag":{"key":"web","namespace":"insights-client","value":null}}],"total":3},"properties":{"count":{"description":"The number of items on the current page","type":"integer"},"page":{"description":"The page number","type":"integer"},"per_page":{"description":"The number of items to return per page","type":"integer"},"results":{"items":{"description":"Information about a host tag","properties":{"count":{"description":"The number of hosts with the given tag. If the value is null this indicates that the count is unknown.","nullable":true,"type":"integer"},"tag":{"properties":{"key":{"type":"string"},"namespace":{"nullable":true,"type":"string"},"value":{"nullable":true,"type":"string"}},"type":"object"}},"required":["tag","count"],"title":"ActiveTag","type":"object"},"type":"array"},"total":{"description":"Total number of items","type":"integer"}},"required":["total","count","page","per_page","results"],"title":"Host data","type":"object"}}},"description":"Tags"},"400":{"description":"Invalid request."},"404":{"description":"Requested page is outside of the range of available pages"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get the active host tags for a given account","tags":["tags"]}}},"servers":[{"url":"/api/inventory/v1"}]} +{"components":{"parameters":{"branchId":{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}},"factsNamespace":{"description":"A namespace of the merged facts.","in":"path","name":"namespace","required":true,"schema":{"type":"string"}},"fields_param":{"description":"Fetches only mentioned system_profile fields","explode":true,"in":"query","name":"fields","required":false,"schema":{"description":"System profile field values to fetch","type":"object"},"style":"deepObject"},"filter_param":{"description":"Filters hosts based on system_profile fields","explode":true,"in":"query","name":"filter","required":false,"schema":{"description":"System profile field values to filter with","type":"object"},"style":"deepObject"},"hostIdList":{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},"orderByParam":{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"enum":["display_name","updated"],"type":"string"}},"orderHowParam":{"description":"Direction of the ordering, defaults to ASC for display_name and to DESC for updated","in":"query","name":"order_how","required":false,"schema":{"enum":["ASC","DESC"],"type":"string"}},"pageParam":{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"type":"integer"}},"perPageParam":{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"type":"integer"}},"registered_with":{"description":"Filters out any host not registered with the specified service","in":"query","name":"registered_with","required":false,"schema":{"enum":["insights"],"type":"string"}},"searchParam":{"description":"Only include tags that match the given search string. The value is matched against namespace, key and value.","in":"query","name":"search","required":false,"schema":{"type":"string"}},"stalenessParam":{"description":"Culling states of the hosts. Default: fresh,stale,unknown","in":"query","name":"staleness","required":false,"schema":{"default":["fresh","stale","unknown"],"items":{"enum":["fresh","stale","stale_warning","unknown"],"type":"string"},"type":"array"}},"tagsOrderBy":{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"default":"tag","enum":["tag","count"],"type":"string"}},"tagsOrderHow":{"description":"Direction of the ordering. Default to ASC","in":"query","name":"order_how","required":false,"schema":{"default":"ASC","enum":["ASC","DESC"],"type":"string"}},"tagsParam":{"description":"filters out hosts not tagged by the given tags","in":"query","name":"tags","required":false,"schema":{"items":{"pattern":"^([^=/]+/)?[^=/]+(=[^=/]+)?$","type":"string"},"type":"array"}}},"responses":{"PageOutOfBounds":{"description":"Requested page is outside of the range of available pages"}},"schemas":{"ActiveTags":{"example":{"count":3,"page":1,"per_page":50,"results":[{"count":3,"tag":{"key":"env","namespace":"Sat","value":"prod"}},{"count":1,"tag":{"key":"region","namespace":"aws","value":"us-east-1"}},{"count":-1,"tag":{"key":"web","namespace":"insights-client","value":null}}],"total":3},"properties":{"count":{"description":"The number of items on the current page","type":"integer"},"page":{"description":"The page number","type":"integer"},"per_page":{"description":"The number of items to return per page","type":"integer"},"results":{"items":{"description":"Information about a host tag","properties":{"count":{"description":"The number of hosts with the given tag. If the value is null this indicates that the count is unknown.","nullable":true,"type":"integer"},"tag":{"properties":{"key":{"type":"string"},"namespace":{"nullable":true,"type":"string"},"value":{"nullable":true,"type":"string"}},"type":"object"}},"required":["tag","count"],"title":"ActiveTag","type":"object"},"type":"array"},"total":{"description":"Total number of items","type":"integer"}},"required":["total","count","page","per_page","results"],"title":"Host data","type":"object"},"BiosUuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"CanonicalFactsIn":{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"bios_uuid":{"nullable":false,"type":"string"},"external_id":{"nullable":false,"type":"string"},"fqdn":{"nullable":false,"type":"string"},"insights_id":{"nullable":false,"type":"string"},"ip_addresses":{"items":{"type":"string"},"nullable":false,"type":"array"},"mac_addresses":{"items":{"type":"string"},"nullable":false,"type":"array"},"rhel_machine_id":{"nullable":false,"type":"string"},"satellite_id":{"nullable":false,"type":"string"},"subscription_manager_id":{"nullable":false,"type":"string"}}},{"anyOf":[{"required":["insights_id"]},{"required":["rhel_machine_id"]},{"required":["subscription_manager_id"]},{"required":["satellite_id"]},{"required":["bios_uuid"]},{"required":["ip_addresses"]},{"required":["fqdn"]},{"required":["mac_addresses"]},{"required":["external_id"]}]}]},"CanonicalFactsOut":{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},"Count":{"description":"The number of items on the current page","type":"integer"},"CreateCheckIn":{"allOf":[{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"bios_uuid":{"nullable":false,"type":"string"},"external_id":{"nullable":false,"type":"string"},"fqdn":{"nullable":false,"type":"string"},"insights_id":{"nullable":false,"type":"string"},"ip_addresses":{"items":{"type":"string"},"nullable":false,"type":"array"},"mac_addresses":{"items":{"type":"string"},"nullable":false,"type":"array"},"rhel_machine_id":{"nullable":false,"type":"string"},"satellite_id":{"nullable":false,"type":"string"},"subscription_manager_id":{"nullable":false,"type":"string"}}},{"anyOf":[{"required":["insights_id"]},{"required":["rhel_machine_id"]},{"required":["subscription_manager_id"]},{"required":["satellite_id"]},{"required":["bios_uuid"]},{"required":["ip_addresses"]},{"required":["fqdn"]},{"required":["mac_addresses"]},{"required":["external_id"]}]}]},{"properties":{"checkin_frequency":{"description":"How long from now to expect another check-in (in minutes).","example":1440,"maximum":2880,"minimum":1,"type":"integer"}}}],"description":"Data required to create a check-in record for a host.","title":"Check-in data","type":"object"},"CreateHostOut":{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"account":{"description":"A Red Hat Account number that owns the host.","example":"000102","type":"string"},"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","nullable":true,"type":"string"},"created":{"description":"A timestamp when the entry was created.","format":"date-time","type":"string"},"culled_timestamp":{"description":"Timestamp from which the host is considered deleted.","format":"date-time","nullable":true,"type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","nullable":true,"type":"string"},"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"},"id":{"description":"A durable and reliable platform-wide host identifier. Applications should use this identifier to reference hosts.","example":"3f01b55457674041b75e41829bcee1dc","type":"string"},"reporter":{"description":"Reporting source of the host. Used when updating the stale_timestamp.","nullable":true,"type":"string"},"stale_timestamp":{"description":"Timestamp from which the host is considered stale.","format":"date-time","nullable":true,"type":"string"},"stale_warning_timestamp":{"description":"Timestamp from which the host is considered too stale to be listed without an explicit toggle.","format":"date-time","nullable":true,"type":"string"},"updated":{"description":"A timestamp when the entry was last updated.","format":"date-time","type":"string"}},"required":["account"]}],"description":"Data of a single host belonging to an account. Represents the hosts without its Inventory metadata.","title":"Create Host Out","type":"object"},"ExternalId":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"FactSet":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"Facts":{"description":"A set of string facts about a host.","example":{"fact1":"value1","fact2":"value2"},"title":"Host facts","type":"object"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"HostOut":{"allOf":[{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"account":{"description":"A Red Hat Account number that owns the host.","example":"000102","type":"string"},"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","nullable":true,"type":"string"},"created":{"description":"A timestamp when the entry was created.","format":"date-time","type":"string"},"culled_timestamp":{"description":"Timestamp from which the host is considered deleted.","format":"date-time","nullable":true,"type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","nullable":true,"type":"string"},"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"},"id":{"description":"A durable and reliable platform-wide host identifier. Applications should use this identifier to reference hosts.","example":"3f01b55457674041b75e41829bcee1dc","type":"string"},"reporter":{"description":"Reporting source of the host. Used when updating the stale_timestamp.","nullable":true,"type":"string"},"stale_timestamp":{"description":"Timestamp from which the host is considered stale.","format":"date-time","nullable":true,"type":"string"},"stale_warning_timestamp":{"description":"Timestamp from which the host is considered too stale to be listed without an explicit toggle.","format":"date-time","nullable":true,"type":"string"},"updated":{"description":"A timestamp when the entry was last updated.","format":"date-time","type":"string"}},"required":["account"]}],"description":"Data of a single host belonging to an account. Represents the hosts without its Inventory metadata.","title":"Create Host Out","type":"object"},{"properties":{"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"}},"type":"object"}],"description":"A database entry representing a single host with its Inventory metadata.","title":"A Host Inventory entry"},"HostQueryOutput":{"description":"A paginated host search query result with host entries and their Inventory metadata.","properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"description":"Actual host search query result entries.","items":{"allOf":[{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"account":{"description":"A Red Hat Account number that owns the host.","example":"000102","type":"string"},"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","nullable":true,"type":"string"},"created":{"description":"A timestamp when the entry was created.","format":"date-time","type":"string"},"culled_timestamp":{"description":"Timestamp from which the host is considered deleted.","format":"date-time","nullable":true,"type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","nullable":true,"type":"string"},"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"},"id":{"description":"A durable and reliable platform-wide host identifier. Applications should use this identifier to reference hosts.","example":"3f01b55457674041b75e41829bcee1dc","type":"string"},"reporter":{"description":"Reporting source of the host. Used when updating the stale_timestamp.","nullable":true,"type":"string"},"stale_timestamp":{"description":"Timestamp from which the host is considered stale.","format":"date-time","nullable":true,"type":"string"},"stale_warning_timestamp":{"description":"Timestamp from which the host is considered too stale to be listed without an explicit toggle.","format":"date-time","nullable":true,"type":"string"},"updated":{"description":"A timestamp when the entry was last updated.","format":"date-time","type":"string"}},"required":["account"]}],"description":"Data of a single host belonging to an account. Represents the hosts without its Inventory metadata.","title":"Create Host Out","type":"object"},{"properties":{"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"}},"type":"object"}],"description":"A database entry representing a single host with its Inventory metadata.","title":"A Host Inventory entry"},"type":"array"},"total":{"description":"A total count of the found entries.","type":"integer"}},"required":["count","page","per_page","total","results"],"title":"A Host Inventory query result","type":"object"},"HostSystemProfileOut":{"description":"Individual host record that contains only the host id and system profile","properties":{"id":{"type":"string"},"system_profile":{"$ref":"#/components/schemas/system_profile.spec.yaml_SystemProfile","x-scope":[""]}},"title":"Structure of an individual host system profile output"},"InsightsId":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"IpAddresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"MacAddresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"NonNullableString":{"nullable":false,"type":"string"},"NonNullableStringArray":{"items":{"type":"string"},"nullable":false,"type":"array"},"Page":{"description":"The page number","type":"integer"},"PatchHostIn":{"description":"Data of a single host to be updated.","properties":{"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","type":"string"}},"title":"Host data","type":"object"},"PerPage":{"description":"The number of items to return per page","type":"integer"},"RhelMachineId":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"SatelliteId":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"StructuredTag":{"properties":{"key":{"type":"string"},"namespace":{"nullable":true,"type":"string"},"value":{"nullable":true,"type":"string"}},"type":"object"},"SubscriptionManagerId":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"SystemProfile":{"$ref":"#/components/schemas/system_profile.spec.yaml_SystemProfile","x-scope":[""]},"SystemProfileByHostOut":{"description":"Structure of the output of the host system profile query","properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"description":"Actual host search query result entries.","items":{"description":"Individual host record that contains only the host id and system profile","properties":{"id":{"type":"string"},"system_profile":{"$ref":"#/components/schemas/system_profile.spec.yaml_SystemProfile","x-scope":[""]}},"title":"Structure of an individual host system profile output"},"type":"array"},"total":{"description":"A total count of the found entries.","type":"integer"}},"required":["count","page","per_page","total","results"],"title":"A host system profile query result","type":"object"},"SystemProfileSapSystemOut":{"properties":{"count":{"description":"The number of items on the current page","type":"integer"},"results":{"description":"The list of sap_system values on the account","items":{"properties":{"count":{"type":"integer"},"value":{"type":"string"}},"type":"object"},"type":"array"},"total":{"description":"Total number of items","type":"integer"}},"type":"object"},"TagCountOut":{"properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"additionalProperties":{"type":"integer"},"description":"The list of tags on the systems","type":"object"},"total":{"description":"Total number of items in the \"data\" list.","type":"integer"}},"type":"object"},"TagsOut":{"properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"additionalProperties":{"items":{"properties":{"key":{"type":"string"},"namespace":{"nullable":true,"type":"string"},"value":{"nullable":true,"type":"string"}},"type":"object"},"type":"array"},"description":"The list of tags on the systems","type":"object"},"total":{"description":"Total number of items in the \"data\" list.","type":"integer"}},"type":"object"},"Total":{"description":"Total number of items","type":"integer"},"system_profile.spec.yaml_DiskDevice":{"description":"Representation of one mounted device","properties":{"device":{"example":"/dev/fdd0","maxLength":2048,"type":"string"},"label":{"description":"User-defined mount label","maxLength":1024,"type":"string"},"mount_point":{"description":"The mount point","example":"/mnt/remote_nfs_shares","maxLength":2048,"type":"string"},"options":{"$ref":"#/components/schemas/system_profile.spec.yaml_NestedObject","x-scope":["","#/components/schemas/system_profile.spec.yaml_SystemProfile","#/components/schemas/system_profile.spec.yaml_DiskDevice"]},"type":{"description":"The mount type","example":"ext3","maxLength":256,"type":"string"}},"type":"object"},"system_profile.spec.yaml_DnfModule":{"description":"Representation of one DNF module","properties":{"name":{"maxLength":128,"type":"string"},"stream":{"maxLength":2048,"type":"string"}},"type":"object"},"system_profile.spec.yaml_InstalledProduct":{"description":"Representation of one installed product","properties":{"id":{"description":"The product ID","example":"71","maxLength":64,"type":"string"},"name":{"maxLength":512,"type":"string"},"status":{"description":"Subscription status for product","example":"Subscribed","maxLength":256,"type":"string"}},"type":"object"},"system_profile.spec.yaml_NestedObject":{"additionalProperties":{"not":{"type":"object"}},"description":"An arbitrary object that does not allow empty string keys.","type":"object","x-propertyNames":{"minLength":1}},"system_profile.spec.yaml_NetworkInterface":{"description":"Representation of one network interface","properties":{"ipv4_addresses":{"items":{"description":"The ipv4 address of the system","example":"123.456.789.012","format":"ipv4","type":"string"},"type":"array"},"ipv6_addresses":{"items":{"description":"The ipv6 address of the system","example":"0123:4567:89ab:cdef:0123:4567:89ab:cdef","format":"ipv6","type":"string"},"type":"array"},"mac_address":{"description":"MAC address (with or without colons)","example":"00:00:00:00:00:00","maxLength":59,"type":"string"},"mtu":{"description":"MTU (Maximum transmission unit)","type":"integer"},"name":{"description":"Name of interface","example":"eth0","maxLength":50,"minLength":1,"type":"string"},"state":{"description":"Interface state (UP, DOWN, UNKNOWN)","example":"UP","maxLength":25,"type":"string"},"type":{"description":"Interface type (ether, loopback)","example":"ether","maxLength":18,"type":"string"}},"type":"object"},"system_profile.spec.yaml_SystemProfile":{"description":"Representation of the system profile fields","properties":{"arch":{"maxLength":50,"type":"string"},"bios_release_date":{"maxLength":50,"type":"string"},"bios_vendor":{"maxLength":100,"type":"string"},"bios_version":{"maxLength":100,"type":"string"},"captured_date":{"maxLength":32,"type":"string"},"cloud_provider":{"maxLength":100,"type":"string"},"cores_per_socket":{"type":"integer"},"cpu_flags":{"items":{"maxLength":30,"type":"string"},"type":"array"},"cpu_model":{"description":"The cpu model name","example":"Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz","maxLength":100,"type":"string"},"disk_devices":{"items":{"$ref":"#/components/schemas/system_profile.spec.yaml_DiskDevice","x-scope":["","#/components/schemas/system_profile.spec.yaml_SystemProfile"]},"type":"array"},"dnf_modules":{"items":{"$ref":"#/components/schemas/system_profile.spec.yaml_DnfModule","x-scope":["","#/components/schemas/system_profile.spec.yaml_SystemProfile"]},"type":"array"},"enabled_services":{"items":{"maxLength":512,"type":"string"},"type":"array"},"gpg_pubkeys":{"items":{"description":"A package name string of a single imported GPG pubkey","example":"gpg-pubkey-11111111-22222222","maxLength":512,"type":"string"},"type":"array"},"infrastructure_type":{"maxLength":100,"type":"string"},"infrastructure_vendor":{"maxLength":100,"type":"string"},"insights_client_version":{"maxLength":50,"type":"string"},"insights_egg_version":{"maxLength":50,"type":"string"},"installed_packages":{"items":{"description":"A NEVRA string for a single installed package","example":"krb5-libs-0:-1.16.1-23.fc29.i686","maxLength":512,"type":"string"},"type":"array"},"installed_packages_delta":{"items":{"description":"A NEVRA string for a single installed package","example":"krb5-libs-0:-1.16.1-23.fc29.i686","maxLength":512,"type":"string"},"type":"array"},"installed_products":{"items":{"$ref":"#/components/schemas/system_profile.spec.yaml_InstalledProduct","x-scope":["","#/components/schemas/system_profile.spec.yaml_SystemProfile"]},"type":"array"},"installed_services":{"items":{"maxLength":512,"type":"string"},"type":"array"},"is_marketplace":{"description":"Indicates whether the host is part of a marketplace install from AWS, Azure, etc.","type":"boolean"},"katello_agent_running":{"type":"boolean"},"kernel_modules":{"items":{"maxLength":255,"type":"string"},"type":"array"},"last_boot_time":{"format":"date-time","maxLength":50,"type":"string"},"network_interfaces":{"items":{"$ref":"#/components/schemas/system_profile.spec.yaml_NetworkInterface","x-scope":["","#/components/schemas/system_profile.spec.yaml_SystemProfile"]},"type":"array"},"number_of_cpus":{"type":"integer"},"number_of_sockets":{"type":"integer"},"operating_system":{"description":"Object for OS details","properties":{"major":{"description":"Major release of OS (aka the x version)","example":6,"maximum":99,"minimum":0,"type":"integer"},"minor":{"description":"Minor release of OS (aka the y version)","example":8,"maximum":99,"minimum":0,"type":"integer"},"name":{"description":"Name of the distro/os","enum":["RHEL"],"example":"RHEL","maxLength":4,"type":"string"}},"type":"object"},"os_kernel_version":{"description":"The kernel version represented with a three, optionally four, number scheme.","example":"3.10.0","maxLength":20,"pattern":"^\\d+\\.\\d+\\.\\d+(\\.\\d+)?$","type":"string"},"os_release":{"maxLength":100,"type":"string"},"owner_id":{"description":"A UUID associated with the host's RHSM certificate","example":"22cd8e39-13bb-4d02-8316-84b850dc5136","maxLength":36,"pattern":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}","type":"string"},"rhc_client_id":{"description":"A UUID associated with a cloud_connector","example":"22cd8e39-13bb-4d02-8316-84b850dc5136","maxLength":36,"pattern":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}","type":"string"},"rhc_config_state":{"description":"A UUID associated with the config manager state","example":"22cd8e39-13bb-4d02-8316-84b850dc5136","maxLength":36,"pattern":"[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}","type":"string"},"rhsm":{"description":"Object for subscription-manager details","properties":{"version":{"description":"System release set by subscription-manager","example":"8.1","maxLength":255,"type":"string"}},"type":"object"},"running_processes":{"items":{"description":"A single running process. This will be truncated to 1000 characters when saved.","maxLength":1000,"type":"string"},"type":"array"},"sap_instance_number":{"description":"The instance number of the SAP HANA system (a two-digit number between 00 and 99)","example":"03","maxLength":2,"pattern":"^[0-9]{2}$","type":"string"},"sap_sids":{"items":{"description":"The SAP system ID (SID)","example":"H2O","maxLength":3,"pattern":"^[A-Z][A-Z0-9]{2}$","type":"string"},"type":"array","uniqueItems":true},"sap_system":{"description":"Indicates if SAP is installed on the system","type":"boolean"},"sap_version":{"description":"The version of the SAP HANA lifecycle management program","example":"1.00.122.04.1478575636","maxLength":22,"pattern":"^[0-9].[0-9]{2}.[0-9]{3}.[0-9]{2}.[0-9]{10}$","type":"string"},"satellite_managed":{"type":"boolean"},"selinux_config_file":{"description":"The SELinux mode provided in the config file","example":"permissive","maxLength":128,"type":"string"},"selinux_current_mode":{"description":"The current SELinux mode, either enforcing, permissive, or disabled","enum":["enforcing","permissive","disabled"],"example":"enforcing","maxLength":10,"type":"string"},"subscription_auto_attach":{"maxLength":100,"type":"string"},"subscription_status":{"maxLength":100,"type":"string"},"system_memory_bytes":{"format":"int64","type":"integer"},"tuned_profile":{"description":"Current profile resulting from command tuned-adm active","example":"desktop","maxLength":256,"type":"string"},"yum_repos":{"items":{"$ref":"#/components/schemas/system_profile.spec.yaml_YumRepo","x-scope":["","#/components/schemas/system_profile.spec.yaml_SystemProfile"]},"type":"array"}},"type":"object"},"system_profile.spec.yaml_YumRepo":{"description":"Representation of one yum repository","properties":{"base_url":{"format":"uri","maxLength":2048,"type":"string"},"enabled":{"type":"boolean"},"gpgcheck":{"type":"boolean"},"id":{"maxLength":256,"type":"string"},"name":{"maxLength":1024,"type":"string"}},"type":"object"}},"securitySchemes":{"ApiKeyAuth":{"description":"Base64-encoded JSON identity header provided by 3Scale. Contains an account number of the user issuing the request. Format of the JSON: {\"identity\": {\"account_number\": \"12345678\"}}","in":"header","name":"x-rh-identity","type":"apiKey","x-apikeyInfoFunc":"app.auth.authentication_header_handler"},"BearerAuth":{"scheme":"bearer","type":"http","x-bearerInfoFunc":"app.auth.bearer_token_handler"}}},"info":{"description":"REST interface for the Insights Platform Host Inventory application.","title":"Insights Host Inventory REST Interface","version":"1.0.0"},"openapi":"3.0.0","paths":{"/hosts":{"get":{"description":"Read the entire list of all hosts available to the account.

Required permissions: inventory:hosts:read","operationId":"api.host.get_host_list","parameters":[{"description":"A part of a searched host\u2019s display name.","in":"query","name":"display_name","required":false,"schema":{"type":"string"}},{"description":"Filter by a host's FQDN","in":"query","name":"fqdn","required":false,"schema":{"type":"string"}},{"description":"Search for a host by display_name, fqdn, id","in":"query","name":"hostname_or_id","required":false,"schema":{"type":"string"}},{"description":"Search for a host by insights_id","in":"query","name":"insights_id","required":false,"schema":{"format":"uuid","type":"string"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"nullable":false,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"nullable":false,"type":"integer"}},{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"enum":["display_name","updated"],"type":"string"}},{"description":"Direction of the ordering, defaults to ASC for display_name and to DESC for updated","in":"query","name":"order_how","required":false,"schema":{"enum":["ASC","DESC"],"type":"string"}},{"description":"Culling states of the hosts. Default: fresh,stale,unknown","in":"query","name":"staleness","required":false,"schema":{"default":["fresh","stale","unknown"],"items":{"enum":["fresh","stale","stale_warning","unknown"],"nullable":false,"type":"string"},"nullable":false,"type":"array"}},{"description":"filters out hosts not tagged by the given tags","in":"query","name":"tags","required":false,"schema":{"items":{"pattern":"^([^=/]+/)?[^=/]+(=[^=/]+)?$","type":"string"},"type":"array"}},{"description":"Filters out any host not registered with the specified service","in":"query","name":"registered_with","required":false,"schema":{"enum":["insights"],"type":"string"}},{"description":"Filters hosts based on system_profile fields","explode":true,"in":"query","name":"filter","required":false,"schema":{"description":"System profile field values to filter with","type":"object"},"style":"deepObject"},{"description":"Fetches only mentioned system_profile fields","explode":true,"in":"query","name":"fields","required":false,"schema":{"description":"System profile field values to fetch","type":"object"},"style":"deepObject"}],"responses":{"200":{"content":{"application/json":{"schema":{"description":"A paginated host search query result with host entries and their Inventory metadata.","properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"description":"Actual host search query result entries.","items":{"allOf":[{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"account":{"description":"A Red Hat Account number that owns the host.","example":"000102","type":"string"},"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","nullable":true,"type":"string"},"created":{"description":"A timestamp when the entry was created.","format":"date-time","type":"string"},"culled_timestamp":{"description":"Timestamp from which the host is considered deleted.","format":"date-time","nullable":true,"type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","nullable":true,"type":"string"},"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"},"id":{"description":"A durable and reliable platform-wide host identifier. Applications should use this identifier to reference hosts.","example":"3f01b55457674041b75e41829bcee1dc","type":"string"},"reporter":{"description":"Reporting source of the host. Used when updating the stale_timestamp.","nullable":true,"type":"string"},"stale_timestamp":{"description":"Timestamp from which the host is considered stale.","format":"date-time","nullable":true,"type":"string"},"stale_warning_timestamp":{"description":"Timestamp from which the host is considered too stale to be listed without an explicit toggle.","format":"date-time","nullable":true,"type":"string"},"updated":{"description":"A timestamp when the entry was last updated.","format":"date-time","type":"string"}},"required":["account"]}],"description":"Data of a single host belonging to an account. Represents the hosts without its Inventory metadata.","title":"Create Host Out","type":"object"},{"properties":{"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"}},"type":"object"}],"description":"A database entry representing a single host with its Inventory metadata.","title":"A Host Inventory entry"},"type":"array"},"total":{"description":"A total count of the found entries.","type":"integer"}},"required":["count","page","per_page","total","results"],"title":"A Host Inventory query result","type":"object"}}},"description":"Successfully read the hosts list."}},"security":[{"ApiKeyAuth":[]}],"summary":"Read the entire list of hosts","tags":["hosts"]}},"/hosts/checkin":{"post":{"description":"Finds a host and updates its staleness timestamps. It uses the supplied canonical facts to determine which host to update. By default, the staleness timestamp is set to 1 hour from when the request is received; however, this can be overridden by supplying the interval.

Required permissions: inventory:hosts:write","operationId":"api.host.host_checkin","requestBody":{"content":{"application/json":{"schema":{"allOf":[{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"bios_uuid":{"nullable":false,"type":"string"},"external_id":{"nullable":false,"type":"string"},"fqdn":{"nullable":false,"type":"string"},"insights_id":{"nullable":false,"type":"string"},"ip_addresses":{"items":{"type":"string"},"nullable":false,"type":"array"},"mac_addresses":{"items":{"type":"string"},"nullable":false,"type":"array"},"rhel_machine_id":{"nullable":false,"type":"string"},"satellite_id":{"nullable":false,"type":"string"},"subscription_manager_id":{"nullable":false,"type":"string"}}},{"anyOf":[{"required":["insights_id"]},{"required":["rhel_machine_id"]},{"required":["subscription_manager_id"]},{"required":["satellite_id"]},{"required":["bios_uuid"]},{"required":["ip_addresses"]},{"required":["fqdn"]},{"required":["mac_addresses"]},{"required":["external_id"]}]}]},{"properties":{"checkin_frequency":{"description":"How long from now to expect another check-in (in minutes).","example":1440,"maximum":2880,"minimum":1,"type":"integer"}}}],"description":"Data required to create a check-in record for a host.","title":"Check-in data","type":"object"}}},"description":"Data required to create a check-in record for a host.","required":true},"responses":{"201":{"content":{"application/json":{"schema":{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"account":{"description":"A Red Hat Account number that owns the host.","example":"000102","type":"string"},"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","nullable":true,"type":"string"},"created":{"description":"A timestamp when the entry was created.","format":"date-time","type":"string"},"culled_timestamp":{"description":"Timestamp from which the host is considered deleted.","format":"date-time","nullable":true,"type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","nullable":true,"type":"string"},"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"},"id":{"description":"A durable and reliable platform-wide host identifier. Applications should use this identifier to reference hosts.","example":"3f01b55457674041b75e41829bcee1dc","type":"string"},"reporter":{"description":"Reporting source of the host. Used when updating the stale_timestamp.","nullable":true,"type":"string"},"stale_timestamp":{"description":"Timestamp from which the host is considered stale.","format":"date-time","nullable":true,"type":"string"},"stale_warning_timestamp":{"description":"Timestamp from which the host is considered too stale to be listed without an explicit toggle.","format":"date-time","nullable":true,"type":"string"},"updated":{"description":"A timestamp when the entry was last updated.","format":"date-time","type":"string"}},"required":["account"]}],"description":"Data of a single host belonging to an account. Represents the hosts without its Inventory metadata.","title":"Create Host Out","type":"object"}}},"description":"Successfully checked in Host."},"404":{"description":"Not Found."}},"security":[{"ApiKeyAuth":[]},{"BearerAuth":[]}],"summary":"Update staleness timestamps for a host matching the provided facts","tags":["hosts"]}},"/hosts/{host_id_list}":{"delete":{"description":"Delete hosts by IDs

Required permissions: inventory:hosts:write","operationId":"api.host.delete_by_id","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successfully deleted hosts."},"400":{"description":"Invalid request."},"404":{"description":"Host not found."}},"security":[{"ApiKeyAuth":[]}],"summary":"Delete hosts by IDs","tags":["hosts"]},"get":{"description":"Find one or more hosts by their ID.

Required permissions: inventory:hosts:read","operationId":"api.host.get_host_by_id","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"nullable":false,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"nullable":false,"type":"integer"}},{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"enum":["display_name","updated"],"type":"string"}},{"description":"Direction of the ordering, defaults to ASC for display_name and to DESC for updated","in":"query","name":"order_how","required":false,"schema":{"enum":["ASC","DESC"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"description":"A paginated host search query result with host entries and their Inventory metadata.","properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"description":"Actual host search query result entries.","items":{"allOf":[{"allOf":[{"properties":{"bios_uuid":{"description":"A UUID of the host machine BIOS. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"external_id":{"description":"Host\u2019s reference in the external source e.g. AWS EC2, Azure, OpenStack, etc. This field is considered to be a canonical fact.","example":"i-05d2313e6b9a42b16","nullable":true,"type":"string"},"fqdn":{"description":"A host\u2019s Fully Qualified Domain Name. This field is considered to be a canonical fact.","example":"my.host.example.com","nullable":true,"type":"string"},"insights_id":{"description":"An ID defined in /etc/insights-client/machine-id. This field is considered a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"ip_addresses":{"description":"Host\u2019s network IP addresses. This field is considered to be a canonical fact.","example":["10.10.0.1","10.0.0.2"],"items":{"type":"string"},"nullable":true,"type":"array"},"mac_addresses":{"description":"Host\u2019s network interfaces MAC addresses. This field is considered to be a canonical fact.","example":["c2:00:d0:c8:61:01"],"items":{"type":"string"},"nullable":true,"type":"array"},"rhel_machine_id":{"description":"A Machine ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"satellite_id":{"description":"A Red Hat Satellite ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"},"subscription_manager_id":{"description":"A Red Hat Subcription Manager ID of a RHEL host. This field is considered to be a canonical fact.","example":"3f01b55457674041b75e41829bcee1dc","nullable":true,"type":"string"}},"type":"object"},{"properties":{"account":{"description":"A Red Hat Account number that owns the host.","example":"000102","type":"string"},"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","nullable":true,"type":"string"},"created":{"description":"A timestamp when the entry was created.","format":"date-time","type":"string"},"culled_timestamp":{"description":"Timestamp from which the host is considered deleted.","format":"date-time","nullable":true,"type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","nullable":true,"type":"string"},"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"},"id":{"description":"A durable and reliable platform-wide host identifier. Applications should use this identifier to reference hosts.","example":"3f01b55457674041b75e41829bcee1dc","type":"string"},"reporter":{"description":"Reporting source of the host. Used when updating the stale_timestamp.","nullable":true,"type":"string"},"stale_timestamp":{"description":"Timestamp from which the host is considered stale.","format":"date-time","nullable":true,"type":"string"},"stale_warning_timestamp":{"description":"Timestamp from which the host is considered too stale to be listed without an explicit toggle.","format":"date-time","nullable":true,"type":"string"},"updated":{"description":"A timestamp when the entry was last updated.","format":"date-time","type":"string"}},"required":["account"]}],"description":"Data of a single host belonging to an account. Represents the hosts without its Inventory metadata.","title":"Create Host Out","type":"object"},{"properties":{"facts":{"description":"A set of facts belonging to the host.","items":{"description":"A set of string facts belonging to a single namespace.","properties":{"facts":{"description":"The facts themselves.","example":{"fact1":"value1","fact2":"value2"},"type":"object"},"namespace":{"description":"A namespace the facts belong to.","minLength":1,"type":"string"}},"required":["namespace","facts"],"title":"Host facts under a namespace"},"type":"array"}},"type":"object"}],"description":"A database entry representing a single host with its Inventory metadata.","title":"A Host Inventory entry"},"type":"array"},"total":{"description":"A total count of the found entries.","type":"integer"}},"required":["count","page","per_page","total","results"],"title":"A Host Inventory query result","type":"object"}}},"description":"Successfully searched for hosts."},"400":{"description":"Invalid request."},"404":{"description":"Host not found."}},"security":[{"ApiKeyAuth":[]}],"summary":"Find hosts by their IDs","tags":["hosts"]},"patch":{"description":"Update a host

Required permissions: inventory:hosts:write","operationId":"api.host.patch_by_id","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"Data of a single host to be updated.","properties":{"ansible_host":{"description":"The ansible host name for remediations","example":"host1.mydomain.com","type":"string"},"display_name":{"description":"A host\u2019s human-readable display name, e.g. in a form of a domain name.","example":"host1.mydomain.com","type":"string"}},"title":"Host data","type":"object"}}},"description":"A group of fields to be updated on the host","required":true},"responses":{"200":{"description":"Successfully updated the host."},"400":{"description":"Invalid request."},"404":{"description":"Host not found."}},"security":[{"ApiKeyAuth":[]}],"summary":"Update a host","tags":["hosts"]}},"/hosts/{host_id_list}/facts/{namespace}":{"patch":{"description":"Merge one or multiple hosts facts under a namespace.

Required permissions: inventory:hosts:write","operationId":"api.host.merge_facts","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"A namespace of the merged facts.","in":"path","name":"namespace","required":true,"schema":{"type":"string"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"A set of string facts about a host.","example":{"fact1":"value1","fact2":"value2"},"title":"Host facts","type":"object"}}},"description":"A dictionary with the new facts to merge with the original ones.","required":true},"responses":{"200":{"description":"Successfully merged facts."},"400":{"description":"Invalid request."},"404":{"description":"Host or namespace not found."}},"security":[{"ApiKeyAuth":[]}],"summary":"Merge facts under a namespace","tags":["hosts"]},"put":{"description":"Replace facts under a namespace

Required permissions: inventory:hosts:write","operationId":"api.host.replace_facts","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"A namespace of the merged facts.","in":"path","name":"namespace","required":true,"schema":{"type":"string"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"description":"A set of string facts about a host.","example":{"fact1":"value1","fact2":"value2"},"title":"Host facts","type":"object"}}},"description":"A dictionary with the new facts to replace the original ones.","required":true},"responses":{"200":{"description":"Successfully replaced facts."},"400":{"description":"Invalid request."},"404":{"description":"Host or namespace not found."}},"security":[{"ApiKeyAuth":[]}],"summary":"Replace facts under a namespace","tags":["hosts"]}},"/hosts/{host_id_list}/system_profile":{"get":{"description":"Find one or more hosts by their ID and return the id and system profile

Required permissions: inventory:hosts:read","operationId":"api.host.get_host_system_profile_by_id","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"nullable":false,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"nullable":false,"type":"integer"}},{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"enum":["display_name","updated"],"type":"string"}},{"description":"Direction of the ordering, defaults to ASC for display_name and to DESC for updated","in":"query","name":"order_how","required":false,"schema":{"enum":["ASC","DESC"],"type":"string"}},{"description":"Filter by branch_id","in":"query","name":"branch_id","required":false,"schema":{"type":"string"}},{"description":"Fetches only mentioned system_profile fields","explode":true,"in":"query","name":"fields","required":false,"schema":{"description":"System profile field values to fetch","type":"object"},"style":"deepObject"}],"responses":{"200":{"content":{"application/json":{"schema":{"description":"Structure of the output of the host system profile query","properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"description":"Actual host search query result entries.","items":{"description":"Individual host record that contains only the host id and system profile","properties":{"id":{"type":"string"},"system_profile":{"$ref":"#/components/schemas/system_profile.spec.yaml_SystemProfile","x-scope":[""]}},"title":"Structure of an individual host system profile output"},"type":"array"},"total":{"description":"A total count of the found entries.","type":"integer"}},"required":["count","page","per_page","total","results"],"title":"A host system profile query result","type":"object"}}},"description":"Successfully searched for hosts."},"400":{"description":"Invalid request."},"404":{"description":"Host not found."}},"security":[{"ApiKeyAuth":[]}],"summary":"Return one or more hosts system profile","tags":["hosts"]}},"/hosts/{host_id_list}/tags":{"get":{"description":"Get the tags on a host

Required permissions: inventory:hosts:read","operationId":"api.host.get_host_tags","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"nullable":false,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"nullable":false,"type":"integer"}},{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"enum":["display_name","updated"],"type":"string"}},{"description":"Direction of the ordering, defaults to ASC for display_name and to DESC for updated","in":"query","name":"order_how","required":false,"schema":{"enum":["ASC","DESC"],"type":"string"}},{"description":"Only include tags that match the given search string. The value is matched against namespace, key and value.","in":"query","name":"search","required":false,"schema":{"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"additionalProperties":{"items":{"properties":{"key":{"type":"string"},"namespace":{"nullable":true,"type":"string"},"value":{"nullable":true,"type":"string"}},"type":"object"},"type":"array"},"description":"The list of tags on the systems","type":"object"},"total":{"description":"Total number of items in the \"data\" list.","type":"integer"}},"type":"object"}}},"description":"Successfully found tags."},"400":{"description":"Invalid request."}},"security":[{"ApiKeyAuth":[]}],"summary":"Get the tags on a host","tags":["hosts"]}},"/hosts/{host_id_list}/tags/count":{"get":{"description":"Get the number of tags on a host

Required permissions: inventory:hosts:read","operationId":"api.host.get_host_tag_count","parameters":[{"description":"A comma separated list of host IDs.","in":"path","name":"host_id_list","required":true,"schema":{"items":{"format":"uuid","pattern":"^[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}$|^[0-9a-fA-F]{8}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{4}[0-9a-fA-F]{12}$","type":"string"},"type":"array"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"nullable":false,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"nullable":false,"type":"integer"}},{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"enum":["display_name","updated"],"type":"string"}},{"description":"Direction of the ordering, defaults to ASC for display_name and to DESC for updated","in":"query","name":"order_how","required":false,"schema":{"enum":["ASC","DESC"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"count":{"description":"A number of entries on the current page.","type":"integer"},"page":{"description":"A current page number.","type":"integer"},"per_page":{"description":"A page size \u2013 a number of entries per single page.","type":"integer"},"results":{"additionalProperties":{"type":"integer"},"description":"The list of tags on the systems","type":"object"},"total":{"description":"Total number of items in the \"data\" list.","type":"integer"}},"type":"object"}}},"description":"Successfully found tag count."},"400":{"description":"Invalid request."}},"security":[{"ApiKeyAuth":[]}],"summary":"Get the number of tags on a host","tags":["hosts"]}},"/system_profile/sap_sids":{"get":{"description":"Required permissions: inventory:hosts:read","operationId":"api.system_profile.get_sap_sids","parameters":[{"description":"Only include tags that match the given search string. The value is matched against namespace, key and value.","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"filters out hosts not tagged by the given tags","in":"query","name":"tags","required":false,"schema":{"items":{"pattern":"^([^=/]+/)?[^=/]+(=[^=/]+)?$","type":"string"},"type":"array"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"nullable":false,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"nullable":false,"type":"integer"}},{"description":"Culling states of the hosts. Default: fresh,stale,unknown","in":"query","name":"staleness","required":false,"schema":{"default":["fresh","stale","unknown"],"items":{"enum":["fresh","stale","stale_warning","unknown"],"nullable":false,"type":"string"},"nullable":false,"type":"array"}},{"description":"Filters out any host not registered with the specified service","in":"query","name":"registered_with","required":false,"schema":{"enum":["insights"],"type":"string"}},{"description":"Filters hosts based on system_profile fields","explode":true,"in":"query","name":"filter","required":false,"schema":{"description":"System profile field values to filter with","type":"object"},"style":"deepObject"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"count":{"description":"The number of items on the current page","type":"integer"},"results":{"description":"The list of sap_system values on the account","items":{"properties":{"count":{"type":"integer"},"value":{"type":"string"}},"type":"object"},"type":"array"},"total":{"description":"Total number of items","type":"integer"}},"type":"object"}}},"description":"sap_system values and counts for account"},"400":{"description":"Invalid request."},"404":{"description":"Requested page is outside of the range of available pages"}},"security":[{"ApiKeyAuth":[]}],"summary":"get sap system values","tags":["sap_system"]}},"/system_profile/sap_system":{"get":{"description":"Required permissions: inventory:hosts:read","operationId":"api.system_profile.get_sap_system","parameters":[{"description":"filters out hosts not tagged by the given tags","in":"query","name":"tags","required":false,"schema":{"items":{"pattern":"^([^=/]+/)?[^=/]+(=[^=/]+)?$","type":"string"},"type":"array"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"nullable":false,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"nullable":false,"type":"integer"}},{"description":"Culling states of the hosts. Default: fresh,stale,unknown","in":"query","name":"staleness","required":false,"schema":{"default":["fresh","stale","unknown"],"items":{"enum":["fresh","stale","stale_warning","unknown"],"nullable":false,"type":"string"},"nullable":false,"type":"array"}},{"description":"Filters out any host not registered with the specified service","in":"query","name":"registered_with","required":false,"schema":{"enum":["insights"],"type":"string"}},{"description":"Filters hosts based on system_profile fields","explode":true,"in":"query","name":"filter","required":false,"schema":{"description":"System profile field values to filter with","type":"object"},"style":"deepObject"}],"responses":{"200":{"content":{"application/json":{"schema":{"properties":{"count":{"description":"The number of items on the current page","type":"integer"},"results":{"description":"The list of sap_system values on the account","items":{"properties":{"count":{"type":"integer"},"value":{"type":"string"}},"type":"object"},"type":"array"},"total":{"description":"Total number of items","type":"integer"}},"type":"object"}}},"description":"sap_system values and counts for account"},"400":{"description":"Invalid request."},"404":{"description":"Requested page is outside of the range of available pages"}},"security":[{"ApiKeyAuth":[]}],"summary":"get sap system values","tags":["sap_system"]}},"/system_profile/validate_schema":{"post":{"description":"Validates System Profile data from recent Kafka messages against a given spec, and compares it with the current one. Only HBI Admins can access this endpoint.","operationId":"api.system_profile.validate_schema","parameters":[{"description":"The fork of the inventory-schemas repo to use","in":"query","name":"repo_fork","schema":{"type":"string"}},{"description":"The branch of the inventory-schemas repo to use","in":"query","name":"repo_branch","required":true,"schema":{"type":"string"}},{"description":"How many days worth of data to validate","in":"query","name":"days","schema":{"minimum":1,"type":"integer"}},{"description":"Stops polling when this number of messages has been collected","in":"query","name":"max_messages","schema":{"default":10000,"minimum":1,"nullable":false,"type":"integer"}}],"responses":{"200":{"description":"Host validation results"},"403":{"description":"Forbidden"}},"security":[{"ApiKeyAuth":[]}],"summary":"validate system profile schema"}},"/tags":{"get":{"description":"Required permissions: inventory:hosts:read","operationId":"api.tag.get_tags","parameters":[{"description":"filters out hosts not tagged by the given tags","in":"query","name":"tags","required":false,"schema":{"items":{"pattern":"^([^=/]+/)?[^=/]+(=[^=/]+)?$","type":"string"},"type":"array"}},{"description":"Ordering field name","in":"query","name":"order_by","required":false,"schema":{"default":"tag","enum":["tag","count"],"nullable":false,"type":"string"}},{"description":"Direction of the ordering. Default to ASC","in":"query","name":"order_how","required":false,"schema":{"default":"ASC","enum":["ASC","DESC"],"nullable":false,"type":"string"}},{"description":"A number of items to return per page.","in":"query","name":"per_page","required":false,"schema":{"default":50,"maximum":100,"minimum":1,"nullable":false,"type":"integer"}},{"description":"A page number of the items to return.","in":"query","name":"page","required":false,"schema":{"default":1,"minimum":1,"nullable":false,"type":"integer"}},{"description":"Culling states of the hosts. Default: fresh,stale,unknown","in":"query","name":"staleness","required":false,"schema":{"default":["fresh","stale","unknown"],"items":{"enum":["fresh","stale","stale_warning","unknown"],"nullable":false,"type":"string"},"nullable":false,"type":"array"}},{"description":"Only include tags that match the given search string. The value is matched against namespace, key and value.","in":"query","name":"search","required":false,"schema":{"type":"string"}},{"description":"Filters out any host not registered with the specified service","in":"query","name":"registered_with","required":false,"schema":{"enum":["insights"],"type":"string"}},{"description":"Filters hosts based on system_profile fields","explode":true,"in":"query","name":"filter","required":false,"schema":{"description":"System profile field values to filter with","type":"object"},"style":"deepObject"}],"responses":{"200":{"content":{"application/json":{"schema":{"example":{"count":3,"page":1,"per_page":50,"results":[{"count":3,"tag":{"key":"env","namespace":"Sat","value":"prod"}},{"count":1,"tag":{"key":"region","namespace":"aws","value":"us-east-1"}},{"count":-1,"tag":{"key":"web","namespace":"insights-client","value":null}}],"total":3},"properties":{"count":{"description":"The number of items on the current page","type":"integer"},"page":{"description":"The page number","type":"integer"},"per_page":{"description":"The number of items to return per page","type":"integer"},"results":{"items":{"description":"Information about a host tag","properties":{"count":{"description":"The number of hosts with the given tag. If the value is null this indicates that the count is unknown.","nullable":true,"type":"integer"},"tag":{"properties":{"key":{"type":"string"},"namespace":{"nullable":true,"type":"string"},"value":{"nullable":true,"type":"string"}},"type":"object"}},"required":["tag","count"],"title":"ActiveTag","type":"object"},"type":"array"},"total":{"description":"Total number of items","type":"integer"}},"required":["total","count","page","per_page","results"],"title":"Host data","type":"object"}}},"description":"Tags"},"400":{"description":"Invalid request."},"404":{"description":"Requested page is outside of the range of available pages"}},"security":[{"ApiKeyAuth":[]}],"summary":"Get the active host tags for a given account","tags":["tags"]}}},"servers":[{"url":"/api/inventory/v1"}]} diff --git a/inventory/api/openapi.yaml b/inventory/api/openapi.yaml index f156684..2ef30ca 100644 --- a/inventory/api/openapi.yaml +++ b/inventory/api/openapi.yaml @@ -62,6 +62,7 @@ paths: default: 50 maximum: 100 minimum: 1 + nullable: false type: integer style: form - description: A page number of the items to return. @@ -72,6 +73,7 @@ paths: schema: default: 1 minimum: 1 + nullable: false type: integer style: form - description: Ordering field name @@ -113,7 +115,9 @@ paths: - stale - stale_warning - unknown + nullable: false type: string + nullable: false type: array style: form - description: filters out hosts not tagged by the given tags @@ -146,6 +150,15 @@ paths: description: System profile field values to filter with type: object style: deepObject + - description: Fetches only mentioned system_profile fields + explode: true + in: query + name: fields + required: false + schema: + description: System profile field values to fetch + type: object + style: deepObject responses: "200": content: @@ -526,6 +539,7 @@ paths: default: 50 maximum: 100 minimum: 1 + nullable: false type: integer style: form - description: A page number of the items to return. @@ -536,6 +550,7 @@ paths: schema: default: 1 minimum: 1 + nullable: false type: integer style: form - description: Ordering field name @@ -775,6 +790,7 @@ paths: default: 50 maximum: 100 minimum: 1 + nullable: false type: integer style: form - description: A page number of the items to return. @@ -785,6 +801,7 @@ paths: schema: default: 1 minimum: 1 + nullable: false type: integer style: form - description: Ordering field name @@ -869,6 +886,7 @@ paths: default: 50 maximum: 100 minimum: 1 + nullable: false type: integer style: form - description: A page number of the items to return. @@ -879,6 +897,7 @@ paths: schema: default: 1 minimum: 1 + nullable: false type: integer style: form - description: Ordering field name @@ -954,6 +973,7 @@ paths: default: 50 maximum: 100 minimum: 1 + nullable: false type: integer style: form - description: A page number of the items to return. @@ -964,6 +984,7 @@ paths: schema: default: 1 minimum: 1 + nullable: false type: integer style: form - description: Ordering field name @@ -1037,6 +1058,7 @@ paths: default: 50 maximum: 100 minimum: 1 + nullable: false type: integer style: form - description: A page number of the items to return. @@ -1047,6 +1069,7 @@ paths: schema: default: 1 minimum: 1 + nullable: false type: integer style: form - description: 'Culling states of the hosts. Default: fresh,stale,unknown' @@ -1065,7 +1088,9 @@ paths: - stale - stale_warning - unknown + nullable: false type: string + nullable: false type: array style: form - description: Filters out any host not registered with the specified service @@ -1128,6 +1153,7 @@ paths: default: 50 maximum: 100 minimum: 1 + nullable: false type: integer style: form - description: A page number of the items to return. @@ -1138,6 +1164,7 @@ paths: schema: default: 1 minimum: 1 + nullable: false type: integer style: form - description: 'Culling states of the hosts. Default: fresh,stale,unknown' @@ -1156,7 +1183,9 @@ paths: - stale - stale_warning - unknown + nullable: false type: string + nullable: false type: array style: form - description: Filters out any host not registered with the specified service @@ -1234,6 +1263,7 @@ paths: schema: default: 10000 minimum: 1 + nullable: false type: integer style: form responses: @@ -1270,6 +1300,7 @@ paths: enum: - tag - count + nullable: false type: string style: form - description: Direction of the ordering. Default to ASC @@ -1282,6 +1313,7 @@ paths: enum: - ASC - DESC + nullable: false type: string style: form - description: A number of items to return per page. @@ -1293,6 +1325,7 @@ paths: default: 50 maximum: 100 minimum: 1 + nullable: false type: integer style: form - description: A page number of the items to return. @@ -1303,6 +1336,7 @@ paths: schema: default: 1 minimum: 1 + nullable: false type: integer style: form - description: 'Culling states of the hosts. Default: fresh,stale,unknown' @@ -1321,7 +1355,9 @@ paths: - stale - stale_warning - unknown + nullable: false type: string + nullable: false type: array style: form - description: Only include tags that match the given search string. The value @@ -2556,6 +2592,13 @@ components: maxLength: 512 type: string type: array + gpg_pubkeys: + items: + description: A package name string of a single imported GPG pubkey + example: gpg-pubkey-11111111-22222222 + maxLength: 512 + type: string + type: array infrastructure_type: maxLength: 100 type: string diff --git a/inventory/api_hosts.go b/inventory/api_hosts.go index 92f7ec9..7f69977 100644 --- a/inventory/api_hosts.go +++ b/inventory/api_hosts.go @@ -321,6 +321,7 @@ type ApiApiHostGetHostListRequest struct { tags *[]string registeredWith *string filter *map[string]interface{} + fields *map[string]interface{} } func (r ApiApiHostGetHostListRequest) DisplayName(displayName string) ApiApiHostGetHostListRequest { @@ -375,6 +376,10 @@ func (r ApiApiHostGetHostListRequest) Filter(filter map[string]interface{}) ApiA r.filter = &filter return r } +func (r ApiApiHostGetHostListRequest) Fields(fields map[string]interface{}) ApiApiHostGetHostListRequest { + r.fields = &fields + return r +} func (r ApiApiHostGetHostListRequest) Execute() (AHostInventoryQueryResult, *_nethttp.Response, error) { return r.ApiService.ApiHostGetHostListExecute(r) @@ -473,6 +478,9 @@ func (a *HostsApiService) ApiHostGetHostListExecute(r ApiApiHostGetHostListReque if r.filter != nil { localVarQueryParams.Add("filter", parameterToString(*r.filter, "")) } + if r.fields != nil { + localVarQueryParams.Add("fields", parameterToString(*r.fields, "")) + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/inventory/docs/HostsApi.md b/inventory/docs/HostsApi.md index 54d523c..be0e6cb 100644 --- a/inventory/docs/HostsApi.md +++ b/inventory/docs/HostsApi.md @@ -169,7 +169,7 @@ Name | Type | Description | Notes ## ApiHostGetHostList -> AHostInventoryQueryResult ApiHostGetHostList(ctx).DisplayName(displayName).Fqdn(fqdn).HostnameOrId(hostnameOrId).InsightsId(insightsId).BranchId(branchId).PerPage(perPage).Page(page).OrderBy(orderBy).OrderHow(orderHow).Staleness(staleness).Tags(tags).RegisteredWith(registeredWith).Filter(filter).Execute() +> AHostInventoryQueryResult ApiHostGetHostList(ctx).DisplayName(displayName).Fqdn(fqdn).HostnameOrId(hostnameOrId).InsightsId(insightsId).BranchId(branchId).PerPage(perPage).Page(page).OrderBy(orderBy).OrderHow(orderHow).Staleness(staleness).Tags(tags).RegisteredWith(registeredWith).Filter(filter).Fields(fields).Execute() Read the entire list of hosts @@ -201,10 +201,11 @@ func main() { tags := []string{"Inner_example"} // []string | filters out hosts not tagged by the given tags (optional) registeredWith := "registeredWith_example" // string | Filters out any host not registered with the specified service (optional) filter := TODO // map[string]interface{} | Filters hosts based on system_profile fields (optional) + fields := TODO // map[string]interface{} | Fetches only mentioned system_profile fields (optional) configuration := openapiclient.NewConfiguration() api_client := openapiclient.NewAPIClient(configuration) - resp, r, err := api_client.HostsApi.ApiHostGetHostList(context.Background()).DisplayName(displayName).Fqdn(fqdn).HostnameOrId(hostnameOrId).InsightsId(insightsId).BranchId(branchId).PerPage(perPage).Page(page).OrderBy(orderBy).OrderHow(orderHow).Staleness(staleness).Tags(tags).RegisteredWith(registeredWith).Filter(filter).Execute() + resp, r, err := api_client.HostsApi.ApiHostGetHostList(context.Background()).DisplayName(displayName).Fqdn(fqdn).HostnameOrId(hostnameOrId).InsightsId(insightsId).BranchId(branchId).PerPage(perPage).Page(page).OrderBy(orderBy).OrderHow(orderHow).Staleness(staleness).Tags(tags).RegisteredWith(registeredWith).Filter(filter).Fields(fields).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `HostsApi.ApiHostGetHostList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -238,6 +239,7 @@ Name | Type | Description | Notes **tags** | **[]string** | filters out hosts not tagged by the given tags | **registeredWith** | **string** | Filters out any host not registered with the specified service | **filter** | [**map[string]interface{}**](map[string]interface{}.md) | Filters hosts based on system_profile fields | + **fields** | [**map[string]interface{}**](map[string]interface{}.md) | Fetches only mentioned system_profile fields | ### Return type diff --git a/inventory/docs/SystemProfileSpecYamlSystemProfile.md b/inventory/docs/SystemProfileSpecYamlSystemProfile.md index 0702b1b..c803c53 100644 --- a/inventory/docs/SystemProfileSpecYamlSystemProfile.md +++ b/inventory/docs/SystemProfileSpecYamlSystemProfile.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **DiskDevices** | Pointer to [**[]SystemProfileSpecYamlDiskDevice**](SystemProfileSpecYamlDiskDevice.md) | | [optional] **DnfModules** | Pointer to [**[]SystemProfileSpecYamlDnfModule**](SystemProfileSpecYamlDnfModule.md) | | [optional] **EnabledServices** | Pointer to **[]string** | | [optional] +**GpgPubkeys** | Pointer to **[]string** | | [optional] **InfrastructureType** | Pointer to **string** | | [optional] **InfrastructureVendor** | Pointer to **string** | | [optional] **InsightsClientVersion** | Pointer to **string** | | [optional] @@ -371,6 +372,31 @@ SetEnabledServices sets EnabledServices field to given value. HasEnabledServices returns a boolean if a field has been set. +### GetGpgPubkeys + +`func (o *SystemProfileSpecYamlSystemProfile) GetGpgPubkeys() []string` + +GetGpgPubkeys returns the GpgPubkeys field if non-nil, zero value otherwise. + +### GetGpgPubkeysOk + +`func (o *SystemProfileSpecYamlSystemProfile) GetGpgPubkeysOk() (*[]string, bool)` + +GetGpgPubkeysOk returns a tuple with the GpgPubkeys field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGpgPubkeys + +`func (o *SystemProfileSpecYamlSystemProfile) SetGpgPubkeys(v []string)` + +SetGpgPubkeys sets GpgPubkeys field to given value. + +### HasGpgPubkeys + +`func (o *SystemProfileSpecYamlSystemProfile) HasGpgPubkeys() bool` + +HasGpgPubkeys returns a boolean if a field has been set. + ### GetInfrastructureType `func (o *SystemProfileSpecYamlSystemProfile) GetInfrastructureType() string` diff --git a/inventory/model_system_profile_spec_yaml_system_profile.go b/inventory/model_system_profile_spec_yaml_system_profile.go index 4b52167..33c4d32 100644 --- a/inventory/model_system_profile_spec_yaml_system_profile.go +++ b/inventory/model_system_profile_spec_yaml_system_profile.go @@ -30,6 +30,7 @@ type SystemProfileSpecYamlSystemProfile struct { DiskDevices *[]SystemProfileSpecYamlDiskDevice `json:"disk_devices,omitempty"` DnfModules *[]SystemProfileSpecYamlDnfModule `json:"dnf_modules,omitempty"` EnabledServices *[]string `json:"enabled_services,omitempty"` + GpgPubkeys *[]string `json:"gpg_pubkeys,omitempty"` InfrastructureType *string `json:"infrastructure_type,omitempty"` InfrastructureVendor *string `json:"infrastructure_vendor,omitempty"` InsightsClientVersion *string `json:"insights_client_version,omitempty"` @@ -479,6 +480,38 @@ func (o *SystemProfileSpecYamlSystemProfile) SetEnabledServices(v []string) { o.EnabledServices = &v } +// GetGpgPubkeys returns the GpgPubkeys field value if set, zero value otherwise. +func (o *SystemProfileSpecYamlSystemProfile) GetGpgPubkeys() []string { + if o == nil || o.GpgPubkeys == nil { + var ret []string + return ret + } + return *o.GpgPubkeys +} + +// GetGpgPubkeysOk returns a tuple with the GpgPubkeys field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SystemProfileSpecYamlSystemProfile) GetGpgPubkeysOk() (*[]string, bool) { + if o == nil || o.GpgPubkeys == nil { + return nil, false + } + return o.GpgPubkeys, true +} + +// HasGpgPubkeys returns a boolean if a field has been set. +func (o *SystemProfileSpecYamlSystemProfile) HasGpgPubkeys() bool { + if o != nil && o.GpgPubkeys != nil { + return true + } + + return false +} + +// SetGpgPubkeys gets a reference to the given []string and assigns it to the GpgPubkeys field. +func (o *SystemProfileSpecYamlSystemProfile) SetGpgPubkeys(v []string) { + o.GpgPubkeys = &v +} + // GetInfrastructureType returns the InfrastructureType field value if set, zero value otherwise. func (o *SystemProfileSpecYamlSystemProfile) GetInfrastructureType() string { if o == nil || o.InfrastructureType == nil { @@ -1637,6 +1670,9 @@ func (o SystemProfileSpecYamlSystemProfile) MarshalJSON() ([]byte, error) { if o.EnabledServices != nil { toSerialize["enabled_services"] = o.EnabledServices } + if o.GpgPubkeys != nil { + toSerialize["gpg_pubkeys"] = o.GpgPubkeys + } if o.InfrastructureType != nil { toSerialize["infrastructure_type"] = o.InfrastructureType } diff --git a/vmaas/.openapi-generator/FILES b/vmaas/.openapi-generator/FILES index 0e8244b..1d5c555 100644 --- a/vmaas/.openapi-generator/FILES +++ b/vmaas/.openapi-generator/FILES @@ -22,6 +22,9 @@ docs/PackagesResponsePackageList.md docs/PackagesResponseRepositories.md docs/PatchesRequest.md docs/PatchesResponse.md +docs/PkgTreeItem.md +docs/PkgTreeItemErrata.md +docs/PkgTreeItemRepositories.md docs/PkgtreeRequest.md docs/PkgtreeResponse.md docs/RPMPkgNamesRequest.md @@ -54,6 +57,9 @@ model_packages_response_package_list.go model_packages_response_repositories.go model_patches_request.go model_patches_response.go +model_pkg_tree_item.go +model_pkg_tree_item_errata.go +model_pkg_tree_item_repositories.go model_pkgtree_request.go model_pkgtree_response.go model_repos_request.go diff --git a/vmaas/README.md b/vmaas/README.md index 187cd1d..d51d98e 100644 --- a/vmaas/README.md +++ b/vmaas/README.md @@ -5,7 +5,7 @@ No description provided (generated by Openapi Generator https://github.com/opena ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 2.5.0 +- API version: 2.8.2 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -120,6 +120,9 @@ Class | Method | HTTP request | Description - [PackagesResponseRepositories](docs/PackagesResponseRepositories.md) - [PatchesRequest](docs/PatchesRequest.md) - [PatchesResponse](docs/PatchesResponse.md) + - [PkgTreeItem](docs/PkgTreeItem.md) + - [PkgTreeItemErrata](docs/PkgTreeItemErrata.md) + - [PkgTreeItemRepositories](docs/PkgTreeItemRepositories.md) - [PkgtreeRequest](docs/PkgtreeRequest.md) - [PkgtreeResponse](docs/PkgtreeResponse.md) - [RPMPkgNamesRequest](docs/RPMPkgNamesRequest.md) diff --git a/vmaas/api/openapi.json b/vmaas/api/openapi.json index 3b05001..19041c4 100644 --- a/vmaas/api/openapi.json +++ b/vmaas/api/openapi.json @@ -1 +1 @@ -{"openapi": "3.0.0", "info": {"title": "VMaaS Webapp", "version": "2.5.0"}, "x-format-resps": {"400": {"description": "Invalid input json format"}}, "paths": {"/monitoring/health": {"get": {"summary": "Return API liveness status", "operationId": "app.HealthHandler.get", "responses": {"200": {"description": "Application is alive"}}}}, "/monitoring/ready": {"get": {"summary": "Return API readiness status", "operationId": "app.ReadyHandler.get", "responses": {"200": {"description": "Application is ready"}, "503": {"description": "Application is not ready"}}}}, "/version": {"get": {"description": "Get version of application", "operationId": "app.VersionHandler.get", "responses": {"200": {"description": "Version of application returned"}}}}, "/dbchange": {"get": {"description": "Get last-updated-times for VMaaS DB", "operationId": "app.DBChangeHandler.get", "responses": {"200": {"description": "Return last-update timestamps for errata, repos, cves and the db as a whole", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DBChangeResponse"}}}}}}}, "/updates": {"post": {"description": "List all updates for list of package NEVRAs", "operationId": "app.UpdatesHandlerV3Post.post", "requestBody": {"description": "Input json", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV3Request"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return list of all updates for single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV2Response"}}}}}}}, "/updates/{nevra}": {"get": {"description": "List all updates for single package NEVRA", "operationId": "app.UpdatesHandlerV3Get.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of all updates for single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV2Response"}}}}}}}, "/cves": {"post": {"description": "Get details about CVEs with additional parameters. As a \"cve_list\" parameter a complete list of CVE names can be provided OR one POSIX regular expression.", "operationId": "app.CVEHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CvesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of CVEs", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CvesResponse"}}}}}}}, "/cves/{cve}": {"get": {"description": "Get details about CVEs. It is possible to use POSIX regular expression as a pattern for CVE names.", "operationId": "app.CVEHandlerGet.get", "parameters": [{"name": "cve", "description": "CVE name or POSIX regular expression pattern", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "CVE-2017-5715, CVE-2017-571[1-5], CVE-2017-5.*"}], "responses": {"200": {"description": "Return details about CVEs", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CvesResponse"}}}}}}}, "/repos": {"post": {"description": "Get details about list of repositories. \"repository_list\" can be either a list of repository names, OR a single POSIX regular expression.", "operationId": "app.ReposHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReposRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of repositories", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReposResponse"}}}}}}}, "/repos/{repo}": {"get": {"description": "Get details about a repository or repository-expression. It is allowed to use POSIX regular expression as a pattern for repository names.", "operationId": "app.ReposHandlerGet.get", "parameters": [{"name": "repo", "description": "Repository name or POSIX regular expression pattern", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "rhel-6-server-rpms OR rhel-[4567]-.*-rpms OR rhel-\\d-server-rpms"}], "responses": {"200": {"description": "Return details about repository or repositories that match the expression", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReposResponse"}}}}}}}, "/errata": {"post": {"description": "Get details about errata with additional parameters. \"errata_list\" parameter can be either a list of errata names OR a single POSIX regular expression.", "operationId": "app.ErrataHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrataRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of errata", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrataResponse"}}}}}}}, "/errata/{erratum}": {"get": {"description": "Get details about errata. It is possible to use POSIX regular expression as a pattern for errata names.", "operationId": "app.ErrataHandlerGet.get", "parameters": [{"name": "erratum", "description": "Errata advisory name or POSIX regular expression pattern", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "RHSA-2018:0512, RHSA-2018:051[1-5], RH.*"}], "responses": {"200": {"description": "Return details about errata", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrataResponse"}}}}}}}, "/packages": {"post": {"description": "Get details about packages. \"package_list\" must be a list of package NEVRAs.", "operationId": "app.PackagesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PackagesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of package NEVRAs", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PackagesResponse"}}}}}}}, "/packages/{nevra}": {"get": {"description": "Get details about packages.", "operationId": "app.PackagesHandlerGet.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return details about single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PackagesResponse"}}}}}}}, "/pkgtree": {"post": {"description": "Get package NEVRAs trees for package names. \"package_name_list\" must be a list of package names.", "operationId": "app.PkgtreeHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PkgtreeRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return package NEVRAs about list of package names", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PkgtreeResponse"}}}}}}}, "/pkgtree/{package_name}": {"get": {"description": "Get package NEVRAs tree for a single package name.", "operationId": "app.PkgtreeHandlerGet.get", "parameters": [{"name": "package_name", "description": "Package name", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-rt"}], "responses": {"200": {"description": "Return package NEVRAs about single package name", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PkgtreeResponse"}}}}}}}, "/vulnerabilities": {"post": {"description": "List of applicable CVEs to a package list.", "operationId": "app.VulnerabilitiesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/VulnerabilitiesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of applicable CVEs to a package list.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VulnerabilitiesResponse"}}}}}}}, "/vulnerabilities/{nevra}": {"get": {"description": "List of applicable CVEs for a single package NEVRA", "operationId": "app.VulnerabilitiesHandlerGet.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of applicable CVEs for a single NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VulnerabilitiesResponse"}}}}}}}, "/patches": {"post": {"description": "List of applicable errata to a package list.", "operationId": "app.PatchesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PatchesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of applicable errata to a package list.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PatchesResponse"}}}}}}}, "/patches/{nevra}": {"get": {"description": "List of applicable CVEs for a single package NEVRA", "operationId": "app.PatchesHandlerGet.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of applicable errata for a single NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PatchesResponse"}}}}}}}, "/package_names/srpms": {"post": {"description": "List of content sets with associated rpm names by given srpm and content set.", "operationId": "app.SRPMPkgNamesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SRPMPkgNamesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets with associated rpm names by given srpm names and content set.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SRPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}, "/package_names/srpms/{srpm}": {"get": {"description": "List of content sets with associated rpm names by given srpm.", "operationId": "app.SRPMPkgNamesHandlerGet.get", "parameters": [{"name": "srpm", "description": "Source package name", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "openssl"}], "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets with associated rpm names by given srpm names and content set.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SRPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}, "/package_names/rpms": {"post": {"description": "List of content sets by given rpm name and content set.", "operationId": "app.RPMPkgNamesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/RPMPkgNamesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets by given rpm names and content set.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}, "/package_names/rpms/{rpm}": {"get": {"description": "List of content sets by given rpm name.", "operationId": "app.RPMPkgNamesHandlerGet.get", "parameters": [{"name": "rpm", "description": "Package name", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "openssl-libs"}], "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets by given rpm names.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}}, "tags": [{"name": "default"}, {"name": "experimental", "description": "Endpoints with preview functionality"}], "x-paging-info": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}}, "x-paging-resp": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}}, "components": {"schemas": {"UpdatesV3Request": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}, "minItems": 1}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "security_only": {"type": "boolean", "enum": [true, false]}, "latest_only": {"type": "boolean", "enum": [true, false]}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}, "optimistic_updates": {"type": "boolean", "enum": [true, false], "description": "Search for updates of unknown package EVRAs.", "default": false}}, "required": ["package_list"]}, "UpdatesV2Response": {"properties": {"update_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"available_updates": {"type": "array", "items": {"type": "object", "properties": {"repository": {"type": "string", "example": "rhel-6-server-rpms"}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "erratum": {"type": "string", "example": "RHSA-2018:0512"}, "package": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.x86_64"}}}}}}}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}}}, "CvesRequest": {"type": "object", "properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2017-57.*"}, "minItems": 1}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "published_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "rh_only": {"type": "boolean", "enum": [true, false]}, "errata_associated": {"type": "boolean", "enum": [true, false], "description": "Return only those CVEs which are associated with at least one errata. Defaults to false."}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["cve_list"]}, "CvesResponse": {"properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}, "cve_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"impact": {"type": "string", "enum": ["NotSet", "None", "Low", "Medium", "Moderate", "Important", "High", "Critical"]}, "public_date": {"type": "string", "example": "2018-01-04T13:29:00+00:00", "format": "date-time"}, "synopsis": {"type": "string", "example": "CVE-2017-5715"}, "description": {"type": "string", "example": "description text"}, "modified_date": {"type": "string", "example": "2018-03-31T01:29:00+00:00", "format": "date-time"}, "redhat_url": {"type": "string", "example": "https://access.redhat.com/security/cve/cve-2017-5715"}, "secondary_url": {"type": "string", "example": "https://seconday.url.com"}, "cvss2_score": {"type": "string", "example": "5.600"}, "cvss2_metrics": {"type": "string", "example": "AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"}, "cvss3_score": {"type": "string", "example": "5.1"}, "cvss3_metrics": {"type": "string", "example": "AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"}, "cwe_list": {"type": "array", "items": {"type": "string", "example": "CWE-20"}}, "errata_list": {"type": "array", "items": {"type": "string", "example": "RHSA-2015:1981"}}, "package_list": {"type": "array", "items": {"type": "string", "example": "nss-devel-3.16.1-9.el6_5.x86_64"}}, "source_package_list": {"type": "array", "items": {"type": "string", "example": "nss-devel-3.16.1-9.el6_5.src"}}}}}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}}}, "ReposRequest": {"type": "object", "properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}, "minItems": 1}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time", "description": "Return only repositories changed after the given date"}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["repository_list"]}, "ReposResponse": {"properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}, "repository_list": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "object", "properties": {"product": {"type": "string", "example": "Red Hat Enterprise Linux Server"}, "releasever": {"type": "string", "example": "6Server"}, "name": {"type": "string", "example": "Red Hat Enterprise Linux 6 Server (RPMs)"}, "url": {"type": "string", "example": "https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/"}, "basearch": {"type": "string", "example": "x86_64"}, "revision": {"type": "string", "example": "2018-03-27T10:55:16+00:00"}, "label": {"type": "string", "example": "rhel-6-server-rpms"}, "cpes": {"type": "array", "items": {"type": "string", "example": "cpe:/a:redhat"}}, "third_party": {"type": "boolean"}}}}}}}, "ErrataRequest": {"type": "object", "properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "errata_list": {"type": "array", "items": {"type": "string", "example": "RHSA-2018:05.*"}, "minItems": 1}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}, "type": {"type": "array", "items": {"type": "string", "example": "security"}}, "severity": {"type": "array", "items": {"type": "string", "enum": ["Low", "Moderate", "Important", "Critical", null], "nullable": true}}}, "required": ["errata_list"]}, "ErrataResponse": {"properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}, "errata_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"updated": {"type": "string", "example": "2018-03-13T17:31:41+00:00"}, "severity": {"type": "string", "enum": ["Low", "Moderate", "Important", "Critical", null], "nullable": true}, "reference_list": {"type": "array", "items": {"type": "string", "example": "classification-RHSA-2018:0512"}}, "issued": {"type": "string", "example": "2018-03-13T17:31:28+00:00", "format": "date-time"}, "description": {"type": "string", "example": "description text"}, "solution": {"type": "string", "example": "solution text"}, "summary": {"type": "string", "example": "summary text"}, "url": {"type": "string", "example": "https://access.redhat.com/errata/RHSA-2018:0512"}, "synopsis": {"type": "string", "example": "Important: kernel security and bug fix update"}, "cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2017-5715"}}, "bugzilla_list": {"type": "array", "items": {"type": "string", "example": "1519778"}}, "package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.x86_64"}}, "source_package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.src"}}, "type": {"type": "string", "example": "security"}, "third_party": {"type": "boolean"}}}}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "type": {"type": "array", "items": {"type": "string", "example": "security"}}, "severity": {"type": "array", "items": {"type": "string", "enum": ["Low", "Moderate", "Important", "Critical", null], "nullable": true}}}}, "PackagesRequest": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}, "minItems": 1}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["package_list"]}, "PackagesResponse": {"properties": {"package_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"summary": {"type": "string", "example": "package summary"}, "description": {"type": "string", "example": "package description"}, "source_package": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.src"}, "package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.x86_64"}}, "repositories": {"type": "array", "items": {"type": "object", "properties": {"label": {"type": "string", "example": "rhel-6-server-rpms"}, "name": {"type": "string", "example": "Red Hat Enterprise Linux 6 Server (RPMs)"}, "basearch": {"type": "string", "example": "x86_64"}, "releasever": {"type": "string", "example": "6.9"}}}}}}}}}, "PkgtreeRequest": {"type": "object", "properties": {"package_name_list": {"type": "array", "items": {"type": "string", "example": "kernel-rt"}, "minItems": 1}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["package_name_list"]}, "PkgtreeResponse": {"properties": {"last_change": {"example": "2020-04-16 20:07:58.500192+00"}, "package_name_list": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "object", "properties": {"nevra": {"type": "string", "example": "kernel-rt-4.18.0-147.rt24.93.el8.x86_64"}, "first_published": {"type": "string", "example": "2020-01-13T17:31:41+00:00", "format": "date-time"}, "repositories": {"type": "array", "items": {"type": "object", "properties": {"label": {"type": "string", "example": "rhel-8-for-s390x-appstream-rpms"}, "name": {"type": "string", "example": "Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs)"}, "basearch": {"type": "string", "example": "x86_64"}, "releasever": {"type": "string", "example": "6.9"}, "revision": {"type": "string", "example": "2019-11-19T09:41:05+00:00", "format": "date-time"}, "module_name": {"type": "string", "example": "postgresql"}, "module_stream": {"type": "string", "example": "9.6"}}, "required": ["label", "name", "basearch", "releasever", "revision"]}}, "errata": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "RHSA-2019:2730"}, "issued": {"type": "string", "example": "2019-11-19T09:41:05+00:00", "format": "date-time"}, "cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2018-13405"}}}, "required": ["name", "issued"]}}}, "required": ["nevra", "first_published"]}}}}}, "DBChangeResponse": {"properties": {"dbchange": {"type": "object", "properties": {"errata_changes": {"type": "string", "example": "2018-04-16 20:07:58.500192+00"}, "cve_changes": {"type": "string", "example": "2018-04-16 20:06:47.214266+00"}, "repository_changes": {"type": "string", "example": "2018-04-16 20:07:55.01395+00"}, "last_change": {"type": "string", "example": "2018-04-16 20:07:58.500192+00"}, "exported": {"type": "string", "example": "2018-04-16 20:07:59.235962+00"}}}}}, "VulnerabilitiesRequest": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "oval": {"type": "boolean", "enum": [true, false]}, "oval_only": {"type": "boolean", "enum": [true, false]}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["package_list"]}, "VulnerabilitiesResponse": {"properties": {"cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2016-0800"}}, "unpatched_cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2017-15089"}}}, "required": ["cve_list", "unpatched_cve_list"]}, "PatchesRequest": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["package_list"]}, "PatchesResponse": {"properties": {"errata_list": {"type": "array", "items": {"type": "string", "example": "RHSA-2018:0151"}}}}, "SRPMPkgNamesRequest": {"type": "object", "properties": {"srpm_name_list": {"type": "array", "items": {"type": "string", "example": "openssl"}}, "content_set_list": {"type": "array", "items": {"type": "string", "example": "rhel-7-desktop-rpms"}}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["srpm_name_list"]}, "SRPMPkgNamesResponse": {"properties": {"last_change": {"example": "2020-04-16 20:07:58.500192+00"}, "srpm_name_list": {"type": "object", "additionalProperties": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "example": "openssl-libs"}}}}}}, "RPMPkgNamesRequest": {"type": "object", "properties": {"rpm_name_list": {"type": "array", "items": {"type": "string", "example": "openssl-libs"}}, "content_set_list": {"type": "array", "items": {"type": "string", "example": "rhel-7-desktop-rpms"}}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["rpm_name_list"]}, "RPMPkgNamesResponse": {"properties": {"last_change": {"example": "2020-04-16 20:07:58.500192+00"}, "rpm_name_list": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "example": "rhel-7-desktop-rpms"}}}}}}}, "servers": [{"url": "/api/vmaas/v3"}]} +{"openapi": "3.0.0", "info": {"title": "VMaaS Webapp", "version": "2.8.2"}, "x-format-resps": {"400": {"description": "Invalid input json format"}}, "paths": {"/monitoring/health": {"get": {"summary": "Return API liveness status", "operationId": "app.HealthHandler.get", "responses": {"200": {"description": "Application is alive"}}}}, "/monitoring/ready": {"get": {"summary": "Return API readiness status", "operationId": "app.ReadyHandler.get", "responses": {"200": {"description": "Application is ready"}, "503": {"description": "Application is not ready"}}}}, "/version": {"get": {"description": "Get version of application", "operationId": "app.VersionHandler.get", "responses": {"200": {"description": "Version of application returned"}}}}, "/dbchange": {"get": {"description": "Get last-updated-times for VMaaS DB", "operationId": "app.DBChangeHandler.get", "responses": {"200": {"description": "Return last-update timestamps for errata, repos, cves and the db as a whole", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/DBChangeResponse"}}}}}}}, "/updates": {"post": {"description": "List all updates for list of package NEVRAs", "operationId": "app.UpdatesHandlerV3Post.post", "requestBody": {"description": "Input json", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV3Request"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return list of all updates for single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV2Response"}}}}}}}, "/updates/{nevra}": {"get": {"description": "List all updates for single package NEVRA", "operationId": "app.UpdatesHandlerV3Get.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of all updates for single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/UpdatesV2Response"}}}}}}}, "/cves": {"post": {"description": "Get details about CVEs with additional parameters. As a \"cve_list\" parameter a complete list of CVE names can be provided OR one POSIX regular expression.", "operationId": "app.CVEHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/CvesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of CVEs", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CvesResponse"}}}}}}}, "/cves/{cve}": {"get": {"description": "Get details about CVEs. It is possible to use POSIX regular expression as a pattern for CVE names.", "operationId": "app.CVEHandlerGet.get", "parameters": [{"name": "cve", "description": "CVE name or POSIX regular expression pattern", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "CVE-2017-5715, CVE-2017-571[1-5], CVE-2017-5.*"}], "responses": {"200": {"description": "Return details about CVEs", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/CvesResponse"}}}}}}}, "/repos": {"post": {"description": "Get details about list of repositories. \"repository_list\" can be either a list of repository names, OR a single POSIX regular expression.", "operationId": "app.ReposHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReposRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of repositories", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReposResponse"}}}}}}}, "/repos/{repo}": {"get": {"description": "Get details about a repository or repository-expression. It is allowed to use POSIX regular expression as a pattern for repository names.", "operationId": "app.ReposHandlerGet.get", "parameters": [{"name": "repo", "description": "Repository name or POSIX regular expression pattern", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "rhel-6-server-rpms OR rhel-[4567]-.*-rpms OR rhel-\\d-server-rpms"}], "responses": {"200": {"description": "Return details about repository or repositories that match the expression", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ReposResponse"}}}}}}}, "/errata": {"post": {"description": "Get details about errata with additional parameters. \"errata_list\" parameter can be either a list of errata names OR a single POSIX regular expression.", "operationId": "app.ErrataHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrataRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of errata", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrataResponse"}}}}}}}, "/errata/{erratum}": {"get": {"description": "Get details about errata. It is possible to use POSIX regular expression as a pattern for errata names.", "operationId": "app.ErrataHandlerGet.get", "parameters": [{"name": "erratum", "description": "Errata advisory name or POSIX regular expression pattern", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "RHSA-2018:0512, RHSA-2018:051[1-5], RH.*"}], "responses": {"200": {"description": "Return details about errata", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ErrataResponse"}}}}}}}, "/packages": {"post": {"description": "Get details about packages. \"package_list\" must be a list of package NEVRAs.", "operationId": "app.PackagesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PackagesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return details about list of package NEVRAs", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PackagesResponse"}}}}}}}, "/packages/{nevra}": {"get": {"description": "Get details about packages.", "operationId": "app.PackagesHandlerGet.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return details about single package NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PackagesResponse"}}}}}}}, "/pkgtree": {"post": {"description": "Get package NEVRAs trees for package names. \"package_name_list\" must be a list of package names.", "operationId": "app.PkgtreeHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PkgtreeRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "Return package NEVRAs about list of package names", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PkgtreeResponse"}}}}}}}, "/pkgtree/{package_name}": {"get": {"description": "Get package NEVRAs tree for a single package name.", "operationId": "app.PkgtreeHandlerGet.get", "parameters": [{"name": "package_name", "description": "Package name", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-rt"}], "responses": {"200": {"description": "Return package NEVRAs about single package name", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PkgtreeResponse"}}}}}}}, "/vulnerabilities": {"post": {"description": "List of applicable CVEs to a package list.", "operationId": "app.VulnerabilitiesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/VulnerabilitiesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of applicable CVEs to a package list.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VulnerabilitiesResponse"}}}}}}}, "/vulnerabilities/{nevra}": {"get": {"description": "List of applicable CVEs for a single package NEVRA", "operationId": "app.VulnerabilitiesHandlerGet.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of applicable CVEs for a single NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/VulnerabilitiesResponse"}}}}}}}, "/patches": {"post": {"description": "List of applicable errata to a package list.", "operationId": "app.PatchesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/PatchesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of applicable errata to a package list.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PatchesResponse"}}}}}}}, "/patches/{nevra}": {"get": {"description": "List of applicable CVEs for a single package NEVRA", "operationId": "app.PatchesHandlerGet.get", "parameters": [{"name": "nevra", "description": "Package NEVRA", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "kernel-2.6.32-696.20.1.el6.x86_64"}], "responses": {"200": {"description": "Return list of applicable errata for a single NEVRA", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PatchesResponse"}}}}}}}, "/package_names/srpms": {"post": {"description": "List of content sets with associated rpm names by given srpm and content set.", "operationId": "app.SRPMPkgNamesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/SRPMPkgNamesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets with associated rpm names by given srpm names and content set.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SRPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}, "/package_names/srpms/{srpm}": {"get": {"description": "List of content sets with associated rpm names by given srpm.", "operationId": "app.SRPMPkgNamesHandlerGet.get", "parameters": [{"name": "srpm", "description": "Source package name", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "openssl"}], "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets with associated rpm names by given srpm names and content set.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/SRPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}, "/package_names/rpms": {"post": {"description": "List of content sets by given rpm name and content set.", "operationId": "app.RPMPkgNamesHandlerPost.post", "requestBody": {"content": {"application/json": {"schema": {"$ref": "#/components/schemas/RPMPkgNamesRequest"}}}}, "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets by given rpm names and content set.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}, "/package_names/rpms/{rpm}": {"get": {"description": "List of content sets by given rpm name.", "operationId": "app.RPMPkgNamesHandlerGet.get", "parameters": [{"name": "rpm", "description": "Package name", "required": true, "schema": {"type": "string"}, "in": "path", "x-example": "openssl-libs"}], "responses": {"400": {"description": "Invalid input json format"}, "200": {"description": "List of content sets by given rpm names.", "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RPMPkgNamesResponse"}}}}}, "tags": ["experimental"]}}}, "tags": [{"name": "default"}, {"name": "experimental", "description": "Endpoints with preview functionality"}], "x-paging-info": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}}, "x-paging-resp": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}}, "components": {"schemas": {"UpdatesV3Request": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}, "minItems": 1}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "security_only": {"type": "boolean", "enum": [true, false]}, "latest_only": {"type": "boolean", "enum": [true, false]}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}, "optimistic_updates": {"type": "boolean", "enum": [true, false], "description": "Search for updates of unknown package EVRAs.", "default": false}}, "required": ["package_list"]}, "UpdatesV2Response": {"properties": {"update_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"available_updates": {"type": "array", "items": {"type": "object", "properties": {"repository": {"type": "string", "example": "rhel-6-server-rpms"}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "erratum": {"type": "string", "example": "RHSA-2018:0512"}, "package": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.x86_64"}}}}}}}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}}}, "CvesRequest": {"type": "object", "properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2017-57.*"}, "minItems": 1}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "published_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "rh_only": {"type": "boolean", "enum": [true, false]}, "errata_associated": {"type": "boolean", "enum": [true, false], "description": "Return only those CVEs which are associated with at least one errata. Defaults to false."}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["cve_list"]}, "CvesResponse": {"properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}, "cve_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"impact": {"type": "string", "enum": ["NotSet", "None", "Low", "Medium", "Moderate", "Important", "High", "Critical"]}, "public_date": {"type": "string", "example": "2018-01-04T13:29:00+00:00", "format": "date-time"}, "synopsis": {"type": "string", "example": "CVE-2017-5715"}, "description": {"type": "string", "example": "description text"}, "modified_date": {"type": "string", "example": "2018-03-31T01:29:00+00:00", "format": "date-time"}, "redhat_url": {"type": "string", "example": "https://access.redhat.com/security/cve/cve-2017-5715"}, "secondary_url": {"type": "string", "example": "https://seconday.url.com"}, "cvss2_score": {"type": "string", "example": "5.600"}, "cvss2_metrics": {"type": "string", "example": "AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"}, "cvss3_score": {"type": "string", "example": "5.1"}, "cvss3_metrics": {"type": "string", "example": "AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N"}, "cwe_list": {"type": "array", "items": {"type": "string", "example": "CWE-20"}}, "errata_list": {"type": "array", "items": {"type": "string", "example": "RHSA-2015:1981"}}, "package_list": {"type": "array", "items": {"type": "string", "example": "nss-devel-3.16.1-9.el6_5.x86_64"}}, "source_package_list": {"type": "array", "items": {"type": "string", "example": "nss-devel-3.16.1-9.el6_5.src"}}}}}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}}}, "ReposRequest": {"type": "object", "properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}, "minItems": 1}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time", "description": "Return only repositories changed after the given date"}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["repository_list"]}, "ReposResponse": {"properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}, "repository_list": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "object", "properties": {"product": {"type": "string", "example": "Red Hat Enterprise Linux Server"}, "releasever": {"type": "string", "example": "6Server"}, "name": {"type": "string", "example": "Red Hat Enterprise Linux 6 Server (RPMs)"}, "url": {"type": "string", "example": "https://cdn.redhat.com/content/dist/rhel/server/6/6Server/x86_64/os/"}, "basearch": {"type": "string", "example": "x86_64"}, "revision": {"type": "string", "example": "2018-03-27T10:55:16+00:00"}, "label": {"type": "string", "example": "rhel-6-server-rpms"}, "cpes": {"type": "array", "items": {"type": "string", "example": "cpe:/a:redhat"}}, "third_party": {"type": "boolean"}}}}}}}, "ErrataRequest": {"type": "object", "properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "errata_list": {"type": "array", "items": {"type": "string", "example": "RHSA-2018:05.*"}, "minItems": 1}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}, "type": {"type": "array", "items": {"type": "string", "example": "security"}}, "severity": {"type": "array", "items": {"type": "string", "enum": ["Low", "Moderate", "Important", "Critical", null], "nullable": true}}}, "required": ["errata_list"]}, "ErrataResponse": {"properties": {"page": {"type": "number", "example": 0}, "page_size": {"type": "number", "example": 10}, "pages": {"type": "number"}, "errata_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"updated": {"type": "string", "example": "2018-03-13T17:31:41+00:00"}, "severity": {"type": "string", "enum": ["Low", "Moderate", "Important", "Critical", null], "nullable": true}, "reference_list": {"type": "array", "items": {"type": "string", "example": "classification-RHSA-2018:0512"}}, "issued": {"type": "string", "example": "2018-03-13T17:31:28+00:00", "format": "date-time"}, "description": {"type": "string", "example": "description text"}, "solution": {"type": "string", "example": "solution text"}, "summary": {"type": "string", "example": "summary text"}, "url": {"type": "string", "example": "https://access.redhat.com/errata/RHSA-2018:0512"}, "synopsis": {"type": "string", "example": "Important: kernel security and bug fix update"}, "cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2017-5715"}}, "bugzilla_list": {"type": "array", "items": {"type": "string", "example": "1519778"}}, "package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.x86_64"}}, "source_package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.src"}}, "type": {"type": "string", "example": "security"}, "third_party": {"type": "boolean"}}}}, "modified_since": {"type": "string", "example": "2018-04-05T01:23:45+02:00", "format": "date-time"}, "type": {"type": "array", "items": {"type": "string", "example": "security"}}, "severity": {"type": "array", "items": {"type": "string", "enum": ["Low", "Moderate", "Important", "Critical", null], "nullable": true}}}}, "PackagesRequest": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}, "minItems": 1}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["package_list"]}, "PackagesResponse": {"properties": {"package_list": {"type": "object", "additionalProperties": {"type": "object", "properties": {"summary": {"type": "string", "example": "package summary"}, "description": {"type": "string", "example": "package description"}, "source_package": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.src"}, "package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.23.1.el6.x86_64"}}, "repositories": {"type": "array", "items": {"type": "object", "properties": {"label": {"type": "string", "example": "rhel-6-server-rpms"}, "name": {"type": "string", "example": "Red Hat Enterprise Linux 6 Server (RPMs)"}, "basearch": {"type": "string", "example": "x86_64"}, "releasever": {"type": "string", "example": "6.9"}}}}}}}}}, "PkgtreeRequest": {"type": "object", "properties": {"package_name_list": {"type": "array", "items": {"type": "string", "example": "kernel-rt"}, "minItems": 1}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["package_name_list"]}, "PkgtreeResponse": {"properties": {"last_change": {"example": "2020-04-16 20:07:58.500192+00"}, "package_name_list": {"type": "object", "additionalProperties": {"type": "array", "items": {"$ref": "#/components/schemas/PkgTreeItem"}}}}}, "PkgTreeItem": {"type": "object", "properties": {"nevra": {"type": "string", "example": "kernel-rt-4.18.0-147.rt24.93.el8.x86_64"}, "first_published": {"type": "string", "example": "2020-01-13T17:31:41+00:00", "format": "date-time"}, "repositories": {"type": "array", "items": {"type": "object", "properties": {"label": {"type": "string", "example": "rhel-8-for-s390x-appstream-rpms"}, "name": {"type": "string", "example": "Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs)"}, "basearch": {"type": "string", "example": "x86_64"}, "releasever": {"type": "string", "example": "6.9"}, "revision": {"type": "string", "example": "2019-11-19T09:41:05+00:00", "format": "date-time"}, "module_name": {"type": "string", "example": "postgresql"}, "module_stream": {"type": "string", "example": "9.6"}}, "required": ["label", "name", "basearch", "releasever", "revision"]}}, "errata": {"type": "array", "items": {"type": "object", "properties": {"name": {"type": "string", "example": "RHSA-2019:2730"}, "issued": {"type": "string", "example": "2019-11-19T09:41:05+00:00", "format": "date-time"}, "cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2018-13405"}}}, "required": ["name", "issued"]}}}, "required": ["nevra", "first_published"]}, "DBChangeResponse": {"properties": {"dbchange": {"type": "object", "properties": {"errata_changes": {"type": "string", "example": "2018-04-16 20:07:58.500192+00"}, "cve_changes": {"type": "string", "example": "2018-04-16 20:06:47.214266+00"}, "repository_changes": {"type": "string", "example": "2018-04-16 20:07:55.01395+00"}, "last_change": {"type": "string", "example": "2018-04-16 20:07:58.500192+00"}, "exported": {"type": "string", "example": "2018-04-16 20:07:59.235962+00"}}}}}, "VulnerabilitiesRequest": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "oval": {"type": "boolean", "enum": [true, false]}, "oval_only": {"type": "boolean", "enum": [true, false]}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["package_list"]}, "VulnerabilitiesResponse": {"properties": {"cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2016-0800"}}, "unpatched_cve_list": {"type": "array", "items": {"type": "string", "example": "CVE-2017-15089"}}}, "required": ["cve_list", "unpatched_cve_list"]}, "PatchesRequest": {"type": "object", "properties": {"package_list": {"type": "array", "items": {"type": "string", "example": "kernel-2.6.32-696.20.1.el6.x86_64"}}, "repository_list": {"type": "array", "items": {"type": "string", "example": "rhel-6-server-rpms"}}, "modules_list": {"type": "array", "items": {"type": "object", "properties": {"module_name": {"type": "string", "example": "rhn-tools"}, "module_stream": {"type": "string", "example": "1"}}, "required": ["module_name", "module_stream"]}}, "releasever": {"type": "string", "example": "6Server"}, "basearch": {"type": "string", "example": "x86_64"}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["package_list"]}, "PatchesResponse": {"properties": {"errata_list": {"type": "array", "items": {"type": "string", "example": "RHSA-2018:0151"}}}}, "SRPMPkgNamesRequest": {"type": "object", "properties": {"srpm_name_list": {"type": "array", "items": {"type": "string", "example": "openssl"}}, "content_set_list": {"type": "array", "items": {"type": "string", "example": "rhel-7-desktop-rpms"}}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["srpm_name_list"]}, "SRPMPkgNamesResponse": {"properties": {"last_change": {"example": "2020-04-16 20:07:58.500192+00"}, "srpm_name_list": {"type": "object", "additionalProperties": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "example": "openssl-libs"}}}}}}, "RPMPkgNamesRequest": {"type": "object", "properties": {"rpm_name_list": {"type": "array", "items": {"type": "string", "example": "openssl-libs"}}, "content_set_list": {"type": "array", "items": {"type": "string", "example": "rhel-7-desktop-rpms"}}, "third_party": {"type": "boolean", "enum": [true, false], "description": "Include content from \"third party\" repositories into the response, disabled by default.", "default": false}}, "required": ["rpm_name_list"]}, "RPMPkgNamesResponse": {"properties": {"last_change": {"example": "2020-04-16 20:07:58.500192+00"}, "rpm_name_list": {"type": "object", "additionalProperties": {"type": "array", "items": {"type": "string", "example": "rhel-7-desktop-rpms"}}}}}}}, "servers": [{"url": "/api/vmaas/v3"}]} diff --git a/vmaas/api/openapi.yaml b/vmaas/api/openapi.yaml index f4b79f4..0bcf3ed 100644 --- a/vmaas/api/openapi.yaml +++ b/vmaas/api/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.0 info: title: VMaaS Webapp - version: 2.5.0 + version: 2.8.2 servers: - url: /api/vmaas/v3 tags: @@ -979,82 +979,121 @@ components: last_change: 2020-04-16 20:07:58.500192+00 package_name_list: key: - - '{}' - - '{}' + - nevra: kernel-rt-4.18.0-147.rt24.93.el8.x86_64 + repositories: + - module_stream: "9.6" + name: Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs) + label: rhel-8-for-s390x-appstream-rpms + module_name: postgresql + basearch: x86_64 + releasever: "6.9" + revision: 2019-11-19T09:41:05Z + - module_stream: "9.6" + name: Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs) + label: rhel-8-for-s390x-appstream-rpms + module_name: postgresql + basearch: x86_64 + releasever: "6.9" + revision: 2019-11-19T09:41:05Z + errata: + - cve_list: + - CVE-2018-13405 + - CVE-2018-13405 + name: RHSA-2019:2730 + issued: 2019-11-19T09:41:05Z + - cve_list: + - CVE-2018-13405 + - CVE-2018-13405 + name: RHSA-2019:2730 + issued: 2019-11-19T09:41:05Z + first_published: 2020-01-13T17:31:41Z + - nevra: kernel-rt-4.18.0-147.rt24.93.el8.x86_64 + repositories: + - module_stream: "9.6" + name: Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs) + label: rhel-8-for-s390x-appstream-rpms + module_name: postgresql + basearch: x86_64 + releasever: "6.9" + revision: 2019-11-19T09:41:05Z + - module_stream: "9.6" + name: Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs) + label: rhel-8-for-s390x-appstream-rpms + module_name: postgresql + basearch: x86_64 + releasever: "6.9" + revision: 2019-11-19T09:41:05Z + errata: + - cve_list: + - CVE-2018-13405 + - CVE-2018-13405 + name: RHSA-2019:2730 + issued: 2019-11-19T09:41:05Z + - cve_list: + - CVE-2018-13405 + - CVE-2018-13405 + name: RHSA-2019:2730 + issued: 2019-11-19T09:41:05Z + first_published: 2020-01-13T17:31:41Z properties: last_change: example: 2020-04-16 20:07:58.500192+00 package_name_list: additionalProperties: items: - properties: - nevra: - example: kernel-rt-4.18.0-147.rt24.93.el8.x86_64 - type: string - first_published: - example: 2020-01-13T17:31:41Z - format: date-time - type: string - repositories: - items: - properties: - label: - example: rhel-8-for-s390x-appstream-rpms - type: string - name: - example: Red Hat Enterprise Linux 8 for IBM z Systems - AppStream - (RPMs) - type: string - basearch: - example: x86_64 - type: string - releasever: - example: "6.9" - type: string - revision: - example: 2019-11-19T09:41:05Z - format: date-time - type: string - module_name: - example: postgresql - type: string - module_stream: - example: "9.6" - type: string - required: - - basearch - - label - - name - - releasever - - revision - type: object - type: array - errata: - items: - properties: - name: - example: RHSA-2019:2730 - type: string - issued: - example: 2019-11-19T09:41:05Z - format: date-time - type: string - cve_list: - items: - example: CVE-2018-13405 - type: string - type: array - required: - - issued - - name - type: object - type: array - required: - - first_published - - nevra - type: object + $ref: '#/components/schemas/PkgTreeItem' type: array type: object + PkgTreeItem: + example: + nevra: kernel-rt-4.18.0-147.rt24.93.el8.x86_64 + repositories: + - module_stream: "9.6" + name: Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs) + label: rhel-8-for-s390x-appstream-rpms + module_name: postgresql + basearch: x86_64 + releasever: "6.9" + revision: 2019-11-19T09:41:05Z + - module_stream: "9.6" + name: Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs) + label: rhel-8-for-s390x-appstream-rpms + module_name: postgresql + basearch: x86_64 + releasever: "6.9" + revision: 2019-11-19T09:41:05Z + errata: + - cve_list: + - CVE-2018-13405 + - CVE-2018-13405 + name: RHSA-2019:2730 + issued: 2019-11-19T09:41:05Z + - cve_list: + - CVE-2018-13405 + - CVE-2018-13405 + name: RHSA-2019:2730 + issued: 2019-11-19T09:41:05Z + first_published: 2020-01-13T17:31:41Z + properties: + nevra: + example: kernel-rt-4.18.0-147.rt24.93.el8.x86_64 + type: string + first_published: + example: 2020-01-13T17:31:41Z + format: date-time + type: string + repositories: + items: + $ref: '#/components/schemas/PkgTreeItem_repositories' + type: array + errata: + items: + $ref: '#/components/schemas/PkgTreeItem_errata' + type: array + required: + - first_published + - nevra + type: object DBChangeResponse: example: dbchange: @@ -1601,6 +1640,69 @@ components: $ref: '#/components/schemas/PackagesResponse_repositories' type: array type: object + PkgTreeItem_repositories: + example: + module_stream: "9.6" + name: Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs) + label: rhel-8-for-s390x-appstream-rpms + module_name: postgresql + basearch: x86_64 + releasever: "6.9" + revision: 2019-11-19T09:41:05Z + properties: + label: + example: rhel-8-for-s390x-appstream-rpms + type: string + name: + example: Red Hat Enterprise Linux 8 for IBM z Systems - AppStream (RPMs) + type: string + basearch: + example: x86_64 + type: string + releasever: + example: "6.9" + type: string + revision: + example: 2019-11-19T09:41:05Z + format: date-time + type: string + module_name: + example: postgresql + type: string + module_stream: + example: "9.6" + type: string + required: + - basearch + - label + - name + - releasever + - revision + type: object + PkgTreeItem_errata: + example: + cve_list: + - CVE-2018-13405 + - CVE-2018-13405 + name: RHSA-2019:2730 + issued: 2019-11-19T09:41:05Z + properties: + name: + example: RHSA-2019:2730 + type: string + issued: + example: 2019-11-19T09:41:05Z + format: date-time + type: string + cve_list: + items: + example: CVE-2018-13405 + type: string + type: array + required: + - issued + - name + type: object DBChangeResponse_dbchange: example: errata_changes: 2018-04-16 20:07:58.500192+00 diff --git a/vmaas/api_default.go b/vmaas/api_default.go index 6eb9bcd..07ab36c 100644 --- a/vmaas/api_default.go +++ b/vmaas/api_default.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/api_experimental.go b/vmaas/api_experimental.go index c53fd9c..5474c18 100644 --- a/vmaas/api_experimental.go +++ b/vmaas/api_experimental.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/client.go b/vmaas/client.go index f6e0952..7e12cba 100644 --- a/vmaas/client.go +++ b/vmaas/client.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -40,7 +40,7 @@ var ( xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) ) -// APIClient manages communication with the VMaaS Webapp API v2.5.0 +// APIClient manages communication with the VMaaS Webapp API v2.8.2 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/vmaas/configuration.go b/vmaas/configuration.go index ce6d29b..d3c750d 100644 --- a/vmaas/configuration.go +++ b/vmaas/configuration.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/docs/PkgTreeItem.md b/vmaas/docs/PkgTreeItem.md new file mode 100644 index 0000000..3912361 --- /dev/null +++ b/vmaas/docs/PkgTreeItem.md @@ -0,0 +1,124 @@ +# PkgTreeItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Nevra** | **string** | | +**FirstPublished** | **time.Time** | | +**Repositories** | Pointer to [**[]PkgTreeItemRepositories**](PkgTreeItemRepositories.md) | | [optional] +**Errata** | Pointer to [**[]PkgTreeItemErrata**](PkgTreeItemErrata.md) | | [optional] + +## Methods + +### NewPkgTreeItem + +`func NewPkgTreeItem(nevra string, firstPublished time.Time, ) *PkgTreeItem` + +NewPkgTreeItem instantiates a new PkgTreeItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPkgTreeItemWithDefaults + +`func NewPkgTreeItemWithDefaults() *PkgTreeItem` + +NewPkgTreeItemWithDefaults instantiates a new PkgTreeItem object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNevra + +`func (o *PkgTreeItem) GetNevra() string` + +GetNevra returns the Nevra field if non-nil, zero value otherwise. + +### GetNevraOk + +`func (o *PkgTreeItem) GetNevraOk() (*string, bool)` + +GetNevraOk returns a tuple with the Nevra field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNevra + +`func (o *PkgTreeItem) SetNevra(v string)` + +SetNevra sets Nevra field to given value. + + +### GetFirstPublished + +`func (o *PkgTreeItem) GetFirstPublished() time.Time` + +GetFirstPublished returns the FirstPublished field if non-nil, zero value otherwise. + +### GetFirstPublishedOk + +`func (o *PkgTreeItem) GetFirstPublishedOk() (*time.Time, bool)` + +GetFirstPublishedOk returns a tuple with the FirstPublished field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstPublished + +`func (o *PkgTreeItem) SetFirstPublished(v time.Time)` + +SetFirstPublished sets FirstPublished field to given value. + + +### GetRepositories + +`func (o *PkgTreeItem) GetRepositories() []PkgTreeItemRepositories` + +GetRepositories returns the Repositories field if non-nil, zero value otherwise. + +### GetRepositoriesOk + +`func (o *PkgTreeItem) GetRepositoriesOk() (*[]PkgTreeItemRepositories, bool)` + +GetRepositoriesOk returns a tuple with the Repositories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositories + +`func (o *PkgTreeItem) SetRepositories(v []PkgTreeItemRepositories)` + +SetRepositories sets Repositories field to given value. + +### HasRepositories + +`func (o *PkgTreeItem) HasRepositories() bool` + +HasRepositories returns a boolean if a field has been set. + +### GetErrata + +`func (o *PkgTreeItem) GetErrata() []PkgTreeItemErrata` + +GetErrata returns the Errata field if non-nil, zero value otherwise. + +### GetErrataOk + +`func (o *PkgTreeItem) GetErrataOk() (*[]PkgTreeItemErrata, bool)` + +GetErrataOk returns a tuple with the Errata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrata + +`func (o *PkgTreeItem) SetErrata(v []PkgTreeItemErrata)` + +SetErrata sets Errata field to given value. + +### HasErrata + +`func (o *PkgTreeItem) HasErrata() bool` + +HasErrata returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vmaas/docs/PkgTreeItemErrata.md b/vmaas/docs/PkgTreeItemErrata.md new file mode 100644 index 0000000..6440ee8 --- /dev/null +++ b/vmaas/docs/PkgTreeItemErrata.md @@ -0,0 +1,98 @@ +# PkgTreeItemErrata + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Issued** | **time.Time** | | +**CveList** | Pointer to **[]string** | | [optional] + +## Methods + +### NewPkgTreeItemErrata + +`func NewPkgTreeItemErrata(name string, issued time.Time, ) *PkgTreeItemErrata` + +NewPkgTreeItemErrata instantiates a new PkgTreeItemErrata object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPkgTreeItemErrataWithDefaults + +`func NewPkgTreeItemErrataWithDefaults() *PkgTreeItemErrata` + +NewPkgTreeItemErrataWithDefaults instantiates a new PkgTreeItemErrata object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PkgTreeItemErrata) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PkgTreeItemErrata) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PkgTreeItemErrata) SetName(v string)` + +SetName sets Name field to given value. + + +### GetIssued + +`func (o *PkgTreeItemErrata) GetIssued() time.Time` + +GetIssued returns the Issued field if non-nil, zero value otherwise. + +### GetIssuedOk + +`func (o *PkgTreeItemErrata) GetIssuedOk() (*time.Time, bool)` + +GetIssuedOk returns a tuple with the Issued field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssued + +`func (o *PkgTreeItemErrata) SetIssued(v time.Time)` + +SetIssued sets Issued field to given value. + + +### GetCveList + +`func (o *PkgTreeItemErrata) GetCveList() []string` + +GetCveList returns the CveList field if non-nil, zero value otherwise. + +### GetCveListOk + +`func (o *PkgTreeItemErrata) GetCveListOk() (*[]string, bool)` + +GetCveListOk returns a tuple with the CveList field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCveList + +`func (o *PkgTreeItemErrata) SetCveList(v []string)` + +SetCveList sets CveList field to given value. + +### HasCveList + +`func (o *PkgTreeItemErrata) HasCveList() bool` + +HasCveList returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vmaas/docs/PkgTreeItemRepositories.md b/vmaas/docs/PkgTreeItemRepositories.md new file mode 100644 index 0000000..66fb9da --- /dev/null +++ b/vmaas/docs/PkgTreeItemRepositories.md @@ -0,0 +1,187 @@ +# PkgTreeItemRepositories + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Label** | **string** | | +**Name** | **string** | | +**Basearch** | **string** | | +**Releasever** | **string** | | +**Revision** | **time.Time** | | +**ModuleName** | Pointer to **string** | | [optional] +**ModuleStream** | Pointer to **string** | | [optional] + +## Methods + +### NewPkgTreeItemRepositories + +`func NewPkgTreeItemRepositories(label string, name string, basearch string, releasever string, revision time.Time, ) *PkgTreeItemRepositories` + +NewPkgTreeItemRepositories instantiates a new PkgTreeItemRepositories object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPkgTreeItemRepositoriesWithDefaults + +`func NewPkgTreeItemRepositoriesWithDefaults() *PkgTreeItemRepositories` + +NewPkgTreeItemRepositoriesWithDefaults instantiates a new PkgTreeItemRepositories object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLabel + +`func (o *PkgTreeItemRepositories) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PkgTreeItemRepositories) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PkgTreeItemRepositories) SetLabel(v string)` + +SetLabel sets Label field to given value. + + +### GetName + +`func (o *PkgTreeItemRepositories) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PkgTreeItemRepositories) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PkgTreeItemRepositories) SetName(v string)` + +SetName sets Name field to given value. + + +### GetBasearch + +`func (o *PkgTreeItemRepositories) GetBasearch() string` + +GetBasearch returns the Basearch field if non-nil, zero value otherwise. + +### GetBasearchOk + +`func (o *PkgTreeItemRepositories) GetBasearchOk() (*string, bool)` + +GetBasearchOk returns a tuple with the Basearch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBasearch + +`func (o *PkgTreeItemRepositories) SetBasearch(v string)` + +SetBasearch sets Basearch field to given value. + + +### GetReleasever + +`func (o *PkgTreeItemRepositories) GetReleasever() string` + +GetReleasever returns the Releasever field if non-nil, zero value otherwise. + +### GetReleaseverOk + +`func (o *PkgTreeItemRepositories) GetReleaseverOk() (*string, bool)` + +GetReleaseverOk returns a tuple with the Releasever field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleasever + +`func (o *PkgTreeItemRepositories) SetReleasever(v string)` + +SetReleasever sets Releasever field to given value. + + +### GetRevision + +`func (o *PkgTreeItemRepositories) GetRevision() time.Time` + +GetRevision returns the Revision field if non-nil, zero value otherwise. + +### GetRevisionOk + +`func (o *PkgTreeItemRepositories) GetRevisionOk() (*time.Time, bool)` + +GetRevisionOk returns a tuple with the Revision field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRevision + +`func (o *PkgTreeItemRepositories) SetRevision(v time.Time)` + +SetRevision sets Revision field to given value. + + +### GetModuleName + +`func (o *PkgTreeItemRepositories) GetModuleName() string` + +GetModuleName returns the ModuleName field if non-nil, zero value otherwise. + +### GetModuleNameOk + +`func (o *PkgTreeItemRepositories) GetModuleNameOk() (*string, bool)` + +GetModuleNameOk returns a tuple with the ModuleName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleName + +`func (o *PkgTreeItemRepositories) SetModuleName(v string)` + +SetModuleName sets ModuleName field to given value. + +### HasModuleName + +`func (o *PkgTreeItemRepositories) HasModuleName() bool` + +HasModuleName returns a boolean if a field has been set. + +### GetModuleStream + +`func (o *PkgTreeItemRepositories) GetModuleStream() string` + +GetModuleStream returns the ModuleStream field if non-nil, zero value otherwise. + +### GetModuleStreamOk + +`func (o *PkgTreeItemRepositories) GetModuleStreamOk() (*string, bool)` + +GetModuleStreamOk returns a tuple with the ModuleStream field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleStream + +`func (o *PkgTreeItemRepositories) SetModuleStream(v string)` + +SetModuleStream sets ModuleStream field to given value. + +### HasModuleStream + +`func (o *PkgTreeItemRepositories) HasModuleStream() bool` + +HasModuleStream returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/vmaas/docs/PkgtreeResponse.md b/vmaas/docs/PkgtreeResponse.md index 8ca2c84..ca8ce8f 100644 --- a/vmaas/docs/PkgtreeResponse.md +++ b/vmaas/docs/PkgtreeResponse.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **LastChange** | Pointer to **interface{}** | | [optional] -**PackageNameList** | Pointer to **map[string][]map[string]interface{}** | | [optional] +**PackageNameList** | Pointer to [**map[string][]PkgTreeItem**](array.md) | | [optional] ## Methods @@ -63,20 +63,20 @@ HasLastChange returns a boolean if a field has been set. UnsetLastChange ensures that no value is present for LastChange, not even an explicit nil ### GetPackageNameList -`func (o *PkgtreeResponse) GetPackageNameList() map[string][]map[string]interface{}` +`func (o *PkgtreeResponse) GetPackageNameList() map[string][]PkgTreeItem` GetPackageNameList returns the PackageNameList field if non-nil, zero value otherwise. ### GetPackageNameListOk -`func (o *PkgtreeResponse) GetPackageNameListOk() (*map[string][]map[string]interface{}, bool)` +`func (o *PkgtreeResponse) GetPackageNameListOk() (*map[string][]PkgTreeItem, bool)` GetPackageNameListOk returns a tuple with the PackageNameList field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPackageNameList -`func (o *PkgtreeResponse) SetPackageNameList(v map[string][]map[string]interface{})` +`func (o *PkgtreeResponse) SetPackageNameList(v map[string][]PkgTreeItem)` SetPackageNameList sets PackageNameList field to given value. diff --git a/vmaas/model_cves_request.go b/vmaas/model_cves_request.go index c090dc2..3adba24 100644 --- a/vmaas/model_cves_request.go +++ b/vmaas/model_cves_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_cves_response.go b/vmaas/model_cves_response.go index 4a39c7f..ef34d2f 100644 --- a/vmaas/model_cves_response.go +++ b/vmaas/model_cves_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_cves_response_cve_list.go b/vmaas/model_cves_response_cve_list.go index 75f4a83..4d0ee78 100644 --- a/vmaas/model_cves_response_cve_list.go +++ b/vmaas/model_cves_response_cve_list.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_db_change_response.go b/vmaas/model_db_change_response.go index 08b6599..de4687d 100644 --- a/vmaas/model_db_change_response.go +++ b/vmaas/model_db_change_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_db_change_response_dbchange.go b/vmaas/model_db_change_response_dbchange.go index 68f0607..19be806 100644 --- a/vmaas/model_db_change_response_dbchange.go +++ b/vmaas/model_db_change_response_dbchange.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_errata_request.go b/vmaas/model_errata_request.go index b2d022e..e29adc1 100644 --- a/vmaas/model_errata_request.go +++ b/vmaas/model_errata_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_errata_response.go b/vmaas/model_errata_response.go index e93e3b5..1ca7ac5 100644 --- a/vmaas/model_errata_response.go +++ b/vmaas/model_errata_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_errata_response_errata_list.go b/vmaas/model_errata_response_errata_list.go index 2ae7e65..4eb19e0 100644 --- a/vmaas/model_errata_response_errata_list.go +++ b/vmaas/model_errata_response_errata_list.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_packages_request.go b/vmaas/model_packages_request.go index b5b1e88..fdae2b3 100644 --- a/vmaas/model_packages_request.go +++ b/vmaas/model_packages_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_packages_response.go b/vmaas/model_packages_response.go index bea4087..e3bdec1 100644 --- a/vmaas/model_packages_response.go +++ b/vmaas/model_packages_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_packages_response_package_list.go b/vmaas/model_packages_response_package_list.go index 537cc7b..0188f34 100644 --- a/vmaas/model_packages_response_package_list.go +++ b/vmaas/model_packages_response_package_list.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_packages_response_repositories.go b/vmaas/model_packages_response_repositories.go index b6d5050..77b32ae 100644 --- a/vmaas/model_packages_response_repositories.go +++ b/vmaas/model_packages_response_repositories.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_patches_request.go b/vmaas/model_patches_request.go index 772dce2..d7e348b 100644 --- a/vmaas/model_patches_request.go +++ b/vmaas/model_patches_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_patches_response.go b/vmaas/model_patches_response.go index 61b5739..ec4e385 100644 --- a/vmaas/model_patches_response.go +++ b/vmaas/model_patches_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_pkg_tree_item.go b/vmaas/model_pkg_tree_item.go new file mode 100644 index 0000000..979d9cd --- /dev/null +++ b/vmaas/model_pkg_tree_item.go @@ -0,0 +1,210 @@ +/* + * VMaaS Webapp + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 2.8.2 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package vmaas + +import ( + "encoding/json" + "time" +) + +// PkgTreeItem struct for PkgTreeItem +type PkgTreeItem struct { + Nevra string `json:"nevra"` + FirstPublished time.Time `json:"first_published"` + Repositories *[]PkgTreeItemRepositories `json:"repositories,omitempty"` + Errata *[]PkgTreeItemErrata `json:"errata,omitempty"` +} + +// NewPkgTreeItem instantiates a new PkgTreeItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPkgTreeItem(nevra string, firstPublished time.Time, ) *PkgTreeItem { + this := PkgTreeItem{} + this.Nevra = nevra + this.FirstPublished = firstPublished + return &this +} + +// NewPkgTreeItemWithDefaults instantiates a new PkgTreeItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPkgTreeItemWithDefaults() *PkgTreeItem { + this := PkgTreeItem{} + return &this +} + +// GetNevra returns the Nevra field value +func (o *PkgTreeItem) GetNevra() string { + if o == nil { + var ret string + return ret + } + + return o.Nevra +} + +// GetNevraOk returns a tuple with the Nevra field value +// and a boolean to check if the value has been set. +func (o *PkgTreeItem) GetNevraOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Nevra, true +} + +// SetNevra sets field value +func (o *PkgTreeItem) SetNevra(v string) { + o.Nevra = v +} + +// GetFirstPublished returns the FirstPublished field value +func (o *PkgTreeItem) GetFirstPublished() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.FirstPublished +} + +// GetFirstPublishedOk returns a tuple with the FirstPublished field value +// and a boolean to check if the value has been set. +func (o *PkgTreeItem) GetFirstPublishedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.FirstPublished, true +} + +// SetFirstPublished sets field value +func (o *PkgTreeItem) SetFirstPublished(v time.Time) { + o.FirstPublished = v +} + +// GetRepositories returns the Repositories field value if set, zero value otherwise. +func (o *PkgTreeItem) GetRepositories() []PkgTreeItemRepositories { + if o == nil || o.Repositories == nil { + var ret []PkgTreeItemRepositories + return ret + } + return *o.Repositories +} + +// GetRepositoriesOk returns a tuple with the Repositories field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PkgTreeItem) GetRepositoriesOk() (*[]PkgTreeItemRepositories, bool) { + if o == nil || o.Repositories == nil { + return nil, false + } + return o.Repositories, true +} + +// HasRepositories returns a boolean if a field has been set. +func (o *PkgTreeItem) HasRepositories() bool { + if o != nil && o.Repositories != nil { + return true + } + + return false +} + +// SetRepositories gets a reference to the given []PkgTreeItemRepositories and assigns it to the Repositories field. +func (o *PkgTreeItem) SetRepositories(v []PkgTreeItemRepositories) { + o.Repositories = &v +} + +// GetErrata returns the Errata field value if set, zero value otherwise. +func (o *PkgTreeItem) GetErrata() []PkgTreeItemErrata { + if o == nil || o.Errata == nil { + var ret []PkgTreeItemErrata + return ret + } + return *o.Errata +} + +// GetErrataOk returns a tuple with the Errata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PkgTreeItem) GetErrataOk() (*[]PkgTreeItemErrata, bool) { + if o == nil || o.Errata == nil { + return nil, false + } + return o.Errata, true +} + +// HasErrata returns a boolean if a field has been set. +func (o *PkgTreeItem) HasErrata() bool { + if o != nil && o.Errata != nil { + return true + } + + return false +} + +// SetErrata gets a reference to the given []PkgTreeItemErrata and assigns it to the Errata field. +func (o *PkgTreeItem) SetErrata(v []PkgTreeItemErrata) { + o.Errata = &v +} + +func (o PkgTreeItem) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["nevra"] = o.Nevra + } + if true { + toSerialize["first_published"] = o.FirstPublished + } + if o.Repositories != nil { + toSerialize["repositories"] = o.Repositories + } + if o.Errata != nil { + toSerialize["errata"] = o.Errata + } + return json.Marshal(toSerialize) +} + +type NullablePkgTreeItem struct { + value *PkgTreeItem + isSet bool +} + +func (v NullablePkgTreeItem) Get() *PkgTreeItem { + return v.value +} + +func (v *NullablePkgTreeItem) Set(val *PkgTreeItem) { + v.value = val + v.isSet = true +} + +func (v NullablePkgTreeItem) IsSet() bool { + return v.isSet +} + +func (v *NullablePkgTreeItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePkgTreeItem(val *PkgTreeItem) *NullablePkgTreeItem { + return &NullablePkgTreeItem{value: val, isSet: true} +} + +func (v NullablePkgTreeItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePkgTreeItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_pkg_tree_item_errata.go b/vmaas/model_pkg_tree_item_errata.go new file mode 100644 index 0000000..ac45038 --- /dev/null +++ b/vmaas/model_pkg_tree_item_errata.go @@ -0,0 +1,174 @@ +/* + * VMaaS Webapp + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 2.8.2 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package vmaas + +import ( + "encoding/json" + "time" +) + +// PkgTreeItemErrata struct for PkgTreeItemErrata +type PkgTreeItemErrata struct { + Name string `json:"name"` + Issued time.Time `json:"issued"` + CveList *[]string `json:"cve_list,omitempty"` +} + +// NewPkgTreeItemErrata instantiates a new PkgTreeItemErrata object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPkgTreeItemErrata(name string, issued time.Time, ) *PkgTreeItemErrata { + this := PkgTreeItemErrata{} + this.Name = name + this.Issued = issued + return &this +} + +// NewPkgTreeItemErrataWithDefaults instantiates a new PkgTreeItemErrata object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPkgTreeItemErrataWithDefaults() *PkgTreeItemErrata { + this := PkgTreeItemErrata{} + return &this +} + +// GetName returns the Name field value +func (o *PkgTreeItemErrata) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PkgTreeItemErrata) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PkgTreeItemErrata) SetName(v string) { + o.Name = v +} + +// GetIssued returns the Issued field value +func (o *PkgTreeItemErrata) GetIssued() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Issued +} + +// GetIssuedOk returns a tuple with the Issued field value +// and a boolean to check if the value has been set. +func (o *PkgTreeItemErrata) GetIssuedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Issued, true +} + +// SetIssued sets field value +func (o *PkgTreeItemErrata) SetIssued(v time.Time) { + o.Issued = v +} + +// GetCveList returns the CveList field value if set, zero value otherwise. +func (o *PkgTreeItemErrata) GetCveList() []string { + if o == nil || o.CveList == nil { + var ret []string + return ret + } + return *o.CveList +} + +// GetCveListOk returns a tuple with the CveList field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PkgTreeItemErrata) GetCveListOk() (*[]string, bool) { + if o == nil || o.CveList == nil { + return nil, false + } + return o.CveList, true +} + +// HasCveList returns a boolean if a field has been set. +func (o *PkgTreeItemErrata) HasCveList() bool { + if o != nil && o.CveList != nil { + return true + } + + return false +} + +// SetCveList gets a reference to the given []string and assigns it to the CveList field. +func (o *PkgTreeItemErrata) SetCveList(v []string) { + o.CveList = &v +} + +func (o PkgTreeItemErrata) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["issued"] = o.Issued + } + if o.CveList != nil { + toSerialize["cve_list"] = o.CveList + } + return json.Marshal(toSerialize) +} + +type NullablePkgTreeItemErrata struct { + value *PkgTreeItemErrata + isSet bool +} + +func (v NullablePkgTreeItemErrata) Get() *PkgTreeItemErrata { + return v.value +} + +func (v *NullablePkgTreeItemErrata) Set(val *PkgTreeItemErrata) { + v.value = val + v.isSet = true +} + +func (v NullablePkgTreeItemErrata) IsSet() bool { + return v.isSet +} + +func (v *NullablePkgTreeItemErrata) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePkgTreeItemErrata(val *PkgTreeItemErrata) *NullablePkgTreeItemErrata { + return &NullablePkgTreeItemErrata{value: val, isSet: true} +} + +func (v NullablePkgTreeItemErrata) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePkgTreeItemErrata) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_pkg_tree_item_repositories.go b/vmaas/model_pkg_tree_item_repositories.go new file mode 100644 index 0000000..2e00ede --- /dev/null +++ b/vmaas/model_pkg_tree_item_repositories.go @@ -0,0 +1,297 @@ +/* + * VMaaS Webapp + * + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * API version: 2.8.2 + */ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package vmaas + +import ( + "encoding/json" + "time" +) + +// PkgTreeItemRepositories struct for PkgTreeItemRepositories +type PkgTreeItemRepositories struct { + Label string `json:"label"` + Name string `json:"name"` + Basearch string `json:"basearch"` + Releasever string `json:"releasever"` + Revision time.Time `json:"revision"` + ModuleName *string `json:"module_name,omitempty"` + ModuleStream *string `json:"module_stream,omitempty"` +} + +// NewPkgTreeItemRepositories instantiates a new PkgTreeItemRepositories object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPkgTreeItemRepositories(label string, name string, basearch string, releasever string, revision time.Time, ) *PkgTreeItemRepositories { + this := PkgTreeItemRepositories{} + this.Label = label + this.Name = name + this.Basearch = basearch + this.Releasever = releasever + this.Revision = revision + return &this +} + +// NewPkgTreeItemRepositoriesWithDefaults instantiates a new PkgTreeItemRepositories object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPkgTreeItemRepositoriesWithDefaults() *PkgTreeItemRepositories { + this := PkgTreeItemRepositories{} + return &this +} + +// GetLabel returns the Label field value +func (o *PkgTreeItemRepositories) GetLabel() string { + if o == nil { + var ret string + return ret + } + + return o.Label +} + +// GetLabelOk returns a tuple with the Label field value +// and a boolean to check if the value has been set. +func (o *PkgTreeItemRepositories) GetLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Label, true +} + +// SetLabel sets field value +func (o *PkgTreeItemRepositories) SetLabel(v string) { + o.Label = v +} + +// GetName returns the Name field value +func (o *PkgTreeItemRepositories) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *PkgTreeItemRepositories) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *PkgTreeItemRepositories) SetName(v string) { + o.Name = v +} + +// GetBasearch returns the Basearch field value +func (o *PkgTreeItemRepositories) GetBasearch() string { + if o == nil { + var ret string + return ret + } + + return o.Basearch +} + +// GetBasearchOk returns a tuple with the Basearch field value +// and a boolean to check if the value has been set. +func (o *PkgTreeItemRepositories) GetBasearchOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Basearch, true +} + +// SetBasearch sets field value +func (o *PkgTreeItemRepositories) SetBasearch(v string) { + o.Basearch = v +} + +// GetReleasever returns the Releasever field value +func (o *PkgTreeItemRepositories) GetReleasever() string { + if o == nil { + var ret string + return ret + } + + return o.Releasever +} + +// GetReleaseverOk returns a tuple with the Releasever field value +// and a boolean to check if the value has been set. +func (o *PkgTreeItemRepositories) GetReleaseverOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Releasever, true +} + +// SetReleasever sets field value +func (o *PkgTreeItemRepositories) SetReleasever(v string) { + o.Releasever = v +} + +// GetRevision returns the Revision field value +func (o *PkgTreeItemRepositories) GetRevision() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Revision +} + +// GetRevisionOk returns a tuple with the Revision field value +// and a boolean to check if the value has been set. +func (o *PkgTreeItemRepositories) GetRevisionOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Revision, true +} + +// SetRevision sets field value +func (o *PkgTreeItemRepositories) SetRevision(v time.Time) { + o.Revision = v +} + +// GetModuleName returns the ModuleName field value if set, zero value otherwise. +func (o *PkgTreeItemRepositories) GetModuleName() string { + if o == nil || o.ModuleName == nil { + var ret string + return ret + } + return *o.ModuleName +} + +// GetModuleNameOk returns a tuple with the ModuleName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PkgTreeItemRepositories) GetModuleNameOk() (*string, bool) { + if o == nil || o.ModuleName == nil { + return nil, false + } + return o.ModuleName, true +} + +// HasModuleName returns a boolean if a field has been set. +func (o *PkgTreeItemRepositories) HasModuleName() bool { + if o != nil && o.ModuleName != nil { + return true + } + + return false +} + +// SetModuleName gets a reference to the given string and assigns it to the ModuleName field. +func (o *PkgTreeItemRepositories) SetModuleName(v string) { + o.ModuleName = &v +} + +// GetModuleStream returns the ModuleStream field value if set, zero value otherwise. +func (o *PkgTreeItemRepositories) GetModuleStream() string { + if o == nil || o.ModuleStream == nil { + var ret string + return ret + } + return *o.ModuleStream +} + +// GetModuleStreamOk returns a tuple with the ModuleStream field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PkgTreeItemRepositories) GetModuleStreamOk() (*string, bool) { + if o == nil || o.ModuleStream == nil { + return nil, false + } + return o.ModuleStream, true +} + +// HasModuleStream returns a boolean if a field has been set. +func (o *PkgTreeItemRepositories) HasModuleStream() bool { + if o != nil && o.ModuleStream != nil { + return true + } + + return false +} + +// SetModuleStream gets a reference to the given string and assigns it to the ModuleStream field. +func (o *PkgTreeItemRepositories) SetModuleStream(v string) { + o.ModuleStream = &v +} + +func (o PkgTreeItemRepositories) MarshalJSON() ([]byte, error) { + toSerialize := map[string]interface{}{} + if true { + toSerialize["label"] = o.Label + } + if true { + toSerialize["name"] = o.Name + } + if true { + toSerialize["basearch"] = o.Basearch + } + if true { + toSerialize["releasever"] = o.Releasever + } + if true { + toSerialize["revision"] = o.Revision + } + if o.ModuleName != nil { + toSerialize["module_name"] = o.ModuleName + } + if o.ModuleStream != nil { + toSerialize["module_stream"] = o.ModuleStream + } + return json.Marshal(toSerialize) +} + +type NullablePkgTreeItemRepositories struct { + value *PkgTreeItemRepositories + isSet bool +} + +func (v NullablePkgTreeItemRepositories) Get() *PkgTreeItemRepositories { + return v.value +} + +func (v *NullablePkgTreeItemRepositories) Set(val *PkgTreeItemRepositories) { + v.value = val + v.isSet = true +} + +func (v NullablePkgTreeItemRepositories) IsSet() bool { + return v.isSet +} + +func (v *NullablePkgTreeItemRepositories) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePkgTreeItemRepositories(val *PkgTreeItemRepositories) *NullablePkgTreeItemRepositories { + return &NullablePkgTreeItemRepositories{value: val, isSet: true} +} + +func (v NullablePkgTreeItemRepositories) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePkgTreeItemRepositories) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/vmaas/model_pkgtree_request.go b/vmaas/model_pkgtree_request.go index eb1dac6..8cd318a 100644 --- a/vmaas/model_pkgtree_request.go +++ b/vmaas/model_pkgtree_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_pkgtree_response.go b/vmaas/model_pkgtree_response.go index 3dc0009..80dded6 100644 --- a/vmaas/model_pkgtree_response.go +++ b/vmaas/model_pkgtree_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -17,7 +17,7 @@ import ( // PkgtreeResponse struct for PkgtreeResponse type PkgtreeResponse struct { LastChange interface{} `json:"last_change,omitempty"` - PackageNameList *map[string][]map[string]interface{} `json:"package_name_list,omitempty"` + PackageNameList *map[string][]PkgTreeItem `json:"package_name_list,omitempty"` } // NewPkgtreeResponse instantiates a new PkgtreeResponse object @@ -71,9 +71,9 @@ func (o *PkgtreeResponse) SetLastChange(v interface{}) { } // GetPackageNameList returns the PackageNameList field value if set, zero value otherwise. -func (o *PkgtreeResponse) GetPackageNameList() map[string][]map[string]interface{} { +func (o *PkgtreeResponse) GetPackageNameList() map[string][]PkgTreeItem { if o == nil || o.PackageNameList == nil { - var ret map[string][]map[string]interface{} + var ret map[string][]PkgTreeItem return ret } return *o.PackageNameList @@ -81,7 +81,7 @@ func (o *PkgtreeResponse) GetPackageNameList() map[string][]map[string]interface // GetPackageNameListOk returns a tuple with the PackageNameList field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PkgtreeResponse) GetPackageNameListOk() (*map[string][]map[string]interface{}, bool) { +func (o *PkgtreeResponse) GetPackageNameListOk() (*map[string][]PkgTreeItem, bool) { if o == nil || o.PackageNameList == nil { return nil, false } @@ -97,8 +97,8 @@ func (o *PkgtreeResponse) HasPackageNameList() bool { return false } -// SetPackageNameList gets a reference to the given map[string][]map[string]interface{} and assigns it to the PackageNameList field. -func (o *PkgtreeResponse) SetPackageNameList(v map[string][]map[string]interface{}) { +// SetPackageNameList gets a reference to the given map[string][]PkgTreeItem and assigns it to the PackageNameList field. +func (o *PkgtreeResponse) SetPackageNameList(v map[string][]PkgTreeItem) { o.PackageNameList = &v } diff --git a/vmaas/model_repos_request.go b/vmaas/model_repos_request.go index 74a3106..7f2b894 100644 --- a/vmaas/model_repos_request.go +++ b/vmaas/model_repos_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_repos_response.go b/vmaas/model_repos_response.go index 73507eb..079e746 100644 --- a/vmaas/model_repos_response.go +++ b/vmaas/model_repos_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_rpm_pkg_names_request.go b/vmaas/model_rpm_pkg_names_request.go index 04502f3..f49a8b7 100644 --- a/vmaas/model_rpm_pkg_names_request.go +++ b/vmaas/model_rpm_pkg_names_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_rpm_pkg_names_response.go b/vmaas/model_rpm_pkg_names_response.go index d4cccd8..2a88ade 100644 --- a/vmaas/model_rpm_pkg_names_response.go +++ b/vmaas/model_rpm_pkg_names_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_srpm_pkg_names_request.go b/vmaas/model_srpm_pkg_names_request.go index d16722e..b692810 100644 --- a/vmaas/model_srpm_pkg_names_request.go +++ b/vmaas/model_srpm_pkg_names_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_srpm_pkg_names_response.go b/vmaas/model_srpm_pkg_names_response.go index b8f1fce..f03c5d4 100644 --- a/vmaas/model_srpm_pkg_names_response.go +++ b/vmaas/model_srpm_pkg_names_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_updates_v2_response.go b/vmaas/model_updates_v2_response.go index 5b25a0b..98df8ce 100644 --- a/vmaas/model_updates_v2_response.go +++ b/vmaas/model_updates_v2_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_updates_v2_response_available_updates.go b/vmaas/model_updates_v2_response_available_updates.go index 6dce7c3..a3cd9d1 100644 --- a/vmaas/model_updates_v2_response_available_updates.go +++ b/vmaas/model_updates_v2_response_available_updates.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_updates_v2_response_update_list.go b/vmaas/model_updates_v2_response_update_list.go index 86bfd8d..c6fb658 100644 --- a/vmaas/model_updates_v2_response_update_list.go +++ b/vmaas/model_updates_v2_response_update_list.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_updates_v3_request.go b/vmaas/model_updates_v3_request.go index 32e64b5..d1dee9f 100644 --- a/vmaas/model_updates_v3_request.go +++ b/vmaas/model_updates_v3_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_updates_v3_request_modules_list.go b/vmaas/model_updates_v3_request_modules_list.go index a81a600..e619fd7 100644 --- a/vmaas/model_updates_v3_request_modules_list.go +++ b/vmaas/model_updates_v3_request_modules_list.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_vulnerabilities_request.go b/vmaas/model_vulnerabilities_request.go index 6531c8d..518eaae 100644 --- a/vmaas/model_vulnerabilities_request.go +++ b/vmaas/model_vulnerabilities_request.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/model_vulnerabilities_response.go b/vmaas/model_vulnerabilities_response.go index 5c35365..7918423 100644 --- a/vmaas/model_vulnerabilities_response.go +++ b/vmaas/model_vulnerabilities_response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/response.go b/vmaas/response.go index 86ae25c..b4ae488 100644 --- a/vmaas/response.go +++ b/vmaas/response.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/vmaas/utils.go b/vmaas/utils.go index d800bef..5f73264 100644 --- a/vmaas/utils.go +++ b/vmaas/utils.go @@ -3,7 +3,7 @@ * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * API version: 2.5.0 + * API version: 2.8.2 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.