GenerateServiceLastAccessedDetails
Generates a permission audit report for a RAM identity to identify the permissions granted to the RAM identity and the most recent access time of the permissions.
Operation description
Before you use the permission audit feature to modify the permissions of a RAM identity, read Usage notes for permission audit.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:GenerateServiceLastAccessedDetails |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Arn |
string |
Yes |
The Alibaba Cloud Resource Name (ARN) of the RAM identity for which you want to generate a permission audit report. Resource Access Management (RAM) users and regular RAM roles are supported. Format:
|
acs:ram::1234567890:user/test_user |
| Granularity |
string |
No |
The granularity of the permission audit report. Valid values:
Valid values:
|
SERVICE_LEVEL |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
GenerateServiceLastAccessedDetailsRespDTO |
||
| JobId |
string |
The ID of the permission audit task. You can use this ID to call the GetServiceLastAccessedDetails operation to query the report generation status. |
ba536aab-84c6-43af-8bcb-aa2cae2a34e4 |
| RequestId |
string |
The request ID. |
EEE5D280-31A0-1638-91CD-37EBDD282E7A |
Examples
Success response
JSON format
{
"JobId": "ba536aab-84c6-43af-8bcb-aa2cae2a34e4",
"RequestId": "EEE5D280-31A0-1638-91CD-37EBDD282E7A"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameter.Arn | Arn is invalid. | Invalid ARN |
| 400 | NoSuchEntity.Arn | No such entity for Arn. | No entity for Arn |
| 400 | InvalidParameter.Granularity | Granularity is invalid. | Invalid parameter Granularity |
| 400 | NotSupport.SLR | Not Support SLR as ARN. | SLR is not supported for parsing as an ARN |
| 400 | NotSupport.Account.Site | This site not support the account. | This site does not support this account. |
| 500 | InternalError | Internal Error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.