UNPKG

@pulumiverse/fortios

Version:

A Pulumi package for creating and managing Fortios resources. Based on terraform-provider-fortios: version v1.16.0

50 lines 1.64 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.getInterfaceOutput = exports.getInterface = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get information on an fortios system interface * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumi/fortios"; * * const sample1 = fortios.system.getInterface({ * name: "port1", * }); * export const output1 = sample1.then(sample1 => sample1.ip); * ``` */ function getInterface(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("fortios:system/getInterface:getInterface", { "name": args.name, "vdomparam": args.vdomparam, }, opts); } exports.getInterface = getInterface; /** * Use this data source to get information on an fortios system interface * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as fortios from "@pulumi/fortios"; * * const sample1 = fortios.system.getInterface({ * name: "port1", * }); * export const output1 = sample1.then(sample1 => sample1.ip); * ``` */ function getInterfaceOutput(args, opts) { return pulumi.output(args).apply((a) => getInterface(a, opts)); } exports.getInterfaceOutput = getInterfaceOutput; //# sourceMappingURL=getInterface.js.map