1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. RegistrationToken
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud

spectrocloud.RegistrationToken

Explore with Pulumi AI

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
resources:
  tfToken:
    type: spectrocloud:RegistrationToken
    properties:
      description: test token description updated
      expiryDate: 2025-03-25
      projectUid: 6514216503b
      status: active
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. RegistrationTokenArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. RegistrationTokenArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RegistrationTokenArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
    },
});
Copy
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: &.RegistrationTokenTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
Copy
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());
Copy
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",
    })
Copy
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",
    },
});
Copy
type: spectrocloud:RegistrationToken
properties:
    description: string
    expiryDate: string
    name: string
    projectUid: string
    registrationTokenId: string
    status: string
    timeouts:
        create: string
        delete: string
        update: string
Copy

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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.