linode.ConsumerImageShareGroupToken provides details about a Token for an Image Share Group.
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 a Token for an Image Share Group.
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const token = linode.getConsumerImageShareGroupToken({
tokenUuid: "db58ab2e-3021-4b08-9426-8e456f6dd268",
});
import pulumi
import pulumi_linode as linode
token = linode.get_consumer_image_share_group_token(token_uuid="db58ab2e-3021-4b08-9426-8e456f6dd268")
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.LookupConsumerImageShareGroupToken(ctx, &linode.LookupConsumerImageShareGroupTokenArgs{
TokenUuid: "db58ab2e-3021-4b08-9426-8e456f6dd268",
}, 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 token = Linode.GetConsumerImageShareGroupToken.Invoke(new()
{
TokenUuid = "db58ab2e-3021-4b08-9426-8e456f6dd268",
});
});
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.GetConsumerImageShareGroupTokenArgs;
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 token = LinodeFunctions.getConsumerImageShareGroupToken(GetConsumerImageShareGroupTokenArgs.builder()
.tokenUuid("db58ab2e-3021-4b08-9426-8e456f6dd268")
.build());
}
}
variables:
token:
fn::invoke:
function: linode:getConsumerImageShareGroupToken
arguments:
tokenUuid: db58ab2e-3021-4b08-9426-8e456f6dd268
Using getConsumerImageShareGroupToken
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 getConsumerImageShareGroupToken(args: GetConsumerImageShareGroupTokenArgs, opts?: InvokeOptions): Promise<GetConsumerImageShareGroupTokenResult>
function getConsumerImageShareGroupTokenOutput(args: GetConsumerImageShareGroupTokenOutputArgs, opts?: InvokeOptions): Output<GetConsumerImageShareGroupTokenResult>def get_consumer_image_share_group_token(token_uuid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConsumerImageShareGroupTokenResult
def get_consumer_image_share_group_token_output(token_uuid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConsumerImageShareGroupTokenResult]func LookupConsumerImageShareGroupToken(ctx *Context, args *LookupConsumerImageShareGroupTokenArgs, opts ...InvokeOption) (*LookupConsumerImageShareGroupTokenResult, error)
func LookupConsumerImageShareGroupTokenOutput(ctx *Context, args *LookupConsumerImageShareGroupTokenOutputArgs, opts ...InvokeOption) LookupConsumerImageShareGroupTokenResultOutput> Note: This function is named LookupConsumerImageShareGroupToken in the Go SDK.
public static class GetConsumerImageShareGroupToken
{
public static Task<GetConsumerImageShareGroupTokenResult> InvokeAsync(GetConsumerImageShareGroupTokenArgs args, InvokeOptions? opts = null)
public static Output<GetConsumerImageShareGroupTokenResult> Invoke(GetConsumerImageShareGroupTokenInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConsumerImageShareGroupTokenResult> getConsumerImageShareGroupToken(GetConsumerImageShareGroupTokenArgs args, InvokeOptions options)
public static Output<GetConsumerImageShareGroupTokenResult> getConsumerImageShareGroupToken(GetConsumerImageShareGroupTokenArgs args, InvokeOptions options)
fn::invoke:
function: linode:index/getConsumerImageShareGroupToken:getConsumerImageShareGroupToken
arguments:
# arguments dictionaryThe following arguments are supported:
- Token
Uuid string - The UUID of the token.
- Token
Uuid string - The UUID of the token.
- token
Uuid String - The UUID of the token.
- token
Uuid string - The UUID of the token.
- token_
uuid str - The UUID of the token.
- token
Uuid String - The UUID of the token.
getConsumerImageShareGroupToken Result
The following output properties are available:
- Created string
- When the token was created.
- Expiry string
- When the token will expire.
- Id string
- The provider-assigned unique ID for this managed resource.
- Label string
- A label for the token.
- string
- The label of the Image Share Group that the token is for.
- string
- The UUID of the Image Share Group that the token is for.
- Status string
- The status of the token.
- Token
Uuid string - Updated string
- When the token was last updated.
- string
- The UUID of the Image Share Group for which to create a token.
- Created string
- When the token was created.
- Expiry string
- When the token will expire.
- Id string
- The provider-assigned unique ID for this managed resource.
- Label string
- A label for the token.
- string
- The label of the Image Share Group that the token is for.
- string
- The UUID of the Image Share Group that the token is for.
- Status string
- The status of the token.
- Token
Uuid string - Updated string
- When the token was last updated.
- string
- The UUID of the Image Share Group for which to create a token.
- created String
- When the token was created.
- expiry String
- When the token will expire.
- id String
- The provider-assigned unique ID for this managed resource.
- label String
- A label for the token.
- String
- The label of the Image Share Group that the token is for.
- String
- The UUID of the Image Share Group that the token is for.
- status String
- The status of the token.
- token
Uuid String - updated String
- When the token was last updated.
- String
- The UUID of the Image Share Group for which to create a token.
- created string
- When the token was created.
- expiry string
- When the token will expire.
- id string
- The provider-assigned unique ID for this managed resource.
- label string
- A label for the token.
- string
- The label of the Image Share Group that the token is for.
- string
- The UUID of the Image Share Group that the token is for.
- status string
- The status of the token.
- token
Uuid string - updated string
- When the token was last updated.
- string
- The UUID of the Image Share Group for which to create a token.
- created str
- When the token was created.
- expiry str
- When the token will expire.
- id str
- The provider-assigned unique ID for this managed resource.
- label str
- A label for the token.
- str
- The label of the Image Share Group that the token is for.
- str
- The UUID of the Image Share Group that the token is for.
- status str
- The status of the token.
- token_
uuid str - updated str
- When the token was last updated.
- str
- The UUID of the Image Share Group for which to create a token.
- created String
- When the token was created.
- expiry String
- When the token will expire.
- id String
- The provider-assigned unique ID for this managed resource.
- label String
- A label for the token.
- String
- The label of the Image Share Group that the token is for.
- String
- The UUID of the Image Share Group that the token is for.
- status String
- The status of the token.
- token
Uuid String - updated String
- When the token was last updated.
- String
- The UUID of the Image Share Group for which to create a token.
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.
