List secret environment grants
Lists standalone environments granted a project secret, newest grant first. Requires secrets.secrets.getIamPolicy on the secret. Returns grant IDs so admins can revoke access directly.
GET
Lists standalone environments granted a project secret, newest grant first.
Requires secrets.secrets.getIamPolicy on the secret. Returns grant IDs so admins can revoke access directly.
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}$secret*stringThe secret's ID.
Match
^sec_[0-7][0-9a-hjkmnp-tv-z]{25}$pageSize?integerMaximum number of items to return.
Format
int32Range
0 <= value <= 500pageToken?stringPage token from a previous response.
OK
application/json- response
grants*array<>Standalone environments granted access to this resource, newest grant first.
nextPageToken*stringToken for the next page; empty on the last page.
curl -X GET 'https://api.kosem.ai/v1/projects/string/secrets/string/environmentGrants'Example Response
{
"grants": [
{
"createTime": "2019-08-24T14:15:22Z",
"displayName": "string",
"environment": "string",
"expireTime": "2019-08-24T14:15:22Z",
"grantId": "string",
"grantor": "string",
"lastUsedTime": "2019-08-24T14:15:22Z",
"scope": {
"property1": null,
"property2": null
},
"state": "string",
"useCount": 0
}
],
"nextPageToken": "string"
}