UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

107 lines (106 loc) 3.66 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Provides information about a list of Image Share Groups that match a set of filters. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-sharegroups). May not be currently available to all users even under v4beta. * * ## Example Usage * * The following example shows how one might use this data source to list Image Share Groups. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * export = async () => { * const all = await linode.getProducerImageShareGroups({}); * const filtered = await linode.getProducerImageShareGroups({ * filters: [{ * name: "label", * values: ["my-label"], * }], * }); * return { * "all-share-groups": all.imageShareGroups, * "filtered-share-groups": filtered.imageShareGroups, * }; * } * ``` * * ## Filterable Fields * * * `id` * * * `label` * * * `isSuspended` */ export declare function getProducerImageShareGroups(args?: GetProducerImageShareGroupsArgs, opts?: pulumi.InvokeOptions): Promise<GetProducerImageShareGroupsResult>; /** * A collection of arguments for invoking getProducerImageShareGroups. */ export interface GetProducerImageShareGroupsArgs { filters?: inputs.GetProducerImageShareGroupsFilter[]; imageShareGroups?: inputs.GetProducerImageShareGroupsImageShareGroup[]; order?: string; orderBy?: string; } /** * A collection of values returned by getProducerImageShareGroups. */ export interface GetProducerImageShareGroupsResult { readonly filters?: outputs.GetProducerImageShareGroupsFilter[]; /** * The ID of the Image Share Group. */ readonly id: string; readonly imageShareGroups?: outputs.GetProducerImageShareGroupsImageShareGroup[]; readonly order?: string; readonly orderBy?: string; } /** * Provides information about a list of Image Share Groups that match a set of filters. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-sharegroups). May not be currently available to all users even under v4beta. * * ## Example Usage * * The following example shows how one might use this data source to list Image Share Groups. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * export = async () => { * const all = await linode.getProducerImageShareGroups({}); * const filtered = await linode.getProducerImageShareGroups({ * filters: [{ * name: "label", * values: ["my-label"], * }], * }); * return { * "all-share-groups": all.imageShareGroups, * "filtered-share-groups": filtered.imageShareGroups, * }; * } * ``` * * ## Filterable Fields * * * `id` * * * `label` * * * `isSuspended` */ export declare function getProducerImageShareGroupsOutput(args?: GetProducerImageShareGroupsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProducerImageShareGroupsResult>; /** * A collection of arguments for invoking getProducerImageShareGroups. */ export interface GetProducerImageShareGroupsOutputArgs { filters?: pulumi.Input<pulumi.Input<inputs.GetProducerImageShareGroupsFilterArgs>[]>; imageShareGroups?: pulumi.Input<pulumi.Input<inputs.GetProducerImageShareGroupsImageShareGroupArgs>[]>; order?: pulumi.Input<string>; orderBy?: pulumi.Input<string>; }