--- title: "upload-part" slug: "cli-objectstorage-api-level-upload-part" updated: 2026-10-08T09:50:47Z published: 2026-10-08T09:50:47Z canonical: "cli.ncloud-docs.com/cli-objectstorage-api-level-upload-part" --- > ## 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. # upload-part Classic/VPC環境で利用できます。 マルチパートアップロードのパートをアップロードします。 ## 構文 `upload-part`構文は次の通りです。 ``` aws s3api upload-part \ --bucket \ --key \ --part-number \ --upload-id \ [--body ] \ [--content-length ] \ [--content-md5 ] \ [--sse-customer-algorithm ] \ [--sse-customer-key ] \ [--sse-customer-key-md5 ] \ --endpoint-url ``` ## オプション `upload-part`の実行時に指定できるオプションについて説明します。 ### 必須オプション `upload-part`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--bucket` | String | Required | バケット名 | | `--key` | String | Required | オブジェクト名 | | `--part-number` | Integer | Required | アップロード中のパート番号 - パート数は1~10,000まで可能 | | `--upload-id` | String | Required | マルチパートアップロード ID - [list-multipart-uploads](/docs/ja/cli-objectstorage-api-level-list-multipart-uploads)を参照 | ### 任意オプション `upload-part`の任意オプションです。指定しない場合、オプションにはデフォルト値が適用されます。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--body` | String | Optional | オブジェクトのパスまたはファイル | | `--content-length` | Long | Optional | リクエストデータのサイズ (Byte) | | `--content-md5` | String | Optional | リクエストデータの Base64エンコードされた128ビット MD5ハッシュ値 - リクエストデータの整合性検証に使用 - 未入力の場合、自動計算 | | `--sse-customer-algorithm` | String | Optional | ユーザー暗号化アルゴリズム (AES256) | | `--sse-customer-key` | String | Optional | ユーザー提供の暗号化キー | | `--sse-customer-key-md5` | String | Optional | ユーザー提供暗号化キーの MD5 | ### 共通オプション `aws`コマンドで共通して使用するオプションについては、[Object Storageのオプション](/docs/ja/guide-objectstorage#%EC%98%B5%EC%85%98)をご参照ください。 ## 例 パートのアップロードリクエストが成功すると、パートの識別情報が返されます。 ### コマンド コマンドの例は次の通りです。 ``` aws s3api upload-part --bucket my-test-bucket \ --key large.bin \ --part-number 1 \ --body part-aa \ --upload-id {upload_id} \ --endpoint-url=https://kr.object.ncloudstorage.com ``` ### 出力 出力の例は次の通りです。 ``` { "ETag": "\"57325bca2c5c2cb6adf5aa9a66fb4e2d\"" } ```