UNPKG

@pulumi/scm

Version:

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

157 lines (156 loc) 4.11 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * 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); * ``` */ export declare function getUrlCategoryList(args?: GetUrlCategoryListArgs, opts?: pulumi.InvokeOptions): Promise<GetUrlCategoryListResult>; /** * A collection of arguments for invoking getUrlCategoryList. */ export interface GetUrlCategoryListArgs { /** * The device of the item. */ device?: string; /** * The folder of the item. Default: Shared. */ folder?: string; /** * The max number of items to return. Default: 200. */ limit?: number; /** * The name of the item. */ name?: string; /** * The offset of the first item to return. */ offset?: number; /** * The snippet of the item. */ snippet?: string; } /** * A collection of values returned by getUrlCategoryList. */ export interface GetUrlCategoryListResult { /** * The data. */ readonly datas: outputs.GetUrlCategoryListData[]; /** * The device of the item. */ readonly device?: string; /** * The folder of the item. Default: Shared. */ readonly folder?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The max number of items to return. Default: 200. */ readonly limit?: number; /** * The name of the item. */ readonly name?: string; /** * The offset of the first item to return. */ readonly offset?: number; /** * The snippet of the item. */ readonly snippet?: string; readonly tfid: string; /** * The total number of items. */ readonly total: number; } /** * 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); * ``` */ export declare function getUrlCategoryListOutput(args?: GetUrlCategoryListOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetUrlCategoryListResult>; /** * A collection of arguments for invoking getUrlCategoryList. */ export interface GetUrlCategoryListOutputArgs { /** * The device of the item. */ device?: pulumi.Input<string>; /** * The folder of the item. Default: Shared. */ folder?: pulumi.Input<string>; /** * The max number of items to return. Default: 200. */ limit?: pulumi.Input<number>; /** * The name of the item. */ name?: pulumi.Input<string>; /** * The offset of the first item to return. */ offset?: pulumi.Input<number>; /** * The snippet of the item. */ snippet?: pulumi.Input<string>; }