{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/red-hat/main/json-schema/red-hat-inventory-schema.json", "title": "Inventory", "description": "An inventory defines a collection of hosts and groups that automation jobs target for execution.", "x-generated": "2026-10-03", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/red-hat-inventories-api-openapi.yml#/components/schemas/Inventory", "type": "object", "properties": { "id": { "type": "integer", "description": "The unique identifier of the inventory." }, "name": { "type": "string", "description": "The name of the inventory." }, "description": { "type": "string", "description": "A description of the inventory." }, "organization": { "type": "integer", "description": "The ID of the organization this inventory belongs to." }, "kind": { "type": "string", "description": "The kind of inventory.", "enum": [ "", "smart", "constructed" ] }, "host_count": { "type": "integer", "description": "The total number of hosts in this inventory." }, "total_groups": { "type": "integer", "description": "The total number of groups in this inventory." }, "has_inventory_sources": { "type": "boolean", "description": "Whether this inventory has dynamic sources." }, "created": { "type": "string", "format": "date-time", "description": "When the inventory was created." }, "modified": { "type": "string", "format": "date-time", "description": "When the inventory was last modified." } } }