--- title: "stat" slug: "cli-archivestorage-stat" updated: 2026-10-22T09:07:27Z published: 2026-10-22T09:07:27Z canonical: "cli-gov.ncloud-docs.com/cli-archivestorage-stat" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli-gov.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 | 정보 조회 요청에 사용할 표준 HTTP 헤더 - `header:value` 형식으로 입력. 사용자 정의 메타데이터(X-Object-Meta-{header}:value)의 경우, 이 명령에서는 메타데이터가 갱신되지 않음 - 반복 입력 가능 (예시: `--header If-Modified-Since:"Wed, 01 Sep 2026 00:00:00 GMT" --header Accept:application/json`) | ### 공통 옵션 `swift` 명령에서 공통으로 사용하는 옵션에 대한 정보는 [Archive Storage 옵션](/docs/guide-archivestorage#%EC%98%B5%EC%85%98)을 참조해 주십시오. ## 예시 명령을 실행하면 조회 대상의 식별 정보와 메타데이터가 출력됩니다. ### 명령 어카운트 정보를 조회하는 명령 예시는 다음과 같습니다. ``` swift stat ``` 오브젝트 정보를 조회하는 명령 예시는 다음과 같습니다. ``` swift stat test-container-01 sample.txt ``` ### 출력 어카운트 정보를 조회하는 출력 예시는 다음과 같습니다. ``` Account: AUTH_a1b2c3d4e5f64a7b8c9d0e1f2a3b4c5d Containers: 4 Objects: 9 Bytes: 209716553 Containers in policy "standard00": 4 Objects in policy "standard00": 9 Bytes in policy "standard00": 209716553 Meta Purpose0: Documentation0 Content-Type: application/json; charset=utf-8 X-Timestamp: 1787817491.69003 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: 21 Last Modified: Mon, 31 Aug 2026 05:43:24 GMT ETag: b1a69af9fca78ffacfba90c9562f4793 Meta Mtime: 1788154921.043135 X-Timestamp: 1788155003.28312 Accept-Ranges: bytes X-Trans-Id: tx2b3c4d5e6f7a8901bcdef-00b2c3d4e5 X-Openstack-Request-Id: tx2b3c4d5e6f7a8901bcdef-00b2c3d4e5 ```