published on Tuesday, Sep 15, 2026 by terraform-lxd
published on Tuesday, Sep 15, 2026 by terraform-lxd
Create AuthIdentityToken Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuthIdentityToken(name: string, args: AuthIdentityTokenArgs, opts?: CustomResourceOptions);@overload
def AuthIdentityToken(resource_name: str,
args: AuthIdentityTokenArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AuthIdentityToken(resource_name: str,
opts: Optional[ResourceOptions] = None,
identity: Optional[str] = None,
expiry: Optional[str] = None,
remote: Optional[str] = None)func NewAuthIdentityToken(ctx *Context, name string, args AuthIdentityTokenArgs, opts ...ResourceOption) (*AuthIdentityToken, error)public AuthIdentityToken(string name, AuthIdentityTokenArgs args, CustomResourceOptions? opts = null)
public AuthIdentityToken(String name, AuthIdentityTokenArgs args)
public AuthIdentityToken(String name, AuthIdentityTokenArgs args, CustomResourceOptions options)
type: lxd:AuthIdentityToken
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "lxd_auth_identity_token" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AuthIdentityTokenArgs
- 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 AuthIdentityTokenArgs
- 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 AuthIdentityTokenArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthIdentityTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuthIdentityTokenArgs
- 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 authIdentityTokenResource = new Lxd.AuthIdentityToken("authIdentityTokenResource", new()
{
Identity = "string",
Expiry = "string",
Remote = "string",
});
example, err := lxd.NewAuthIdentityToken(ctx, "authIdentityTokenResource", &lxd.AuthIdentityTokenArgs{
Identity: pulumi.String("string"),
Expiry: pulumi.String("string"),
Remote: pulumi.String("string"),
})
resource "lxd_auth_identity_token" "authIdentityTokenResource" {
lifecycle {
create_before_destroy = true
}
identity = "string"
expiry = "string"
remote = "string"
}
var authIdentityTokenResource = new AuthIdentityToken("authIdentityTokenResource", AuthIdentityTokenArgs.builder()
.identity("string")
.expiry("string")
.remote("string")
.build());
auth_identity_token_resource = lxd.AuthIdentityToken("authIdentityTokenResource",
identity="string",
expiry="string",
remote="string")
const authIdentityTokenResource = new lxd.AuthIdentityToken("authIdentityTokenResource", {
identity: "string",
expiry: "string",
remote: "string",
});
type: lxd:AuthIdentityToken
properties:
expiry: string
identity: string
remote: string
AuthIdentityToken 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 AuthIdentityToken resource accepts the following input properties:
- Identity string
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - Expiry string
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - Remote string
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
- Identity string
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - Expiry string
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - Remote string
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
- identity string
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - expiry string
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - remote string
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
- identity String
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - expiry String
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - remote String
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
- identity string
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - expiry string
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - remote string
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
- identity str
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - expiry str
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - remote str
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
- identity String
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - expiry String
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - remote String
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
Outputs
All input properties are implicitly available as output properties. Additionally, the AuthIdentityToken resource produces the following output properties:
- expires_
at string - Time at which the token expires, in RFC3339 format.
- id string
- The provider-assigned unique ID for this managed resource.
- token string
- The issued token.
- expires_
at str - Time at which the token expires, in RFC3339 format.
- id str
- The provider-assigned unique ID for this managed resource.
- token str
- The issued token.
Look up Existing AuthIdentityToken Resource
Get an existing AuthIdentityToken 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?: AuthIdentityTokenState, opts?: CustomResourceOptions): AuthIdentityToken@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
expires_at: Optional[str] = None,
expiry: Optional[str] = None,
identity: Optional[str] = None,
remote: Optional[str] = None,
token: Optional[str] = None) -> AuthIdentityTokenfunc GetAuthIdentityToken(ctx *Context, name string, id IDInput, state *AuthIdentityTokenState, opts ...ResourceOption) (*AuthIdentityToken, error)public static AuthIdentityToken Get(string name, Input<string> id, AuthIdentityTokenState? state, CustomResourceOptions? opts = null)public static AuthIdentityToken get(String name, Output<String> id, AuthIdentityTokenState state, CustomResourceOptions options)resources: _: type: lxd:AuthIdentityToken get: id: ${id}import {
to = lxd_auth_identity_token.example
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.
- Expires
At string - Time at which the token expires, in RFC3339 format.
- Expiry string
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - Identity string
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - Remote string
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
- Token string
- The issued token.
- Expires
At string - Time at which the token expires, in RFC3339 format.
- Expiry string
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - Identity string
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - Remote string
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
- Token string
- The issued token.
- expires_
at string - Time at which the token expires, in RFC3339 format.
- expiry string
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - identity string
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - remote string
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
- token string
- The issued token.
- expires
At String - Time at which the token expires, in RFC3339 format.
- expiry String
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - identity String
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - remote String
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
- token String
- The issued token.
- expires
At string - Time at which the token expires, in RFC3339 format.
- expiry string
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - identity string
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - remote string
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
- token string
- The issued token.
- expires_
at str - Time at which the token expires, in RFC3339 format.
- expiry str
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - identity str
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - remote str
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
- token str
- The issued token.
- expires
At String - Time at which the token expires, in RFC3339 format.
- expiry String
- Optional - Token expiry as a space separated list of durations in
the form
(\d)+(S|M|H|d|w|m|y), for example30dor1H 30M. If not provided, the server's default expiry is used. - identity String
- Required - Name of the
bearerordevlxdidentity for which the token is issued. - remote String
- Optional - The remote in which the token is issued. If not provided, the provider's default remote will be used.
- token String
- The issued token.
Package Details
- Repository
- lxd terraform-lxd/terraform-provider-lxd
- License
- Notes
- This Pulumi package is based on the
lxdTerraform Provider.
published on Tuesday, Sep 15, 2026 by terraform-lxd