UNPKG

@natzka-oss/pulumi-netbox

Version:

A Pulumi package for creating and managing Netbox cloud resources.

74 lines 2.42 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getDeviceTypeOutput = exports.getDeviceType = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as netbox from "@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", * }); * ``` */ function getDeviceType(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("netbox:dcim/getDeviceType:getDeviceType", { "manufacturer": args.manufacturer, "model": args.model, "partNumber": args.partNumber, "slug": args.slug, }, opts); } exports.getDeviceType = getDeviceType; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as netbox from "@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", * }); * ``` */ function getDeviceTypeOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("netbox:dcim/getDeviceType:getDeviceType", { "manufacturer": args.manufacturer, "model": args.model, "partNumber": args.partNumber, "slug": args.slug, }, opts); } exports.getDeviceTypeOutput = getDeviceTypeOutput; //# sourceMappingURL=getDeviceType.js.map