--- title: "restore-object" slug: "restore-object" updated: 2026-10-08T09:48:45Z published: 2026-10-08T09:48:45Z canonical: "cli.ncloud-docs.com/restore-object" --- > ## 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. # restore-object Classic/VPC環境で利用できます。 Archive Classに保存したオブジェクトにアクセスできるようにオブジェクトを復元してコピーを保存します。 参考 Sub Accountユーザーがこのコマンドを実行するには、Change/RestoreObjectアクションの権限が必要です。 ## 構文 `restore-object`構文は次の通りです。 ``` aws s3api restore-object \ --bucket \ --key \ [--version-id ] \ [--restore-request ] \ --endpoint-url ``` ## オプション `restore-object`の実行時に指定できるオプションについて説明します。 ### 必須オプション `restore-object`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--bucket` | String | Required | バケット名 | | `--key` | String | Required | オブジェクト名 | ### 任意オプション `restore-object`の任意オプションです。指定しない場合、オプションにはデフォルト値が適用されます。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--version-id` | String | Optional | オブジェクトのバージョン ID - バージョン管理が適用されたバケットで特定のバージョンのオブジェクトを復元する場合 | | `--restore-request` | String | Optional | 復元リクエスト設定 - JSON形式で入力 - `Days`: 復元されたコピーを Standardストレージクラスに保持する日数 | ### 共通オプション `aws`コマンドで共通して使用するオプションについては、[Ncloud Storageのオプション](/docs/ja/storage-ncloudstorage#%EC%98%B5%EC%85%98)をご参照ください。 ## 例 オブジェクトの復元リクエストが成功すると、復元が開始され、結果は出力されません。 ### コマンド コマンドの例は次の通りです。 ``` aws s3api restore-object --bucket my-test-bucket \ --key img/image2.png \ --restore-request '{"Days":1}' \ --endpoint-url=https://kr.ncloudstorage.com ``` ## 関連コマンド 関連コマンドは次の通りです。 - [get-object](/docs/ja/get-object) - [head-object](/docs/ja/head-object) - [put-object](/docs/ja/put-object)