UNPKG

@pulumi/libvirt

Version:

A Pulumi package for creating and managing libvirt cloud resources.

72 lines (71 loc) 2.29 kB
import * as pulumi from "@pulumi/pulumi"; /** * Retrieve information about the devices present on the current node * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as libvirt from "@pulumi/libvirt"; * * const node = libvirt.getNodeDevices({ * capability: "pci", * }); * ``` */ export declare function getNodeDevices(args?: GetNodeDevicesArgs, opts?: pulumi.InvokeOptions): Promise<GetNodeDevicesResult>; /** * A collection of arguments for invoking getNodeDevices. */ export interface GetNodeDevicesArgs { /** * The type of device, used to filter the output by capability type. * Can be one of `system`, `pci`, `usbDevice`, `usb`, `net`, `scsiHost`, * `scsiTarget`, `scsi`, `storage`, `fcHost`, `vports`, `scsiGeneric`, `drm`, * `mdev`, `mdevTypes`, `ccw`, `css`, `apCard`, `apQueue`, `apMatrix`. * Defaults to all active devices. */ capability?: string; } /** * A collection of values returned by getNodeDevices. */ export interface GetNodeDevicesResult { readonly capability?: string; /** * A list of devices that match the selected capability */ readonly devices: string[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; } /** * Retrieve information about the devices present on the current node * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as libvirt from "@pulumi/libvirt"; * * const node = libvirt.getNodeDevices({ * capability: "pci", * }); * ``` */ export declare function getNodeDevicesOutput(args?: GetNodeDevicesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNodeDevicesResult>; /** * A collection of arguments for invoking getNodeDevices. */ export interface GetNodeDevicesOutputArgs { /** * The type of device, used to filter the output by capability type. * Can be one of `system`, `pci`, `usbDevice`, `usb`, `net`, `scsiHost`, * `scsiTarget`, `scsi`, `storage`, `fcHost`, `vports`, `scsiGeneric`, `drm`, * `mdev`, `mdevTypes`, `ccw`, `css`, `apCard`, `apQueue`, `apMatrix`. * Defaults to all active devices. */ capability?: pulumi.Input<string>; }