Spectra Logic
1-800-833-1132 : 1-303-449-6400


Spectra S3 Bucket, Object, and Job Operations : Spectra S3 Object Operations : Get Objects - Spectra S3

Get Objects - Spectra S3
Description
Lists information about all objects. Use parameters as selection criteria to return information about a subset of the objects.
Note:
Requests
Syntax
GET http[s]://{datapathDNSname}/_rest_/object/[?bucket_id={string}][&folder={text}][&full_details] [&include_physical_placement][&last_page] [&name={string}][&page_length={32-bit integer}]
[&page_offset={32-bit integer}][&page_start_marker={string}] [&type=DATA|FOLDER][&version={64-bit integer}]
Request Parameters
Notes:  
§
Specifying both page_offset and page _start_marker causes an error.
§
If neither page_offset, nor page_start_marker are specified, the page_offset default is used.
a.
Responses
Response Elements
With full_details:
<Data>
   <Object or S3Object>
      <Blobs> (only if include_physical_placement is included)
         <Object
            Latest="TRUE|FALSE"
            Length="{64-bit integer}"
            Name="{string}"
            Offset="{64-bit integer}"
            Version="{64-bit integer}">
            <PhysicalPlacement>
               <Pools>
                  <Pool>
                     <AssignedToStorageDomain>
                        TRUE|FALSE
                     </AssignedToStorageDomain>
                     <AvailableCapacity>
                        {64-bit integer}
                     </AvailableCapacity>
                     <BucketId>{string}</BucketId>
                     <Guid>{string}</Guid>
                     <Health>OK|DEGRADED</Health>
                     <Id>{string}</Id>
                     <LastAccessed>
                        {
YYYY-MM-DDThh:mm:ss.xxxZ}
                     </LastAccessed>
                     <LastModified>
                        {YYYY-MM-DDThh:mm:ss.xxxZ}
                     </LastModified>
                     <LastVerified>
                        {
YYYY-MM-DDThh:mm:ss.xxxZ}
                     </LastVerified>
                     <Mountpoint>/{string}</Mountpoint>
                     <Name>{string}</Name>
                     <PartitionId>{string}</PartitionId>
                     <PoweredOn>TRUE|FALSE</PoweredOn>
                     <Quiesced>YES|NO|PENDING</Quiesced>
                     <ReservedCapacity>
                        {64-bit integer}
                     </ReservedCapacity>
                     <State>
                        NORMAL|FOREIGN|IMPORT_IN_PROGRESS|
                        IMPORT_PENDING|LOST
                     </State>
                     <StorageDomainId>{string}</StorageDomainId>
                     <TotalCapacity>
                        {64-bit integer}
                     </TotalCapacity>
                     <Type>NEARLINE|ONLINE</Type>
                     <UsedCapacity>{64-bit integer}</UsedCapacity>
                  </Pool>
                  ...
               </Pools>
               <Tapes>
                  <Tape>
                     <AssignedToStorageDomain>
                        TRUE|FALSE
                     </AssignedToStorageDomain>
                     <AvailableRawCapacity>
                        {
64-bit integer}
                     </AvailableRawCapacity>
                     <BarCode>{string}</BarCode>
                     <BucketId>{string}</BucketId>
                     <DescriptionForIdentification>
                        {string}
                     </DescriptionForIdentification>
                     <EjectDate>
                        {
YYYY-MM-DDThh:mm:ss.xxxZ}
                     </EjectDate>
                     <EjectLabel>{string}</EjectLabel>
                     <EjectLocation>{string}</EjectLocation>
                     <EjectPending>
                        {YYYY-MM-DDThh:mm:ss.xxxZ}
                     </EjectPending>
                     <FullOfData>TRUE|FALSE</FullOfData>
                     <Id>{string}</Id>
                     <LastAccessed>
                        {
YYYY-MM-DDThh:mm:ss.xxxZ}
                     </LastAccessed>
                     <LastCheckpoint>{string}</LastCheckpoint>
                     <LastModified>
                        {YYYY-MM-DDThh:mm:ss.xxxZ}
                     </LastModified>
                     <LastVerified>
                        {YYYY-MM-DDThh:mm:ss.xxxZ}
                     </LastVerified>
                     <PartitionId>{string}</PartitionId>
                     <PreviousState>
                        NORMAL|BAD|BAR_CODE_MISSING|
                        DATA_CHECKPOINT_MISSING|
                        EJECT_FROM_EE_PENDING|
                        EJECT_TO_EE_IN_PROGRESS|EJECTED|FOREIGN|
                        FORMAT_IN_PROGRESS|FORMAT_PENDING|
                        IMPORT_IN_PROGRESS|LOST|
                        LTFS_WITH_FOREIGN_DATA|OFFLINE|
                        ONLINE_IN_PROGRESS|ONLINE_PENDING|
                        PENDING_INSPECTION|SERIAL_NUMBER_MISMATCH|
                        UNKNOWN
                     </PreviousState>
                     <SerialNumber>{string}</SerialNumber>
                     <State>
                        NORMAL|BAD|BAR_CODE_MISSING|
                        DATA_CHECKPOINT_MISSING|
                        EJECT_FROM_EE_PENDING|
                        EJECT_TO_EE_IN_PROGRESS|EJECTED|FOREIGN|
                        FORMAT_IN_PROGRESS|FORMAT_PENDING|
                        IMPORT_IN_PROGRESS|LOST|
                        LTFS_WITH_FOREIGN_DATA|OFFLINE|
                        ONLINE_IN_PROGRESS|ONLINE_PENDING|
                        PENDING_INSPECTION|SERIAL_NUMBER_MISMATCH|
                        UNKNOWN
                     </State>
                     <StorageDomainId>{string}</StorageDomainId>
                     <TakeOwnershipPending>
                        TRUE|FALSE
                     </TakeOwnershipPending><
                     <TotalRawCapacity>
                        {64-bit integer}
                     </TotalRawCapacity>
                     <Type>
                        LTO5|LTO6|LTO7|LTO_CLEANING_TAPE|TS_JC|
                        TS_JY|TS_JK|TS_JD|TS_JZ|TS_JL|
                        TS_CLEANING_TAPE|UNKNOWN|FORBIDDEN
                     </Type>
                     <VerifyPending>
                        CRITICAL|URGENT|HIGH|NORMAL|LOW|BACKGROUND
                     </VerifyPending>
                     <WriteProtected>TRUE|FALSE</WriteProtected>
                  </Tape>
                  ...
               </Tapes>
            </PhysicalPlacement>
         </Object>
         ...
      </Blobs>
      <BlobsBeingPersisted>{string}</BlobsBeingPersisted>
         (only if include_physical_placement is included)
      <BlobsDegraded>{64-bit integer}</BlobsDegraded>
         (only if include_physical_placement is included)
      <BlobsInCache>{64-bit integer}</BlobsInCache>
         (only if include_physical_placement is included)
      <BlobsTotal>{64-bit integer}</BlobsTotal>
         (only if include_physical_placement is included)
      <BucketId>{string}</BucketId>
      <CreationDate>{YYYY-MM-DDThh:mm:ss.xxxZ}</CreationDate>
      <ETag>{string}</ETag> (only if full_details is included)
      <Id>{string}</Id>
      <Latest>TRUE|FALSE</Latest>
      <Name>{string}</Name>
      <Owner>{string}</Owner>
         (only if full_details is included)
      <Size>{string}</Size> (only if full_details is included)
      <Type>DATA|FOLDER</Type>
      <Version>{64-bit integer}</Version>
   </Object or S3Object>
   ...
