The GET Bucket last access time request allows you to determine if last access time updates are enabled or disabled for individual buckets.
You must have the s3:GetBucketLastAccessTime permission to complete this operation.
Request HTTP Header | Description |
---|---|
Authorization | Specifies the AWS signature and the access key ID for the account to use for the request. |
Date | The date and time of the request. |
Host | The host name to which the request is directed. |
GET /bucket?x-ntap-sg-lastaccesstime HTTP/1.1 Date: Sat, 29 Nov 2015 01:02:17 GMT Authorization: AWS 9MOYPG9ACWPAJA1S72R5:jUGbYkLdBApjCWBgK4TxvOjfock= Host: test.com
Response HTTP Header | Description |
---|---|
Connection | Specifies whether the connection to the server is open or closed. |
Content-Length | The length of the response body. |
Content-Type | The Multipurpose Internet Mail Extensions (MIME) type of the response body. |
Date | The date and time of the response. |
Server | The server that created the response. |
x-amz-request-id | The identifier that uniquely identifies the request. Created by the S3 API. |
The value of <LastAccessTime> will either be enabled or disabled.
HTTP/1.1 200 OK Date: Sat, 29 Nov 2015 01:02:18 GMT Connection: CLOSE Server: StorageGRID/10.3.0 x-amz-request-id: 12345 Content-Length: 127 Content-Type: application/xml <?xml version="1.0" encoding="UTF-8"?> <LastAccessTime xmlns="http://s3.storagegrid.com/doc/2015-02-01/">enabled </LastAccessTime>