published on Tuesday, Jul 14, 2026 by Descope
published on Tuesday, Jul 14, 2026 by Descope
Create AccessKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessKey(name: string, args: AccessKeyArgs, opts?: CustomResourceOptions);@overload
def AccessKey(resource_name: str,
args: AccessKeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccessKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
bound_user_id: Optional[str] = None,
custom_attributes: Optional[str] = None,
custom_claims: Optional[str] = None,
description: Optional[str] = None,
expire_time: Optional[int] = None,
name: Optional[str] = None,
permitted_ips: Optional[Sequence[str]] = None,
roles: Optional[Sequence[str]] = None,
status: Optional[str] = None,
tenants: Optional[Sequence[AccessKeyTenantArgs]] = None)func NewAccessKey(ctx *Context, name string, args AccessKeyArgs, opts ...ResourceOption) (*AccessKey, error)public AccessKey(string name, AccessKeyArgs args, CustomResourceOptions? opts = null)
public AccessKey(String name, AccessKeyArgs args)
public AccessKey(String name, AccessKeyArgs args, CustomResourceOptions options)
type: descope:AccessKey
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "descope_access_key" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args AccessKeyArgs
- 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 AccessKeyArgs
- 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 AccessKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessKeyArgs
- 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 accessKeyResource = new Descope.AccessKey("accessKeyResource", new()
{
ProjectId = "string",
BoundUserId = "string",
CustomAttributes = "string",
CustomClaims = "string",
Description = "string",
ExpireTime = 0,
Name = "string",
PermittedIps = new[]
{
"string",
},
Roles = new[]
{
"string",
},
Status = "string",
Tenants = new[]
{
new Descope.Inputs.AccessKeyTenantArgs
{
TenantId = "string",
Roles = new[]
{
"string",
},
},
},
});
example, err := descope.NewAccessKey(ctx, "accessKeyResource", &descope.AccessKeyArgs{
ProjectId: pulumi.String("string"),
BoundUserId: pulumi.String("string"),
CustomAttributes: pulumi.String("string"),
CustomClaims: pulumi.String("string"),
Description: pulumi.String("string"),
ExpireTime: pulumi.Int(0),
Name: pulumi.String("string"),
PermittedIps: pulumi.StringArray{
pulumi.String("string"),
},
Roles: pulumi.StringArray{
pulumi.String("string"),
},
Status: pulumi.String("string"),
Tenants: descope.AccessKeyTenantArray{
&descope.AccessKeyTenantArgs{
TenantId: pulumi.String("string"),
Roles: pulumi.StringArray{
pulumi.String("string"),
},
},
},
})
resource "descope_access_key" "accessKeyResource" {
lifecycle {
create_before_destroy = true
}
project_id = "string"
bound_user_id = "string"
custom_attributes = "string"
custom_claims = "string"
description = "string"
expire_time = 0
name = "string"
permitted_ips = ["string"]
roles = ["string"]
status = "string"
tenants {
tenant_id = "string"
roles = ["string"]
}
}
var accessKeyResource = new AccessKey("accessKeyResource", AccessKeyArgs.builder()
.projectId("string")
.boundUserId("string")
.customAttributes("string")
.customClaims("string")
.description("string")
.expireTime(0)
.name("string")
.permittedIps("string")
.roles("string")
.status("string")
.tenants(AccessKeyTenantArgs.builder()
.tenantId("string")
.roles("string")
.build())
.build());
access_key_resource = descope.AccessKey("accessKeyResource",
project_id="string",
bound_user_id="string",
custom_attributes="string",
custom_claims="string",
description="string",
expire_time=0,
name="string",
permitted_ips=["string"],
roles=["string"],
status="string",
tenants=[{
"tenant_id": "string",
"roles": ["string"],
}])
const accessKeyResource = new descope.AccessKey("accessKeyResource", {
projectId: "string",
boundUserId: "string",
customAttributes: "string",
customClaims: "string",
description: "string",
expireTime: 0,
name: "string",
permittedIps: ["string"],
roles: ["string"],
status: "string",
tenants: [{
tenantId: "string",
roles: ["string"],
}],
});
type: descope:AccessKey
properties:
boundUserId: string
customAttributes: string
customClaims: string
description: string
expireTime: 0
name: string
permittedIps:
- string
projectId: string
roles:
- string
status: string
tenants:
- roles:
- string
tenantId: string
AccessKey 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 AccessKey resource accepts the following input properties:
- Project
Id string - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- Bound
User stringId - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- Custom
Attributes string - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- Custom
Claims string - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- Description string
- A description for the access key.
- Expire
Time int - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- Name string
- A name for the access key.
- Permitted
Ips List<string> - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- Roles List<string>
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - Status string
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - Tenants
List<Descope.
Access Key Tenant> - A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
- Project
Id string - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- Bound
User stringId - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- Custom
Attributes string - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- Custom
Claims string - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- Description string
- A description for the access key.
- Expire
Time int - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- Name string
- A name for the access key.
- Permitted
Ips []string - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- Roles []string
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - Status string
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - Tenants
[]Access
Key Tenant Args - A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
- project_
id string - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- bound_
user_ stringid - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- custom_
attributes string - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- custom_
claims string - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- description string
- A description for the access key.
- expire_
time number - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- name string
- A name for the access key.
- permitted_
ips list(string) - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- roles list(string)
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - status string
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - tenants list(object)
- A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
- project
Id String - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- bound
User StringId - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- custom
Attributes String - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- custom
Claims String - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- description String
- A description for the access key.
- expire
Time Integer - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- name String
- A name for the access key.
- permitted
Ips List<String> - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- roles List<String>
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - status String
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - tenants
List<Access
Key Tenant> - A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
- project
Id string - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- bound
User stringId - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- custom
Attributes string - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- custom
Claims string - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- description string
- A description for the access key.
- expire
Time number - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- name string
- A name for the access key.
- permitted
Ips string[] - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- roles string[]
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - status string
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - tenants
Access
Key Tenant[] - A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
- project_
id str - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- bound_
user_ strid - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- custom_
attributes str - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- custom_
claims str - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- description str
- A description for the access key.
- expire_
time int - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- name str
- A name for the access key.
- permitted_
ips Sequence[str] - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- roles Sequence[str]
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - status str
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - tenants
Sequence[Access
Key Tenant Args] - A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
- project
Id String - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- bound
User StringId - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- custom
Attributes String - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- custom
Claims String - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- description String
- A description for the access key.
- expire
Time Number - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- name String
- A name for the access key.
- permitted
Ips List<String> - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- roles List<String>
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - status String
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - tenants List<Property Map>
- A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessKey resource produces the following output properties:
- Cleartext string
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- Client
Id string - Created
By string - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- Created
Time int - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- Id string
- The provider-assigned unique ID for this managed resource.
- Cleartext string
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- Client
Id string - Created
By string - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- Created
Time int - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- Id string
- The provider-assigned unique ID for this managed resource.
- cleartext string
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- client_
id string - created_
by string - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- created_
time number - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- id string
- The provider-assigned unique ID for this managed resource.
- cleartext String
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- client
Id String - created
By String - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- created
Time Integer - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- id String
- The provider-assigned unique ID for this managed resource.
- cleartext string
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- client
Id string - created
By string - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- created
Time number - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- id string
- The provider-assigned unique ID for this managed resource.
- cleartext str
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- client_
id str - created_
by str - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- created_
time int - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- id str
- The provider-assigned unique ID for this managed resource.
- cleartext String
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- client
Id String - created
By String - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- created
Time Number - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AccessKey Resource
Get an existing AccessKey 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?: AccessKeyState, opts?: CustomResourceOptions): AccessKey@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bound_user_id: Optional[str] = None,
cleartext: Optional[str] = None,
client_id: Optional[str] = None,
created_by: Optional[str] = None,
created_time: Optional[int] = None,
custom_attributes: Optional[str] = None,
custom_claims: Optional[str] = None,
description: Optional[str] = None,
expire_time: Optional[int] = None,
name: Optional[str] = None,
permitted_ips: Optional[Sequence[str]] = None,
project_id: Optional[str] = None,
roles: Optional[Sequence[str]] = None,
status: Optional[str] = None,
tenants: Optional[Sequence[AccessKeyTenantArgs]] = None) -> AccessKeyfunc GetAccessKey(ctx *Context, name string, id IDInput, state *AccessKeyState, opts ...ResourceOption) (*AccessKey, error)public static AccessKey Get(string name, Input<string> id, AccessKeyState? state, CustomResourceOptions? opts = null)public static AccessKey get(String name, Output<String> id, AccessKeyState state, CustomResourceOptions options)resources: _: type: descope:AccessKey get: id: ${id}import {
to = descope_access_key.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.
- Bound
User stringId - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- Cleartext string
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- Client
Id string - Created
By string - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- Created
Time int - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- Custom
Attributes string - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- Custom
Claims string - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- Description string
- A description for the access key.
- Expire
Time int - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- Name string
- A name for the access key.
- Permitted
Ips List<string> - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- Project
Id string - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- Roles List<string>
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - Status string
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - Tenants
List<Descope.
Access Key Tenant> - A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
- Bound
User stringId - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- Cleartext string
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- Client
Id string - Created
By string - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- Created
Time int - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- Custom
Attributes string - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- Custom
Claims string - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- Description string
- A description for the access key.
- Expire
Time int - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- Name string
- A name for the access key.
- Permitted
Ips []string - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- Project
Id string - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- Roles []string
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - Status string
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - Tenants
[]Access
Key Tenant Args - A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
- bound_
user_ stringid - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- cleartext string
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- client_
id string - created_
by string - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- created_
time number - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- custom_
attributes string - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- custom_
claims string - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- description string
- A description for the access key.
- expire_
time number - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- name string
- A name for the access key.
- permitted_
ips list(string) - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- project_
id string - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- roles list(string)
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - status string
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - tenants list(object)
- A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
- bound
User StringId - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- cleartext String
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- client
Id String - created
By String - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- created
Time Integer - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- custom
Attributes String - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- custom
Claims String - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- description String
- A description for the access key.
- expire
Time Integer - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- name String
- A name for the access key.
- permitted
Ips List<String> - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- project
Id String - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- roles List<String>
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - status String
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - tenants
List<Access
Key Tenant> - A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
- bound
User stringId - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- cleartext string
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- client
Id string - created
By string - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- created
Time number - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- custom
Attributes string - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- custom
Claims string - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- description string
- A description for the access key.
- expire
Time number - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- name string
- A name for the access key.
- permitted
Ips string[] - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- project
Id string - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- roles string[]
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - status string
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - tenants
Access
Key Tenant[] - A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
- bound_
user_ strid - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- cleartext str
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- client_
id str - created_
by str - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- created_
time int - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- custom_
attributes str - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- custom_
claims str - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- description str
- A description for the access key.
- expire_
time int - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- name str
- A name for the access key.
- permitted_
ips Sequence[str] - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- project_
id str - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- roles Sequence[str]
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - status str
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - tenants
Sequence[Access
Key Tenant Args] - A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
- bound
User StringId - The ID of a user to bind this access key to. When the key is exchanged for a session JWT, the session acts on behalf of the bound user. Changing this value after creation will require the access key to be replaced.
- cleartext String
- The plaintext value of the access key. This is only available after the key is created and cannot be retrieved later. Store this value securely as it is required to exchange the key for a JWT.
- client
Id String - created
By String - The ID of the user or management key that created the access key. This value is set by the server and is read-only.
- created
Time Number - The time the access key was created, as a Unix timestamp. This value is set by the server and is read-only.
- custom
Attributes String - A JSON-encoded object of custom attribute values for the access key. The attributes must be defined in the project's access key custom attribute schema.
- custom
Claims String - A JSON-encoded object of custom claims to add to the JWT created when the access key is exchanged.
- description String
- A description for the access key.
- expire
Time Number - The expiration time of the access key as a Unix timestamp. If not set, the key will not expire. Changing this value after creation will require the access key to be replaced.
- name String
- A name for the access key.
- permitted
Ips List<String> - A list of IP addresses or CIDR ranges that are allowed to use this access key. If not set, the key can be used from any IP address.
- project
Id String - The ID of the Descope project this access key belongs to. Changing this value will require the resource to be deleted and recreated.
- roles List<String>
- A list of project-level roles to grant to the access key. Cannot be used together with
tenants. - status String
- The status of the access key. Must be either
activeorinactive. A new access key cannot be created with aninactivestatus. - tenants List<Property Map>
- A list of tenants to associate with the access key, each with its own set of roles. Cannot be used together with
roles.
Supporting Types
AccessKeyTenant, AccessKeyTenantArgs
Package Details
- Repository
- descope descope/pulumi-descope
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
descopeTerraform Provider.
published on Tuesday, Jul 14, 2026 by Descope