pulumi-netbox
Version:
A Pulumi package for creating and managing Netbox resources.
34 lines • 1.15 kB
JavaScript
;
// *** 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.getDeviceRoleOutput = exports.getDeviceRole = 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 coreSw = pulumi.output(netbox.getDeviceRole({
* name: "core-sw",
* }));
* ```
*/
function getDeviceRole(args, opts) {
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("netbox:index/getDeviceRole:getDeviceRole", {
"name": args.name,
}, opts);
}
exports.getDeviceRole = getDeviceRole;
function getDeviceRoleOutput(args, opts) {
return pulumi.output(args).apply(a => getDeviceRole(a, opts));
}
exports.getDeviceRoleOutput = getDeviceRoleOutput;
//# sourceMappingURL=getDeviceRole.js.map