@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
100 lines • 3.5 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.getProducerImageShareGroupsOutput = exports.getProducerImageShareGroups = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* 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`
*/
function getProducerImageShareGroups(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("linode:index/getProducerImageShareGroups:getProducerImageShareGroups", {
"filters": args.filters,
"imageShareGroups": args.imageShareGroups,
"order": args.order,
"orderBy": args.orderBy,
}, opts);
}
exports.getProducerImageShareGroups = getProducerImageShareGroups;
/**
* 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`
*/
function getProducerImageShareGroupsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("linode:index/getProducerImageShareGroups:getProducerImageShareGroups", {
"filters": args.filters,
"imageShareGroups": args.imageShareGroups,
"order": args.order,
"orderBy": args.orderBy,
}, opts);
}
exports.getProducerImageShareGroupsOutput = getProducerImageShareGroupsOutput;
//# sourceMappingURL=getProducerImageShareGroups.js.map