Resolve environment access request
Approves or denies a pending access request on a standalone environment. Requires environments.environments.update on the environment, plus issue or access permission on the target when approving. Enforces environments.maxGrantTtl and flushes the environment's credential cache immediately when approved.
Approves or denies a pending access request on a standalone environment.
Requires environments.environments.update on the environment, plus issue or access permission on the target when approving. Enforces environments.maxGrantTtl and flushes the environment's credential cache immediately when approved.
bearerAuthorizationBearer <token>An access token, or an API key.
project*stringThe project's ID.
^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$environment*stringThe environment's ID.
^env_[0-7][0-9a-hjkmnp-tv-z]{25}$request*stringThe access request's ID.
uuidapplication/json- body
approve*booleanWhether to approve the request.
expireTime?stringOptional grant expiry time, bounded by the environments.maxGrantTtl policy.
date-timenote?stringOptional note returned to the environment.
length <= 1000scope?Optional narrowing scope for an access profile grant.
target?stringRequired when approving: resource name of the project access profile or secret to grant.
OK
application/json- response
createTime*stringWhen the request was created.
date-timeenvironment*stringThe environment's resource name.
expireTime*stringWhen a pending request expires if unresolved.
date-timegrantId?stringID of the grant created or updated when approved.
id*stringThe access request's ID.
note?stringOptional note from the person who resolved the request.
reason*stringWhy the process inside the environment asked for access.
requestedProvider?stringOptional provider requested by the environment, such as providers/github.
requestedScope?Optional narrowing scope requested by the environment.
requestedTarget?stringOptional alias, ID or resource name requested by the environment.
resolveTime?stringWhen the request was approved or denied.
date-timeresolvedAlias?stringAlias of the access profile or secret granted when approved.
resolvedExpireTime?stringGrant expiry time set when approved.
date-timeresolvedProvider?stringProvider of the access profile granted when approved.
resolvedScope?Effective narrowing scope granted when approved.
resolvedTarget?stringResource name of the access profile or secret granted when approved.
resolver?stringWho approved or denied the request.
state*stringCurrent state of the request.
"PENDING""APPROVED""DENIED""EXPIRED"targetKind?stringOptional target kind requested by the environment.
"""ACCESS_PROFILE""SECRET"curl -X POST 'https://api.kosem.ai/v1/projects/string/environments/string/accessRequests/497f6eca-6276-4993-bfeb-53cbbbba6f08' \
-H 'Content-Type: application/json' \
-d '{
"approve": true
}'{
"createTime": "2019-08-24T14:15:22Z",
"environment": "string",
"expireTime": "2019-08-24T14:15:22Z",
"grantId": "string",
"id": "string",
"note": "string",
"reason": "string",
"requestedProvider": "string",
"requestedScope": {
"property1": null,
"property2": null
},
"requestedTarget": "string",
"resolveTime": "2019-08-24T14:15:22Z",
"resolvedAlias": "string",
"resolvedExpireTime": "2019-08-24T14:15:22Z",
"resolvedProvider": "string",
"resolvedScope": {
"property1": null,
"property2": null
},
"resolvedTarget": "string",
"resolver": "string",
"state": "PENDING",
"targetKind": ""
}