Updated on 2022-02-10 GMT+08:00
DELETE Bucket website
API Description
You can use this API to delete the website hosting settings of a bucket.
Method Definition
func (obsClient ObsClient) DeleteBucketWebsiteConfiguration(bucketName string) (output *BaseModel, err error)
Method Definition If a Signed URL Is Used
func (obsClient ObsClient) DeleteBucketWebsiteConfigurationWithSignedUrl(signedUrl string, actualSignedRequestHeaders http.Header) (output *BaseModel, err error)
Request Parameter
Field |
Type |
Optional or Mandatory |
Description |
---|---|---|---|
bucketName |
string |
Mandatory |
Bucket name |
Returned Result
Field |
Type |
---|---|
output |
|
err |
error |
Sample Code
func main() { output, err := obsClient.DeleteBucketWebsiteConfiguration("bucketname") if err == nil { fmt.Printf("RequestId:%s\n", output.RequestId) } else { if obsError, ok := err.(obs.ObsError); ok { fmt.Println(obsError.Code) fmt.Println(obsError.Message) } else { fmt.Println(err) } } }
Parent topic: Bucket-Related APIs
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot