製品アップデート情報
製品のお知らせ
cos:GetBucketInventoryに設定する必要があります。cos:PutBucketInventoryに設定する必要があります。cos:DeleteBucketInventoryに設定する必要があります。cos:GetBucketInventoryに設定する必要があります。cos:PostBucketInventoryに設定する必要があります。./coscli inventory --method [method] cos://<bucket-name>
パラメータ形式 | パラメータ用途 | 例 |
cos://<bucket-name> | アクセスしたいバケットを指定します。パラメータ設定で設定したバケットエイリアス、またはバケット名でアクセスできます。バケット名でアクセスする場合は、追加で endpoint flagを指定する必要があります。 | バケットエイリアスでアクセス:cos://example-alias バケット名でアクセス:cos://examplebucket-1250000000 |
flag(短縮形) | flag(完全形) | flag(使用) |
-h | --help | コマンドの具体的な使用方法 |
なし | --method | 実行する操作を指定します。put(バケットインベントリ設定)、get(バケットインベントリ照会)、delete(バケットインベントリ削除)、list(バケットインベントリ一覧表示)、post(1回限りのインベントリ開始)が含まれます。 |
なし | --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>"
フィードバック