/** * Inventory service. * @version 4.3.1 * @class InventoryApi */ export class InventoryApi { /** * Make the default {@link ApiClient} class available for developers to be able to extend it and bring * their own fetch methods into the SDK */ static get ApiClient(): typeof ApiClient; /** * Constructs a new InventoryApi. * @alias module:api/InventoryApi * @class * @param {module:ApiClient} [apiClient] Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ constructor(apiClient?: any); apiClient: any; /** * Perform an inventory operation to discover upgradable entities on a cluster. * Trigger an inventory operation to discover all upgradable software and firmware entities on a cluster. Inventory scans cluster nodes, identifies installed components and their current versions, and checks the configured LCM repository for available updates. The operation is asynchronous and returns a TaskReference; poll the task to track progress. Once completed, discovered entities are available via GET /entities and the cluster summary is updated in GET /lcm-summaries. An optional InventorySpec body allows specifying the inventory type and vendor management credentials. When operating from Prism Central, supply the X-Cluster-Id header to target a specific Prism Element cluster; if omitted, the operation targets the Prism Central cluster itself. Only one inventory operation can run on a cluster at a time; check GET /status before invoking. In dark-site mode, inventory discovers available updates only from bundles that have been uploaded to the cluster (POST /bundles); it does not contact the Nutanix portal. * @param { Partial } body specification * @param {Object} opts Optional parameters defined for the operation * @param { String } opts.xClusterId The cluster UUID on which the resource is present or the operation is being performed. * @param { InventorySpec } opts.body * @param { Boolean } opts.$dryrun A URL query parameter that allows long running operations to execute in a dry-run mode providing ability to identify trouble spots and system failures without performing the actual operation. Additionally this mode also offers a summary snapshot of the resultant system in order to better understand how things fit together. The operation runs in dry-run mode only if the provided value is true. * @param {Object} args Additional Arguments * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link InventoryApiResponse } and HTTP response */ performInventory(body: Partial, opts: { xClusterId: string; body: InventorySpec; $dryrun: boolean; }, ...args: any): Promise; #private; } import InventorySpec from "../models/lifecycle/v4/operations/InventorySpec"; import InventoryApiResponse from "../models/lifecycle/v4/operations/InventoryApiResponse"; import { ApiClient } from "../ApiClient";