1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. RegistrationToken
spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud

spectrocloud.RegistrationToken

Explore with Pulumi AI

spectrocloud logo
spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud

    Registration tokens in Palette are used to register an Edge host or pair a locally managed cluster for central management.Registration Token guide.

    Example Usage

    An example of managing an developer setting in Palette.

    import * as pulumi from "@pulumi/pulumi";
    import * as spectrocloud from "@pulumi/spectrocloud";
    
    const tfToken = new spectrocloud.RegistrationToken("tfToken", {
        description: "test token description updated",
        expiryDate: "2025-03-25",
        projectUid: "6514216503b",
        status: "active",
    });
    
    import pulumi
    import pulumi_spectrocloud as spectrocloud
    
    tf_token = spectrocloud.RegistrationToken("tfToken",
        description="test token description updated",
        expiry_date="2025-03-25",
        project_uid="6514216503b",
        status="active")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := spectrocloud.NewRegistrationToken(ctx, "tfToken", &spectrocloud.RegistrationTokenArgs{
    			Description: pulumi.String("test token description updated"),
    			ExpiryDate:  pulumi.String("2025-03-25"),
    			ProjectUid:  pulumi.String("6514216503b"),
    			Status:      pulumi.String("active"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Spectrocloud = Pulumi.Spectrocloud;
    
    return await Deployment.RunAsync(() => 
    {
        var tfToken = new Spectrocloud.RegistrationToken("tfToken", new()
        {
            Description = "test token description updated",
            ExpiryDate = "2025-03-25",
            ProjectUid = "6514216503b",
            Status = "active",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.spectrocloud.RegistrationToken;
    import com.pulumi.spectrocloud.RegistrationTokenArgs;
    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 tfToken = new RegistrationToken("tfToken", RegistrationTokenArgs.builder()
                .description("test token description updated")
                .expiryDate("2025-03-25")
                .projectUid("6514216503b")
                .status("active")
                .build());
    
        }
    }
    
    resources:
      tfToken:
        type: spectrocloud:RegistrationToken
        properties:
          description: test token description updated
          expiryDate: 2025-03-25
          projectUid: 6514216503b
          status: active
    

    Create RegistrationToken Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RegistrationToken(name: string, args: RegistrationTokenArgs, opts?: CustomResourceOptions);
    @overload
    def RegistrationToken(resource_name: str,
                          args: RegistrationTokenArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def RegistrationToken(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          expiry_date: Optional[str] = None,
                          description: Optional[str] = None,
                          name: Optional[str] = None,
                          project_uid: Optional[str] = None,
                          registration_token_id: Optional[str] = None,
                          status: Optional[str] = None,
                          timeouts: Optional[RegistrationTokenTimeoutsArgs] = None)
    func NewRegistrationToken(ctx *Context, name string, args RegistrationTokenArgs, opts ...ResourceOption) (*RegistrationToken, error)
    public RegistrationToken(string name, RegistrationTokenArgs args, CustomResourceOptions? opts = null)
    public RegistrationToken(String name, RegistrationTokenArgs args)
    public RegistrationToken(String name, RegistrationTokenArgs args, CustomResourceOptions options)
    
    type: spectrocloud:RegistrationToken
    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 RegistrationTokenArgs
    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 RegistrationTokenArgs
    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 RegistrationTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RegistrationTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RegistrationTokenArgs
    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 registrationTokenResource = new Spectrocloud.RegistrationToken("registrationTokenResource", new()
    {
        ExpiryDate = "string",
        Description = "string",
        Name = "string",
        ProjectUid = "string",
        RegistrationTokenId = "string",
        Status = "string",
        Timeouts = new Spectrocloud.Inputs.RegistrationTokenTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := spectrocloud.NewRegistrationToken(ctx, "registrationTokenResource", &spectrocloud.RegistrationTokenArgs{
    	ExpiryDate:          pulumi.String("string"),
    	Description:         pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	ProjectUid:          pulumi.String("string"),
    	RegistrationTokenId: pulumi.String("string"),
    	Status:              pulumi.String("string"),
    	Timeouts: &spectrocloud.RegistrationTokenTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var registrationTokenResource = new RegistrationToken("registrationTokenResource", RegistrationTokenArgs.builder()
        .expiryDate("string")
        .description("string")
        .name("string")
        .projectUid("string")
        .registrationTokenId("string")
        .status("string")
        .timeouts(RegistrationTokenTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    registration_token_resource = spectrocloud.RegistrationToken("registrationTokenResource",
        expiry_date="string",
        description="string",
        name="string",
        project_uid="string",
        registration_token_id="string",
        status="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const registrationTokenResource = new spectrocloud.RegistrationToken("registrationTokenResource", {
        expiryDate: "string",
        description: "string",
        name: "string",
        projectUid: "string",
        registrationTokenId: "string",
        status: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: spectrocloud:RegistrationToken
    properties:
        description: string
        expiryDate: string
        name: string
        projectUid: string
        registrationTokenId: string
        status: string
        timeouts:
            create: string
            delete: string
            update: string
    

    RegistrationToken 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 RegistrationToken resource accepts the following input properties:

    ExpiryDate string
    The expiration date of the registration token in YYYY-MM-DD format.
    Description string
    A brief description of the registration token.
    Name string
    The name of the registration token.
    ProjectUid string
    The unique identifier of the project associated with the registration token.
    RegistrationTokenId string
    The ID of this resource.
    Status string
    The status of the registration token. Allowed values are active or inactive. Default is active.
    Timeouts RegistrationTokenTimeouts
    ExpiryDate string
    The expiration date of the registration token in YYYY-MM-DD format.
    Description string
    A brief description of the registration token.
    Name string
    The name of the registration token.
    ProjectUid string
    The unique identifier of the project associated with the registration token.
    RegistrationTokenId string
    The ID of this resource.
    Status string
    The status of the registration token. Allowed values are active or inactive. Default is active.
    Timeouts RegistrationTokenTimeoutsArgs
    expiryDate String
    The expiration date of the registration token in YYYY-MM-DD format.
    description String
    A brief description of the registration token.
    name String
    The name of the registration token.
    projectUid String
    The unique identifier of the project associated with the registration token.
    registrationTokenId String
    The ID of this resource.
    status String
    The status of the registration token. Allowed values are active or inactive. Default is active.
    timeouts RegistrationTokenTimeouts
    expiryDate string
    The expiration date of the registration token in YYYY-MM-DD format.
    description string
    A brief description of the registration token.
    name string
    The name of the registration token.
    projectUid string
    The unique identifier of the project associated with the registration token.
    registrationTokenId string
    The ID of this resource.
    status string
    The status of the registration token. Allowed values are active or inactive. Default is active.
    timeouts RegistrationTokenTimeouts
    expiry_date str
    The expiration date of the registration token in YYYY-MM-DD format.
    description str
    A brief description of the registration token.
    name str
    The name of the registration token.
    project_uid str
    The unique identifier of the project associated with the registration token.
    registration_token_id str
    The ID of this resource.
    status str
    The status of the registration token. Allowed values are active or inactive. Default is active.
    timeouts RegistrationTokenTimeoutsArgs
    expiryDate String
    The expiration date of the registration token in YYYY-MM-DD format.
    description String
    A brief description of the registration token.
    name String
    The name of the registration token.
    projectUid String
    The unique identifier of the project associated with the registration token.
    registrationTokenId String
    The ID of this resource.
    status String
    The status of the registration token. Allowed values are active or inactive. Default is active.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RegistrationToken resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    id string
    The provider-assigned unique ID for this managed resource.
    token string
    id str
    The provider-assigned unique ID for this managed resource.
    token str
    id String
    The provider-assigned unique ID for this managed resource.
    token String

    Look up Existing RegistrationToken Resource

    Get an existing RegistrationToken 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?: RegistrationTokenState, opts?: CustomResourceOptions): RegistrationToken
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            expiry_date: Optional[str] = None,
            name: Optional[str] = None,
            project_uid: Optional[str] = None,
            registration_token_id: Optional[str] = None,
            status: Optional[str] = None,
            timeouts: Optional[RegistrationTokenTimeoutsArgs] = None,
            token: Optional[str] = None) -> RegistrationToken
    func GetRegistrationToken(ctx *Context, name string, id IDInput, state *RegistrationTokenState, opts ...ResourceOption) (*RegistrationToken, error)
    public static RegistrationToken Get(string name, Input<string> id, RegistrationTokenState? state, CustomResourceOptions? opts = null)
    public static RegistrationToken get(String name, Output<String> id, RegistrationTokenState state, CustomResourceOptions options)
    resources:  _:    type: spectrocloud:RegistrationToken    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.
    The following state arguments are supported:
    Description string
    A brief description of the registration token.
    ExpiryDate string
    The expiration date of the registration token in YYYY-MM-DD format.
    Name string
    The name of the registration token.
    ProjectUid string
    The unique identifier of the project associated with the registration token.
    RegistrationTokenId string
    The ID of this resource.
    Status string
    The status of the registration token. Allowed values are active or inactive. Default is active.
    Timeouts RegistrationTokenTimeouts
    Token string
    Description string
    A brief description of the registration token.
    ExpiryDate string
    The expiration date of the registration token in YYYY-MM-DD format.
    Name string
    The name of the registration token.
    ProjectUid string
    The unique identifier of the project associated with the registration token.
    RegistrationTokenId string
    The ID of this resource.
    Status string
    The status of the registration token. Allowed values are active or inactive. Default is active.
    Timeouts RegistrationTokenTimeoutsArgs
    Token string
    description String
    A brief description of the registration token.
    expiryDate String
    The expiration date of the registration token in YYYY-MM-DD format.
    name String
    The name of the registration token.
    projectUid String
    The unique identifier of the project associated with the registration token.
    registrationTokenId String
    The ID of this resource.
    status String
    The status of the registration token. Allowed values are active or inactive. Default is active.
    timeouts RegistrationTokenTimeouts
    token String
    description string
    A brief description of the registration token.
    expiryDate string
    The expiration date of the registration token in YYYY-MM-DD format.
    name string
    The name of the registration token.
    projectUid string
    The unique identifier of the project associated with the registration token.
    registrationTokenId string
    The ID of this resource.
    status string
    The status of the registration token. Allowed values are active or inactive. Default is active.
    timeouts RegistrationTokenTimeouts
    token string
    description str
    A brief description of the registration token.
    expiry_date str
    The expiration date of the registration token in YYYY-MM-DD format.
    name str
    The name of the registration token.
    project_uid str
    The unique identifier of the project associated with the registration token.
    registration_token_id str
    The ID of this resource.
    status str
    The status of the registration token. Allowed values are active or inactive. Default is active.
    timeouts RegistrationTokenTimeoutsArgs
    token str
    description String
    A brief description of the registration token.
    expiryDate String
    The expiration date of the registration token in YYYY-MM-DD format.
    name String
    The name of the registration token.
    projectUid String
    The unique identifier of the project associated with the registration token.
    registrationTokenId String
    The ID of this resource.
    status String
    The status of the registration token. Allowed values are active or inactive. Default is active.
    timeouts Property Map
    token String

    Supporting Types

    RegistrationTokenTimeouts, RegistrationTokenTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Package Details

    Repository
    spectrocloud spectrocloud/terraform-provider-spectrocloud
    License
    Notes
    This Pulumi package is based on the spectrocloud Terraform Provider.
    spectrocloud logo
    spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud