linode.getConsumerImageShareGroup provides details about an Image Share Group that the user’s 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 the datasource might be used to obtain additional information about an Image Share Group.
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const sg = linode.getConsumerImageShareGroup({
tokenUuid: "7548d17e-8db4-4a91-b47c-a8e1203063d9",
});
import pulumi
import pulumi_linode as linode
sg = linode.get_consumer_image_share_group(token_uuid="7548d17e-8db4-4a91-b47c-a8e1203063d9")
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 {
_, err := linode.GetConsumerImageShareGroup(ctx, &linode.GetConsumerImageShareGroupArgs{
TokenUuid: "7548d17e-8db4-4a91-b47c-a8e1203063d9",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var sg = Linode.GetConsumerImageShareGroup.Invoke(new()
{
TokenUuid = "7548d17e-8db4-4a91-b47c-a8e1203063d9",
});
});
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.GetConsumerImageShareGroupArgs;
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 sg = LinodeFunctions.getConsumerImageShareGroup(GetConsumerImageShareGroupArgs.builder()
.tokenUuid("7548d17e-8db4-4a91-b47c-a8e1203063d9")
.build());
}
}
variables:
sg:
fn::invoke:
function: linode:getConsumerImageShareGroup
arguments:
tokenUuid: 7548d17e-8db4-4a91-b47c-a8e1203063d9
Using getConsumerImageShareGroup
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 getConsumerImageShareGroup(args: GetConsumerImageShareGroupArgs, opts?: InvokeOptions): Promise<GetConsumerImageShareGroupResult>
function getConsumerImageShareGroupOutput(args: GetConsumerImageShareGroupOutputArgs, opts?: InvokeOptions): Output<GetConsumerImageShareGroupResult>def get_consumer_image_share_group(token_uuid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConsumerImageShareGroupResult
def get_consumer_image_share_group_output(token_uuid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConsumerImageShareGroupResult]func GetConsumerImageShareGroup(ctx *Context, args *GetConsumerImageShareGroupArgs, opts ...InvokeOption) (*GetConsumerImageShareGroupResult, error)
func GetConsumerImageShareGroupOutput(ctx *Context, args *GetConsumerImageShareGroupOutputArgs, opts ...InvokeOption) GetConsumerImageShareGroupResultOutput> Note: This function is named GetConsumerImageShareGroup in the Go SDK.
public static class GetConsumerImageShareGroup
{
public static Task<GetConsumerImageShareGroupResult> InvokeAsync(GetConsumerImageShareGroupArgs args, InvokeOptions? opts = null)
public static Output<GetConsumerImageShareGroupResult> Invoke(GetConsumerImageShareGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConsumerImageShareGroupResult> getConsumerImageShareGroup(GetConsumerImageShareGroupArgs args, InvokeOptions options)
public static Output<GetConsumerImageShareGroupResult> getConsumerImageShareGroup(GetConsumerImageShareGroupArgs args, InvokeOptions options)
fn::invoke:
function: linode:index/getConsumerImageShareGroup:getConsumerImageShareGroup
arguments:
# arguments dictionaryThe following arguments are supported:
- Token
Uuid string - The UUID of the token that has been accepted into the Image Share Group.
- Token
Uuid string - The UUID of the token that has been accepted into the Image Share Group.
- token
Uuid String - The UUID of the token that has been accepted into the Image Share Group.
- token
Uuid string - The UUID of the token that has been accepted into the Image Share Group.
- token_
uuid str - The UUID of the token that has been accepted into the Image Share Group.
- token
Uuid String - The UUID of the token that has been accepted into the Image Share Group.
getConsumerImageShareGroup Result
The following output properties are available:
- Created string
- The date and time the Image Share Group was created.
- Description string
- The description of the Image Share Group.
- Id int
- The ID of the Image Share Group.
- Is
Suspended bool - Whether the Image Share Group is suspended.
- Label string
- The label of the Image Share Group.
- Token
Uuid string - Updated string
- The date and time the Image Share Group was last updated.
- Uuid string
- The UUID of the Image Share Group.
- Created string
- The date and time the Image Share Group was created.
- Description string
- The description of the Image Share Group.
- Id int
- The ID of the Image Share Group.
- Is
Suspended bool - Whether the Image Share Group is suspended.
- Label string
- The label of the Image Share Group.
- Token
Uuid string - Updated string
- The date and time the Image Share Group was last updated.
- Uuid string
- The UUID of the Image Share Group.
- created String
- The date and time the Image Share Group was created.
- description String
- The description of the Image Share Group.
- id Integer
- The ID of the Image Share Group.
- is
Suspended Boolean - Whether the Image Share Group is suspended.
- label String
- The label of the Image Share Group.
- token
Uuid String - updated String
- The date and time the Image Share Group was last updated.
- uuid String
- The UUID of the Image Share Group.
- created string
- The date and time the Image Share Group was created.
- description string
- The description of the Image Share Group.
- id number
- The ID of the Image Share Group.
- is
Suspended boolean - Whether the Image Share Group is suspended.
- label string
- The label of the Image Share Group.
- token
Uuid string - updated string
- The date and time the Image Share Group was last updated.
- uuid string
- The UUID of the Image Share Group.
- created str
- The date and time the Image Share Group was created.
- description str
- The description of the Image Share Group.
- id int
- The ID of the Image Share Group.
- is_
suspended bool - Whether the Image Share Group is suspended.
- label str
- The label of the Image Share Group.
- token_
uuid str - updated str
- The date and time the Image Share Group was last updated.
- uuid str
- The UUID of the Image Share Group.
- created String
- The date and time the Image Share Group was created.
- description String
- The description of the Image Share Group.
- id Number
- The ID of the Image Share Group.
- is
Suspended Boolean - Whether the Image Share Group is suspended.
- label String
- The label of the Image Share Group.
- token
Uuid String - updated String
- The date and time the Image Share Group was last updated.
- uuid String
- The UUID of the Image Share Group.
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.
