@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
66 lines • 2.45 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.getTunnelInterfaceListOutput = exports.getTunnelInterfaceList = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Retrieves a listing of config items.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // Fetch a list of all tunnel interfaces
* const allTunnelInterfaces = scm.getTunnelInterfaceList({
* folder: "ngfw-shared",
* });
* export const scmTunnelInterfaceList = allTunnelInterfaces.then(allTunnelInterfaces => .reduce((__obj, interface) => ({ ...__obj, [_interface.name]: _interface })));
* ```
*/
function getTunnelInterfaceList(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scm:index/getTunnelInterfaceList:getTunnelInterfaceList", {
"device": args.device,
"folder": args.folder,
"limit": args.limit,
"name": args.name,
"offset": args.offset,
"snippet": args.snippet,
}, opts);
}
exports.getTunnelInterfaceList = getTunnelInterfaceList;
/**
* Retrieves a listing of config items.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // Fetch a list of all tunnel interfaces
* const allTunnelInterfaces = scm.getTunnelInterfaceList({
* folder: "ngfw-shared",
* });
* export const scmTunnelInterfaceList = allTunnelInterfaces.then(allTunnelInterfaces => .reduce((__obj, interface) => ({ ...__obj, [_interface.name]: _interface })));
* ```
*/
function getTunnelInterfaceListOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scm:index/getTunnelInterfaceList:getTunnelInterfaceList", {
"device": args.device,
"folder": args.folder,
"limit": args.limit,
"name": args.name,
"offset": args.offset,
"snippet": args.snippet,
}, opts);
}
exports.getTunnelInterfaceListOutput = getTunnelInterfaceListOutput;
//# sourceMappingURL=getTunnelInterfaceList.js.map