百度智能云

All Product Document

          Object Storage

          Get Static Website Hosting Information of Bucket

          Interface Description

          This interface is used to get the static website hosting information of the bucket.

          Request URI

          GET /v1/{bucketName}/?website

          Parameter Name Parameter type Required Description Example Value Parameter position
          bucketName String Yes Bucket name "bucketName_example" Path

          Request Body Parameters

          Instructions for Data Structure of Request Body Field

          Response Body Parameters

          Instructions for Data Structure of Response Body Field

          Parameter Name Parameter Type Description Example Value
          index String Index file name index.html
          notFound String 404 file name 404.html

          Request Examples

          GET /v1/bucketName_example/?website
          Common Request Header
          
          
          { }

          Response Example

          HTTP/1.1 200 OK
          <Common response header>
          
          {
            "index" : "index.html",
            "notFound" : "404.html"
          }

          Error Code

          Refer to the universal error code.

          Previous
          Delete Static Website Hosting Information of Bucket
          Next
          Set Static Website Hosting