Bir paket için statik web sitesi barındırma modunu devre dışı bırakır ve yönlendirme kurallarını temizler. Bir paketin statik web sitesi barındırma modunu yalnızca paketin sahibi devre dışı bırakabilir.
Note
DeleteBucketWebsite çağrısı yaparak bir paket için statik web sitesi barındırma modunu devre dışı bırakmak ve yönlendirme kurallarını temizlemek için oss:DeleteBucketWebsite izni gerekir. Daha fazla bilgi için bkz. Grant a custom policy.
Syntax
DELETE /?website HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
Request headers
DeleteBucketWebsite isteğindeki tüm üstbilgiler ortak istek üstbilgileridir. Daha fazla bilgi için bkz. Common request headers.
Response headers
DeleteBucketWebsite isteğine verilen yanıttaki tüm üstbilgiler ortak yanıt üstbilgileridir. Daha fazla bilgi için bkz. Common response headers.
Example
Örnek istek
DELETE /?website HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 24 Feb 2012 05:45:34 GMT
Authorization: OSS qn6q**************:77Dv****************
Örnek yanıt
HTTP/1.1 204 No Content
x-oss-request-id: 534B371674E88A4D8906008B
Date: Fri, 24 Feb 2012 05:45:34 GMT
Connection: keep-alive
Content-Length: 0
Server: AliyunOSS
Tam kod
DELETE /?website HTTP/1.1
Date: Fri, 27 Jul 2018 09:10:52 GMT
Host: test.oss-cn-hangzhou-internal.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
User-Agent: aliyun-sdk-python-test/0.4.0
HTTP/1.1 204 No Content
Server: AliyunOSS
Date: Fri, 27 Jul 2018 09:10:52 GMT
Content-Length: 0
Connection: keep-alive
x-oss-request-id: 5B5AE19C188DC1CE81DAD7C8
OSS SDKs
DeleteBucketWebsite işlemini çağırmak için aşağıdaki programlama dillerine ait OSS SDK'larını kullanabilirsiniz:
ossutil
DeleteBucketWebsite işlemine karşılık gelen ossutil komutu hakkında bilgi edinmek için bkz. delete-bucket-website.
Error codes
|
|
|
|
|
|
|
|
|
|
|
|