UNPKG

@natzka-oss/pulumi-netbox

Version:

A Pulumi package for creating and managing Netbox cloud resources.

62 lines 1.71 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.getAsnOutput = exports.getAsn = 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 asn1 = netbox.ipam.getAsn({ * asn: "1111", * tag: "tag-1", * }); * const asn2 = netbox.ipam.getAsn({ * tag: "tag-1", * tagN: "tag-2", * }); * ``` */ function getAsn(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("netbox:ipam/getAsn:getAsn", { "asn": args.asn, "tag": args.tag, "tagN": args.tagN, }, opts); } exports.getAsn = getAsn; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as netbox from "@pulumi/netbox"; * * const asn1 = netbox.ipam.getAsn({ * asn: "1111", * tag: "tag-1", * }); * const asn2 = netbox.ipam.getAsn({ * tag: "tag-1", * tagN: "tag-2", * }); * ``` */ function getAsnOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("netbox:ipam/getAsn:getAsn", { "asn": args.asn, "tag": args.tag, "tagN": args.tagN, }, opts); } exports.getAsnOutput = getAsnOutput; //# sourceMappingURL=getAsn.js.map