GET buckets/{bucket}/access?key={key}&requestTime={requestTime}&signature={signature}

Queries the access policy for a given bucket.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
bucket

The bucket that you wish to query.

string

Required

key

The key that was used to sign this request.

string

Required

requestTime

The time the request was made.

integer

Required

signature

The signature that proves that you are who you say you are.

string

Required

Body Parameters

None.

Response Information

Resource Description

A response with information about who owns the bucket, and who can read and write to the bucket.

QueryBucketAccessResponse
NameDescriptionTypeAdditional information
Owner

string

None.

Read

Collection of string

None.

Write

Collection of string

None.

Success

boolean

None.

Error

string

None.

Response Formats

application/xml, text/xml

Sample:
<QueryBucketAccessResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <Error>sample string 3</Error>
  <Success>true</Success>
  <Owner>sample string 1</Owner>
  <Read xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Read>
  <Write xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Write>
</QueryBucketAccessResponse>

application/json, text/json

Sample:
{
  "Owner": "sample string 1",
  "Read": [
    "sample string 1",
    "sample string 2"
  ],
  "Write": [
    "sample string 1",
    "sample string 2"
  ],
  "Success": true,
  "Error": "sample string 3"
}