UNPKG

@natzka-oss/pulumi-netbox

Version:

A Pulumi package for creating and managing Netbox cloud resources.

82 lines (81 loc) 2.37 kB
import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as netbox from "@natzka-oss/pulumi-netbox"; * * // Get device type by model name * const ex1 = netbox.dcim.getDeviceType({ * model: "7210 SAS-Sx 10/100GE", * }); * // Get device type by slug * const ex2 = netbox.dcim.getDeviceType({ * slug: "7210-sas-sx-10-100GE", * }); * // Get device type by manufacturer and part number information * const ex3 = netbox.dcim.getDeviceType({ * manufacturer: "Nokia", * partNumber: "3HE11597AARB01", * }); * ``` */ export declare function getDeviceType(args?: GetDeviceTypeArgs, opts?: pulumi.InvokeOptions): Promise<GetDeviceTypeResult>; /** * A collection of arguments for invoking getDeviceType. */ export interface GetDeviceTypeArgs { manufacturer?: string; model?: string; partNumber?: string; slug?: string; } /** * A collection of values returned by getDeviceType. */ export interface GetDeviceTypeResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly isFullDepth: boolean; readonly manufacturer?: string; readonly manufacturerId: number; readonly model?: string; readonly partNumber?: string; readonly slug?: string; readonly uHeight: number; } /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as netbox from "@natzka-oss/pulumi-netbox"; * * // Get device type by model name * const ex1 = netbox.dcim.getDeviceType({ * model: "7210 SAS-Sx 10/100GE", * }); * // Get device type by slug * const ex2 = netbox.dcim.getDeviceType({ * slug: "7210-sas-sx-10-100GE", * }); * // Get device type by manufacturer and part number information * const ex3 = netbox.dcim.getDeviceType({ * manufacturer: "Nokia", * partNumber: "3HE11597AARB01", * }); * ``` */ export declare function getDeviceTypeOutput(args?: GetDeviceTypeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDeviceTypeResult>; /** * A collection of arguments for invoking getDeviceType. */ export interface GetDeviceTypeOutputArgs { manufacturer?: pulumi.Input<string>; model?: pulumi.Input<string>; partNumber?: pulumi.Input<string>; slug?: pulumi.Input<string>; }