</Data>
where the response elements are defined as follows:
The last date and time an object in the pool was modified in the format YYYY-MM-DDThh:mm:ss.xxxZ. If this attribute is null, then the object has not yet been completely received into cache.
Whether the pool is powered on. This is always TRUE for pools with type=ONLINE. Values: TRUE, FALSE
The type of pool.
Values:
NEARLINE (ArcticBlue), ONLINE (SAS)
The date and time that the BlackPearl gateway discovered that the tape was ejected, in the format YYYY-MM-DDThh:mm:ss.xxxZ. If the parameter is empty, the tape has not been ejected.
The date and time that the tape was put in the queue to be ejected in the format YYYY-MM-DDThh:mm:ss.xxxZ. If the parameter is empty, the tape has not been queued to be ejected or the eject has started and is no longer cancelable.
The last date and time the object was modified in the format YYYY-MM-DDThh:mm:ss.xxxZ. If this attribute is null, then the object has not yet been completely received into cache.
§
TRUE — The foreign tape was imported when WriteProtected was TRUE, preventing the tape from being owned.
§
FALSE — The tape was imported successfully.
The tape format and generation of the tape cartridge.
Values:
LTO5, LTO6, TS_JC, TS_JY, TS_JK, TS_JD, TS_JZ, TS_JL, UNKNOWN, FORBIDDEN
Example
Sample Request
This request GETs information about all of the objects in all buckets with full details.
GET http://blackpearl-hostname/_rest_/object/?full_details
HTTP/1.1
Sample Response
HTTP/1.1 200 OK
<Data>
   <Object>
      <BucketId>e980121b-d809-480e-90d3-04254e8ea7b2</BucketId>
      <CreationDate/>
      <ETag/>
      <Id>2373760e-fa82-4b76-9a04-e52b0199172f</Id>
      <Latest>TRUE</Latest>
      <Name>/audio/</Name>
      <Owner/>
      <Size>0</Size>
      <Type>FOLDER</Type><
      Version>1</Version>
   </Object>
   <Object>
      <BucketId>e980121b-d809-480e-90d3-04254e8ea7b2</BucketId>
      <CreationDate/>
      <ETag/>
      <Id>471054f9-7452-45e0-8ed1-2b7cb92ec6d0</Id>
      <Latest>TRUE</Latest>
      <Name>/cover.jpg</Name>
      <Owner>owner name</Owner>
      <Size>98789</Size>
      <Type>DATA</Type>
      <Version>1</Version>
   </Object>
</Data>