--- title: "get-object-legal-hold" slug: "get-object-legal-hold" updated: 2026-10-08T05:00:14Z published: 2026-10-08T05:00:14Z canonical: "cli.ncloud-docs.com/get-object-legal-hold" --- > ## 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-legal-hold Available in Classic and VPC Get the legal hold status set on an Ncloud Storage object. Note For a Sub Account user to execute this command, they must have the View/GetObjectLegalHold action permission. ## Syntax The `get-object-legal-hold` syntax is as follows: ``` aws s3api get-object-legal-hold \ --bucket \ --key \ [--version-id ] \ --endpoint-url ``` ## Options This section describes the options available when running `get-object-legal-hold`. ### Required options The following options are required for `get-object-legal-hold`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--bucket` | String | Required | Bucket name | | `--key` | String | Required | Object name | ### Optional options These are the optional options for `get-object-legal-hold`. Options that are not specified will use their default values. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--version-id` | String | Optional | Object version ID | ### 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 legal retention information is successful, the object's legal retention status is returned. ### Command The command example is as follows: ``` aws s3api get-object-legal-hold --bucket my-locked-bucket \ --key locked.txt \ --endpoint-url=https://kr.ncloudstorage.com ``` ### Output The output example is as follows: ``` { "LegalHold": { "Status": "ON" } } ``` ## Related commands Related commands are as follows: - [put-object-lock-configuration](/docs/en/put-object-lock-configuration) - [get-object-lock-configuration](/docs/en/get-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)