UNPKG

@natzka-oss/pulumi-netbox

Version:

A Pulumi package for creating and managing Netbox cloud resources.

70 lines 1.98 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.getTagsOutput = exports.getTags = 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 allTags = netbox.getTags({}); * const ansibleTags = netbox.getTags({ * filters: [{ * name: "name__isw", * value: "ansible_", * }], * }); * const notAnsibleTags = netbox.getTags({ * filters: [{ * name: "name__nisw", * value: "ansible_", * }], * }); * ``` */ function getTags(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("netbox:index/getTags:getTags", { "filters": args.filters, "limit": args.limit, }, opts); } exports.getTags = getTags; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as netbox from "@pulumi/netbox"; * * const allTags = netbox.getTags({}); * const ansibleTags = netbox.getTags({ * filters: [{ * name: "name__isw", * value: "ansible_", * }], * }); * const notAnsibleTags = netbox.getTags({ * filters: [{ * name: "name__nisw", * value: "ansible_", * }], * }); * ``` */ function getTagsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("netbox:index/getTags:getTags", { "filters": args.filters, "limit": args.limit, }, opts); } exports.getTagsOutput = getTagsOutput; //# sourceMappingURL=getTags.js.map