Remove environment grant
Revokes an access profile or secret grant from a standalone environment and flushes its credential cache immediately. Allowed for callers with environments.environments.update on the environment or setIamPolicy on the granted target resource.
DELETE
Revokes an access profile or secret grant from a standalone environment and flushes its credential cache immediately.
Allowed for callers with environments.environments.update on the environment or setIamPolicy on the granted target resource.
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}$environment*stringThe environment's ID.
Match
^env_[0-7][0-9a-hjkmnp-tv-z]{25}$grant*stringThe grant's ID.
Format
uuidOK
application/json- response
grants*array<>Grants assigned to the environment, oldest first.
curl -X DELETE 'https://api.kosem.ai/v1/projects/string/environments/string/grants/497f6eca-6276-4993-bfeb-53cbbbba6f08'Example Response
{
"grants": [
{
"alias": "string",
"createTime": "2019-08-24T14:15:22Z",
"expireTime": "2019-08-24T14:15:22Z",
"grantor": "string",
"id": "string",
"lastUsedTime": "2019-08-24T14:15:22Z",
"provider": "string",
"scope": {
"property1": null,
"property2": null
},
"target": "string",
"targetKind": "ACCESS_PROFILE",
"useCount": 0
}
]
}