UNPKG

@pulumi/scm

Version:

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

74 lines 2.49 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.getPbfRuleListOutput = exports.getPbfRuleList = 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"; * * // Define a data source for listing pbf rules * const pagedPbfRulesList = scm.getPbfRuleList({ * folder: "All", * limit: 10, * }); * export const fetchedPbfRuleListSummary = { * totalRulesInList: pagedPbfRulesList.then(pagedPbfRulesList => pagedPbfRulesList.total), * allRules: pagedPbfRulesList.then(pagedPbfRulesList => pagedPbfRulesList.datas), * }; * ``` */ function getPbfRuleList(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scm:index/getPbfRuleList:getPbfRuleList", { "device": args.device, "folder": args.folder, "limit": args.limit, "name": args.name, "offset": args.offset, "snippet": args.snippet, }, opts); } exports.getPbfRuleList = getPbfRuleList; /** * Retrieves a listing of config items. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scm from "@pulumi/scm"; * * // Define a data source for listing pbf rules * const pagedPbfRulesList = scm.getPbfRuleList({ * folder: "All", * limit: 10, * }); * export const fetchedPbfRuleListSummary = { * totalRulesInList: pagedPbfRulesList.then(pagedPbfRulesList => pagedPbfRulesList.total), * allRules: pagedPbfRulesList.then(pagedPbfRulesList => pagedPbfRulesList.datas), * }; * ``` */ function getPbfRuleListOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scm:index/getPbfRuleList:getPbfRuleList", { "device": args.device, "folder": args.folder, "limit": args.limit, "name": args.name, "offset": args.offset, "snippet": args.snippet, }, opts); } exports.getPbfRuleListOutput = getPbfRuleListOutput; //# sourceMappingURL=getPbfRuleList.js.map