pydo.security.get_secret()

Generated on 6 Nov 2026 from pydo version v0.45.0

Usage

client.security.get_secret(secret="my-database-password", region="nyc3")
Returns JSON Raises HttpResponseError

Description

To retrieve a secret and its values, send a GET request to /v2/security/secrets/{secret}.

region is required.

Parameters

secret string required

The name of the secret.

region string required

The region where the secret is stored.

Response Example

Show Response Example
{
  "secret": "my-database-password",
  "region": "nyc3",
  "version": 1,
  "values": {
    "password": "s3cr3t"
  },
  "created_at": "2025-12-04T00:00:00Z",
  "updated_at": "2025-12-04T00:00:00Z",
  "delete_requested_at": "2025-12-04T00:00:00Z"
}

More Information

See /v2/security/secrets/{secret} in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.