Skip to main content
client.dynamic_secrets.update() changes a dynamic secret’s name, TTLs, provider settings, or metadata. The settings that you don’t pass stay as they are.

Parameters

str
required
The current 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
A new name for the dynamic secret.
str
The new default TTL of leases, such as 2h.
str
The new max TTL of leases, such as 48h.
Dict[str, Any]
The provider settings to change, such as {"port": 5433}.
List[Dict[str, str]]
The new metadata, each a dictionary with key and value.
str
The template for the usernames that Infisical creates, such as dev-{{identity.name}}.

Returns

DynamicSecret
The updated dynamic secret.