产品动态
产品公告
destination-prefix/YYYY-MM-DD-HH/Data/8d1048acf48096d17502bd62efc9f8c1.csv
字段 | 描述 |
FileName | 文件名称 |
ATime | 文件的访问时间 说明: |
MTime | 文件内容的变更时间 |
CTime | 文件元数据的变更时间 |
Size | 文件大小(单位 Byte) |
FileType | 打印文件状态为目录或文件,输出格式为:DIR(目录)或 FILE(文件) |
ACL | 以数字表示打印文件权限,例如:755 |
UserName | 用户名称,例如:hadoop |
GroupName | 用户组名称,例如:supergroup |
StorageClass | 当前文件的存储类型。可能为以下值: STANDARD(标准存储) DEGRADE(低频存储) ARCHIVE(归档存储) DEEP_ARCHIVE(深度归档存储) ARCHIVE+STANDARD(归档存储已回热) DEEP_ARCHIVE+STANDARD(深度归档存储已回热) |
{"version": "2.0","statement": [{"action": "name/sts:AssumeRole","effect": "allow","principal": {"service": "cos.cloud.tencent.com"}}]}
COSBucketDestination需要配置为源桶。Encryption字段。IncludedObjectVersions字段。OptionalFields 字段请按下方示例入参。PUT /?inventory HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth StringContent-MD5: MD5<InventoryConfiguration><IsEnabled>true</IsEnabled><Destination><COSBucketDestination><Format>CSV</Format><AccountId>1000000000</AccountId><Bucket>qcs::cos:ap-beijing::bucketname-100000000</Bucket><Prefix>/testprefix</Prefix></COSBucketDestination></Destination><Schedule><Frequency>Daily</Frequency></Schedule><Filter><Prefix>/my-inventory</Prefix></Filter><OptionalFields><Field>ATime</Field><Field>ACL</Field><Field>MTime</Field><Field>CTime</Field><Field>Size</Field><Field>UserName</Field><Field>GroupName</Field><Field>StorageClass</Field><Field>FileType</Field></OptionalFields></InventoryConfiguration>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 0Date: Mon, 28 Aug 2018 02:53:38 GMTServer: tencent-cosx-cos-request-id: NTlhMzg1ZWVfMjQ4OGY3MGFfMWE1NF8****
GET /?inventory&id=inventory-configuration-ID HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 331Date: Mon, 28 Aug 2018 02:53:39 GMTServer: tencent-cosx-cos-request-id: NTlhMzg1ZWVfMjQ4OGY3MGFfMWE1NF84Y2M<?xml version = "1.0" encoding = "UTF-8"><InventoryConfiguration xmlns = "http://...."><Id>12761</Id><IsEnabled>true</IsEnabled><Destination><COSBucketDestination><Format>CSV</Format><AccountId>1000000000</AccountId><Bucket>qcs::cos:ap-beijing::bucketname-100000000</Bucket><Prefix>/testprefix</Prefix></COSBucketDestination></Destination><Schedule><Frequency>Daily</Frequency></Schedule><Filter><Prefix>/my-inventory</Prefix></Filter><OptionalFields><Field>ATime</Field><Field>ACL</Field><Field>MTime</Field><Field>CTime</Field><Field>Size</Field><Field>UserName</Field><Field>GroupName</Field><Field>StorageClass</Field><Field>FileType</Field></OptionalFields></InventoryConfiguration>
GET /?inventory HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
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>12761</Id><IsEnabled>true</IsEnabled><Destination><COSBucketDestination><Format>CSV</Format><AccountId>1000000000</AccountId><Bucket>qcs::cos:ap-beijing::bucketname-100000000</Bucket><Prefix>/testprefix</Prefix></COSBucketDestination></Destination><Schedule><Frequency>Daily</Frequency></Schedule><Filter><Prefix>/my-inventory</Prefix></Filter><OptionalFields><Field>ATime</Field><Field>ACL</Field><Field>MTime</Field><Field>CTime</Field><Field>Size</Field><Field>UserName</Field><Field>GroupName</Field><Field>StorageClass</Field><Field>FileType</Field></OptionalFields></InventoryConfiguration><InventoryConfiguration><Id>12762</Id><IsEnabled>true</IsEnabled><Destination><COSBucketDestination><Format>CSV</Format><AccountId>1000000000</AccountId><Bucket>qcs::cos:ap-beijing::bucketname-100000000</Bucket><Prefix>/testprefix</Prefix></COSBucketDestination></Destination><Schedule><Frequency>Daily</Frequency></Schedule><Filter><Prefix>/my-inventory2</Prefix></Filter><OptionalFields><Field>ATime</Field><Field>ACL</Field><Field>MTime</Field><Field>CTime</Field><Field>Size</Field><Field>UserName</Field><Field>GroupName</Field><Field>StorageClass</Field><Field>FileType</Field></OptionalFields></InventoryConfiguration><IsTruncated>false</IsTruncated></ListInventoryConfigurationResult>
DELETE /?inventory&id=inventory-configuration-id HTTP/1.1Host: <BucketName-APPID>.cos.<Region>.myqcloud.comDate: GMT DateAuthorization: Auth String
HTTP/1.1 204 No ContentServer: tencent-cosDate: Mon, 28 Aug 2018 02:53:40 GMTx-cos-id-2:0dfafa/DAPDIFdafdsfDdfSFFfdfKKJdafasiuKJK2x-cos-request-id: NTlhM2I3M2JfMjQ4OGY3MGFfMWE1NF84****
文档反馈