Skip to main content
client.dynamic_secrets.leases.renew() keeps a lease’s credentials valid for longer. Renew the lease before it expires, because an expired lease’s credentials are already revoked.

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.
str
How much time to add to the lease’s current expiry time, such as 1h. Defaults to the dynamic secret’s default TTL. A renewal fails if it would make the lease last longer than the dynamic secret’s max TTL, counted from when the lease was created.

Returns

DynamicSecretLease
The renewed lease, with its new expiry time in expireAt.