List secret agent grants
Lists the agents that can use a secret, the most recently granted first. Grants aren't in the secret's IAM policy, so this takes what reading its policy takes. The title of a private agent is left out.
GET
Lists the agents that can use a secret, the most recently granted first.
Grants aren't in the secret's IAM policy, so this takes what reading its policy takes. The title of a private agent is left out.
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. Defaults to 50; values above 500 are treated as 500.
Format
int32Range
0 <= valuepageToken?stringPage token from a previous response.
OK
application/json- response
grants*array<>Grants, the most recent first.
nextPageToken*stringToken for the next page; empty on the last page.
curl -X GET 'https://api.kosem.ai/v1/projects/string/secrets/string/agentGrants'Example Response
{
"grants": [
{
"agent": "string",
"createTime": "2019-08-24T14:15:22Z",
"grantor": "string",
"private": true,
"title": "string"
}
],
"nextPageToken": "string"
}