@natzka-oss/pulumi-netbox
Version:
A Pulumi package for creating and managing Netbox cloud resources.
76 lines • 2.34 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.getVlanGroupOutput = exports.getVlanGroup = 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";
*
* // Get VLAN group by name
* const example1 = netbox.ipam.getVlanGroup({
* name: "example1",
* });
* // Get VLAN group by stub
* const example2 = netbox.ipam.getVlanGroup({
* slug: "example2",
* });
* // Get VLAN group by name and scope_type/id
* const example3 = netbox.ipam.getVlanGroup({
* name: "example",
* scopeType: "dcim.site",
* scopeId: example.id,
* });
* ```
*/
function getVlanGroup(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("netbox:ipam/getVlanGroup:getVlanGroup", {
"name": args.name,
"scopeId": args.scopeId,
"scopeType": args.scopeType,
"slug": args.slug,
}, opts);
}
exports.getVlanGroup = getVlanGroup;
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as netbox from "@natzka-oss/pulumi-netbox";
*
* // Get VLAN group by name
* const example1 = netbox.ipam.getVlanGroup({
* name: "example1",
* });
* // Get VLAN group by stub
* const example2 = netbox.ipam.getVlanGroup({
* slug: "example2",
* });
* // Get VLAN group by name and scope_type/id
* const example3 = netbox.ipam.getVlanGroup({
* name: "example",
* scopeType: "dcim.site",
* scopeId: example.id,
* });
* ```
*/
function getVlanGroupOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("netbox:ipam/getVlanGroup:getVlanGroup", {
"name": args.name,
"scopeId": args.scopeId,
"scopeType": args.scopeType,
"slug": args.slug,
}, opts);
}
exports.getVlanGroupOutput = getVlanGroupOutput;
//# sourceMappingURL=getVlanGroup.js.map