curl --request POST \
--url https://us.infisical.com/api/v1/dynamic-secrets/leases \
--header 'Content-Type: application/json' \
--data '
{
"dynamicSecretName": "<string>",
"projectSlug": "<string>",
"environmentSlug": "<string>",
"ttl": "<string>",
"path": "/",
"config": "<unknown>"
}
'{
"lease": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"externalEntityId": "<string>",
"expireAt": "2023-11-07T05:31:56Z",
"dynamicSecretId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"status": "<string>",
"statusDetails": "<string>",
"config": "<unknown>"
},
"dynamicSecret": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": 123,
"type": "<string>",
"defaultTTL": "<string>",
"folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"maxTTL": "<string>",
"status": "<string>",
"statusDetails": "<string>",
"projectGatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"gatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"usernameTemplate": "<string>",
"gatewayV2Id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": [
{
"key": "<string>",
"value": ""
}
]
},
"data": "<unknown>"
}curl --request POST \
--url https://us.infisical.com/api/v1/dynamic-secrets/leases \
--header 'Content-Type: application/json' \
--data '
{
"dynamicSecretName": "<string>",
"projectSlug": "<string>",
"environmentSlug": "<string>",
"ttl": "<string>",
"path": "/",
"config": "<unknown>"
}
'{
"lease": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"version": 123,
"externalEntityId": "<string>",
"expireAt": "2023-11-07T05:31:56Z",
"dynamicSecretId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"status": "<string>",
"statusDetails": "<string>",
"config": "<unknown>"
},
"dynamicSecret": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"version": 123,
"type": "<string>",
"defaultTTL": "<string>",
"folderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"maxTTL": "<string>",
"status": "<string>",
"statusDetails": "<string>",
"projectGatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"gatewayId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"usernameTemplate": "<string>",
"gatewayV2Id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": [
{
"key": "<string>",
"value": ""
}
]
},
"data": "<unknown>"
}The name of the dynamic secret.
1The slug of the project of the dynamic secret in.
1The slug of the environment of the dynamic secret in.
1The lease lifetime TTL. If not provided the default TTL of dynamic secret will be used.
The path of the dynamic secret in.
Default Response
Show child attributes
Show child attributes
Was this page helpful?