v1

latestSwagger 2.02026-07-17107114423.2 KB
Secret

List secrets

get/secrets

Query parameters

filtersstring

A JSON encoded value of the filters (a map[string][]string) to process on the secrets list.

Available filters:

  • id=<secret id>
  • label=<key> or label=<key>=value
  • name=<secret name>
  • names=<secret name>

Response

no error

IDstring
CreatedAtstring dateTime
UpdatedAtstring dateTime

Example response

[
  {
    "ID": "blt1owaxmitz71s9v5zh81zun",
    "Version": {
      "Index": 85
    },
    "CreatedAt": "2017-07-20T13:55:28.678958722Z",
    "UpdatedAt": "2017-07-20T13:55:28.678958722Z",
    "Spec": {
      "Name": "mysql-passwd",
      "Labels": {
        "some.label": "some.value"
      },
      "Driver": {
        "Name": "secret-bucket",
        "Options": {
          "OptionA": "value for driver option A",
          "OptionB": "value for driver option B"
        }
      }
    }
  },
  {
    "ID": "ktnbjxoalbkvbvedmg1urrz8h",
    "Version": {
      "Index": 11
    },
    "CreatedAt": "2016-11-05T01:20:17.327670065Z",
    "UpdatedAt": "2016-11-05T01:20:17.327670065Z",
    "Spec": {
      "Name": "app-dev.crt",
      "Labels": {
        "foo": "bar"
      }
    }
  }
]