@pulumi/scm
Version:
A Pulumi package for managing resources on Strata Cloud Manager.. Based on terraform-provider-scm: version v0.2.1
72 lines • 2.83 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.getIkeGatewayListOutput = exports.getIkeGatewayList = 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";
*
* // Data source to retrieve a list of IKE Gateways.
* // You can filter the list by folder, snippet, or device.
* // This example retrieves all gateways in the "Shared" folder.
* const exampleListIkeGatewayDs = scm.getIkeGatewayList({
* folder: "Remote Networks",
* });
* export const ikeGatewayListTotal = exampleListIkeGatewayDs.then(exampleListIkeGatewayDs => exampleListIkeGatewayDs.total);
* export const ikeGatewayListData = exampleListIkeGatewayDs.then(exampleListIkeGatewayDs => exampleListIkeGatewayDs.datas);
* ```
*/
function getIkeGatewayList(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scm:index/getIkeGatewayList:getIkeGatewayList", {
"device": args.device,
"folder": args.folder,
"limit": args.limit,
"name": args.name,
"offset": args.offset,
"snippet": args.snippet,
}, opts);
}
exports.getIkeGatewayList = getIkeGatewayList;
/**
* Retrieves a listing of config items.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scm from "@pulumi/scm";
*
* // Data source to retrieve a list of IKE Gateways.
* // You can filter the list by folder, snippet, or device.
* // This example retrieves all gateways in the "Shared" folder.
* const exampleListIkeGatewayDs = scm.getIkeGatewayList({
* folder: "Remote Networks",
* });
* export const ikeGatewayListTotal = exampleListIkeGatewayDs.then(exampleListIkeGatewayDs => exampleListIkeGatewayDs.total);
* export const ikeGatewayListData = exampleListIkeGatewayDs.then(exampleListIkeGatewayDs => exampleListIkeGatewayDs.datas);
* ```
*/
function getIkeGatewayListOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scm:index/getIkeGatewayList:getIkeGatewayList", {
"device": args.device,
"folder": args.folder,
"limit": args.limit,
"name": args.name,
"offset": args.offset,
"snippet": args.snippet,
}, opts);
}
exports.getIkeGatewayListOutput = getIkeGatewayListOutput;
//# sourceMappingURL=getIkeGatewayList.js.map