UNPKG

@pulumi/scm

Version:

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

86 lines 2.96 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.getUrlCategoryListOutput = exports.getUrlCategoryList = 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 URL Category objects. * // * // Example 1: Fetch a list of all URL Categories in the "Shared" folder. * const allShared = scm.getUrlCategoryList({ * folder: "All", * }); * export const urlCategoriesListAllShared = allShared.then(allShared => allShared.datas); * // Example 2: Use pagination to get the first 5 URL Categories by name. * const paginated = scm.getUrlCategoryList({ * folder: "All", * limit: 5, * offset: 0, * }); * export const urlCategoriesListPaginated = paginated.then(paginated => paginated.datas); * ``` */ function getUrlCategoryList(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scm:index/getUrlCategoryList:getUrlCategoryList", { "device": args.device, "folder": args.folder, "limit": args.limit, "name": args.name, "offset": args.offset, "snippet": args.snippet, }, opts); } exports.getUrlCategoryList = getUrlCategoryList; /** * 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 URL Category objects. * // * // Example 1: Fetch a list of all URL Categories in the "Shared" folder. * const allShared = scm.getUrlCategoryList({ * folder: "All", * }); * export const urlCategoriesListAllShared = allShared.then(allShared => allShared.datas); * // Example 2: Use pagination to get the first 5 URL Categories by name. * const paginated = scm.getUrlCategoryList({ * folder: "All", * limit: 5, * offset: 0, * }); * export const urlCategoriesListPaginated = paginated.then(paginated => paginated.datas); * ``` */ function getUrlCategoryListOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scm:index/getUrlCategoryList:getUrlCategoryList", { "device": args.device, "folder": args.folder, "limit": args.limit, "name": args.name, "offset": args.offset, "snippet": args.snippet, }, opts); } exports.getUrlCategoryListOutput = getUrlCategoryListOutput; //# sourceMappingURL=getUrlCategoryList.js.map