News:

GinGly.com - Used by 85,000 Members - SMS Backed up 7,35,000 - Contacts Stored  28,850 !!

Main Menu

Sample Request and Response

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

Previous topic - Next topic

thiruvasagamani

Sample Request and Response

Here is a sample URI that requests the list of containers for an account, setting the maximum results to return for the initial operation to 3.
Copy Code

GET http://myaccount.blob.core.windows.net?comp=list&maxresults=3&timeout=30

The response XML for this request is as follows. Note that the NextMarker element follows the set of containers and includes the name of the next container to be returned.


<?xml version="1.0" encoding="utf-8"?>
<EnumerationResults AccountName=" http://myaccount.blob.core.windows.net">
  <MaxResults>3</MaxResults>
  <Containers>
    <Container>
      <Url>http://myaccount.blob.core.windows.net/audio</Url>
      <LastModified>Wed, 13 Aug 2008 20:39:39 GMT</LastModified>
      <Etag>0x8CACB9BD7C6B1B2</Etag>
    </Container>
    <Container>
      <Url>http://myaccount.blob.core.windows.net/images</Url>
      <LastModified>Wed, 13 Aug 2008 20:39:39 GMT</LastModified>
      <Etag>0x8CACB9BD7C1EEEC</Etag>
    </Container>
    <Container>
      <Url>http://myaccount.blob.core.windows.net/textfiles</Url>
      <LastModified>Wed, 13 Aug 2008 20:39:39 GMT</LastModified>
      <Etag>0x8CACB9BD7BACAC3</Etag>
    </Container>
  </Containers>
  <NextMarker>video</NextMarker>
</EnumerationResults>


The subsequent list operation specifies the marker on the request URI, as follows. The next set of results is returned beginning with the container specified by the marker.
Copy Code

http://myaccount.blob.core.windows.net?comp=list&maxresults=3&marker=video&timeout=30

Thiruvasakamani Karnan