--- title: "get-object-retention" slug: "get-object-retention" updated: 2026-09-17T09:16:11Z published: 2026-09-17T09:16:11Z canonical: "cli.ncloud-docs.com/get-object-retention" --- > ## 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-retention Classic/VPC 환경에서 이용 가능합니다. Ncloud Storage 객체에 설정된 보존 정보를 조회합니다. 참고 Sub Account 사용자가 이 명령어를 실행하려면 View/GetObjectRetention 액션 권한이 있어야 합니다. ## 구문 `get-object-retention` 구문은 다음과 같습니다. ``` aws s3api get-object-retention \ --bucket \ --key \ [--version-id ] \ --endpoint-url ``` ## 옵션 `get-object-retention` 실행 시 지정할 수 있는 옵션을 설명합니다. ### 필수 옵션 `get-object-retention`의 필수 옵션입니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--bucket` | String | Required | 버킷 이름 | | `--key` | String | Required | 객체 이름 | ### 선택 옵션 `get-object-retention`의 선택 옵션입니다. 지정하지 않은 옵션에는 기본값이 적용됩니다. | 옵션 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `--version-id` | String | Optional | 객체의 버전 ID | ### 공통 옵션 `aws` 명령에서 공통으로 사용하는 옵션에 대한 정보는 [Ncloud Storage 옵션](/docs/storage-ncloudstorage#%EC%98%B5%EC%85%98)을 참조해 주십시오. ## 예시 보존 설정 조회 요청이 성공하면 객체의 보존 모드와 보존 만료 일시가 반환됩니다. ### 명령 명령 예시는 다음과 같습니다. ``` aws s3api get-object-retention --bucket my-locked-bucket \ --key locked.txt \ --endpoint-url=https://kr.ncloudstorage.com ``` ### 출력 출력 예시는 다음과 같습니다. ``` { "Retention": { "Mode": "GOVERNANCE", "RetainUntilDate": "2026-08-25T00:00:00.000Z" } } ``` ## 연관 명령어 연관 명령어는 다음과 같습니다. - [put-object-lock-configuration](/docs/put-object-lock-configuration) - [get-object-lock-configuration](/docs/get-object-lock-configuration) - [put-object-retention](/docs/put-object-retention) - [put-object-legal-hold](/docs/put-object-legal-hold) - [get-object-legal-hold](/docs/get-object-legal-hold)