--- title: "get-object-lock-configuration" slug: "get-object-lock-configuration" updated: 2026-10-08T05:00:41Z published: 2026-10-08T05:00:41Z canonical: "cli.ncloud-docs.com/get-object-lock-configuration" --- > ## 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-lock-configuration Available in Classic and VPC Get the object lock settings set on an Ncloud Storage bucket. Note For a Sub Account user to execute this command, they must have the View/GetBucketObjectLockConfiguration action permission. ## Syntax The `get-object-lock-configuration` syntax is as follows: ``` aws s3api get-object-lock-configuration \ --bucket \ --endpoint-url ``` ## Options This section describes the options available when running `get-object-lock-configuration`. ### Required options The following options are required for `get-object-lock-configuration`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--bucket` | String | Required | Bucket name | ### Common options For information about the options common to all `aws` subcommands, see [Ncloud Storage options](/docs/en/storage-ncloudstorage#%EC%98%B5%EC%85%98). ## Examples If the request to retrieve object lock settings is successful, the bucket's object lock status and default retention settings are returned. ### Command The command example is as follows: ``` aws s3api get-object-lock-configuration --bucket my-locked-bucket \ --endpoint-url=https://kr.ncloudstorage.com ``` ### Output The output example is as follows: ``` { "ObjectLockConfiguration": { "ObjectLockEnabled": "Enabled" } } ``` ## Related commands Related commands are as follows: - [put-object-lock-configuration](/docs/en/put-object-lock-configuration) - [put-object-retention](/docs/en/put-object-retention) - [get-object-retention](/docs/en/get-object-retention) - [put-object-legal-hold](/docs/en/put-object-legal-hold) - [get-object-legal-hold](/docs/en/get-object-legal-hold)