post /vault/api/v1/search/secrets

Search for the user-specific secrets

keywords

string

Comma or space-separated strings to search in secrets' names. The leading and trailing wildcards for the keywords are implicit.

owner_id

array[string]

List of users IDs that owns secrets.

filter

string

Defines what type of secrets to search for

Enum
  • personal
  • shared
  • readable
  • writable
  • accessible
  • empty string

Request

{
  "keywords": "string",
  "owner_id": [
    "string"
  ],
  "filter": "personal"
}

Response

ExamplesSchema

Search successful, return matching secrets without secret data

{
  "count": 123,
  "items": [
    {
      "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?