UNPKG

pulumi-netbox

Version:

A Pulumi package for creating and managing Netbox resources.

40 lines 1.29 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.getInterfacesOutput = exports.getInterfaces = 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"; * * const myvmEth0 = pulumi.output(netbox.Interface({ * filter: [{ * name: "name", * value: "myvm", * }], * nameRegex: "eth0", * })); * ``` */ function getInterfaces(args, opts) { args = args || {}; if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("netbox:index/getInterfaces:getInterfaces", { "filters": args.filters, "nameRegex": args.nameRegex, }, opts); } exports.getInterfaces = getInterfaces; function getInterfacesOutput(args, opts) { return pulumi.output(args).apply(a => getInterfaces(a, opts)); } exports.getInterfacesOutput = getInterfacesOutput; //# sourceMappingURL=getInterfaces.js.map