UNPKG

@pulumi/scm

Version:

A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1

70 lines 2.87 kB
"use strict"; // *** 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.getVlanInterfaceOutput = exports.getVlanInterface = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * VlanInterface data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up vlan interface by its ID. * const scmVlanInterfaceDs = scm.getVlanInterface({ * id: "3f9382a3-5c93-46d9-ae06-a632c2d9ce0c", * }); * export const vlanInterfaceDataSourceResults = { * id: scmVlanInterfaceDs.then(scmVlanInterfaceDs => scmVlanInterfaceDs.id), * name: scmVlanInterfaceDs.then(scmVlanInterfaceDs => scmVlanInterfaceDs.name), * comment: scmVlanInterfaceDs.then(scmVlanInterfaceDs => scmVlanInterfaceDs.comment), * vlanTag: scmVlanInterfaceDs.then(scmVlanInterfaceDs => scmVlanInterfaceDs.vlanTag), * ip: scmVlanInterfaceDs.then(scmVlanInterfaceDs => scmVlanInterfaceDs.ips), * folder: scmVlanInterfaceDs.then(scmVlanInterfaceDs => scmVlanInterfaceDs.folder), * }; * ``` */ function getVlanInterface(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scm:index/getVlanInterface:getVlanInterface", { "id": args.id, "name": args.name, }, opts); } exports.getVlanInterface = getVlanInterface; /** * VlanInterface data source * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Look up vlan interface by its ID. * const scmVlanInterfaceDs = scm.getVlanInterface({ * id: "3f9382a3-5c93-46d9-ae06-a632c2d9ce0c", * }); * export const vlanInterfaceDataSourceResults = { * id: scmVlanInterfaceDs.then(scmVlanInterfaceDs => scmVlanInterfaceDs.id), * name: scmVlanInterfaceDs.then(scmVlanInterfaceDs => scmVlanInterfaceDs.name), * comment: scmVlanInterfaceDs.then(scmVlanInterfaceDs => scmVlanInterfaceDs.comment), * vlanTag: scmVlanInterfaceDs.then(scmVlanInterfaceDs => scmVlanInterfaceDs.vlanTag), * ip: scmVlanInterfaceDs.then(scmVlanInterfaceDs => scmVlanInterfaceDs.ips), * folder: scmVlanInterfaceDs.then(scmVlanInterfaceDs => scmVlanInterfaceDs.folder), * }; * ``` */ function getVlanInterfaceOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scm:index/getVlanInterface:getVlanInterface", { "id": args.id, "name": args.name, }, opts); } exports.getVlanInterfaceOutput = getVlanInterfaceOutput; //# sourceMappingURL=getVlanInterface.js.map