IsTruncated
in the request is described as follows:IsTruncated
is false
, all inventory jobs of the bucket have been listed.IsTruncated
is true
and NextContinuationToken
carries a value, you can pass this value to continuation-token
in the next request to obtain the remaining inventory jobs from the next response.GET /?inventory HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
Host: <BucketName-APPID>.cos.<Region>.myqcloud.com
, <BucketName-APPID> is the bucket name followed by the APPID, such as examplebucket-1250000000
(see Bucket Overview > Basic Information and Bucket Overview > Bucket Naming Conventions), and <Region> is a COS region (see Regions and Access Endpoints).Parameter | Description | Type | Required |
continuation-token | If the value of IsTruncated is true in the last COS response and NextContinuationToken carries a value, you can pass this value to continuation-token to obtain the inventory jobs in the response. Default value: None | String | No |
<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>
Node Name | Parent Node | Description | Type |
List InventoryConfigurationResult | None | Information about all inventory jobs of the bucket | Container |
InventoryConfiguration | ListInventoryConfigurationResult | Container | |
IsTruncated | ListInventoryConfigurationResult | Whether all inventory jobs have been listed. If yes, the value is false . Otherwise, the value is true . | Boolean |
ContinuationToken | ListInventoryConfigurationResult | Identifier of the current response. This parameter corresponds to the continuation-token request parameter. | String |
NextContinuationToken | ListInventoryConfigurationResult | Identifier of the next response. You can pass the value of this parameter to continuation-token and initiate a GET request to obtain the inventory jobs from the next response. | String |
examplebucket-1250000000
bucket: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
list1
and list2
are set for the bucket. list1
myPrefix
and all their versions in the examplebucket-1250000000
bucketSize
, LastModifiedDate
, StorageClass
, ETag
, IsMultipartUploaded
, and ReplicationStatus
inventorybucket-1250000000
bucket as a CSV file, which is prefixed with list1
and encrypted with SSE-COS.list2
myPrefix2
and labeled {age:18}
and all their versions in the examplebucket-1250000000
bucketSize
, LastModifiedDate
, StorageClass
, ETag
and Tag
.inventorybucket-1250000000
bucket as a CSV file.IsTruncated
is true
, COS will return NextContinuationToken
, whose value can be passed to continuation-token
for a GET request to obtain the inventory jobs from the next response.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>
Apakah halaman ini membantu?