Lockbox API, REST: Secret.listVersions
Retrieves the list of versions of the specified secret.
HTTP request
GET https://lockbox.api.cloud.yandex.net/lockbox/v1/secrets/{secretId}/versions
Path parameters
Parameter | Description |
---|---|
secretId | Required. ID of the secret to list versions for. The maximum string length in characters is 50. |
Query parameters
Parameter | Description |
---|---|
pageSize | The maximum number of results per page to return. If the number of available results is larger than The maximum value is 1000. |
pageToken | Page token. To get the next page of results, set The maximum string length in characters is 100. |
Response
HTTP Code: 200 - OK
{
"versions": [
{
"id": "string",
"secretId": "string",
"createdAt": "string",
"destroyAt": "string",
"description": "string",
"status": "string",
"payloadEntryKeys": [
"string"
]
}
],
"nextPageToken": "string"
}
Field | Description |
---|---|
versions[] | object List of versions for the specified secret. |
versions[]. id |
string ID of the version. |
versions[]. secretId |
string ID of the secret that the version belongs to. |
versions[]. createdAt |
string (date-time) Time when the version was created. String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
versions[]. destroyAt |
string (date-time) Time when the version is going to be destroyed. Empty unless the status is String in RFC3339 text format. The range of possible values is from To work with values in this field, use the APIs described in the Protocol Buffers reference. In some languages, built-in datetime utilities do not support nanosecond precision (9 digits). |
versions[]. description |
string Description of the version. |
versions[]. status |
string Status of the secret.
|
versions[]. payloadEntryKeys[] |
string Keys of the entries contained in the version payload. |
nextPageToken | string This token allows you to get the next page of results for list requests. If the number of results is greater than the specified pageSize, use the |