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. 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.
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,
};
}
import pulumi
import pulumi_linode as linode
all = linode.get_consumer_image_share_group_image_shares()
filtered = linode.get_consumer_image_share_group_image_shares(token_uuid="54e1adf3-e499-4685-82be-10d29d4e8fae",
filters=[{
"name": "label",
"values": ["my-label"],
}])
pulumi.export("all-shared-images", all.image_shares)
pulumi.export("filtered-shared-images", filtered.image_shares)
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v5/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
all, err := linode.GetConsumerImageShareGroupImageShares(ctx, &linode.GetConsumerImageShareGroupImageSharesArgs{}, nil)
if err != nil {
return err
}
filtered, err := linode.GetConsumerImageShareGroupImageShares(ctx, &linode.GetConsumerImageShareGroupImageSharesArgs{
TokenUuid: "54e1adf3-e499-4685-82be-10d29d4e8fae",
Filters: []linode.GetConsumerImageShareGroupImageSharesFilter{
{
Name: "label",
Values: []string{
"my-label",
},
},
},
}, nil)
if err != nil {
return err
}
ctx.Export("all-shared-images", all.ImageShares)
ctx.Export("filtered-shared-images", filtered.ImageShares)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var all = Linode.GetConsumerImageShareGroupImageShares.Invoke();
var filtered = Linode.GetConsumerImageShareGroupImageShares.Invoke(new()
{
TokenUuid = "54e1adf3-e499-4685-82be-10d29d4e8fae",
Filters = new[]
{
new Linode.Inputs.GetConsumerImageShareGroupImageSharesFilterInputArgs
{
Name = "label",
Values = new[]
{
"my-label",
},
},
},
});
return new Dictionary<string, object?>
{
["all-shared-images"] = all.Apply(getConsumerImageShareGroupImageSharesResult => getConsumerImageShareGroupImageSharesResult.ImageShares),
["filtered-shared-images"] = filtered.Apply(getConsumerImageShareGroupImageSharesResult => getConsumerImageShareGroupImageSharesResult.ImageShares),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.inputs.GetConsumerImageShareGroupImageSharesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var all = LinodeFunctions.getConsumerImageShareGroupImageShares(GetConsumerImageShareGroupImageSharesArgs.builder()
.build());
final var filtered = LinodeFunctions.getConsumerImageShareGroupImageShares(GetConsumerImageShareGroupImageSharesArgs.builder()
.tokenUuid("54e1adf3-e499-4685-82be-10d29d4e8fae")
.filters(GetConsumerImageShareGroupImageSharesFilterArgs.builder()
.name("label")
.values("my-label")
.build())
.build());
ctx.export("all-shared-images", all.imageShares());
ctx.export("filtered-shared-images", filtered.imageShares());
}
}
variables:
all:
fn::invoke:
function: linode:getConsumerImageShareGroupImageShares
arguments: {}
filtered:
fn::invoke:
function: linode:getConsumerImageShareGroupImageShares
arguments:
tokenUuid: 54e1adf3-e499-4685-82be-10d29d4e8fae
filters:
- name: label
values:
- my-label
outputs:
all-shared-images: ${all.imageShares}
filtered-shared-images: ${filtered.imageShares}
Filterable Fields
idlabel
Using getConsumerImageShareGroupImageShares
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getConsumerImageShareGroupImageShares(args: GetConsumerImageShareGroupImageSharesArgs, opts?: InvokeOptions): Promise<GetConsumerImageShareGroupImageSharesResult>
function getConsumerImageShareGroupImageSharesOutput(args: GetConsumerImageShareGroupImageSharesOutputArgs, opts?: InvokeOptions): Output<GetConsumerImageShareGroupImageSharesResult>def get_consumer_image_share_group_image_shares(filters: Optional[Sequence[GetConsumerImageShareGroupImageSharesFilter]] = None,
image_shares: Optional[Sequence[GetConsumerImageShareGroupImageSharesImageShare]] = None,
order: Optional[str] = None,
order_by: Optional[str] = None,
token_uuid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConsumerImageShareGroupImageSharesResult
def get_consumer_image_share_group_image_shares_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetConsumerImageShareGroupImageSharesFilterArgs]]]] = None,
image_shares: Optional[pulumi.Input[Sequence[pulumi.Input[GetConsumerImageShareGroupImageSharesImageShareArgs]]]] = None,
order: Optional[pulumi.Input[str]] = None,
order_by: Optional[pulumi.Input[str]] = None,
token_uuid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConsumerImageShareGroupImageSharesResult]func GetConsumerImageShareGroupImageShares(ctx *Context, args *GetConsumerImageShareGroupImageSharesArgs, opts ...InvokeOption) (*GetConsumerImageShareGroupImageSharesResult, error)
func GetConsumerImageShareGroupImageSharesOutput(ctx *Context, args *GetConsumerImageShareGroupImageSharesOutputArgs, opts ...InvokeOption) GetConsumerImageShareGroupImageSharesResultOutput> Note: This function is named GetConsumerImageShareGroupImageShares in the Go SDK.
public static class GetConsumerImageShareGroupImageShares
{
public static Task<GetConsumerImageShareGroupImageSharesResult> InvokeAsync(GetConsumerImageShareGroupImageSharesArgs args, InvokeOptions? opts = null)
public static Output<GetConsumerImageShareGroupImageSharesResult> Invoke(GetConsumerImageShareGroupImageSharesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConsumerImageShareGroupImageSharesResult> getConsumerImageShareGroupImageShares(GetConsumerImageShareGroupImageSharesArgs args, InvokeOptions options)
public static Output<GetConsumerImageShareGroupImageSharesResult> getConsumerImageShareGroupImageShares(GetConsumerImageShareGroupImageSharesArgs args, InvokeOptions options)
fn::invoke:
function: linode:index/getConsumerImageShareGroupImageShares:getConsumerImageShareGroupImageShares
arguments:
# arguments dictionaryThe following arguments are supported:
- Token
Uuid string - The UUID of the Token that has been accepted into the Image Share Group to list shared Images from.
filter- (Optional) A set of filters used to select Image Share Groups that meet certain requirements.
- Filters
List<Get
Consumer Image Share Group Image Shares Filter> -
List<Get
Consumer Image Share Group Image Shares Image Share> - Order string
- Order
By string
- Token
Uuid string - The UUID of the Token that has been accepted into the Image Share Group to list shared Images from.
filter- (Optional) A set of filters used to select Image Share Groups that meet certain requirements.
- Filters
[]Get
Consumer Image Share Group Image Shares Filter -
[]Get
Consumer Image Share Group Image Shares Image Share - Order string
- Order
By string
- token
Uuid String - The UUID of the Token that has been accepted into the Image Share Group to list shared Images from.
filter- (Optional) A set of filters used to select Image Share Groups that meet certain requirements.
- filters
List<Get
Consumer Image Share Group Image Shares Filter> -
List<Get
Consumer Image Share Group Image Shares Image Share> - order String
- order
By String
- token
Uuid string - The UUID of the Token that has been accepted into the Image Share Group to list shared Images from.
filter- (Optional) A set of filters used to select Image Share Groups that meet certain requirements.
- filters
Get
Consumer Image Share Group Image Shares Filter[] -
Get
Consumer Image Share Group Image Shares Image Share[] - order string
- order
By string
- token_
uuid str - The UUID of the Token that has been accepted into the Image Share Group to list shared Images from.
filter- (Optional) A set of filters used to select Image Share Groups that meet certain requirements.
- filters
Sequence[Get
Consumer Image Share Group Image Shares Filter] -
Sequence[Get
Consumer Image Share Group Image Shares Image Share] - order str
- order_
by str
- token
Uuid String - The UUID of the Token that has been accepted into the Image Share Group to list shared Images from.
filter- (Optional) A set of filters used to select Image Share Groups that meet certain requirements.
- filters List<Property Map>
- List<Property Map>
- order String
- order
By String
getConsumerImageShareGroupImageShares Result
The following output properties are available:
- Id string
- The unique ID assigned to this Image Share.
- Token
Uuid string - Filters
List<Get
Consumer Image Share Group Image Shares Filter> -
List<Get
Consumer Image Share Group Image Shares Image Share> - Order string
- Order
By string
- Id string
- The unique ID assigned to this Image Share.
- Token
Uuid string - Filters
[]Get
Consumer Image Share Group Image Shares Filter -
[]Get
Consumer Image Share Group Image Shares Image Share - Order string
- Order
By string
- id String
- The unique ID assigned to this Image Share.
- token
Uuid String - filters
List<Get
Consumer Image Share Group Image Shares Filter> -
List<Get
Consumer Image Share Group Image Shares Image Share> - order String
- order
By String
- id string
- The unique ID assigned to this Image Share.
- token
Uuid string - filters
Get
Consumer Image Share Group Image Shares Filter[] -
Get
Consumer Image Share Group Image Shares Image Share[] - order string
- order
By string
- id str
- The unique ID assigned to this Image Share.
- token_
uuid str - filters
Sequence[Get
Consumer Image Share Group Image Shares Filter] -
Sequence[Get
Consumer Image Share Group Image Shares Image Share] - order str
- order_
by str
- id String
- The unique ID assigned to this Image Share.
- token
Uuid String - filters List<Property Map>
- List<Property Map>
- order String
- order
By String
Supporting Types
GetConsumerImageShareGroupImageSharesFilter
- Name string
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- Values List<string>
- A list of values for the filter to allow. These values should all be in string form.
- Match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- Name string
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- Values []string
- A list of values for the filter to allow. These values should all be in string form.
- Match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- name String
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values List<String>
- A list of values for the filter to allow. These values should all be in string form.
- match
By String - The method to match the field by. (
exact,regex,substring; defaultexact)
- name string
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values string[]
- A list of values for the filter to allow. These values should all be in string form.
- match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- name str
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values Sequence[str]
- A list of values for the filter to allow. These values should all be in string form.
- match_
by str - The method to match the field by. (
exact,regex,substring; defaultexact)
- name String
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values List<String>
- A list of values for the filter to allow. These values should all be in string form.
- match
By String - The method to match the field by. (
exact,regex,substring; defaultexact)
GetConsumerImageShareGroupImageSharesImageShare
- Capabilities List<string>
- The capabilities of the Image represented by the Image Share.
- Created string
- When this Image Share was created.
- Deprecated bool
- Whether this Image is deprecated.
- Description string
- A description of the Image Share.
- Id string
- The unique ID assigned to this Image Share.
- Image
Sharing GetConsumer Image Share Group Image Shares Image Share Image Sharing - Details about image sharing, including who the image is shared with and by.
- Is
Public bool - True if the Image is public.
- Label string
- The label of the Image Share.
- Size int
- The minimum size this Image needs to deploy. Size is in MB. example: 2500
- Status string
- The current status of this image. (
creating,pending_upload,available) - List<string>
- A list of customized tags.
- Total
Size int - The total size of the image in all available regions.
- Type string
- How the Image was created. Manual Images can be created at any time. "Automatic" Images are created automatically from a deleted Linode. (
manual,automatic)
- Capabilities []string
- The capabilities of the Image represented by the Image Share.
- Created string
- When this Image Share was created.
- Deprecated bool
- Whether this Image is deprecated.
- Description string
- A description of the Image Share.
- Id string
- The unique ID assigned to this Image Share.
- Image
Sharing GetConsumer Image Share Group Image Shares Image Share Image Sharing - Details about image sharing, including who the image is shared with and by.
- Is
Public bool - True if the Image is public.
- Label string
- The label of the Image Share.
- Size int
- The minimum size this Image needs to deploy. Size is in MB. example: 2500
- Status string
- The current status of this image. (
creating,pending_upload,available) - []string
- A list of customized tags.
- Total
Size int - The total size of the image in all available regions.
- Type string
- How the Image was created. Manual Images can be created at any time. "Automatic" Images are created automatically from a deleted Linode. (
manual,automatic)
- capabilities List<String>
- The capabilities of the Image represented by the Image Share.
- created String
- When this Image Share was created.
- deprecated Boolean
- Whether this Image is deprecated.
- description String
- A description of the Image Share.
- id String
- The unique ID assigned to this Image Share.
- image
Sharing GetConsumer Image Share Group Image Shares Image Share Image Sharing - Details about image sharing, including who the image is shared with and by.
- is
Public Boolean - True if the Image is public.
- label String
- The label of the Image Share.
- size Integer
- The minimum size this Image needs to deploy. Size is in MB. example: 2500
- status String
- The current status of this image. (
creating,pending_upload,available) - List<String>
- A list of customized tags.
- total
Size Integer - The total size of the image in all available regions.
- type String
- How the Image was created. Manual Images can be created at any time. "Automatic" Images are created automatically from a deleted Linode. (
manual,automatic)
- capabilities string[]
- The capabilities of the Image represented by the Image Share.
- created string
- When this Image Share was created.
- deprecated boolean
- Whether this Image is deprecated.
- description string
- A description of the Image Share.
- id string
- The unique ID assigned to this Image Share.
- image
Sharing GetConsumer Image Share Group Image Shares Image Share Image Sharing - Details about image sharing, including who the image is shared with and by.
- is
Public boolean - True if the Image is public.
- label string
- The label of the Image Share.
- size number
- The minimum size this Image needs to deploy. Size is in MB. example: 2500
- status string
- The current status of this image. (
creating,pending_upload,available) - string[]
- A list of customized tags.
- total
Size number - The total size of the image in all available regions.
- type string
- How the Image was created. Manual Images can be created at any time. "Automatic" Images are created automatically from a deleted Linode. (
manual,automatic)
- capabilities Sequence[str]
- The capabilities of the Image represented by the Image Share.
- created str
- When this Image Share was created.
- deprecated bool
- Whether this Image is deprecated.
- description str
- A description of the Image Share.
- id str
- The unique ID assigned to this Image Share.
- image_
sharing GetConsumer Image Share Group Image Shares Image Share Image Sharing - Details about image sharing, including who the image is shared with and by.
- is_
public bool - True if the Image is public.
- label str
- The label of the Image Share.
- size int
- The minimum size this Image needs to deploy. Size is in MB. example: 2500
- status str
- The current status of this image. (
creating,pending_upload,available) - Sequence[str]
- A list of customized tags.
- total_
size int - The total size of the image in all available regions.
- type str
- How the Image was created. Manual Images can be created at any time. "Automatic" Images are created automatically from a deleted Linode. (
manual,automatic)
- capabilities List<String>
- The capabilities of the Image represented by the Image Share.
- created String
- When this Image Share was created.
- deprecated Boolean
- Whether this Image is deprecated.
- description String
- A description of the Image Share.
- id String
- The unique ID assigned to this Image Share.
- image
Sharing Property Map - Details about image sharing, including who the image is shared with and by.
- is
Public Boolean - True if the Image is public.
- label String
- The label of the Image Share.
- size Number
- The minimum size this Image needs to deploy. Size is in MB. example: 2500
- status String
- The current status of this image. (
creating,pending_upload,available) - List<String>
- A list of customized tags.
- total
Size Number - The total size of the image in all available regions.
- type String
- How the Image was created. Manual Images can be created at any time. "Automatic" Images are created automatically from a deleted Linode. (
manual,automatic)
GetConsumerImageShareGroupImageSharesImageShareImageSharing
-
Get
Consumer Image Share Group Image Shares Image Share Image Sharing Shared By - Details about who the image is shared by.
-
Get
Consumer Image Share Group Image Shares Image Share Image Sharing Shared With - Details about who the image is shared with.
-
Get
Consumer Image Share Group Image Shares Image Share Image Sharing Shared By - Details about who the image is shared by.
-
Get
Consumer Image Share Group Image Shares Image Share Image Sharing Shared With - Details about who the image is shared with.
-
Get
Consumer Image Share Group Image Shares Image Share Image Sharing Shared By - Details about who the image is shared by.
-
Get
Consumer Image Share Group Image Shares Image Share Image Sharing Shared With - Details about who the image is shared with.
-
Get
Consumer Image Share Group Image Shares Image Share Image Sharing Shared By - Details about who the image is shared by.
-
Get
Consumer Image Share Group Image Shares Image Share Image Sharing Shared With - Details about who the image is shared with.
-
Get
Consumer Image Share Group Image Shares Image Share Image Sharing Shared By - Details about who the image is shared by.
-
Get
Consumer Image Share Group Image Shares Image Share Image Sharing Shared With - Details about who the image is shared with.
- Property Map
- Details about who the image is shared by.
- Property Map
- Details about who the image is shared with.
GetConsumerImageShareGroupImageSharesImageShareImageSharingSharedBy
- int
- The sharegroup_id from the im_ImageShare row.
- string
- The label from the associated im_ImageShareGroup row.
- string
- The sharegroup_uuid from the im_ImageShare row.
- Source
Image stringId - The image id of the base image (will only be shown to producers, will be null for consumers).
- int
- The sharegroup_id from the im_ImageShare row.
- string
- The label from the associated im_ImageShareGroup row.
- string
- The sharegroup_uuid from the im_ImageShare row.
- Source
Image stringId - The image id of the base image (will only be shown to producers, will be null for consumers).
- Integer
- The sharegroup_id from the im_ImageShare row.
- String
- The label from the associated im_ImageShareGroup row.
- String
- The sharegroup_uuid from the im_ImageShare row.
- source
Image StringId - The image id of the base image (will only be shown to producers, will be null for consumers).
- number
- The sharegroup_id from the im_ImageShare row.
- string
- The label from the associated im_ImageShareGroup row.
- string
- The sharegroup_uuid from the im_ImageShare row.
- source
Image stringId - The image id of the base image (will only be shown to producers, will be null for consumers).
- int
- The sharegroup_id from the im_ImageShare row.
- str
- The label from the associated im_ImageShareGroup row.
- str
- The sharegroup_uuid from the im_ImageShare row.
- source_
image_ strid - The image id of the base image (will only be shown to producers, will be null for consumers).
- Number
- The sharegroup_id from the im_ImageShare row.
- String
- The label from the associated im_ImageShareGroup row.
- String
- The sharegroup_uuid from the im_ImageShare row.
- source
Image StringId - The image id of the base image (will only be shown to producers, will be null for consumers).
GetConsumerImageShareGroupImageSharesImageShareImageSharingSharedWith
- int
- The number of sharegroups the private image is present in.
- string
- The GET api url to view the sharegroups in which the image is shared.
- int
- The number of sharegroups the private image is present in.
- string
- The GET api url to view the sharegroups in which the image is shared.
- Integer
- The number of sharegroups the private image is present in.
- String
- The GET api url to view the sharegroups in which the image is shared.
- number
- The number of sharegroups the private image is present in.
- string
- The GET api url to view the sharegroups in which the image is shared.
- int
- The number of sharegroups the private image is present in.
- str
- The GET api url to view the sharegroups in which the image is shared.
- Number
- The number of sharegroups the private image is present in.
- String
- The GET api url to view the sharegroups in which the image is shared.
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.
