Manages 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
Create a token for an Image Share Group:
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const example = new linode.ConsumerImageShareGroupToken("example", {
validForSharegroupUuid: "03fbb93e-c27d-4c4a-9180-67f6e0cd74ca",
label: "example-token",
});
import pulumi
import pulumi_linode as linode
example = linode.ConsumerImageShareGroupToken("example",
valid_for_sharegroup_uuid="03fbb93e-c27d-4c4a-9180-67f6e0cd74ca",
label="example-token")
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.NewConsumerImageShareGroupToken(ctx, "example", &linode.ConsumerImageShareGroupTokenArgs{
ValidForSharegroupUuid: pulumi.String("03fbb93e-c27d-4c4a-9180-67f6e0cd74ca"),
Label: pulumi.String("example-token"),
})
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 example = new Linode.ConsumerImageShareGroupToken("example", new()
{
ValidForSharegroupUuid = "03fbb93e-c27d-4c4a-9180-67f6e0cd74ca",
Label = "example-token",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.ConsumerImageShareGroupToken;
import com.pulumi.linode.ConsumerImageShareGroupTokenArgs;
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) {
var example = new ConsumerImageShareGroupToken("example", ConsumerImageShareGroupTokenArgs.builder()
.validForSharegroupUuid("03fbb93e-c27d-4c4a-9180-67f6e0cd74ca")
.label("example-token")
.build());
}
}
resources:
example:
type: linode:ConsumerImageShareGroupToken
properties:
validForSharegroupUuid: 03fbb93e-c27d-4c4a-9180-67f6e0cd74ca
label: example-token
Create ConsumerImageShareGroupToken Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConsumerImageShareGroupToken(name: string, args: ConsumerImageShareGroupTokenArgs, opts?: CustomResourceOptions);@overload
def ConsumerImageShareGroupToken(resource_name: str,
args: ConsumerImageShareGroupTokenArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConsumerImageShareGroupToken(resource_name: str,
opts: Optional[ResourceOptions] = None,
valid_for_sharegroup_uuid: Optional[str] = None,
label: Optional[str] = None)func NewConsumerImageShareGroupToken(ctx *Context, name string, args ConsumerImageShareGroupTokenArgs, opts ...ResourceOption) (*ConsumerImageShareGroupToken, error)public ConsumerImageShareGroupToken(string name, ConsumerImageShareGroupTokenArgs args, CustomResourceOptions? opts = null)
public ConsumerImageShareGroupToken(String name, ConsumerImageShareGroupTokenArgs args)
public ConsumerImageShareGroupToken(String name, ConsumerImageShareGroupTokenArgs args, CustomResourceOptions options)
type: linode:ConsumerImageShareGroupToken
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ConsumerImageShareGroupTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ConsumerImageShareGroupTokenArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ConsumerImageShareGroupTokenArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConsumerImageShareGroupTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConsumerImageShareGroupTokenArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var consumerImageShareGroupTokenResource = new Linode.ConsumerImageShareGroupToken("consumerImageShareGroupTokenResource", new()
{
ValidForSharegroupUuid = "string",
Label = "string",
});
example, err := linode.NewConsumerImageShareGroupToken(ctx, "consumerImageShareGroupTokenResource", &linode.ConsumerImageShareGroupTokenArgs{
ValidForSharegroupUuid: pulumi.String("string"),
Label: pulumi.String("string"),
})
var consumerImageShareGroupTokenResource = new ConsumerImageShareGroupToken("consumerImageShareGroupTokenResource", ConsumerImageShareGroupTokenArgs.builder()
.validForSharegroupUuid("string")
.label("string")
.build());
consumer_image_share_group_token_resource = linode.ConsumerImageShareGroupToken("consumerImageShareGroupTokenResource",
valid_for_sharegroup_uuid="string",
label="string")
const consumerImageShareGroupTokenResource = new linode.ConsumerImageShareGroupToken("consumerImageShareGroupTokenResource", {
validForSharegroupUuid: "string",
label: "string",
});
type: linode:ConsumerImageShareGroupToken
properties:
label: string
validForSharegroupUuid: string
ConsumerImageShareGroupToken Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ConsumerImageShareGroupToken resource accepts the following input properties:
- string
- The UUID of the Image Share Group for which to create a token.
- Label string
- A label for the token.
- string
- The UUID of the Image Share Group for which to create a token.
- Label string
- A label for the token.
- String
- The UUID of the Image Share Group for which to create a token.
- label String
- A label for the token.
- string
- The UUID of the Image Share Group for which to create a token.
- label string
- A label for the token.
- str
- The UUID of the Image Share Group for which to create a token.
- label str
- A label for the token.
- String
- The UUID of the Image Share Group for which to create a token.
- label String
- A label for the token.
Outputs
All input properties are implicitly available as output properties. Additionally, the ConsumerImageShareGroupToken resource produces the following output properties:
- 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.
- 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 string
- The one-time-use token to be provided to the Image Share Group Producer.
- Token
Uuid string - The UUID of the token.
- Updated string
- When the token was last updated.
- 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.
- 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 string
- The one-time-use token to be provided to the Image Share Group Producer.
- Token
Uuid string - The UUID of the token.
- Updated string
- When the token was last updated.
- 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.
- 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 String
- The one-time-use token to be provided to the Image Share Group Producer.
- token
Uuid String - The UUID of the token.
- updated String
- When the token was last updated.
- 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.
- 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 string
- The one-time-use token to be provided to the Image Share Group Producer.
- token
Uuid string - The UUID of the token.
- updated string
- When the token was last updated.
- 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.
- 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 str
- The one-time-use token to be provided to the Image Share Group Producer.
- token_
uuid str - The UUID of the token.
- updated str
- When the token was last updated.
- 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.
- 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 String
- The one-time-use token to be provided to the Image Share Group Producer.
- token
Uuid String - The UUID of the token.
- updated String
- When the token was last updated.
Look up Existing ConsumerImageShareGroupToken Resource
Get an existing ConsumerImageShareGroupToken resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ConsumerImageShareGroupTokenState, opts?: CustomResourceOptions): ConsumerImageShareGroupToken@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created: Optional[str] = None,
expiry: Optional[str] = None,
label: Optional[str] = None,
sharegroup_label: Optional[str] = None,
sharegroup_uuid: Optional[str] = None,
status: Optional[str] = None,
token: Optional[str] = None,
token_uuid: Optional[str] = None,
updated: Optional[str] = None,
valid_for_sharegroup_uuid: Optional[str] = None) -> ConsumerImageShareGroupTokenfunc GetConsumerImageShareGroupToken(ctx *Context, name string, id IDInput, state *ConsumerImageShareGroupTokenState, opts ...ResourceOption) (*ConsumerImageShareGroupToken, error)public static ConsumerImageShareGroupToken Get(string name, Input<string> id, ConsumerImageShareGroupTokenState? state, CustomResourceOptions? opts = null)public static ConsumerImageShareGroupToken get(String name, Output<String> id, ConsumerImageShareGroupTokenState state, CustomResourceOptions options)resources: _: type: linode:ConsumerImageShareGroupToken get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created string
- When the token was created.
- Expiry string
- When the token will expire.
- 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 string
- The one-time-use token to be provided to the Image Share Group Producer.
- Token
Uuid string - The UUID of the token.
- 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.
- 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 string
- The one-time-use token to be provided to the Image Share Group Producer.
- Token
Uuid string - The UUID of the token.
- 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.
- 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 String
- The one-time-use token to be provided to the Image Share Group Producer.
- token
Uuid String - The UUID of the token.
- 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.
- 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 string
- The one-time-use token to be provided to the Image Share Group Producer.
- token
Uuid string - The UUID of the token.
- 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.
- 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 str
- The one-time-use token to be provided to the Image Share Group Producer.
- token_
uuid str - The UUID of the token.
- 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.
- 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 String
- The one-time-use token to be provided to the Image Share Group Producer.
- token
Uuid String - The UUID of the token.
- 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.
