릴리스 노트
제품 공지
cos:GetBucketInventory으로 설정해야 합니다.cos:PutBucketInventory으로 설정해야 합니다.cos:DeleteBucketInventory으로 설정해야 합니다.cos:GetBucketInventory으로 설정해야 합니다.cos:PostBucketInventory으로 설정해야 합니다../coscli inventory --method [method] cos://<bucket-name>
매개변수 형식 | 매개변수 용도 | 예시 |
cos://<bucket-name> | 버킷 별칭으로 접근: cos://example-alias 버킷 이름으로 접근: cos://examplebucket-1250000000 |
flag 약칭 | flag 전체 명칭 | flag 용도 |
-h | --help | 명령어 구체 사용법 확인 |
없음 | --method | put(버킷 인벤토리 설정), get(버킷 인벤토리 조회), delete(버킷 인벤토리 삭제), list(버킷 인벤토리 나열), post(일회성 인벤토리 시작) 등 수행할 작업 지정 |
없음 | --task-id | 인벤토리 작업 ID |
없음 | --configuration | 인벤토리 구성(JSON 형식, XML 형식 또는 직접 파일 경로 지정 지원, 예: /data/configuration.txt는 file:///data/configuration.txt로 지정해야 함) |
./coscli inventory --method put cos://example-alias --task-id list4 --configuration "<InventoryConfiguration>...</InventoryConfiguration>"
./coscli inventory --method get cos://example-alias --task-id list4
SECTION | KEY | VALUE------------------+-------------------+------------------------------------------------Basic | ID | list4+ +-------------------+-----------------------------------------------+| Enabled | false+ +-------------------+-----------------------------------------------+| Included Versions | All+-----------------+-------------------+-----------------------------------------------+| |+-----------------+-------------------+-----------------------------------------------+Schedule | Frequency | Weekly+-----------------+-------------------+-----------------------------------------------+| |+-----------------+-------------------+-----------------------------------------------+Destination | Bucket | qcs::cos:ap-nanjing::test-125000000+ +-------------------+-----------------------------------------------+| Format | CSV+ +-------------------+-----------------------------------------------+| Account ID | 100000000+ +-------------------+-----------------------------------------------+| Prefix | list4+-----------------+-------------------+-----------------------------------------------+| |+-----------------+-------------------+-----------------------------------------------+Filter | Prefix | myPrefix+ +-------------------+-----------------------------------------------+| Tag | age=18+ +-------------------+-----------------------------------------------+| Period | 2026-01-18 to 2019-09-17+-----------------+-------------------+-----------------------------------------------+| |+-----------------+-------------------+-----------------------------------------------+Optional Fields | Field | Size+ + +-----------------------------------------------+| | ETag+ + +-----------------------------------------------+| | StorageClass+ + +-----------------------------------------------+| | IsMultipartUploaded+ + +-----------------------------------------------+| | Tag+ + +-----------------------------------------------+| | LastModifiedDate------------------+-------------------+------------------------------------------------Inventory Configuration Details
./coscli inventory --method delete cos://example-alias --task-id list4
./coscli inventory --method list cos://example-alias
ID | STATUS | SCHEDULE | INCLUDEDOBJECTVERSIONS | DESTINATION | FILTER | FIELDS--------+----------+-------------------+------------------------+-------------------------------------------------------+----------------------------------+----------------------list1 | Enabled | Frequency: Daily | All | Bucket: qcs::cos:ap-nanjing::test-125000000 | Period: 2019-09-17 to 2019-09-17 | Size| | | | Format: CSV | | ETag| | | | Account: 1000000000 | | StorageClass| | | | Prefix: list1 | | IsMultipartUploaded| | | | | | ReplicationStatus| | | | | | LastModifiedDate--------+----------+-------------------+------------------------+-------------------------------------------------------+----------------------------------+----------------------list3 | Disabled | Frequency: Weekly | All | Bucket: qcs::cos:ap-nanjing::test-125000000 | Period: 2026-01-18 to 2019-09-17 | Size| | | | Format: CSV | | ETag| | | | Account: 1000000000 | | StorageClass| | | | Prefix: list3 | | IsMultipartUploaded| | | | | | ReplicationStatus| | | | | | LastModifiedDate--------+----------+-------------------+------------------------+-------------------------------------------------------+----------------------------------+----------------------list4 | Disabled | Frequency: Weekly | All | Bucket: qcs::cos:ap-nanjing::test-125000000 | Prefix: myPrefix | Size| | | | Format: CSV | Tags: age=18 | ETag| | | | Account: 1000000000 | Period: 2026-01-18 to 2019-09-17 | StorageClass| | | | Prefix: list4 | | IsMultipartUploaded| | | | | | Tag| | | | | | LastModifiedDate--------+----------+-------------------+------------------------+-------------------------------------------------------+----------------------------------+----------------------Detailed COS Bucket Inventory ConfigurationsTotal inventory configurations: 3
./coscli inventory --method post cos://example-alias --task-id list4 --configuration "<InventoryConfiguration>...</InventoryConfiguration>"
피드백