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.
| Parameter | Type | Required | Location | Description |
|---|---|---|---|---|
inventoryId | String | Yes | URL query string | The 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: SignatureValueSolutions
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: SignatureValueA successful request returns 204 No Content:
HTTP/1.1 204 No ContentReferences
Is this page helpful?