get/vault/api/v1/metadata/secrets/{name}

Get a secret's metadata.

namestring

required

Secret name

Responses

Response examples

Successful response, returns a secret without secret data

{
  "name": "string",
  "data": {},
  "read_roles": [
    {
      "id": "string",
      "name": "string",
      "deleted": true
    }
  ],
  "write_roles": [
    {
      "id": "string",
      "name": "string",
      "deleted": true
    }
  ],
  "author": "string",
  "path": "string",
  "updated_by": "string",
  "created": "string",
  "updated": "string"
}
get/vault/api/v1/user/{user_id}/metadata/secrets/{name}

Get a secret's metadata.

namestring

required

Secret name

user_idstring

required

User ID of the user who owns the secret

Responses

Response examples

Successful response, returns a secret without secret data

{
  "name": "string",
  "data": {},
  "read_roles": [
    {
      "id": "string",
      "name": "string",
      "deleted": true
    }
  ],
  "write_roles": [
    {
      "id": "string",
      "name": "string",
      "deleted": true
    }
  ],
  "author": "string",
  "path": "string",
  "updated_by": "string",
  "created": "string",
  "updated": "string"
}

Was this page helpful?