ncloud_ncs_put_object
Upload a text object to an Ncloud Storage bucket with optional storage class, server-side encryption, and Object Lock headers. Use dryRun=true to preview before writing.
Instructions
[Ncloud Storage] Upload a text object to a Ncloud Storage bucket (PUT /{key}). Optional storage class (STANDARD (default): Standard Class | ONEZONE_IA: One Zone-IA (Infrequent Access) Class | DEEP_ARCHIVE: Archive Class), server-side encryption and Object Lock headers. Use dryRun=true to preview.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bucketName": "<bucketName>",
"key": "<key>",
"body": "<body>"
},
"name": "ncloud_ncs_put_object"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Object key (path) to upload to, e.g. 'folder/file.txt' | |
| body | Yes | Content to upload as the object body | |
| dryRun | No | If true (default), returns a preview without actually uploading | |
| ifMatch | No | If-Match — write only if the current object's ETag equals this value (quotes optional). '*' is not supported. Cannot be combined with ifNoneMatch. Fails with 412 PreconditionFailed otherwise | |
| bucketName | Yes | Name of the Ncloud Storage bucket | |
| contentType | No | Content-Type of the object (e.g. 'text/plain', 'application/json') | |
| ifNoneMatch | No | If-None-Match — only '*': write only if no object with this key exists (create-only). Cannot be combined with ifMatch. Fails with 412 PreconditionFailed if the key exists | |
| storageClass | No | x-amz-storage-class — STANDARD (default): Standard Class | ONEZONE_IA: One Zone-IA (Infrequent Access) Class | DEEP_ARCHIVE: Archive Class. Omit to use STANDARD | |
| objectLockMode | No | x-amz-object-lock-mode — GOVERNANCE | COMPLIANCE (bucket must have Object Lock enabled; give objectLockRetainUntilDate too) | |
| expectedBucketOwner | No | x-amz-expected-bucket-owner — expected owner account number of the bucket: the account number inside any resource NRN (nrn:PUB:<service>:<region>:<accountNo>:…, e.g. from ncloud_resource_list_resources). The 36-char owner ID from ncloud_ncs_list_buckets is rejected as InvalidBucketOwnerAWSAccountID. A different owner is rejected with AccessDenied (403) | |
| objectLockLegalHold | No | x-amz-object-lock-legal-hold — ON | OFF | |
| serverSideEncryption | No | x-amz-server-side-encryption — AES256 (SSE-S3) | aws:kms | |
| objectLockRetainUntilDate | No | x-amz-object-lock-retain-until-date, ISO 8601 (e.g. 2027-01-01T00:00:00Z) |