ReferenceAPIAccess Service
Create key
The response has the key itself, which the API never returns again.
POST
The response has the key itself, which the API never returns again.
principal*stringThe principal id.
application/json- body
parent?stringprincipals/{principal}
expireTime?stringUnset: the key doesn't expire.
Format
date-timeOK
application/json- response
key?An API key. Calls send it as Authorization: Bearer KEY.
secret?stringcurl -X POST 'http://localhost:8080/v1/principals/string/keys' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "key": { "name": "string", "prefix": "string", "expireTime": "2019-08-24T14:15:22Z", "createTime": "2019-08-24T14:15:22Z", "lastUsedTime": "2019-08-24T14:15:22Z" }, "secret": "string"}