@natzka-oss/pulumi-netbox
Version:
A Pulumi package for creating and managing Netbox cloud resources.
46 lines • 1.46 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** 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 "@natzka-oss/pulumi-netbox";
*
* const coreSw = netbox.dcim.getDeviceRole({
* name: "core-sw",
* });
* ```
*/
function getDeviceRole(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("netbox:dcim/getDeviceRole:getDeviceRole", {
"name": args.name,
}, opts);
}
exports.getDeviceRole = getDeviceRole;
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as netbox from "@natzka-oss/pulumi-netbox";
*
* const coreSw = netbox.dcim.getDeviceRole({
* name: "core-sw",
* });
* ```
*/
function getDeviceRoleOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("netbox:dcim/getDeviceRole:getDeviceRole", {
"name": args.name,
}, opts);
}
exports.getDeviceRoleOutput = getDeviceRoleOutput;
//# sourceMappingURL=getDeviceRole.js.map