Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

GetBucketWebsite

A operação HEAD recupera metadados de um objeto sem retornar o próprio objeto. 

Request Syntax

Code Block
themeMidnight
GET /?website HTTP/1.1
Host: bucket-name.bigfile.brascloud.com.br:443

Response Syntax

Code Block
themeMidnight
HTTP/1.1 200
<?xml version="1.0" encoding="UTF-8"?>
<GetBucketWebsiteOutput>
   <RedirectAllRequestsTo>
      <HostName>string</HostName>
      <Protocol>string</Protocol>
   </RedirectAllRequestsTo>
   <IndexDocument>
      <Suffix>string</Suffix>
   </IndexDocument>
   <ErrorDocument>
      <Key>string</Key>
   </ErrorDocument>
   <RoutingRules>
      <RoutingRule>
         <Condition>
            <HttpErrorCodeReturnedEquals>string</HttpErrorCodeReturnedEquals>
            <KeyPrefixEquals>string</KeyPrefixEquals>
         </Condition>
         <Redirect>
            <HostName>string</HostName>
            <HttpRedirectCode>string</HttpRedirectCode>
            <Protocol>string</Protocol>
            <ReplaceKeyPrefixWith>string</ReplaceKeyPrefixWith>
            <ReplaceKeyWith>string</ReplaceKeyWith>
         </Redirect>
      </RoutingRule>
   </RoutingRules>
</GetBucketWebsiteOutput>

Exemplos

Essa solicitação recupera a configuração do site no intervalo especificado.

Code Block
themeMidnight
titleRequest
            GET ?website HTTP/1.1
            Host: bucket.bigfile.brascloud.com.br:443
            Date: Thu, 27 Jan 2011 00:49:20 GMT
            Authorization: AKIAIOSFODNN7EXAMPLE:n0Nhek72Ufg/u7Sm5C1dqRLs8XX=


Code Block
themeMidnight
titleResponse
         HTTP/1.1 200 OK
         x-amz-id-2: YgIPIfBiKa2bj0KMgUAdQkf3ShJTOOpXUueF6QKo
         x-amz-request-id: 3848CD259D811111
         Date: Thu, 27 Jan 2011 00:49:26 GMT
         Content-Length: 240
         Content-Type: application/xml
         Transfer-Encoding: chunked
         Server: bigfile

         <?xml version="1.0" encoding="UTF-8"?>
         <WebsiteConfiguration xmlns="http://bigfile.brascloud.com.br:443/doc/2006-03-01/">
           <IndexDocument>
             <Suffix>index.html</Suffix>
           </IndexDocument>
          <ErrorDocument>
            <Key>404.html</Key>
          </ErrorDocument>
         </WebsiteConfiguration>


Canal direto de comunicação com nossos arquitetos.Image AddedAinda tem dúvidas?

Você pode abrir um chamado conosco acessando nosso portal de suporte, estamos a disposição.