Get Permission Accesses
POST/api/v1/permission/access
Given a permission ID and an IAM query, returns data about the actual permission usage (last access).
The request parameter limit determines the number of items—that is, last access—in the response object.
If the amount of available data is greater than the specified limit, use the response object attribute data.nextPageToken as the request parameter pageToken in Get Permissions Access Next Page to request the next page of data.
Request
- application/json
Body
required
Model for Permission Access Request DTO
Maximun number of items to return for the given query. Default is 0.
Permission Id
Query string
Responses
- 200
- 201
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
data object
Model for Permission Access Result Data DTO
items object[]
Permissions list
Destination cloud resource name
Action last access date in the format of a unix timestamp
Next page token
Total row count
{
"data": {
"items": [
{
"destCloudResourceName": "my-function",
"lastAccessDate": "1593691785"
}
],
"nextPageToken": "++fdfkjsdlfsdfdFDSFDFSDFdfdssfdFDS",
"totalRows": 1243
}
}
Created
Unauthorized
Forbidden
Not Found