Get secret version in organization
Gets a version, without its value.
GET
Gets a version, without its value.
bearerheader
AuthorizationBearer <token>An access token, or an API key.
organization*stringThe organization's ID.
Match
^org_[0-7][0-9a-hjkmnp-tv-z]{25}$secret*stringThe secret's ID.
Match
^sec_[0-7][0-9a-hjkmnp-tv-z]{25}$version*stringThe version's number, or latest for the newest enabled one.
Match
^([1-9][0-9]{0,8}|latest)$OK
application/json- response
createTime*stringWhen the version was added.
Format
date-timedestroyTime?stringWhen the version was destroyed, if it was.
Format
date-timename*stringResource name, …/secrets/{secret_id}/versions/{version}, numbered from 1. A shared secret names its source's versions under itself.
state*stringWhether the version can be read: DISABLED until it is enabled again, and DESTROYED for good.
Value in
"ENABLED""DISABLED""DESTROYED"curl -X GET 'https://api.kosem.ai/v1/organizations/string/secrets/string/versions/string'Example Response
{
"createTime": "2019-08-24T14:15:22Z",
"destroyTime": "2019-08-24T14:15:22Z",
"name": "string",
"state": "ENABLED"
}