This API is used to delete an inventory job from a bucket with the specified job ID.
For more information, please see Inventory Overview.
Note:
- To call this API, ensure that you have the necessary permission on the bucket inventory job.
- The bucket owner has such permission by default. If you do not have the permission, you can request it from the bucket owner.
DELETE /?inventory&id=inventory-configuration-id HTTP/1.1
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com
Date: GMT Date
Authorization: Auth String
Note:
- In
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com
, <BucketName-APPID> is the bucket name followed by the APPID, such asexamplebucket-1250000000
(see Bucket Overview > Basic Information and Bucket Overview > Bucket Naming Conventions), and <Region> is a COS region (see Regions and Access Endpoints).- Authorization: Auth String (see Request Signature for more information).
To call DELETE Bucket inventory
, specify the following parameter:
Parameter | Description | Type | Required |
---|---|---|---|
Id | ID of the inventory job. Default value: None Letters, digits, hyphens (-), underscores (_), and dots (.) are supported. |
String | Yes |
This API only uses common request headers. For more information, please see Common Request Headers.
The request body of this request is empty.
This API returns only common response headers. For more information, please see Common Response Headers.
The response body is empty.
This API returns common error responses and error codes. For more information, please see Error Codes.
The following example deletes the inventory job list1
from the examplebucket-1250000000
bucket:
DELETE /?inventory&id=list1 HTTP/1.1
Date: Mon, 28 Aug 2018 02:53:38 GMT
Authorization: q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0a1ICvR****&q-sign-time=1503901499;1503901859&q-key-time=1503901499;1503901859&q-header-list=host&q-url-param-list=inventory&q-signature=761f3f6449c6a11684464f4b09c6f292f0a4****
Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.com
After the request above is made, COS returns “204 No Content”, indicating that the inventory job list1
has been successfully deleted from the bucket.
HTTP/1.1 204 No Content
Server: tencent-cos
Date: Mon, 28 Aug 2018 02:53:40 GMT
x-cos-id-2:0dfafa/DAPDIFdafdsfDdfSFFfdfKKJdafasiuKJK2
x-cos-request-id: NTlhM2I3M2JfMjQ4OGY3MGFfMWE1NF84****
Apakah halaman ini membantu?