sumologic logo
Sumo Logic v0.13.0, Mar 27 23

sumologic.Token

Provides a Sumologic Token.

Example Usage

using System.Collections.Generic;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var exampleToken = new SumoLogic.Token("exampleToken", new()
    {
        Description = "Testing resource sumologic_token",
        Status = "Active",
        Type = "CollectorRegistration",
    });

});
package main

import (
	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sumologic.NewToken(ctx, "exampleToken", &sumologic.TokenArgs{
			Description: pulumi.String("Testing resource sumologic_token"),
			Status:      pulumi.String("Active"),
			Type:        pulumi.String("CollectorRegistration"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.Token;
import com.pulumi.sumologic.TokenArgs;
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 exampleToken = new Token("exampleToken", TokenArgs.builder()        
            .description("Testing resource sumologic_token")
            .status("Active")
            .type("CollectorRegistration")
            .build());

    }
}
import pulumi
import pulumi_sumologic as sumologic

example_token = sumologic.Token("exampleToken",
    description="Testing resource sumologic_token",
    status="Active",
    type="CollectorRegistration")
import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const exampleToken = new sumologic.Token("exampleToken", {
    description: "Testing resource sumologic_token",
    status: "Active",
    type: "CollectorRegistration",
});
resources:
  exampleToken:
    type: sumologic:Token
    properties:
      description: Testing resource sumologic_token
      status: Active
      type: CollectorRegistration

Create Token Resource

new Token(name: string, args: TokenArgs, opts?: CustomResourceOptions);
@overload
def Token(resource_name: str,
          opts: Optional[ResourceOptions] = None,
          description: Optional[str] = None,
          name: Optional[str] = None,
          status: Optional[str] = None,
          type: Optional[str] = None,
          version: Optional[int] = None)
@overload
def Token(resource_name: str,
          args: TokenArgs,
          opts: Optional[ResourceOptions] = None)
func NewToken(ctx *Context, name string, args TokenArgs, opts ...ResourceOption) (*Token, error)
public Token(string name, TokenArgs args, CustomResourceOptions? opts = null)
public Token(String name, TokenArgs args)
public Token(String name, TokenArgs args, CustomResourceOptions options)
type: sumologic:Token
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args TokenArgs
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 TokenArgs
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 TokenArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args TokenArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args TokenArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Token Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Token resource accepts the following input properties:

Status string

Status of the token. Valid values:

Type string

Type of the token. Valid value:

Description string

The description of the token.

Name string

Display name of the token. This must be unique across all of the tokens.

Version int
Status string

Status of the token. Valid values:

Type string

Type of the token. Valid value:

Description string

The description of the token.

Name string

Display name of the token. This must be unique across all of the tokens.

Version int
status String

Status of the token. Valid values:

type String

Type of the token. Valid value:

description String

The description of the token.

name String

Display name of the token. This must be unique across all of the tokens.

version Integer
status string

Status of the token. Valid values:

type string

Type of the token. Valid value:

description string

The description of the token.

name string

Display name of the token. This must be unique across all of the tokens.

version number
status str

Status of the token. Valid values:

type str

Type of the token. Valid value:

description str

The description of the token.

name str

Display name of the token. This must be unique across all of the tokens.

version int
status String

Status of the token. Valid values:

type String

Type of the token. Valid value:

description String

The description of the token.

name String

Display name of the token. This must be unique across all of the tokens.

version Number

Outputs

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

EncodedTokenAndUrl string

The encoded token for collector registration.

Id string

The provider-assigned unique ID for this managed resource.

EncodedTokenAndUrl string

The encoded token for collector registration.

Id string

The provider-assigned unique ID for this managed resource.

encodedTokenAndUrl String

The encoded token for collector registration.

id String

The provider-assigned unique ID for this managed resource.

encodedTokenAndUrl string

The encoded token for collector registration.

id string

The provider-assigned unique ID for this managed resource.

encoded_token_and_url str

The encoded token for collector registration.

id str

The provider-assigned unique ID for this managed resource.

encodedTokenAndUrl String

The encoded token for collector registration.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing Token Resource

Get an existing Token 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?: TokenState, opts?: CustomResourceOptions): Token
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        encoded_token_and_url: Optional[str] = None,
        name: Optional[str] = None,
        status: Optional[str] = None,
        type: Optional[str] = None,
        version: Optional[int] = None) -> Token
func GetToken(ctx *Context, name string, id IDInput, state *TokenState, opts ...ResourceOption) (*Token, error)
public static Token Get(string name, Input<string> id, TokenState? state, CustomResourceOptions? opts = null)
public static Token get(String name, Output<String> id, TokenState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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 the token.

EncodedTokenAndUrl string

The encoded token for collector registration.

Name string

Display name of the token. This must be unique across all of the tokens.

Status string

Status of the token. Valid values:

Type string

Type of the token. Valid value:

Version int
Description string

The description of the token.

EncodedTokenAndUrl string

The encoded token for collector registration.

Name string

Display name of the token. This must be unique across all of the tokens.

Status string

Status of the token. Valid values:

Type string

Type of the token. Valid value:

Version int
description String

The description of the token.

encodedTokenAndUrl String

The encoded token for collector registration.

name String

Display name of the token. This must be unique across all of the tokens.

status String

Status of the token. Valid values:

type String

Type of the token. Valid value:

version Integer
description string

The description of the token.

encodedTokenAndUrl string

The encoded token for collector registration.

name string

Display name of the token. This must be unique across all of the tokens.

status string

Status of the token. Valid values:

type string

Type of the token. Valid value:

version number
description str

The description of the token.

encoded_token_and_url str

The encoded token for collector registration.

name str

Display name of the token. This must be unique across all of the tokens.

status str

Status of the token. Valid values:

type str

Type of the token. Valid value:

version int
description String

The description of the token.

encodedTokenAndUrl String

The encoded token for collector registration.

name String

Display name of the token. This must be unique across all of the tokens.

status String

Status of the token. Valid values:

type String

Type of the token. Valid value:

version Number

Import

Tokens can be imported using the name, e.g.hcl

 $ pulumi import sumologic:index/token:Token test id

[1]https://help.sumologic.com/Manage/Security/Installation_Tokens

Package Details

Repository
Sumo Logic pulumi/pulumi-sumologic
License
Apache-2.0
Notes

This Pulumi package is based on the sumologic Terraform Provider.