GET /?inventory HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
参数 | 描述 | 类型 | 是否必选 |
continuation-token | 当 COS 响应体中 IsTruncated 为 true,且 NextContinuationToken 节点中存在参数值时,您可以将这个参数作为 continuation-token 参数值,以获取下一页的清单任务信息。 缺省值:None | String | 否 |
<ListInventoryConfigurationResult><InventoryConfiguration><Id>list1</Id><IsEnabled>True</IsEnabled><Destination><COSBucketDestination><Format>CSV</Format><AccountId>1250000000</AccountId><Bucket>qcs::cos:ap-beijing::examplebucket-1250000000</Bucket><Prefix>list1</Prefix><SSE-COS></SSE-COS></COSBucketDestination></Destination><Schedule><Frequency>Daily</Frequency></Schedule><Filter><Prefix>myPrefix</Prefix></Filter><IncludedObjectVersions>All</IncludedObjectVersions><OptionalFields><Field>Size</Field><Field>LastModifiedDate</Field><Field>ETag</Field><Field>StorageClass</Field><Field>IsMultipartUpload</Field><Field>ReplicationStatus</Field></OptionalFields></InventoryConfiguration><InventoryConfiguration><Id>list2</Id><IsEnabled>True</IsEnabled><Destination><COSBucketDestination><Format>CSV</Format><AccountId>1250000000</AccountId><Bucket>qcs::cos:ap-beijing::examplebucket-1250000000</Bucket><Prefix>list2</Prefix><SSE-COS></SSE-COS></COSBucketDestination></Destination><Schedule><Frequency>Weekly</Frequency></Schedule><Filter><Prefix>myPrefix2</Prefix></Filter><IncludedObjectVersions>All</IncludedObjectVersions><OptionalFields><Field>Size</Field><Field>LastModifiedDate</Field><Field>ETag</Field><Field>StorageClass</Field></OptionalFields></InventoryConfiguration><IsTruncated>false</IsTruncated>------If ContinuationToken was provided in the request---<ContinuationToken>...</ContinuationToken><IsTruncated>true</IsTruncated><NextContinuationToken>1ueSDFASDF1Tr/XDAFdadEADadf2J/wm36Hy4vbOwM=</NextContinuationToken></ListInventoryConfigurationResult>
节点名 | 父节点 | 描述 | 类型 |
List InventoryConfigurationResult | 无 | 存储桶中所有清单任务信息的列表 | Container |
InventoryConfiguration | ListInventoryConfigurationResult | 包含清单任务的详细信息,其 XML 结构请参见 GET Bucket inventory | Container |
IsTruncated | ListInventoryConfigurationResult | 是否已列出所有清单任务信息的标识。如果已经展示完则为 false,否则为 true | Boolean |
ContinuationToken | ListInventoryConfigurationResult | 当页清单列表的标识,可理解为页数。该标识与请求中的 continuation-token 参数对应 | String |
NextContinuationToken | ListInventoryConfigurationResult | 下一页清单列表的标识。如果该参数中有值,则可将该值作为 continuation-token 参数并发起 GET 请求以获取下一页清单任务信息 | String |
GET /?inventory HTTP/1.1Date: Mon, 28 Aug 2018 02:53:38 GMTAuthorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1503895278;1503895638&q-key-time=1503895278;1503895638&q-header-list=host&q-url-param-list=inventory&q-signature=****************************************Host: examplebucket-1250000000.cos.ap-beijing.myqcloud.com
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 331Date: Mon, 28 Aug 2018 02:53:39 GMTServer: tencent-cosx-cos-request-id: NTlhMzg1ZWVfMjQ4OGY3MGFfMWE1NF8****<?xml version = "1.0" encoding = "UTF-8"><ListInventoryConfigurationResult xmlns = "http://...."><InventoryConfiguration><Id>list1</Id><IsEnabled>True</IsEnabled><Destination><COSBucketDestination><Format>CSV</Format><AccountId>1250000000</AccountId><Bucket>qcs::cos:ap-beijing::inventorybucket-1250000000</Bucket><Prefix>list1</Prefix><SSE-COS></SSE-COS></COSBucketDestination></Destination><Schedule><Frequency>Daily</Frequency></Schedule><Filter><Prefix>myPrefix</Prefix></Filter><IncludedObjectVersions>All</IncludedObjectVersions><OptionalFields><Field>Size</Field><Field>LastModifiedDate</Field><Field>ETag</Field><Field>StorageClass</Field><Field>IsMultipartUpload</Field><Field>ReplicationStatus</Field></OptionalFields></InventoryConfiguration><InventoryConfiguration><Id>list2</Id><IsEnabled>True</IsEnabled><Destination><COSBucketDestination><Format>CSV</Format><AccountId>1250000000</AccountId><Bucket>qcs::cos:ap-beijing::inventorybucket-1250000000</Bucket></COSBucketDestination></Destination><Schedule><Frequency>Weekly</Frequency></Schedule><Filter><And><Prefix>myPrefix2</Prefix><Tag><Key>age</Key><Value>18</Value></Tag></And></Filter><IncludedObjectVersions>All</IncludedObjectVersions><OptionalFields><Field>Size</Field><Field>LastModifiedDate</Field><Field>StorageClass</Field><Field>ETag</Field><Field>Tag</Field></OptionalFields></InventoryConfiguration><IsTruncated>false</IsTruncated>------If ContinuationToken was provided in the request---<ContinuationToken>...</ContinuationToken><IsTruncated>true</IsTruncated><NextContinuationToken>1ueSDFASDF1Tr/XDAFdadEADadf2J/wm36Hy4vbOwM=</NextContinuationToken></ListInventoryConfigurationResult>
本页内容是否解决了您的问题?