About the service operation

Source: Internet
Author: User

GetService (Listbucket)

A GET request for a service address can return all bucket owned by the requester, where "/" represents the root directory.

Request Sample:

get/http/1.1
Host:storage.aliyun.com
date:wed, 12:00:00 GMT authorization:oss
15b4d3461f1776 24206a:xqe0dimblrepdf3yb+fiexample=

Return Sample:

<?xml version= "1.0" encoding= "UTF-8"/?> <listallmybucketsresult xmlns=
"http://doc.storage.aliyun.com" /2011-03-01 ">
  <Owner>
    <ID>bcaf1ffd86f461ca5fb16fd081034f</ID>

    <displayname >webfile</DisplayName>
  </Owner>
  <Buckets>
    <Bucket>
      <Name> quotes</name>

      <CreationDate>2011-02-03T16:45:09.000Z</CreationDate>
    </bucket >
    <Bucket>
      <Name>samples</Name>
      <creationdate>2011-02-03t16 :41:58.000z</creationdate>

    </Bucket>
  </Buckets>
</listallmybucketsresult >

Returns 403 Forbidden if there is no user authentication information in the request (that is, anonymous access).

Return Sample:

<?xml version= "1.0"?>
<Error>

	<Code>
		accessdenied
	</Code>
	< Message>
		Anonymous Access is forbidden to this operation
	</Message>
	<RequestId>
		cbf1a411d747a648
	</RequestId>
	<HostId>
		storage.aliyun.com
	</HostId>
</Error>

If user authentication fails, see the message that validation failed in access control.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.