pydo.security.create_secret()
Generated on 7 Jul 2026
from pydo version
v0.39.0
Usage
client.security.create_secret(
body={
"name": "my-database-password",
"region": "nyc3",
"values": {...},
},
)Description
To create a secret, send a POST request to /v2/security/secrets.
Parameters
namestring requiredExample:
my-database-passwordThe name of the secret to create.
regionstring requiredExample:
nyc3The region where the secret will be stored.
valuesobject requiredExample:
{'password': 's3cr3t'}Key-value pairs to store in the secret.
Request Sample
Response Example
More Information
See /v2/security/secrets in the API reference for additional detail on responses, headers, parameters, and more.