Deletes a redundancy type conversion task of a bucket.
Usage notes
To delete a redundancy type conversion task of a bucket, you must have the
oss:DeleteBucketDataRedundancyTransition
permission. For more information, see Attach a custom policy to a RAM user.Each region has its own Object Storage Service (OSS) endpoints. For more information about regions and their endpoints, see Regions and endpoints.
Redundancy type conversion tasks in the Processing state cannot be deleted.
Request syntax
DELETE /?redundancyTransition&x-oss-redundancy-transition-taskid=xxx HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
Request headers
All headers in a DeleteBucketDataRedundancyTransition request are common request headers. For more information, see Common request headers.
Request parameters
Parameter | Type | Required | Example | Description |
x-oss-redundancy-transition-taskid | String | Yes | 4be5beb0f74f490186311b268bf6**** | The ID of the redundancy type conversion task. |
Response headers
All headers in the response to a DeleteBucketDataRedundancyTransition request are common response headers. For more information, see Common response headers.
Examples
Sample request
DELETE /?redundancyTransition&x-oss-redundancy-transition-taskid=4be5beb0f74f490186311b268bf6**** HTTP/1.1 Host: examplebucket.oss-cn-hangzhou.aliyuncs.com Date: Fri, 17 Nov 2023 08:40:17 GMT Authorization: OSS qn6q**************:77Dv****************
Sample response
HTTP/1.1 204 OK x-oss-request-id: 534B371674E88A4D8906**** Date: Fri, 17 Nov 2023 08:40:17 GMT Server: AliyunOSS
Error codes
Error code | HTTP status code | Description |
NoSuchBucket | 404 | The bucket whose redundancy type conversion task you want to delete does not exist. |
BucketDataRedundancyTransitionTaskNotExist | 404 | The redundancy type conversion task that you want to delete does not exist. |
BucketDataRedundancyTransitionTaskStatusConflict | 409 | The redundancy type conversion task is in the Processing state and cannot be deleted. |