--- title: "GetObjectLockConfiguration" slug: "ncloudstorage-getobjectlockconfiguration" updated: 2026-09-17T09:17:01Z published: 2026-09-17T09:17:01Z canonical: "api.ncloud-docs.com/ncloudstorage-getobjectlockconfiguration" --- > ## Documentation Index > Fetch the complete documentation index at: https://api.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # GetObjectLockConfiguration Classic/VPC 환경에서 이용 가능합니다. Ncloud Storage 버킷에 적용된 Object Lock 설정을 조회합니다. ## 요청 요청 형식을 설명합니다. 요청 형식은 다음과 같습니다. | 메서드 | URI | | --- | --- | | GET | - | ### 요청 헤더 Ncloud Storage API에서 공통으로 사용하는 헤더에 대한 정보는 [Ncloud Storage 요청 헤더](/docs/storage-ncloudstorage#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 요청 예시 요청 예시는 다음과 같습니다. ``` GET /?object-lock HTTP/1.1 Host: {Bucket}.kr.ncloudstorage.com ``` ## 응답 응답 형식을 설명합니다. ### 응답 헤더 Ncloud Storage API에서 공통으로 사용하는 헤더에 대한 정보는 [Ncloud Storage 응답 헤더](/docs/storage-ncloudstorage#%EC%9D%91%EB%8B%B5%ED%97%A4%EB%8D%94)를 참조해 주십시오. ### 응답 바디 응답 바디에 대한 설명은 다음과 같습니다. | 필드 | 타입 | 필수 여부 | 설명 | | --- | --- | --- | --- | | `ObjectLockConfiguration` | Object | - | Object Lock 설정 | | `ObjectLockConfiguration.ObjectLockEnabled` | String | - | Object Lock 활성화 여부 - `Enabled` | | `ObjectLockConfiguration.Rule` | Object | - | 기본 보존 규칙 - 기본 보존 기간이 설정된 경우에 표시 | | `ObjectLockConfiguration.Rule.DefaultRetention` | Object | - | 기본 보존 설정 | | `ObjectLockConfiguration.Rule.DefaultRetention.Mode` | String | - | 기본 보존 모드 - `GOVERNANCE` \| `COMPLIANCE` | | `ObjectLockConfiguration.Rule.DefaultRetention.Days` | Integer | - | 기본 보존 기간(일) - `Days` 설정 시 표시 | | `ObjectLockConfiguration.Rule.DefaultRetention.Years` | Integer | - | 기본 보존 기간(년) - `Years` 설정 시 표시 | ### 응답 상태 코드 응답 상태 코드에 대한 설명은 다음과 같습니다. 참고 Ncloud Storage API에서 공통으로 사용하는 응답 상태 코드에 대한 정보는 [Ncloud Storage 응답 상태 코드](/docs/storage-ncloudstorage#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C)를 참조해 주십시오. | 에러 코드 | HTTP 상태 코드 | 설명 | | --- | --- | --- | | `ObjectLockConfigurationNotFoundError` | 404 | 버킷에 Object Lock 설정이 존재하지 않음 | ### 응답 예시 응답 예시는 다음과 같습니다. ``` HTTP/1.1 200 OK Enabled GOVERNANCE 30 ```