@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
102 lines • 3.87 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.getProducerImageShareGroupImageSharesOutput = exports.getProducerImageShareGroupImageShares = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides information about a list of Images shared in the specified Image Share Group that match a set of filters.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-sharegroup-images). 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 Images shared in an Image Share Group.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* export = async () => {
* const all = await linode.getProducerImageShareGroupImageShares({
* sharegroupId: 123,
* });
* const filtered = await linode.getProducerImageShareGroupImageShares({
* sharegroupId: 123,
* filters: [{
* name: "label",
* values: ["my-label"],
* }],
* });
* return {
* "all-shared-images": all.imageShares,
* "filtered-shared-images": filtered.imageShares,
* };
* }
* ```
*
* ## Filterable Fields
*
* * `id`
*
* * `label`
*/
function getProducerImageShareGroupImageShares(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("linode:index/getProducerImageShareGroupImageShares:getProducerImageShareGroupImageShares", {
"filters": args.filters,
"imageShares": args.imageShares,
"order": args.order,
"orderBy": args.orderBy,
"sharegroupId": args.sharegroupId,
}, opts);
}
exports.getProducerImageShareGroupImageShares = getProducerImageShareGroupImageShares;
/**
* Provides information about a list of Images shared in the specified Image Share Group that match a set of filters.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-sharegroup-images). 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 Images shared in an Image Share Group.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* export = async () => {
* const all = await linode.getProducerImageShareGroupImageShares({
* sharegroupId: 123,
* });
* const filtered = await linode.getProducerImageShareGroupImageShares({
* sharegroupId: 123,
* filters: [{
* name: "label",
* values: ["my-label"],
* }],
* });
* return {
* "all-shared-images": all.imageShares,
* "filtered-shared-images": filtered.imageShares,
* };
* }
* ```
*
* ## Filterable Fields
*
* * `id`
*
* * `label`
*/
function getProducerImageShareGroupImageSharesOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("linode:index/getProducerImageShareGroupImageShares:getProducerImageShareGroupImageShares", {
"filters": args.filters,
"imageShares": args.imageShares,
"order": args.order,
"orderBy": args.orderBy,
"sharegroupId": args.sharegroupId,
}, opts);
}
exports.getProducerImageShareGroupImageSharesOutput = getProducerImageShareGroupImageSharesOutput;
//# sourceMappingURL=getProducerImageShareGroupImageShares.js.map