--- title: "GetObjectLockConfiguration" slug: "ncloudstorage-getobjectlockconfiguration" updated: 2026-09-17T10:12:30Z published: 2026-09-17T10:12:30Z 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 Available in Classic and VPC Get the object lock settings set on an Ncloud Storage bucket. ## Request This section describes the request format. The method and URI are as follows: | Method | URI | | --- | --- | | GET | - | ### Request headers For information about the headers common to all Ncloud Storage APIs, see [Ncloud Storage request headers](/docs/en/storage-ncloudstorage#%EC%9A%94%EC%B2%AD%ED%97%A4%EB%8D%94). ### Request example The request example is as follows: ``` GET /?object-lock HTTP/1.1 Host: {Bucket}.kr.ncloudstorage.com ``` ## Response This section describes the response format. ### Response headers For information about the headers common to all Ncloud Storage APIs, see [Ncloud Storage response headers](/docs/en/storage-ncloudstorage#%EC%9D%91%EB%8B%B5%ED%97%A4%EB%8D%94). ### Response body The response body includes the following data: | Field | Type | Required | Description | | --- | --- | --- | --- | | `ObjectLockConfiguration` | Object | - | Object lock settings | | `ObjectLockConfiguration.ObjectLockEnabled` | String | - | Whether object lock is enabled - `Enabled` | | `ObjectLockConfiguration.Rule` | Object | - | Default retention rule - Displayed if the default retention period is set | | `ObjectLockConfiguration.Rule.DefaultRetention` | Object | - | Default retention settings | | `ObjectLockConfiguration.Rule.DefaultRetention.Mode` | String | - | Default retention mode - `GOVERNANCE` \| `COMPLIANCE` | | `ObjectLockConfiguration.Rule.DefaultRetention.Days` | Integer | - | Default retention period (days) - Displayed if `Days` is set | | `ObjectLockConfiguration.Rule.DefaultRetention.Years` | Integer | - | Default retention period (years) - Displayed if `Years` is set | ### Response status codes The following describes the response status codes. Note For information about the HTTP status codes common to all Ncloud Storage APIs, see [Common Ncloud Storage response status codes](/docs/en/storage-ncloudstorage#%EC%9D%91%EB%8B%B5%EC%83%81%ED%83%9C%EC%BD%94%EB%93%9C). | Error code | HTTP status code | Description | | --- | --- | --- | | `ObjectLockConfigurationNotFoundError` | 404 | No object lock settings exist in the bucket. | ### Response example The response example is as follows: ``` HTTP/1.1 200 OK Enabled GOVERNANCE 30 ```