0020-00000002

Updated at:

Problem description

The request is missing the required inventoryId parameter.

Causes

GetBucketInventory and DeleteBucketInventory both require the inventoryId query parameter. If the parameter is omitted from the request URL, the request fails.

ParameterTypeRequiredLocationDescription
inventoryIdStringYesURL query stringThe ID of the inventory configuration to retrieve or delete

Examples

The following DeleteBucketInventory request fails because inventoryId is missing from the query string:

DELETE /?inventory HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: SignatureValue

Solutions

Add inventoryId=<inventory-id> to the query string. The following example deletes the inventory with the ID list1:

DELETE /?inventory&inventoryId=list1 HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: SignatureValue

A successful request returns 204 No Content:

HTTP/1.1 204 No Content

References