--- title: "stat" slug: "cli-archivestorage-stat" updated: 2026-10-08T09:45:27Z published: 2026-10-08T09:45:27Z canonical: "cli.ncloud-docs.com/cli-archivestorage-stat" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # stat Classic/VPC環境で利用できます。 アカウント、コンテナ(バケット)、またはオブジェクトの情報を照会します。 ## 構文 `stat`構文は次の通りです。 - アカウント ``` swift stat \ [--lh] \ [--header ] ``` - コンテナ ``` swift stat \ \ [--lh] \ [--header ] ``` - オブジェクト ``` swift stat \ \ [--lh] \ [--header ] ``` ## オプション `stat`の実行時に指定できるオプションについて説明します。 ### 必須オプション `stat`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `<container>` | String | Conditional | コンテナ名 - 未入力の場合、アカウント情報を照会 - `<object>`入力時、必ず入力 | ### 任意オプション `stat`の任意オプションです。指定しない場合、オプションにはデフォルト値が適用されます。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `<object>` | String | Optional | オブジェクト名 - `<container>`と併せて入力 | | `--lh` | Boolean | Optional | サイズを読みやすい単位で表示 | | `--header` | String | Optional | 情報照会リクエストに使用するユーザー定義ヘッダ - `header:value`形式で入力 | ### 共通オプション `swift`コマンドで共通して使用するオプションについては、[Archive Storageのオプション](/docs/ja/guide-archivestorage#%EC%98%B5%EC%85%98)をご参照ください。 ## 例 コマンドを実行すると、照会対象の識別情報とメタデータが出力されます。 ### コマンド アカウント情報を照会するコマンドの例は次の通りです。 ``` swift stat ``` オブジェクト情報を照会するコマンドの例は次の通りです。 ``` swift stat test-container-01 sample.txt ``` ### 出力 アカウント情報を照会する出力の例は次の通りです。 ``` Account: AUTH_a1b2c3d4e5f64a7b8c9d0e1f2a3b4c5d Containers: 1 Objects: 1 Bytes: 22 Containers in policy "standard00": 1 Objects in policy "standard00": 1 Bytes in policy "standard00": 22 Content-Type: application/json; charset=utf-8 X-Timestamp: 1787104388.45305 Accept-Ranges: bytes X-Account-Project-Domain-Id: default X-Trans-Id: tx1a2b3c4d5e6f7890abcde-00a1b2c3d4 X-Openstack-Request-Id: tx1a2b3c4d5e6f7890abcde-00a1b2c3d4 ``` オブジェクト情報を照会する出力の例は次の通りです。 ``` Account: AUTH_a1b2c3d4e5f64a7b8c9d0e1f2a3b4c5d Container: test-container-01 Object: sample.txt Content Type: text/plain Content Length: 54 Last Modified: Wed, 19 Aug 2026 01:53:20 GMT ETag: 448575206ef0bb80c79087a7e85c1f5c Meta Mtime: 1787104388.114041 X-Timestamp: 1787104399.90791 Accept-Ranges: bytes X-Trans-Id: tx2b3c4d5e6f7a8901bcdef-00b2c3d4e5 X-Openstack-Request-Id: tx2b3c4d5e6f7a8901bcdef-00b2c3d4e5 ```