Available in Classic and VPC
Get the object lock settings set on an Ncloud Storage bucket.
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 <bucket> \
--endpoint-url <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.
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: