1. Packages
  2. Octopusdeploy Provider
  3. API Docs
  4. TokenAccount
octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs

octopusdeploy.TokenAccount

Explore with Pulumi AI

octopusdeploy logo
octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as octopusdeploy from "@pulumi/octopusdeploy";
    
    const example = new octopusdeploy.TokenAccount("example", {token: "[token]"});
    
    import pulumi
    import pulumi_octopusdeploy as octopusdeploy
    
    example = octopusdeploy.TokenAccount("example", token="[token]")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/octopusdeploy/octopusdeploy"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := octopusdeploy.NewTokenAccount(ctx, "example", &octopusdeploy.TokenAccountArgs{
    			Token: pulumi.String("[token]"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Octopusdeploy = Pulumi.Octopusdeploy;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Octopusdeploy.TokenAccount("example", new()
        {
            Token = "[token]",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.octopusdeploy.TokenAccount;
    import com.pulumi.octopusdeploy.TokenAccountArgs;
    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 TokenAccount("example", TokenAccountArgs.builder()
                .token("[token]")
                .build());
    
        }
    }
    
    resources:
      example:
        type: octopusdeploy:TokenAccount
        properties:
          token: '[token]'
    

    Create TokenAccount Resource

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

    Constructor syntax

    new TokenAccount(name: string, args: TokenAccountArgs, opts?: CustomResourceOptions);
    @overload
    def TokenAccount(resource_name: str,
                     args: TokenAccountArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def TokenAccount(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     token: Optional[str] = None,
                     description: Optional[str] = None,
                     environments: Optional[Sequence[str]] = None,
                     name: Optional[str] = None,
                     space_id: Optional[str] = None,
                     tenant_tags: Optional[Sequence[str]] = None,
                     tenanted_deployment_participation: Optional[str] = None,
                     tenants: Optional[Sequence[str]] = None,
                     token_account_id: Optional[str] = None)
    func NewTokenAccount(ctx *Context, name string, args TokenAccountArgs, opts ...ResourceOption) (*TokenAccount, error)
    public TokenAccount(string name, TokenAccountArgs args, CustomResourceOptions? opts = null)
    public TokenAccount(String name, TokenAccountArgs args)
    public TokenAccount(String name, TokenAccountArgs args, CustomResourceOptions options)
    
    type: octopusdeploy:TokenAccount
    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 TokenAccountArgs
    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 TokenAccountArgs
    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 TokenAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TokenAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TokenAccountArgs
    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 tokenAccountResource = new Octopusdeploy.TokenAccount("tokenAccountResource", new()
    {
        Token = "string",
        Description = "string",
        Environments = new[]
        {
            "string",
        },
        Name = "string",
        SpaceId = "string",
        TenantTags = new[]
        {
            "string",
        },
        TenantedDeploymentParticipation = "string",
        Tenants = new[]
        {
            "string",
        },
        TokenAccountId = "string",
    });
    
    example, err := octopusdeploy.NewTokenAccount(ctx, "tokenAccountResource", &octopusdeploy.TokenAccountArgs{
    	Token:       pulumi.String("string"),
    	Description: pulumi.String("string"),
    	Environments: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name:    pulumi.String("string"),
    	SpaceId: pulumi.String("string"),
    	TenantTags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TenantedDeploymentParticipation: pulumi.String("string"),
    	Tenants: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TokenAccountId: pulumi.String("string"),
    })
    
    var tokenAccountResource = new TokenAccount("tokenAccountResource", TokenAccountArgs.builder()
        .token("string")
        .description("string")
        .environments("string")
        .name("string")
        .spaceId("string")
        .tenantTags("string")
        .tenantedDeploymentParticipation("string")
        .tenants("string")
        .tokenAccountId("string")
        .build());
    
    token_account_resource = octopusdeploy.TokenAccount("tokenAccountResource",
        token="string",
        description="string",
        environments=["string"],
        name="string",
        space_id="string",
        tenant_tags=["string"],
        tenanted_deployment_participation="string",
        tenants=["string"],
        token_account_id="string")
    
    const tokenAccountResource = new octopusdeploy.TokenAccount("tokenAccountResource", {
        token: "string",
        description: "string",
        environments: ["string"],
        name: "string",
        spaceId: "string",
        tenantTags: ["string"],
        tenantedDeploymentParticipation: "string",
        tenants: ["string"],
        tokenAccountId: "string",
    });
    
    type: octopusdeploy:TokenAccount
    properties:
        description: string
        environments:
            - string
        name: string
        spaceId: string
        tenantTags:
            - string
        tenantedDeploymentParticipation: string
        tenants:
            - string
        token: string
        tokenAccountId: string
    

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

    Token string
    The token of this resource.
    Description string
    The description of this token account.
    Environments List<string>
    A list of environment IDs associated with this resource.
    Name string
    The name of this resource.
    SpaceId string
    The space ID associated with this resource.
    TenantTags List<string>
    A list of tenant tags associated with this resource.
    TenantedDeploymentParticipation string
    The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
    Tenants List<string>
    A list of tenant IDs associated with this resource.
    TokenAccountId string
    The unique ID for this resource.
    Token string
    The token of this resource.
    Description string
    The description of this token account.
    Environments []string
    A list of environment IDs associated with this resource.
    Name string
    The name of this resource.
    SpaceId string
    The space ID associated with this resource.
    TenantTags []string
    A list of tenant tags associated with this resource.
    TenantedDeploymentParticipation string
    The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
    Tenants []string
    A list of tenant IDs associated with this resource.
    TokenAccountId string
    The unique ID for this resource.
    token String
    The token of this resource.
    description String
    The description of this token account.
    environments List<String>
    A list of environment IDs associated with this resource.
    name String
    The name of this resource.
    spaceId String
    The space ID associated with this resource.
    tenantTags List<String>
    A list of tenant tags associated with this resource.
    tenantedDeploymentParticipation String
    The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
    tenants List<String>
    A list of tenant IDs associated with this resource.
    tokenAccountId String
    The unique ID for this resource.
    token string
    The token of this resource.
    description string
    The description of this token account.
    environments string[]
    A list of environment IDs associated with this resource.
    name string
    The name of this resource.
    spaceId string
    The space ID associated with this resource.
    tenantTags string[]
    A list of tenant tags associated with this resource.
    tenantedDeploymentParticipation string
    The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
    tenants string[]
    A list of tenant IDs associated with this resource.
    tokenAccountId string
    The unique ID for this resource.
    token str
    The token of this resource.
    description str
    The description of this token account.
    environments Sequence[str]
    A list of environment IDs associated with this resource.
    name str
    The name of this resource.
    space_id str
    The space ID associated with this resource.
    tenant_tags Sequence[str]
    A list of tenant tags associated with this resource.
    tenanted_deployment_participation str
    The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
    tenants Sequence[str]
    A list of tenant IDs associated with this resource.
    token_account_id str
    The unique ID for this resource.
    token String
    The token of this resource.
    description String
    The description of this token account.
    environments List<String>
    A list of environment IDs associated with this resource.
    name String
    The name of this resource.
    spaceId String
    The space ID associated with this resource.
    tenantTags List<String>
    A list of tenant tags associated with this resource.
    tenantedDeploymentParticipation String
    The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
    tenants List<String>
    A list of tenant IDs associated with this resource.
    tokenAccountId String
    The unique ID for this resource.

    Outputs

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

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

    Look up Existing TokenAccount Resource

    Get an existing TokenAccount 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?: TokenAccountState, opts?: CustomResourceOptions): TokenAccount
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            environments: Optional[Sequence[str]] = None,
            name: Optional[str] = None,
            space_id: Optional[str] = None,
            tenant_tags: Optional[Sequence[str]] = None,
            tenanted_deployment_participation: Optional[str] = None,
            tenants: Optional[Sequence[str]] = None,
            token: Optional[str] = None,
            token_account_id: Optional[str] = None) -> TokenAccount
    func GetTokenAccount(ctx *Context, name string, id IDInput, state *TokenAccountState, opts ...ResourceOption) (*TokenAccount, error)
    public static TokenAccount Get(string name, Input<string> id, TokenAccountState? state, CustomResourceOptions? opts = null)
    public static TokenAccount get(String name, Output<String> id, TokenAccountState state, CustomResourceOptions options)
    resources:  _:    type: octopusdeploy:TokenAccount    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
    The description of this token account.
    Environments List<string>
    A list of environment IDs associated with this resource.
    Name string
    The name of this resource.
    SpaceId string
    The space ID associated with this resource.
    TenantTags List<string>
    A list of tenant tags associated with this resource.
    TenantedDeploymentParticipation string
    The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
    Tenants List<string>
    A list of tenant IDs associated with this resource.
    Token string
    The token of this resource.
    TokenAccountId string
    The unique ID for this resource.
    Description string
    The description of this token account.
    Environments []string
    A list of environment IDs associated with this resource.
    Name string
    The name of this resource.
    SpaceId string
    The space ID associated with this resource.
    TenantTags []string
    A list of tenant tags associated with this resource.
    TenantedDeploymentParticipation string
    The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
    Tenants []string
    A list of tenant IDs associated with this resource.
    Token string
    The token of this resource.
    TokenAccountId string
    The unique ID for this resource.
    description String
    The description of this token account.
    environments List<String>
    A list of environment IDs associated with this resource.
    name String
    The name of this resource.
    spaceId String
    The space ID associated with this resource.
    tenantTags List<String>
    A list of tenant tags associated with this resource.
    tenantedDeploymentParticipation String
    The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
    tenants List<String>
    A list of tenant IDs associated with this resource.
    token String
    The token of this resource.
    tokenAccountId String
    The unique ID for this resource.
    description string
    The description of this token account.
    environments string[]
    A list of environment IDs associated with this resource.
    name string
    The name of this resource.
    spaceId string
    The space ID associated with this resource.
    tenantTags string[]
    A list of tenant tags associated with this resource.
    tenantedDeploymentParticipation string
    The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
    tenants string[]
    A list of tenant IDs associated with this resource.
    token string
    The token of this resource.
    tokenAccountId string
    The unique ID for this resource.
    description str
    The description of this token account.
    environments Sequence[str]
    A list of environment IDs associated with this resource.
    name str
    The name of this resource.
    space_id str
    The space ID associated with this resource.
    tenant_tags Sequence[str]
    A list of tenant tags associated with this resource.
    tenanted_deployment_participation str
    The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
    tenants Sequence[str]
    A list of tenant IDs associated with this resource.
    token str
    The token of this resource.
    token_account_id str
    The unique ID for this resource.
    description String
    The description of this token account.
    environments List<String>
    A list of environment IDs associated with this resource.
    name String
    The name of this resource.
    spaceId String
    The space ID associated with this resource.
    tenantTags List<String>
    A list of tenant tags associated with this resource.
    tenantedDeploymentParticipation String
    The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
    tenants List<String>
    A list of tenant IDs associated with this resource.
    token String
    The token of this resource.
    tokenAccountId String
    The unique ID for this resource.

    Import

    $ pulumi import octopusdeploy:index/tokenAccount:TokenAccount [options] octopusdeploy_token_account.<name> <account-id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
    License
    Notes
    This Pulumi package is based on the octopusdeploy Terraform Provider.
    octopusdeploy logo
    octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs