Bucket:Get Buckets

Search (SHIFT+S)




New in this release

Get Buckets

GET /object/bucket

Gets the list of buckets for the specified namespace. If namespace to this bucket creation does not exist then user's namespace is used.


Query Parameters

namespaceNamespace for which buckets should be listed.
markerReference to last object returned.
limitNumber of objects requested in current fetch.

Required Roles

Requires one of the following roles:

  • SYSTEM_ADMIN

  • SYSTEM_MONITOR


Response Body

List of buckets associated with the given namespace.

Field Description Type Notes
<object_buckets>
<object_bucket>     0-* Elements
<created> Bucket creation time String
<softquota> Bucket soft quota String
<fs_access_enabled> Bucket "file system access enabled" status Boolean
<locked> "Locked" status of a bucket Boolean
<vpool> Replication group id String
<namespace> Namespace String
<owner> Bucket owner String
<is_stale_allowed> Bucket isStaleAllowed flag Boolean
<default_retention> Default bucket retention Long
<block_size> Block size in GB Long
<notification_size> Notification size in GB Long
<api_type> API type String
<name> Name assigned to this resource in ECS. The resource name is set by a user and can be changed at any time. It is not a unique identifier. String
<id> Identifier that is generated by ECS when the resource is created. The resource Id is guaranteed to be unique and immutable across all virtual data centers for all time. URI Valid Values:
  •  urn:storageos:resource-type:UUID:
<link> Hyperlink to the details for this resource
<creation_time> Timestamp that shows when this resource was created in ECS DateTime Valid Values:
  •  YYYY-MM-DDTHH:mm:ssZ
<tags> Keywords and labels that can be added by a user to a resource to make it easy to find when doing a search.
<tag> String 0-* Elements
</tags>
<inactive> Indicates whether the resource is inactive. When a user removes a resource, the resource is put in this state before it is removed from the ECS database. Boolean Valid Values:
  •  true
  •  false
<global> Indicates whether the resource is global. Boolean Valid Values:
  •  true
  •  false
<remote> Indicates whether the resource is remote. Boolean Valid Values:
  •  true
  •  false
<vdc>    
<id> Id of the related object URI
<link> Hyperlink to the related object
</vdc>      
<internal> Indicates whether the resource is an internal resource. Boolean Valid Values:
  •  true
  •  false
</object_bucket>      
<MaxBuckets> Number of buckets requested. Integer
<NextMarker> Reference object to retrieve next set of objects. String
</object_buckets>

Examples

Request
GET https://192.168.0.0:4443/object/bucket HTTP/1.1  

Concept-Type: application/xml 
X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
Response
HTTP/1.1 200 OK
Content-Type: application/xml 

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object_buckets>
    <object_bucket>
        <name>LockedBucket82440140-c11e-11e4-8580-0050569c6fd7</name>
        <tags/>
        <api_type>S3</api_type>
        <block_size>-1</block_size>
        <owner>wuser1@sanity.local</owner>
        <created>2015-03-02T20:48:15.650Z</created>
        <default_retention>-2</default_retention>
        <fs_access_enabled>false</fs_access_enabled>
        <is_stale_allowed>false</is_stale_allowed>
        <locked>true</locked>
        <namespace>s3</namespace>
        <notification_size>-1</notification_size>
        <vpool>urn:storageos:ReplicationGroupInfo:b3bf2d47-d732-457c-bb9b-d260eb53a76b:global</vpool>
    </object_bucket>
    <object_bucket>
        <name>standalone-bucket</name>
        <tags/>
        <api_type>S3</api_type>
        <block_size>-1</block_size>
        <owner>wuser1@sanity.local</owner>
        <created>2015-03-02T19:44:29.283Z</created>
        <default_retention>-2</default_retention>
        <fs_access_enabled>false</fs_access_enabled>
        <is_stale_allowed>false</is_stale_allowed>
        <locked>false</locked>
        <namespace>s3</namespace>
        <notification_size>-1</notification_size>
        <vpool>urn:storageos:ReplicationGroupInfo:b3bf2d47-d732-457c-bb9b-d260eb53a76b:global</vpool>
    </object_bucket>
</object_buckets>
Notes: