Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

docs(go-sdk): document GetById lease return value

Jake Hulberg6882b6f722ab
diff --git a/docs/sdks/languages/go.mdx b/docs/sdks/languages/go.mdx
index e3accea7b1..bbf62bae4d 100644
--- a/docs/sdks/languages/go.mdx
+++ b/docs/sdks/languages/go.mdx
@@ -1072,6 +1072,13 @@ lease, err := client.DynamicSecrets().Leases().GetById(infisical.GetDynamicSecre
</Expandable>
</ParamField>
+#### Return
+
+<ParamField query="Return" type="(DynamicSecretLeaseWithDynamicSecret, error)">
+ The lease, with the associated dynamic secret nested in its `DynamicSecret`
+ field, and an error if the request failed.
+</ParamField>
+
### Renew Lease
`client.DynamicSecrets().Leases().RenewById(options)`