Get service account key in project
Gets a key, without its secret.
GET
Gets a key, without its secret.
bearerheader
AuthorizationBearer <token>An access token, or an API key.
project*stringThe project's ID.
Match
^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$serviceAccount*stringThe service account's ID.
Match
^sa_[0-7][0-9a-hjkmnp-tv-z]{25}$key*stringThe key's ID.
Match
^key_[0-7][0-9a-hjkmnp-tv-z]{25}$OK
application/json- response
createTime*stringWhen the key was created.
Format
date-timeexpireTime*stringWhen the key stops working.
Format
date-timelastUseTime?stringWhen the key was last used, if it was.
Format
date-timename*stringResource name, the service account's name followed by /keys/{key_id}.
secret?stringThe secret, which is the API key, sent as a bearer token. Only in the response that creates the key: it cannot be read again. Audit log entries never keep it.
curl -X GET 'https://api.kosem.ai/v1/projects/string/serviceAccounts/string/keys/string'Example Response
{
"createTime": "2019-08-24T14:15:22Z",
"expireTime": "2019-08-24T14:15:22Z",
"lastUseTime": "2019-08-24T14:15:22Z",
"name": "string",
"secret": "string"
}