GetBucketLogging

Returns the logging status of a bucket and the permissions users have to view and modify that status

Request Syntax

GET /?logging HTTP/1.1
Host: Bucket.s3.petabox.io
x-amz-expected-bucket-owner: ExpectedBucketOwner

URI Request Parameters

The request uses the following URI parameters.

Bucket

The bucket name for which to get the logging information.

Required: Yes

x-amz-expected-bucket-owner

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code 403 Forbidden (access denied).

Request Body

The request does not have a request body.

Response Syntax

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in XML format by the service.

BucketLoggingStatus

Root level tag for the BucketLoggingStatus parameters.

Required: Yes

LoggingEnabled

Describes where logs are stored and the prefix that Petabox assigns to all log object keys for a bucket.

Type: LoggingEnabled data type

Examples

Sample Request

The following request returns the logging status for mybucket.

Sample Response: Showing an enabled logging status

This example illustrates one usage of GetBucketLogging.

Sample Response: Showing a disabled logging status

This example illustrates one usage of GetBucketLogging.

Last updated