Skip to main content
client.dynamic_secrets.leases.get() fetches a lease, such as to check when it expires.

Parameters

str
required
The ID of the lease.
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.

Returns

DynamicSecretLease
The lease, with its expiry time in expireAt and its dynamic secret in dynamicSecret. The lease doesn’t include the credentials.