--- title: "get-object-attributes" slug: "get-object-attributes" updated: 2026-09-17T09:16:11Z published: 2026-09-17T09:16:11Z canonical: "cli.ncloud-docs.com/get-object-attributes" --- > ## 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. # get-object-attributes Classic/VPC 환경에서 이용 가능합니다. Ncloud Storage 버킷에 저장된 객체의 메타데이터를 조회합니다. 참고 Sub Account 사용자가 이 명령어를 실행하려면 View/GetObject, View/GetObjectAttributes 액션 권한이 있어야 합니다. 특정 버전(`--version-id`)을 조회하는 경우, View/GetObjectVersion과 View/GetObjectVersionAttributes 액션 권한이 필요합니다. ## 구문 `get-object-attributes` 구문은 다음과 같습니다. ``` aws s3api get-object-attributes \ --bucket \ --key \ --object-attributes \ [--version-id ] \ [--max-parts ] \ [--part-number-marker ] \ [--sse-customer-algorithm ] \ [--sse-customer-key ] \ [--sse-customer-key-md5 ] \ --endpoint-url ``` ## 옵션 `get-object-attributes` 실행 시 지정할 수 있는 옵션을 설명합니다. ### 필수 옵션 `get-object-attributes`의 필수 옵션입니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--bucket` | String | Required | 버킷 이름 | | `--key` | String | Required | 객체 이름 | | `--object-attributes` | List | Required | 객체 속성 목록 - `ETag` \| `Checksum` \| `ObjectParts` \| `StorageClass` \| `ObjectSize` | ### 선택 옵션 `get-object-attributes`의 선택 옵션입니다. 지정하지 않은 옵션에는 기본값이 적용됩니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--version-id` | String | Optional | 객체의 버전 ID | | `--max-parts` | Integer | Optional | 출력에 포함할 최대 파트 수 - `0`~`2147483647` (기본값: `1000`) | | `--part-number-marker` | Integer | Optional | 파트 조회를 시작할 기준 파트 번호 - `0`~`2147483647` | | `--sse-customer-algorithm` | String | Optional | 사용자 암호화 알고리즘 (AES256) | | `--sse-customer-key` | String | Optional | 사용자 제공 암호화 키 | | `--sse-customer-key-md5` | String | Optional | 사용자 제공 암호화 키의 MD5 값 | ### 공통 옵션 `aws` 명령에서 공통으로 사용하는 옵션에 대한 정보는 [Ncloud Storage 옵션](/docs/storage-ncloudstorage#%EC%98%B5%EC%85%98)을 참조해 주십시오. ## 예시 객체 속성 조회 요청이 성공하면 요청한 속성 정보와 버전 정보가 반환됩니다. ### 명령 명령 예시는 다음과 같습니다. ``` aws s3api get-object-attributes --bucket my-test-bucket \ --key img/image.png \ --object-attributes ETag ObjectSize StorageClass \ --endpoint-url=https://kr.ncloudstorage.com ``` ### 출력 출력 예시는 다음과 같습니다. ``` { "LastModified": "Fri, 04 Sep 2026 06:19:10 GMT", "ETag": "7cb4883d8f0eede455af0738a2d83b4b", "StorageClass": "STANDARD", "ObjectSize": 40960 } ``` ## 연관 명령어 연관 명령어는 다음과 같습니다. - [get-object](/docs/get-object) - [head-object](/docs/head-object) - [list-parts](/docs/list-parts)