News:

Choose a design and let our professionals help you build a successful website   - ITAcumens

Main Menu

Blob List

Started by thiruvasagamani, Dec 09, 2008, 03:21 PM

Previous topic - Next topic

thiruvasagamani

Blob List

This example shows the result of an enumeration operation returning blobs beneath a container named mycontainer. Here is the request URI:
Copy Code

GET http://myaccount.blob.core.windows.net/mycontainer?comp=list&maxresults=4&timeout=300

The maximum number of results to return is set to 4. The first blob to be returned in a subsequent call is contained in the NextMarker tag. To return the next set of results, specify this value for the marker tag on the request URI.

The sample blobs in the storage service for this example are as follows. The first four are returned in the first enumeration operation, as maxresults was set to 4. The last two will be returned in a subsequent call.

    * blob1.txt
    * blob2.txt
    * myfolder/blobA.txt
    * myfolder/blobB.txt
    * newblob1.txt
    * newblob2.txt



<?xml version="1.0" encoding="utf-8"?>
<EnumerationResults ContainerName="http://myaccount.blob.core.windows.net/mycontainer">
  <MaxResults>4</MaxResults>
  <Blobs>
    <Blob>
      <Name>blob1.txt</Name>
      <Url>http://myaccount.blob.core.windows.net/mycontainer/blob1.txt</Url>
      <LastModified>Thu, 18 Sep 2008 18:41:57 GMT</LastModified>
      <Etag>0x8CAE7D55D050B8B</Etag>
      <Size>8</Size>
      <ContentType>text/plain; charset=UTF-8</ContentType>
      <ContentEncoding />
      <ContentLanguage />
    </Blob>
    <Blob>
      <Name>blob2.txt</Name>
      <Url>http://myaccount.blob.core.windows.net/mycontainer/blob2.txt</Url>
      <LastModified>Thu, 18 Sep 2008 18:41:57 GMT</LastModified>
      <Etag>0x8CAE7D55CF6C339</Etag>
      <Size>14</Size>
      <ContentType>text/plain; charset=UTF-8</ContentType>
      <ContentEncoding />
      <ContentLanguage />
    </Blob>
    <Blob>
      <Name>myfolder/blobA.txt</Name>
      <Url>http://myaccount.blob.core.windows.net/mycontainer/myfolder/blobA.txt</Url>
      <LastModified>Thu, 18 Sep 2008 18:41:57 GMT</LastModified>
      <Etag>0x8CAE7D55D15B540</Etag>
      <Size>13</Size>
      <ContentType>text/plain; charset=UTF-8</ContentType>
      <ContentEncoding />
      <ContentLanguage />
    </Blob>
    <Blob>
      <Name>myfolder/blobB.txt</Name>
      <Url>http://myaccount.blob.core.windows.net/mycontainer/myfolder/blobB.txt</Url>
      <LastModified>Thu, 18 Sep 2008 18:41:57 GMT</LastModified>
      <Etag>0x8CAE7D55D23FD92</Etag>
      <Size>13</Size>
      <ContentType>text/plain; charset=UTF-8</ContentType>
      <ContentEncoding />
      <ContentLanguage />
    </Blob>
  </Blobs>
  <NextMarker>newblob1.txt</NextMarker>
</EnumerationResults>

Thiruvasakamani Karnan