Dynatrace v0.10.0 published on Friday, Jun 7, 2024 by Pulumiverse
dynatrace.AgToken
Explore with Pulumi AI
Create AgToken Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AgToken(name: string, args: AgTokenArgs, opts?: CustomResourceOptions);
@overload
def AgToken(resource_name: str,
args: AgTokenArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AgToken(resource_name: str,
opts: Optional[ResourceOptions] = None,
type: Optional[str] = None,
expiration_date: Optional[str] = None,
name: Optional[str] = None,
seed: Optional[bool] = None)
func NewAgToken(ctx *Context, name string, args AgTokenArgs, opts ...ResourceOption) (*AgToken, error)
public AgToken(string name, AgTokenArgs args, CustomResourceOptions? opts = null)
public AgToken(String name, AgTokenArgs args)
public AgToken(String name, AgTokenArgs args, CustomResourceOptions options)
type: dynatrace:AgToken
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 AgTokenArgs
- 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 AgTokenArgs
- 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 AgTokenArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AgTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AgTokenArgs
- 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 agTokenResource = new Dynatrace.AgToken("agTokenResource", new()
{
Type = "string",
ExpirationDate = "string",
Name = "string",
Seed = false,
});
example, err := dynatrace.NewAgToken(ctx, "agTokenResource", &dynatrace.AgTokenArgs{
Type: pulumi.String("string"),
ExpirationDate: pulumi.String("string"),
Name: pulumi.String("string"),
Seed: pulumi.Bool(false),
})
var agTokenResource = new AgToken("agTokenResource", AgTokenArgs.builder()
.type("string")
.expirationDate("string")
.name("string")
.seed(false)
.build());
ag_token_resource = dynatrace.AgToken("agTokenResource",
type="string",
expiration_date="string",
name="string",
seed=False)
const agTokenResource = new dynatrace.AgToken("agTokenResource", {
type: "string",
expirationDate: "string",
name: "string",
seed: false,
});
type: dynatrace:AgToken
properties:
expirationDate: string
name: string
seed: false
type: string
AgToken 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 AgToken resource accepts the following input properties:
- Type string
- The type of the ActiveGate for which the token is valid. Possible values are
ENVIRONMENT
orCLUSTER
- Expiration
Date string - The expiration date of the token. You can use one of the following formats: * Timestamp in UTC milliseconds. * Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional. * Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are: - m: minutes - h: hours - d: days - w: weeks - M: months - y: years
- Name string
- The name of the token.
- Seed bool
- The token is a seed token (true) or an individual token (false). We recommend the individual token option (false)
- Type string
- The type of the ActiveGate for which the token is valid. Possible values are
ENVIRONMENT
orCLUSTER
- Expiration
Date string - The expiration date of the token. You can use one of the following formats: * Timestamp in UTC milliseconds. * Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional. * Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are: - m: minutes - h: hours - d: days - w: weeks - M: months - y: years
- Name string
- The name of the token.
- Seed bool
- The token is a seed token (true) or an individual token (false). We recommend the individual token option (false)
- type String
- The type of the ActiveGate for which the token is valid. Possible values are
ENVIRONMENT
orCLUSTER
- expiration
Date String - The expiration date of the token. You can use one of the following formats: * Timestamp in UTC milliseconds. * Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional. * Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are: - m: minutes - h: hours - d: days - w: weeks - M: months - y: years
- name String
- The name of the token.
- seed Boolean
- The token is a seed token (true) or an individual token (false). We recommend the individual token option (false)
- type string
- The type of the ActiveGate for which the token is valid. Possible values are
ENVIRONMENT
orCLUSTER
- expiration
Date string - The expiration date of the token. You can use one of the following formats: * Timestamp in UTC milliseconds. * Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional. * Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are: - m: minutes - h: hours - d: days - w: weeks - M: months - y: years
- name string
- The name of the token.
- seed boolean
- The token is a seed token (true) or an individual token (false). We recommend the individual token option (false)
- type str
- The type of the ActiveGate for which the token is valid. Possible values are
ENVIRONMENT
orCLUSTER
- expiration_
date str - The expiration date of the token. You can use one of the following formats: * Timestamp in UTC milliseconds. * Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional. * Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are: - m: minutes - h: hours - d: days - w: weeks - M: months - y: years
- name str
- The name of the token.
- seed bool
- The token is a seed token (true) or an individual token (false). We recommend the individual token option (false)
- type String
- The type of the ActiveGate for which the token is valid. Possible values are
ENVIRONMENT
orCLUSTER
- expiration
Date String - The expiration date of the token. You can use one of the following formats: * Timestamp in UTC milliseconds. * Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional. * Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are: - m: minutes - h: hours - d: days - w: weeks - M: months - y: years
- name String
- The name of the token.
- seed Boolean
- The token is a seed token (true) or an individual token (false). We recommend the individual token option (false)
Outputs
All input properties are implicitly available as output properties. Additionally, the AgToken resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Tenant
Token string - The tenant token. This information isn't directly related to the Active Gate Token. It's included for convenience. You
require the permission
InstallerDownload
for that attribute to get populated - Token string
- The secret of the token.
- Id string
- The provider-assigned unique ID for this managed resource.
- Tenant
Token string - The tenant token. This information isn't directly related to the Active Gate Token. It's included for convenience. You
require the permission
InstallerDownload
for that attribute to get populated - Token string
- The secret of the token.
- id String
- The provider-assigned unique ID for this managed resource.
- tenant
Token String - The tenant token. This information isn't directly related to the Active Gate Token. It's included for convenience. You
require the permission
InstallerDownload
for that attribute to get populated - token String
- The secret of the token.
- id string
- The provider-assigned unique ID for this managed resource.
- tenant
Token string - The tenant token. This information isn't directly related to the Active Gate Token. It's included for convenience. You
require the permission
InstallerDownload
for that attribute to get populated - token string
- The secret of the token.
- id str
- The provider-assigned unique ID for this managed resource.
- tenant_
token str - The tenant token. This information isn't directly related to the Active Gate Token. It's included for convenience. You
require the permission
InstallerDownload
for that attribute to get populated - token str
- The secret of the token.
- id String
- The provider-assigned unique ID for this managed resource.
- tenant
Token String - The tenant token. This information isn't directly related to the Active Gate Token. It's included for convenience. You
require the permission
InstallerDownload
for that attribute to get populated - token String
- The secret of the token.
Look up Existing AgToken Resource
Get an existing AgToken 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?: AgTokenState, opts?: CustomResourceOptions): AgToken
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
expiration_date: Optional[str] = None,
name: Optional[str] = None,
seed: Optional[bool] = None,
tenant_token: Optional[str] = None,
token: Optional[str] = None,
type: Optional[str] = None) -> AgToken
func GetAgToken(ctx *Context, name string, id IDInput, state *AgTokenState, opts ...ResourceOption) (*AgToken, error)
public static AgToken Get(string name, Input<string> id, AgTokenState? state, CustomResourceOptions? opts = null)
public static AgToken get(String name, Output<String> id, AgTokenState 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.
- Expiration
Date string - The expiration date of the token. You can use one of the following formats: * Timestamp in UTC milliseconds. * Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional. * Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are: - m: minutes - h: hours - d: days - w: weeks - M: months - y: years
- Name string
- The name of the token.
- Seed bool
- The token is a seed token (true) or an individual token (false). We recommend the individual token option (false)
- Tenant
Token string - The tenant token. This information isn't directly related to the Active Gate Token. It's included for convenience. You
require the permission
InstallerDownload
for that attribute to get populated - Token string
- The secret of the token.
- Type string
- The type of the ActiveGate for which the token is valid. Possible values are
ENVIRONMENT
orCLUSTER
- Expiration
Date string - The expiration date of the token. You can use one of the following formats: * Timestamp in UTC milliseconds. * Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional. * Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are: - m: minutes - h: hours - d: days - w: weeks - M: months - y: years
- Name string
- The name of the token.
- Seed bool
- The token is a seed token (true) or an individual token (false). We recommend the individual token option (false)
- Tenant
Token string - The tenant token. This information isn't directly related to the Active Gate Token. It's included for convenience. You
require the permission
InstallerDownload
for that attribute to get populated - Token string
- The secret of the token.
- Type string
- The type of the ActiveGate for which the token is valid. Possible values are
ENVIRONMENT
orCLUSTER
- expiration
Date String - The expiration date of the token. You can use one of the following formats: * Timestamp in UTC milliseconds. * Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional. * Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are: - m: minutes - h: hours - d: days - w: weeks - M: months - y: years
- name String
- The name of the token.
- seed Boolean
- The token is a seed token (true) or an individual token (false). We recommend the individual token option (false)
- tenant
Token String - The tenant token. This information isn't directly related to the Active Gate Token. It's included for convenience. You
require the permission
InstallerDownload
for that attribute to get populated - token String
- The secret of the token.
- type String
- The type of the ActiveGate for which the token is valid. Possible values are
ENVIRONMENT
orCLUSTER
- expiration
Date string - The expiration date of the token. You can use one of the following formats: * Timestamp in UTC milliseconds. * Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional. * Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are: - m: minutes - h: hours - d: days - w: weeks - M: months - y: years
- name string
- The name of the token.
- seed boolean
- The token is a seed token (true) or an individual token (false). We recommend the individual token option (false)
- tenant
Token string - The tenant token. This information isn't directly related to the Active Gate Token. It's included for convenience. You
require the permission
InstallerDownload
for that attribute to get populated - token string
- The secret of the token.
- type string
- The type of the ActiveGate for which the token is valid. Possible values are
ENVIRONMENT
orCLUSTER
- expiration_
date str - The expiration date of the token. You can use one of the following formats: * Timestamp in UTC milliseconds. * Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional. * Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are: - m: minutes - h: hours - d: days - w: weeks - M: months - y: years
- name str
- The name of the token.
- seed bool
- The token is a seed token (true) or an individual token (false). We recommend the individual token option (false)
- tenant_
token str - The tenant token. This information isn't directly related to the Active Gate Token. It's included for convenience. You
require the permission
InstallerDownload
for that attribute to get populated - token str
- The secret of the token.
- type str
- The type of the ActiveGate for which the token is valid. Possible values are
ENVIRONMENT
orCLUSTER
- expiration
Date String - The expiration date of the token. You can use one of the following formats: * Timestamp in UTC milliseconds. * Human-readable format of 2021-01-25T05:57:01.123+01:00. If no time zone is specified, UTC is used. You can use a space character instead of the T. Seconds and fractions of a second are optional. * Relative timeframe, back from now. The format is now-NU/A, where N is the amount of time, U is the unit of time, and A is an alignment. The alignment rounds all the smaller values to the nearest zero in the past. For example, now-1y/w is one year back, aligned by a week. You can also specify relative timeframe without an alignment: now-NU. Supported time units for the relative timeframe are: - m: minutes - h: hours - d: days - w: weeks - M: months - y: years
- name String
- The name of the token.
- seed Boolean
- The token is a seed token (true) or an individual token (false). We recommend the individual token option (false)
- tenant
Token String - The tenant token. This information isn't directly related to the Active Gate Token. It's included for convenience. You
require the permission
InstallerDownload
for that attribute to get populated - token String
- The secret of the token.
- type String
- The type of the ActiveGate for which the token is valid. Possible values are
ENVIRONMENT
orCLUSTER
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.