Skip to main content
client.dynamic_secrets.leases.create() leases credentials from a dynamic secret. Each lease gives your application its own credentials, which Infisical revokes when the lease expires or when you revoke the lease. To find the project slug, open the project, go to Administration > Settings, and copy the Project slug.

Parameters

str
required
The name of the dynamic secret.
str
required
The slug of the project.
str
required
The slug of the environment, such as dev.
str
default:"/"
The path of the folder that the dynamic secret is in.
str
How long the credentials stay valid, such as 30m or 2h. Defaults to the dynamic secret’s default TTL, and can’t be longer than its max TTL.

Returns

CreateLeaseResponse