curl --request POST \
--url https://us.infisical.com/api/v1/dynamic-secrets \
--header 'Content-Type: application/json' \
--data '
{
"projectSlug": "<string>",
"provider": {
"type": "sql-database",
"inputs": {
"client": "postgres",
"host": "<string>",
"port": 123,
"database": "<string>",
"username": "<string>",
"password": "<string>",
"creationStatement": "<string>",
"revocationStatement": "<string>",
"passwordRequirements": {
"length": 125.5,
"required": {
"lowercase": 1,
"uppercase": 1,
"digits": 1,
"symbols": 1
},
"allowedSymbols": "<string>"
},
"renewStatement": "<string>",
"ca": "<string>",
"sslEnabled": true,
"gatewayId": "<string>"
}
},
"defaultTTL": "<string>",
"environmentSlug": "<string>",
"name": "<string>",
"maxTTL": "<string>",
"path": "/",
"metadata": [
{
"key": "<string>",
"value": ""
}
],
"usernameTemplate": "<string>"
}
'{
"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": ""
}
],
"inputs": "<unknown>"
}
}curl --request POST \
--url https://us.infisical.com/api/v1/dynamic-secrets \
--header 'Content-Type: application/json' \
--data '
{
"projectSlug": "<string>",
"provider": {
"type": "sql-database",
"inputs": {
"client": "postgres",
"host": "<string>",
"port": 123,
"database": "<string>",
"username": "<string>",
"password": "<string>",
"creationStatement": "<string>",
"revocationStatement": "<string>",
"passwordRequirements": {
"length": 125.5,
"required": {
"lowercase": 1,
"uppercase": 1,
"digits": 1,
"symbols": 1
},
"allowedSymbols": "<string>"
},
"renewStatement": "<string>",
"ca": "<string>",
"sslEnabled": true,
"gatewayId": "<string>"
}
},
"defaultTTL": "<string>",
"environmentSlug": "<string>",
"name": "<string>",
"maxTTL": "<string>",
"path": "/",
"metadata": [
{
"key": "<string>",
"value": ""
}
],
"usernameTemplate": "<string>"
}
'{
"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": ""
}
],
"inputs": "<unknown>"
}
}The slug of the project to create dynamic secret in.
1The type of dynamic secret.
Show child attributes
sql-database Show child attributes
postgres, mysql2, oracledb, mssql, sap-ase, vertica Password generation requirements
Show child attributes
1 <= x <= 250Show child attributes
x >= 0x >= 0x >= 0x >= 0The default TTL that will be applied for all the leases.
The slug of the environment to create the dynamic secret in.
1The name of the dynamic secret.
1 - 64The maximum limit a TTL can be leases or renewed.
The path to create the dynamic secret in.
255Default Response
Show child attributes
Was this page helpful?