@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
100 lines • 3.98 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.getConsumerImageShareGroupImageSharesOutput = exports.getConsumerImageShareGroupImageShares = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Provides information about a list of Images that match a set of filters that have been
* shared in the Image Share Group that the provided Token has been accepted into.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-sharegroup-images-by-token). 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.getConsumerImageShareGroupImageShares({});
* const filtered = await linode.getConsumerImageShareGroupImageShares({
* tokenUuid: "54e1adf3-e499-4685-82be-10d29d4e8fae",
* filters: [{
* name: "label",
* values: ["my-label"],
* }],
* });
* return {
* "all-shared-images": all.imageShares,
* "filtered-shared-images": filtered.imageShares,
* };
* }
* ```
*
* ## Filterable Fields
*
* * `id`
*
* * `label`
*/
function getConsumerImageShareGroupImageShares(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("linode:index/getConsumerImageShareGroupImageShares:getConsumerImageShareGroupImageShares", {
"filters": args.filters,
"imageShares": args.imageShares,
"order": args.order,
"orderBy": args.orderBy,
"tokenUuid": args.tokenUuid,
}, opts);
}
exports.getConsumerImageShareGroupImageShares = getConsumerImageShareGroupImageShares;
/**
* Provides information about a list of Images that match a set of filters that have been
* shared in the Image Share Group that the provided Token has been accepted into.
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-sharegroup-images-by-token). 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.getConsumerImageShareGroupImageShares({});
* const filtered = await linode.getConsumerImageShareGroupImageShares({
* tokenUuid: "54e1adf3-e499-4685-82be-10d29d4e8fae",
* filters: [{
* name: "label",
* values: ["my-label"],
* }],
* });
* return {
* "all-shared-images": all.imageShares,
* "filtered-shared-images": filtered.imageShares,
* };
* }
* ```
*
* ## Filterable Fields
*
* * `id`
*
* * `label`
*/
function getConsumerImageShareGroupImageSharesOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("linode:index/getConsumerImageShareGroupImageShares:getConsumerImageShareGroupImageShares", {
"filters": args.filters,
"imageShares": args.imageShares,
"order": args.order,
"orderBy": args.orderBy,
"tokenUuid": args.tokenUuid,
}, opts);
}
exports.getConsumerImageShareGroupImageSharesOutput = getConsumerImageShareGroupImageSharesOutput;
//# sourceMappingURL=getConsumerImageShareGroupImageShares.js.map