Get Access Key Last Used
POST /iam?Action=GetAccessKeyLastUsed
Retrieves information about when the specified access key was last used.
Query Parameters
AccessKeyId | The identifier of an access key. |
Required Roles
This call has no restrictions.
Request Payload
No Request Payload
Response Body
Field |
Description |
Type |
Notes |
GetAccessKeyLastUsedResponse |
|
|
|
ResponseMetadata |
|
|
|
RequestId |
|
String |
|
Examples
Request
POST https://192.168.0.0:4443/iam?UserName=tt1&AccessKeyId=AKIA681EB7D2520E6455&Action=GetAccessKeyLastUsed
Accept: application/xml
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
x-emc-namespace: <namespace>
Response
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:GetAccessKeyLastUsedResponse xmlns:ns2="none">
<ResponseMetadata>
<RequestId>0af9f5b8:17178fe9282:c9e6:68</RequestId>
</ResponseMetadata>
<GetAccessKeyLastUsedResult>
<AccessKeyLastUsed>
<LastUsedDate>2020-04-15T18:57:54Z</LastUsedDate>
<Region>N/A</Region>
<ServiceName>s3</ServiceName>
</AccessKeyLastUsed>
<UserName>tt1</UserName>
</GetAccessKeyLastUsedResult>
</ns2:GetAccessKeyLastUsedResponse>
Request
POST https://192.168.0.0:4443/iam?UserName=tt1&AccessKeyId=AKIA681EB7D2520E6455&Action=GetAccessKeyLastUsed
Accept: application/json
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
x-emc-namespace: <namespace>
Response
HTTP/1.1 200 OK
{
"ResponseMetadata": {
"RequestId": "0af9f5b8:17178fe9282:cbe5:66"
},
"GetAccessKeyLastUsedResult": {
"AccessKeyLastUsed": {
"LastUsedDate": "2020-04-15T18:57:54Z",
"Region": "N/A",
"ServiceName": "s3"
},
"UserName": "tt1"
}
}
Request
curl -H $token -H "Content-Type: application/xml" -H "x-emc-namespace: <namespace>" -X POST https://$nodeIp:4443/iam?UserName=tt1&AccessKeyId=AKIA681EB7D2520E6455&Action=GetAccessKeyLastUsed
Response
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:GetAccessKeyLastUsedResponse xmlns:ns2="none">
<ResponseMetadata>
<RequestId>0af9f5b8:17178fe9282:c9e6:68</RequestId>
</ResponseMetadata>
<GetAccessKeyLastUsedResult>
<AccessKeyLastUsed>
<LastUsedDate>2020-04-15T18:57:54Z</LastUsedDate>
<Region>N/A</Region>
<ServiceName>s3</ServiceName>
</AccessKeyLastUsed>
<UserName>tt1</UserName>
</GetAccessKeyLastUsedResult>
</ns2:GetAccessKeyLastUsedResponse>