Applicable Products
myQNAPcloud Object
What is myQNAPcloud Object?
myQNAPcloud Object is a cloud-based object storage service designed to provide high-performance, reliable, and secure data storage for a broad range of applications and use cases. This service is built to be fully compatible with the Amazon Web Service Simple Storage Service (AWS S3) API, ensuring seamless integration with S3-compatible applications and gateway devices.
myQNAPcloud Object is tailored for individuals and organizations seeking a cost-effective and efficient data storage infrastructure. Designed to work with S3-compatible applications, myQNAPcloud Object enables users to leverage familiar tools and workflows while benefiting from the reliability and flexibility of QNAP’s ecosystem.
- Compatibility: myQNAPcloud Object is designed to be fully compatible with the AWS S3 API, ensuring that existing AWS S3-compatible applications can work seamlessly.
- Performance: myQNAPcloud Object offers a high-performance storage solution optimized for reliability and efficiency.
About myQNAPcloud Object S3 API Guide
While myQNAPcloud Object aligns closely with AWS S3, certain features may have been enhanced or implemented differently. This guide aims to clarify these nuances to help users maximize the potential of myQNAPcloud Object.
This guide uses examples involving access to buckets in specific myQNAPcloud Object regions. For more information about region-specific endpoints and service URLs, see "Service URLs for myQNAPcloud Object Storage Regions".
Note
- Regional URLs: When accessing buckets, ensure that you use URLs specific to the myQNAPcloud Object storage region where your bucket is created. Using the incorrect URL may allow GET requests but could result in errors for PUT or DELETE operations. Refer to the [Service URLs for myQNAPcloud Object Storage Regions].
- ASW IAM: Unlike AWS, myQNAPcloud Object does not include support for AWS IAM (Identity and Access Management). Therefore, this guide focuses exclusively on S3 API compatibility and does not reference IAM-related capabilities.
REST API Introduction
Host Designation
myQNAPcloud Object supports both path-style and virtual-style requests, similar to AWS S3. A unique host name is required (for example, s3.us-east-1.myqnapcloud.io versus s3.amazonaws.com). We recommend using path-style requests, as shown in all examples in this guide (e.g., http://s3.us-east-1.myqnapcloud.io/my-bucket/my-object) because path-style requests provide greater flexibility in bucket naming, avoiding domain name conflicts.
Always Consistent
Unlike the strong consistency model of AWS S3, myQNAPcloud Object provides an "always consistent" view of all operations. This ensures that any operation following another will produce consistent results. For instance, after deleting an object (DELETE operation), performing a subsequent HEAD request will always confirm the object's deletion, eliminating the need for additional programming to wait for operation completion.
Authenticating Requests
myQNAPcloud Object supports both autonomous and signature versions 2 and 4, compatible with AWS S3, for headers and query parameters. While signature version 4 offers better security, it requires more computational resources due to the overhead of calculating the SHA256 hash. If performance is critical, signature version 2 may be used, with MD5 (returned as the ETag header) ensuring data integrity.
For version 4 signing requests, all regions are supported for myQNAPcloud Object signing requests.
myQNAPcloud Object does not support signature signing for browser-based uploads or HTML form requests, as these operations are not currently supported.
For version 2 signing, the following sub-resource keys are specified as query parameters in requests:
- append
- compose
- force_delete=true
These query parameters must be included when calculating the signature for PutObject and DeleteBucket operations.
Error Responses
Wherever possible, myQNAPcloud Object uses error responses compatible with AWS S3. Additional error codes may also be provided for enhanced functionality.
HTTP Error Codes
| Error Code | myQNAPcloud Object Description | HTTP Status Code |
|---|
| Unavailable | Temporarily unavailable | 503 |
| Unrecoverable | Data Unrecoverable |
|
| Not Implemented | Not Implemented | 501 |
| DB Entity Not found | No such entity | 404 |
| DB Entity Found | Entity Already Exists | 409 |
| Disconnect Error | Connection Closed | 410 |
| Status Internal Server Error | Internal Error: We encountered an internal error. Please contact customer support. | 500 |
| Status Forbidden | Access Denied | 403 |
| Access Forbidden |
| Account Not Activated |
| Account Problem |
| Authentication Lockout: There have been too many attempts to access the account with the wrong credentials. Please try again in five minutes. |
| Invalid Access Key ID: The AWS Access Key ID you provided does not exist in our records. |
| Invalid Authentication Code: Authentication code for device is not valid. |
| Request Time Too Skewed: The difference between the request time and the current time is too large. |
| Invalid Object State: The operation is not valid for the current state of the object. |
| Status Bad Request | Authorization Header Malformed | 400 |
| Authorization Query Parameters Error |
| Bad Digest: The Content-MD5 you specified did not match what we received. |
| Bad Request: An error occurred when parsing the HTTP request. |
| Incomplete Signature: Request must contain a signature that conforms to AWS standards. |
| Invalid Action |
| Invalid Argument |
| Invalid Digest: The Content-MD5 you specified was invalid. |
| Invalid Input |
| Invalid Parameter Value: An invalid or out-of-range value was supplied for the input parameter. |
| Invalid Request |
| Malformed Policy |
| Malformed Policy Document |
| Password Policy Violation |
| Validation Error |
| X Amz Content SHA256 Mismatch: The provided 'x-amz-content-sha256' header does not match what was computed. |
| Encryption Not Allowed: User provided encryption keys are not allowed in this operation. |
| The object was stored using a form of Server Side Encryption. The correct parameters must be provided to retrieve the object. |
| Entity Too Large: Your proposed upload is larger than the maximum allowed size. |
| Entity Too Small: Your proposed upload is smaller than the minimum allowed size. |
| Illegal Compliance Request |
| Illegal Versioning Configuration Exception: The versioning configuration specified in the request is not valid. |
| Incomplete Body: You did not provide the number of bytes specified by the Content-Length HTTP header. |
| Invalid ACL Request: You must provide only one of either ACL headers or an XML body when setting ACLs. |
| Invalid Argument |
| Invalid Bucket Name: The specified bucket is not valid. |
| Invalid Encryption Algorithm Error: The Encryption request you specified is not valid. Supported value: AES256. |
| Invalid Part Order: The list of parts was not in ascending order. Parts must be ordered by part number. |
| Invalid Part: One or more of the specified parts could not be found. The part may not have been uploaded, or the specified entity tag may not match the part's entity tag. |
| Invalid Policy Document: The content of the form does not meet the conditions specified in the policy document. |
| Key Too Long Error: Your key is too long. |
| Logging Bucket Same Owner: The logging target bucket must have the same owner as the bucket being logged. |
| Malformed XML: The XML you provided was not well formed or did not validate against our published schema. |
| Meta data Too Large: Your metadata headers exceed the maximum allowed metadata size. |
| Request Timeout: Your socket connection to the server was not read from or written to within the timeout period. |
| Too Many Buckets: You have attempted to create more buckets than allowed. |
| Too Many Components: A composite object may not have more than 1024 components. |
| Unresolvable Grant By Email Address: The email address you provided does not match any account on record. |
| Storage Quota Exceeded: Your account has surpassed its storage limit. |
| Bucket Account Inactive: The account that owns this bucket is not active. |
| Status Gone | Connection Closed: Network connection was closed. | 410 |
| Status Unprocessable Entity | Data Unrecoverable: The data in the request is unrecoverable. Please contact customer support. | 422 |
| Status Conflict | Delete Conflict | 409 |
| Entity Already Exists |
| Entity Temporarily Unmodifiable: The entity is temporarily unmodifiable. Please try again later. |
| Limit Exceeded |
| Operation Aborted: A conflicting conditional operation is currently in progress against this resource. Please try again. |
| Bucket Already Exists |
| Bucket Not Empty |
| Compliance Settings Locked: The compliance settings are now locked and cannot be changed. |
| Status Not Found | No Such Entity | 404 |
| No Such Lifecycle Configuration: The lifecycle configuration does not exist. |
| No Such Bucket: The specified bucket does not exist. |
| No Such Bucket Policy: The bucket policy does not exist. |
| No Such Key: The specified key does not exist. |
| No Such Replication Configuration: The replication configuration does not exist. |
| No Such Tag Set Error: There is no tag set associated with the bucket. |
| No Such Upload: The specified upload does not exist. The upload ID may be invalid, or the upload may have been aborted or completed. |
| No Such Version: The specified version does not exist. |
| Status Not Implemented | Not Implemented: A header you provided implies functionality that is not implemented. | 501 |
| Status Service Unavailable | Temporarily Unavailable: Resources for this operation are temporarily unavailable. Please try again later. | 503 |
| Status Found | Key Already Exists | 302 |
| Status Method Not Allowed | Method Not Allowed: This method is not allowed for other than the account owner. | 405 |
| Method Not Allowed: The specified method is not allowed against this resource. |
| Status Length Required | Missing Content Length: You must provide the Content-Length HTTP header. | 411 |
TCP Error Codes
myQNAPcloud Object supports the following TCP error codes:
- Unexpected EOF
- Broken Pipe
- Connection reset by Peer
Not Supported in myQNAPcloud Object
| Operation | Description |
|---|
| SOAP | AWS S3 has deprecated support for SOAP, and myQNAPcloud Object does not support any SOAP operations. |
Operations on Buckets with myQNAPcloud Object S3 API
Operations on buckets include: deleting, renaming, and logging buckets as well as cross-origin resource sharing (CORS) support, lifecycle policy, object locking, and compliance.
Force Delete Bucket
AWS S3 will not allow you to delete a bucket if it contains objects that have not been deleted.
myQNAPcloud Object provides a force delete option that first deletes all the objects in the bucket and then deletes the bucket. The deletion of objects is subject to policy and compliance requirements on the bucket.
To use the force delte option, simply add it as a query string. For example:
DELETE http://s3.us-east-1.myqnapcloud.io/my-bucket?force_delete=true HTTP/1.1
Renaming a Bucket
AWS S3 does not support renaming of buckets. It only supports renaming of objects in a bucket.
myQNAPcloud Object supports the renaming of buckets. The new bucket name must not be in use for the renaming to be successful. The caller must have the s3:CreateBucket policy permission to rename a bucket.
To rename a bucket, use the HTTP method MOVE along with the header field “Destination” to give the new bucket name. For example:
MOVE http://s3.us-east-1.myqnapcloud.io/my_old_bucket HTTP/1.1
Destination: my_new_bucket
MFA (Multi-Factor Authentication) Delete
myQNAPcloud Object supports the “x-amz-mfa” header while:
- configuring versioning on a bucket, or
- deleting objects with object deletion requests compatible with AWS S3.
myQNAPcloud Object does not require the “x-amz-mfa” header if the user's access credentials signing the request were authenticated with MFA. myQNAPcloud Object only supports virtual MFA devices.
Maximum Number of Buckets
Standard AWS S3 supports only 100 buckets.
myQNAPcloud Object allows for a maximum of 1000 buckets per account and this number may be increased by contacting myQNAPcloud Object Customer Support.
Bucket Logging
myQNAPcloud Object supports bucket logging, which creates a text log file of all access to a bucket. The format of the log file is identical to the AWS S3 log file.
myQNAPcloud Object bucket logging does not require any ACL permission settings to store logs in a target bucket. Although you can give permission settings in the logging request or in an ACL, they are not required for logging to work in myQNAPcloud Object. However, the bucket that is a target for log files must be inside the same account as the bucket being logged.
Bucket Cross-Origin Resource Sharing (CORS) Support
For compatibility with browser access to myQNAPcloud Object as a web server, the myQNAPcloud Object server will return CORS headers when the header “Origin” is given in an HTTP request. Additionally, the server supports the HTTP method OPTIONS on either buckets or objects to return the CORS headers needed for a browser pre-flight test before accessing myQNAPcloud Object.
Different from AWS, myQNAPcloud Object returns the settings that will allow the browser full access to myQNAPcloud Object. Hence, myQNAPcloud Object does not support the AWS functions that allow a PUT and GET on a bucket with the “cors” parameter in the URL. Note that allowing browser full access to data does not affect the security of access to any objects and all access policies will still be enforced.
The following are the HTTP headers returned by default when the header “Origin” is given in an HTTP request:
Access-Control-Allow-Headers: *
Access-Control-Allow-Methods: GET, HEAD, POST, PUT, DELETE, MOVE, OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: *
Access-Control-Max-Age: 86400
Lifecycle Policy
The Lifecyle feature establishes a Lifecycle policy with rules to define actions that you want myQNAPcloud Object to take during the life of an object. This feature replaces the need to manually delete an object after a retention period.
Configuring Lifecycle Settings
The lifecycle settings for a bucket are configuring with the "put-bucket-lifecycle-configuration" command. For example:
$ aws s3api put-bucket-lifecycle-configuration --bucket 1-1-1-1 --endpoint-url https://s3.us-east-1.myqnapcloud.io --lifecycle-configuration file://lifecycle.json
{
"Rules": [
{
"Expiration": {
"Days": 1
},
"ID": "lifecycle_rule_1",
"Filter": {
"And": {
"ObjectSizeGreaterThan": 1,
"ObjectSizeLessThan": 21474836480
}
},
"Status": "Enabled"
},
{
"Expiration": {
"Days": 1
},
"ID": "object_lifecycle_rule_bucket_6807766",
"Filter": {
"Prefix": "1"
},
"Status": "Enabled"
}
]
}
Here is another example:
PUT https://s3.us-east-1.myqnapcloud.io/1-1-1-1?lifecycle
<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Rule>
<Expiration>
<Days>1</Days>
</Expiration>
<ID>lifecycle_rule_1</ID>
<Filter>
<And>
<ObjectSizeGreaterThan>1</ObjectSizeGreaterThan>
<ObjectSizeLessThan>21474836480</ObjectSizeLessThan>
</And>
</Filter>
<Status>Enabled</Status>
</Rule>
<Rule>
<Expiration>
<Days>1</Days>
</Expiration>
<ID>object_lifecycle_rule_bucket_6807766</ID>
<Filter>
<Prefix>1</Prefix>
</Filter>
<Status>Enabled</Status>
</Rule>
</LifecycleConfiguration>
There is no response body for this call.
Retrieving Lifecycle Settings
The lifecycle settings for a bucket can be retrieved with the "get-bucket-lifecycle-configuration" command. For example:
$ aws s3api get-bucket-lifecycle-configuration --bucket 1-1-1-1 --endpoint-url https://s3.us-east-1.myqnapcloud.io
{
"Rules": [
{
"Expiration": {
"Days": 1
},
"ID": "lifecycle_rule_1",
"Filter": {
"And": {
"ObjectSizeGreaterThan": 1,
"ObjectSizeLessThan": 21474836480
}
},
"Status": "Enabled"
},
{
"Expiration": {
"Days": 1
},
"ID": "object_lifecycle_rule_bucket_6807766",
"Filter": {
"Prefix": "1"
},
"Status": "Enabled"
}
]
}
Here is another example:
GET https://s3.us-east-1.myqnapcloud.io/1-1-1-1?lifecycle
<?xml version="1.0" encoding="UTF-8"?>
<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Rule>
<Expiration>
<Days>1</Days>
</Expiration>
<ID>lifecycle_rule_1</ID>
<Filter>
<And>
<ObjectSizeGreaterThan>1</ObjectSizeGreaterThan>
<ObjectSizeLessThan>21474836480</ObjectSizeLessThan>
</And>
</Filter>
<Status>Enabled</Status>
</Rule>
<Rule>
<Expiration>
<Days>1</Days>
</Expiration>
<ID>object_lifecycle_rule_bucket_6807766</ID>
<Filter>
<Prefix>1</Prefix>
</Filter>
<Status>Enabled</Status>
</Rule>
</LifecycleConfiguration>
Deleting Lifecycle Settings
The lifecycle settings for a bucket can be deleted with the "delete-bucket-lifecycle" command. For example:
$ aws s3api delete-bucket-lifecycle --bucket 1-1-1-1 --endpoint-url https://s3.us-east-1.myqnapcloud.io
There is no response body for this call.
Object Lock
myQNAPcloud Object supports an object lock that prevents the deletion or overwrite of object versions for a fixed amount of time or indefinitely.
| Tag | Description |
|---|
| ObjectLockConfiguration | This is the mandatory root level tag for object lock configuration. |
| ObjectLockEnabled | This tag must be configured as Enabled. |
| Rule | This specifies the object lock rule for a bucket. It requires both a mode and a period. The period can be either Days or Years but you must select one. You cannot specify Days and Years at the same time. Mode should be either COMPLIANCE or GOVERNANCE. |
The object lock settings for a bucket are specified using the “?object-lock” query string along with the object lock settings as the XML body in the request. For example:
PUT https://s3.us-east-1.myqnapcloud.io/qa.objectlock.002/?object-lock HTTP/1.1
<ObjectLockConfiguration>
<ObjectLockEnabled>Enabled</ObjectLockEnabled>
<Rule>
<DefaultRetention>
<Mode>COMPLIANCE</Mode>
<Days>10</Days>
</DefaultRetention>
</Rule>
</ObjectLockConfiguration>
The object lock settings for a bucket can be retrieved by getting the bucket with the “?object-lock” query string. For example:
GET https://s3.us-east-1.myqnapcloud.io/qa.objectlock.002/?object-lock HTTP/1.1
Response body:
<?xml version="1.0" encoding="UTF-8"?>
<ObjectLockConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<ObjectLockEnabled>Enabled</ObjectLockEnabled>
<Rule>
<DefaultRetention>
<Mode>COMPLIANCE</Mode>
<Days>10</Days>
</DefaultRetention>
</Rule>
</ObjectLockConfiguration>
There are also object lock settings for each object described in Operations on Objects.
The object lock settings for a bucket can be cleared using "?object-lock" query string. For example:
PUT https://s3.us-east-1.myqnapcloud.io/qa.objectlock.002/?object-lock HTTP/1.1
Response body:
<ObjectLockConfiguration>
<ObjectLockEnabled>Enabled</ObjectLockEnabled>
<Rule>
<DefaultRetention>
<Mode></Mode>
<Days></Days>
</DefaultRetention>
</Rule>
</ObjectLockConfiguration>
myQNAPcloud Object Compliance
myQNAPcloud Object supports a compliance policy that prevents the deletion of objects and provides additional information to prove that the original data is not modified since the time written. The compliance feature may be required for certain regulatory needs, but is also useful to prevent accidental data deletion.
Compliance is different from the object locking setting for a bucket.
You can set the compliance policy on any bucket controlling all the objects that are stored in that bucket. Specify the bucket compliance policy with the following XML tags.
| Tag | Description |
|---|
| Status | Either "enabled" or "disabled" to turn compliance on and off, respectively. Enabling will immediately apply to all objects in the bucket. |
| LockTime | The time at which the compliance settings are "locked"-the settings cannot be reduced by any API call. Once the settings are locked, they cannot be unlocked without the intervention of QNAP Customer Support. The lock time allows you to support two use cases:- Testing that your software works properly before locking the compliance feature; or
- Never locking which means that data can be deleted with an additional step of an administrator turning compliance off.
The lock time parameter may be:- An ISO date (for example, 2016-11-07T15:08:05Z),
- The string "now" to force immediate locking, or
- The string "off to not lock the compliance settings. This is the default.
|
| RetentionDays | An integer for the minimum number of days that objects are always retained after their creation date or release from conditional hold. You can extend the retention date for any individual object, but may not shorten the date. This parameter is always required. |
| ConditionalHold | A Boolean value ("true" or "false") indicating if newly created objects are placed on conditional hold, meaning that they cannot be deleted until the conditional hold is explicitly turned off. The default is false if this parameter is not given. Note that this setting may be changed even after the settings are locked. |
The compliance settings for a bucket are specified using the “?compliance” query string along with the compliance settings as the XML body in the request. For example:
PUT http://s3.us-east-1.myqnapcloud.io/my-bucket?complianceHTTP./1.1
<BucketComplianceConfiguration>
<Status>enabled</Status>
<LockTime>off</LockTime>
<RetentionDays>365</RetentionDays>
<DeleteAfterRetention>true</DeleteAfterRetention>
</BucketComplianceConfiguration>
After compliance is enabled for a bucket, the policy is immediately applied to all objects in the bucket. An attempt to delete an object before the retention period will return an error.
The compliance settings for a bucket can be retrieved by getting the bucket with the “?compliance” query string. For example:
GET http://s3.us-east-1.myqnapcloud.io/my-buck?complianceHTTP/1.1
Response body:
<BucketComplianceConfiguration xml ns="http://s3.amazonaws.com/doc/2006-03-01/">
<Status>enabled</Status>
<LockTime>2016-11-07T15:08:05Z</LockTime>
<IsLocked>false</IsLocked>
<RetentionDays>0</RetentionDays>
<ConditionalHold>false</ConditionalHold>
<DeleteAfterRetention>false</DeleteAfterRetention>
</BucketComplianceConfiguration>
There are also compliance settings for each object described in Operations on Objects.
Operations on Buckets Not Supported in myQNAPcloud Object
| Operation | Description |
|---|
| Bucket Tagging | Bucket tagging is currently unavailable in myQNAPcloud Object. |
| Bucket Website | Website configuration is unavailable in myQNAPcloud Object. Given the nature of myQNAPcloud Object as a long-term object store, we do not expect to support website operations to buckets. The header "x-amz-website-redirect-location" is ignored in any object requests. |
| Bucket Accelerate | myQNAPcloud Object does not implement the AWS S3 bucket accelerate subresource. |
| Bucket Request Payment | myQNAPcloud Object does not support the use of the "requestPayment" subresource for buckets. |
| Metrics Configuration | myQNAPcloud Object does not support the operation to receive one-minute CloudWatch metrics, set CloudWatch alarms, and access CloudWatch dashboards to view near-real-time operations and performance of your Amazon S3 storage. |
S3 Block Public Access | myQNAPcloud Object does not support the operation to centrally block existing public access (whether it is made possible via an ACL or a policy) and make sure newly created items are not inadvertently granted public access. |
| S3 Select | myQNAPcloud Object does not support the S3 Select API. |
Operations on Objects With myQNAPcloud Object S3 API
Operations on Objects include renaming, composing, appending, and deleting objects as well as encryption, storage class, object locking, and compliance.
Renaming Objects
myQNAPcloud Object supports functionality to move an object-in effect, renaming the object by changing the key. This eliminates the two-step process of first copying an object and then deleting the original object. The caller must have s3:PutObject policy permission on the bucket to rename objects.
To rename objects, use the HTTP method MOVE along with the following parameters in the request headers that affect the move operation.
|
| Overwrite | A Boolean value that, when “true,” allows overwriting destination objects with the same key. Otherwise, an error is generated and the original key is not changed. |
| X-Wasabi-Quiet | A Boolean value that, when “true,” causes the XML status return body to only display the keys that encounter errors. Otherwise, all objects renamed are given in the status. The default value is “false.” |
| X-Wasabi-Prefix | A Boolean value that, when “true,” means that the values given for the source in the URL and the destination are prefixes—they match the left-most part of keys. Conceptually, think of the prefix as a folder of objects. Otherwise, only the objects (including all versions) that exactly match the key are renamed. The default value is “false.” |
The call will return the results as an XML body of the response. The results include the following for each object renamed:
- original source key,
- renamed destination key,
- version ID of the object, and
- any error in the rename operation.
The quiet option will cause the results to list only the keys that encountered an error.
Below is an example, which renames all objects that start with the prefix “TestMove-Dir2/” to have the new prefix “TestMove-Dir2-Renamed/
MOVE http://s3.us-east-1.myqnapcloud.io/my_bucket/TestMove-Dir2/HTTP/1.1 Destination:TestMove-Dir2-Renamed/X-Wasabi-Prefix:true
Response body:
<MoveObjectResult> <SourcePrefix>TestMove-Dir2/SourcePrefix> <DestinationPrefix>TestMove-Dir2-Renamed/DestinationPrefix> <MoveObject> <SourceKey>TestMove-Dir2/SourceKey> <DestinationKey>TestMove-Dir2-Renamed/DestinationKey> MoveObject> <MoveObject> <SourceKey>TestMove-Dir2/Dir1/SourceKey> <DestinationKey>TestMove-Dir2-Renamed/Dir1/DestinationKey> MoveObject> <MoveObject> <SourceKey>TestMove-Dir2/Dir1/Obj1SourceKey> <DestinationKey>TestMove-Dir2-Renamed/Dir1/Obj1DestinationKey> MoveObject> <MoveObject> <SourceKey>TestMove-Dir2/Dir1/Obj2SourceKey> <DestinationKey>TestMove-Dir2-Renamed/Dir1/Obj2DestinationKey> MoveObject> <MoveObject> <SourceKey>TestMove-Dir2/Dir2/SourceKey> <DestinationKey>TestMove-Dir2-Renamed/Dir2/DestinationKey> MoveObject> <MoveObject> <SourceKey>TestMove-Dir2/Dir2/Obj1SourceKey> <DestinationKey>TestMove-Dir2-Renamed/Dir2/Obj1DestinationKey> MoveObject> <MoveObject> <SourceKey>TestMove-Dir2/Dir2/Obj2SourceKey> <DestinationKey>TestMove-Dir2-Renamed/Dir2/Obj2DestinationKey> MoveObject> <MoveCount>7MoveCount> MoveObjectResult>
Composing Objects
myQNAPcloud Object provides a feature to create a new object that is composed of other objects. A composed object is formed not by copying the original data objects, but rather by linking the composed object to the data objects. This is in contrast to AWS S3, which does not offer a way to compose objects. myQNAPcloud Object operation is much faster and does not require multiple copies of the original data. The original composed objects may be deleted at any time, and the system will retain the original data as long as there are any links to the data.
Composing objects is an alternative to using the multi-part upload feature for creating objects larger than 5 GB. The caller must have s3:PutObject policy permission on the bucket to compose objects. Composed objects may be created from other composed objects as well as original data objects. However, the total number of original data objects may not exceed 32 in any one composed object. Composed objects may only link to other objects in the same bucket.
The compose operation is done using the HTTP method PUT with the query string parameter “?compose” to indicate that the object is composed of objects given in the XML body. The XML body contains a list of object keys and, optionally, the version IDs that form the new object. If the version ID is not given, the latest version of the object is used. The new object will appear to be one object with all the linked data objects concatenated. The new composed object does not have an ETag (i.e, MD5) value, which is the MD5 of the concatenated objects, but rather the result of hashing all the data object MD5s together (like the calculation done when multi-part objects are completed). Composed objects may not have user provided encryption keys. However, all data is stored encrypted at rest.
There is a charge only for the metadata used in composed objects. The original data used in linked objects is charged at the normal rate until all composed objects that link to the original data object are deleted.
Below is an example that composes a new object “TestComp from three objects: “TestCompose-Data-1”, “TestCompose-Data-2”, and “TestCompose-Data-3”.
PUT http://s3.wasabisys.com/my_bucket/TestCompose-Object-1?composeHTTP/1.1Content-Type:text/xml
<ComposeRequest>
<Component>
<Key>TestCompose-Data-1</Key>
</Component>
<Component>
<Key>TestCompose-Data-2</Key>
</Component>
<Component>
<Key>TestCompose-Data-3</Key>
</Component>
</ComposeRequest>
Appending to Objects
AWS S3 does not offer a way to append to objects.
Appending to an existing object is a different form of composing an object (see Composing Objects). The call uploads the data in the body to a temporary object and then creates a new composed object consisting of the data from the original object with the newly uploaded data appended. If the bucket is versioned, a new version of the composed object is created while keeping the original data. When not versioned, the newly composed object replaces the original object. The caller must have s3:PutObject policy permission on the bucket to append to objects. Additionally for a bucket without versioning, the s3:DeleteObject policy permission may be required to replace the original object.
Like composed objects, you can append only 1023 times to any object since each creates a link to the uploaded data. Be careful not to simply append small amounts of data many times to an object since each append data uploaded creates a new object subject to minimum size charges, and can slow down the performance due to a small data read. The append operation is done using the HTTP method PUT with the query string parameter “?append”. The data to be appended is uploaded in the body of the request.
Below is an example that appends the string “<appended data>” to an existing object “TestAppend-Object”.
PUT http://s3.us-east-1.myqnapcloud.io/my-bucket/TestAppend-Object?appendHTTP/1.1Content-Length:15
PUT Object Copy Uses Link
Normally, to rename objects using AWS S3 protocol, an object is uploaded with one key value. Then, a PUT operation with the new key value copied from the original key value is given, and the object for the original key value is deleted.
myQNAPcloud Object automatically optimizes this sequence by linking the new key value object to the original data from the copy key value. This avoids making another copy of the data, which would result in higher storage charges. Because myQNAPcloud Object uses links to the original data, any size object up to the 5 TB limit may be copied and does not require the use of a multi-part upload.
Delete Object MFADelete
If the MFADelete option is turned on in the bucket versioning, the “x-amz-mfa” is not required if the access credentials were signed using MFA (see also MFA (Multi-Factor Authentication) Delete).
If bucket logging is enabled, deleting multiple objects will create a separate log entry for each object that is deleted.
GET Object Response Headers
Any header in the GET object request that starts with “response-” will be returned as a response header (minus the string “response-”).
Object Server-Side Encryption
myQNAPcloud Object encrypts all data stored at rest regardless of the requested encryption. The system will use any caller provided encryption keys when given, or generate a random key encryption key for each object if no customer key is provided. If the customer provides the encryption key, similar to AWS S3, myQNAPcloud Object will not keep a copy of the customer key in the metadata and the caller must provide the encryption key to read the data. No action on the part of the caller is needed if myQNAPcloud Object provides the encryption key.
The caller may provide the encryption key using the headers x-amz-server-side-encryption-customer-algorithm, x-amz-server-side-encryption-customer-key, and x-amz-server-side-encryption-customer-key-MD5. These parameters work identical to AWS S3.
myQNAPcloud Object does not support a key management service. Hence, the “x-amz-server-side-encryption” is not supported along with all the “aws:kms” functionality. myQNAPcloud Object stores an MD5 for the data that is always the uploaded data regardless of server-side encryption.
Object Storage Class
myQNAPcloud Object only provides a single storage class which is most like the standard AWS S3 storage class. Where the storage class is returned in any operation, myQNAPcloud Object will return the standard AWS S3 storage class.
Operations on Objects Not Supported in myQNAPcloud Object
|
| Object RESTORE | myQNAPcloud Object does not support multiple classes of storage and does not support the POST object RESTORE request used to restore objects from a different class of storage. |
| Select Object Content | myQNAPcloud Object does not support the operation to filter the contents of an Amazon S3 object based on a simple structured query language (SQL) statement. |
| S3 Batch Operations | myQNAPcloud Object does not support S3 Batch Operations for object management. |
Compliance with myQNAPcloud Object S3 API
The compliance settings for any one object in a bucket with compliance can also be changed within the limits of the compliance on the bucket. Specify the object compliance settings with the following XML tags.
|
| LegalHold | A Boolean value “true” or “false” to set the legal hold status. When an object has a legal hold status of true, the object cannot be deleted regardless of the retention period. |
| RetentionTime | An ISO time giving a new retention time for the object in which the object cannot be deleted before this time. Note that the new retention time must be past the retention period given by the bucket policy or an error is returned. |
The following is an example of setting the compliance on an object:
PUT http://s3.us-east-1.myqnapcloud.io/my-bucket/my-object?complianceHTTP/1.1
<ObjectComplianceConfiguration>
<ConditionalHold>false</ConditionalHold>
<RetentionTime>2018-03-13T10:45:00Z</RetentionTime>
</ObjectComplianceConfiguration>
The compliance settings for any specific object can also be retrieved using the “?compliance” query string. In addition to the object compliance settings above, the query returns the calculated SHA256 hash for the object, which can be used to determine that the object has not been modified. Note that the SHA256 value is only available for objects that are uploaded as a single object and is not available for multi-part or composed objects.
The following is an example of getting the compliance on an object:
GET http://s3.us-east-1.myqnapcloud.io/my-bucket/my-object?complianceHTTP/1.1
Response body:
<ObjectComplianceConfiguration xml ns="http://s3.amazonaws.com/doc/2006-03-01/">
<RetentionTime>2016-10-31T15:08:05Z</RetentionTime>
<ConditionalHold>false</ConditionalHold>
<LegalHold>false</LegalHold>
<SHA256>14b4be3894e92166b508007b6c2e4fb6e88d3d0ad652c76475089a50ebe6e33b</SHA256>
</ObjectComplianceConfiguration>
The object compliance settings also appear in the bucket listings when the bucket has compliance enabled.
Object Lock with myQNAPcloud Object S3 API
You can add or update the object lock settings for an object using the tags described below.
|
| RetainUntilDate | This defines the retention time for an object. The object cannot be deleted before this time. Note that the retention time must be in the future. |
| LegalHold | This should be either ON or OFF, which is not case-sensitive. |
The following is an example of setting the object locking configuration on an object:
PUT https://s3.us-east-1.myqnapcloud.io/qa.objectlock.002/beta_vpn.png?retention&versionId= 001617181245457483475-4ylsTbqqvP
<Retention>
<Mode>compliance</Mode>
<RetainUntilDate>2021-04-06T09:00:45Z</RetainUntilDate>
</Retention>
The following is an example of setting legal hold for an object:
PUT https://s3.us-east-1.myqnapcloud.io/qa.objectlock.002/beta_vpn.png?legal-hold&versionId=001617181245457483475-4ylsTbqqvP
<LegalHold>
<Status>ON</Status>
</LegalHold>
The following is an example of setting governance mode for an object:
PUT https://s3.us-east-1.myqnapcloud.io/qa.objectlock.002/public/ACL.PNG?retention
<Retention>
<Mode>governance</Mode>
<RetainUntilDate>2021-05-20T09:00:45Z</RetainUntilDate>
</Retention>
The “x-amz-bypass-governance-retention =true” header must be included whenever you want to override governance settings for an object.
Service URLs for myQNAPcloud Object Storage Regions
The myQNAPcloud service URLs for myQNAPcloud Object's different storage regions are:
Americas
| Region | Service URL |
|---|
| US East 1 (N. Virginia) | s3 .us-east-1.myqnapcloud.io |
| US Central 1 (Texas) | s3.us-central-1. myqnapcloud.io |
| US West 1 (Oregon) | s3.us-west-1. myqnapcloud.io |
| CA Central 1 (Toronto) | s3.ca-central-1. myqnapcloud.io |
EMEA
| EU Central 1 (Amsterdam) | s3.eu-central-1. myqnapcloud.io |
| EU Central 2 (Frankfurt) | s3.eu-central-2. myqnapcloud.io |
| EU West 1 (London) | s3.eu-west-1. myqnapcloud.io |
| EU West 2 (Paris) | s3.eu-west-2. myqnapcloud.io |
| EU West 3 (London) | s3.eu-west-3. myqnapcloud.io |
| EU South 1 (Milan) | s3.eu-south-1. myqnapcloud.io |
APAC
| AP Northeast 1 (Tokyo) | s3.ap-northeast-1. myqnapcloud.io |
| AP Northeast 2 (Osaka) | s3.ap-northeast-2. myqnapcloud.io |
| AP Southeast 1 (Singapore) | s3.ap-southeast-1. myqnapcloud.io |
| AP Southeast 2 (Sydney) | s3.ap-southeast-2. myqnapcloud.io |
The myQNAPcloud Object Management Console can be reached through myQNAPcloud Portal.
If you are looking for the correct service URL to use with your third-party storage application, you should choose the one that matches your bucket location.
When working with third-party storage applications, you should be aware that these applications have different methods to handle storage region service URLs. These methods include:
- Applications that allow you to explicitly enter in the service URL. These applications are the most flexible because you can easily configure new service URLs as they become available.
- Applications that only allow you to choose from a pre-built list of storage regions. These applications are the least flexible because, if a storage provider implements a new region, you have to wait for an application update to get access to the new region. If your storage application does not support all of the myQNAPcloud Object storage regions on their predefined region lists, contact the application vendor (not QNAP) to ask them for support.
- Applications that only allow you to enter in your API key set and then offer up all of the buckets in your account. These applications provide flexibility but do require some automatic redirects to perform at the HTTP level.
Object Replication with myQNAPcloud Object S3 API
GET Object Tagging
myQNAPcloud Object supports functionality to fetch the tag set of an object when the object:
- Does not have any tags
- Does have tags
When the Object Does Not Have Any Tags
GET https://s3.myqnapcloud.io/my_bucket/Test-object1.txt?tagging
Response body:
<?xml version="1.0" encoding="UTF-8"?>
<Tagging>
<TagSet></TagSet>
</Tagging>
Status 200 OK
When the Object Has Tags
GET https://s3.myqnapcloud.io/my_bucket/Test-object2.pdf?tagging
Response body:
<!--?xml version="1.0" encoding="UTF-8"?-->
<Tagging>
<TagSet>
<Tag>
<Key>key2</Key>
<Value>value2</Value>
</Tag>
<Tag>
<Key>key1</Key>
<Value>value1</Value>
</Tag>
</TagSet>
</Tagging>
PUT Object Tagging
myQNAPcloud Object supports functionality for:
- Adding the tag value of an existing object in a bucket
- Appending the tag value of an existing object in a bucket
Adding the Tag Value of an Existing Object in a Bucket
PUT https://s3.myqnapcloud.io/my_bucket/Test-object3.pdf?tagging
Content-Type: text/xml
Response body:
<Tagging xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<TagSet>
<Tag>
<Key>tag1</Key>
<Value>value1</Value>
</Tag>
</TagSet>
</Tagging>
Appending the Tag Value of an Existing Object in a Bucket
In this example, an existing object already has the tag value of “key5” –“value5”, You can append a new tag pairs along with the existing pair.
PUT https://s3.myqnapcloud.io/my_bucket/Test-object4.jpg?tagging
Content-Type: text/xml
Response body:
<Tagging xmlns="http://s3.myqnapcloud.io/doc/2006-03-01/">
<TagSet>
<Tag>
<Key>key5</Key>
<Value>value5</Value>
</Tag>
<Tag>
<Key>key6</Key>
<Value>value6</Value>
</Tag>
</TagSet>
</Tagging>
Status 200 OK
To PUT tags of any other version, use the versionId query parameter.
DELETE Object Tagging
This removes the entire tag set from the specified object.
DELETE https://s3.myqnapcloud.io/my_bucket/Test-object5.pdf?tagging
Response body:
<empty>
Status 204 No Content
To delete tags of any other version, use the versionId query parameter.
Object Tagging with myQNAPcloud Object API
Get Object Tagging
myQNAPcloud Object supports functionality to fetch the tag set of an object when the object:
- Does not have any tags
- Does have tags
When the object does not have any tags
GET
https://s3.myqnapcloud.io/my_bucket/Test-object1.txt?tagging
Response body:
<?xml version="1.0" encoding="UTF-8"?>
<Tagging>
<TagSet></TagSet>
</Tagging>
Status 200 OK
When the object has Tags
GET
https://s3.myqnapcloud.io/my_bucket/Test-object2.pdf?tagging
Response body:
<!--?xml version="1.0" encoding="UTF-8"?-->
<Tagging>
<TagSet>
<Tag>
<Key>key2</Key>
<Value>value2</Value>
</Tag>
<Tag>
<Key>key1</Key>
<Value>value1</Value>
</Tag>
</TagSet>
</Tagging>
PUT Object Tagging
myQNAPcloud Object supports functionality for:
- Adding the tag value of an existing object in a bucket
- Appending the tag value of an existing object in a bucket
Adding the tag value of an existing object in a bucket
PUT
https://s3.myqnapcloud.io/my_bucket/Test-object3.pdf?tagging
Content-Type: text/xml
Response body:
<Tagging xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<TagSet>
<Tag>
<Key>tag1</Key>
<Value>value1</Value>
</Tag>
</TagSet>
</Tagging>
Appending the Tag Value of an Existing Object in a Bucket
In this example, an existing object already has the tag value of “key5” –“value5”, You can append a new tag pair along with the existing pair.
PUT
https://s3.myqnapcloud.io/my_bucket/Test-object4.jpg?tagging
Content-Type: text/xml
Response body:
<Tagging xmlns="http://s3.myqnapcloud.io/doc/2006-03-01/">
<TagSet>
<Tag>
<Key>key5</Key>
<Value>value5</Value>
</Tag>
<Tag>
<Key>key6</Key>
<Value>value6</Value>
</Tag>
</TagSet>
</Tagging>
Status 200 OK
To PUT tags of any other version, use the versionId query parameter.
DELETE Object Tagging
This removes the entire tag set from the specified object.
DELETE
https://s3.myqnapcloud.io/my_bucket/Test-object5.pdf?tagging
Response body:
<empty>
Status 204 No Content
To delete tags of any other version, use the versionId query parameter.
Further Reading
Given its compatibility with AWS S3, the official AWS documentation for S3 serves as a complementary resource when working with myQNAPcloud Object. Refer to the Amazon Simple Storage Service API Reference for details on the API version 2006-03-01:
Amazon Simple Storage Service API Reference
적용되는 제품
myQNAPcloud Object
myQNAPcloud Object란 무엇입니까?
myQNAPcloud Object은(는) 고성능, 신뢰성, 보안을 제공하기 위해 설계된 클라우드 기반 객체스토리지서비스로, 다양한 애플리케이션 및 사용 사례에 적합합니다. 이 서비스는 Amazon Web Service Simple 스토리지 Service (AWS S3) API와 완벽하게 호환되도록 구축되어 S3 호환 애플리케이션 및 게이트웨이 장치와의 원활한 통합을 보장합니다.
myQNAPcloud Object은(는) 비용 효율적이고 효율적인 데이터스토리지인프라를 찾는 개인 및 조직을 위해 맞춤화되었습니다. S3 호환 애플리케이션과 함께 작동하도록 설계된myQNAPcloud Object은(는) 사용자가 QNAP의 생태계의 신뢰성과 유연성을 활용하면서 익숙한 도구와 워크플로를 활용할 수 있도록 합니다.
- 호환성:myQNAPcloud Object은(는) AWS S3 API와 완벽하게 호환되도록 설계되어 기존 AWS S3 호환 애플리케이션이 원활하게 작동할 수 있습니다.
- 성능:myQNAPcloud Object은(는) 신뢰성과 효율성을 최적화한 고성능스토리지솔루션을 제공합니다.
myQNAPcloud Object S3 API 가이드 소개
myQNAPcloud Object은(는) AWS S3와 밀접하게 일치하지만, 특정 기능이 향상되거나 다르게 구현될 수 있습니다. 이 가이드는 이러한 미세한 차이를 명확히 하여 사용자가myQNAPcloud Object의 잠재력을 최대한 활용할 수 있도록 돕는 것을 목표로 합니다.
이 가이드는 특정myQNAPcloud Object지역에서버킷에 대한 액세스를 포함하는 예제를 사용합니다. 지역별 엔드포인트 및 서비스 URL에 대한 자세한 내용은 "myQNAPcloud Object 스토리지지역의 서비스 URL"을 참조하십시오.
참고
- 지역 URL:버킷에 액세스할 때, 버킷이 생성된myQNAPcloud Object 스토리지지역에 특정한 URL을 사용해야 합니다. 잘못된 URL을 사용하면 GET 요청은 가능하지만 PUT 또는 DELETE 작업에서 오류가 발생할 수 있습니다. [myQNAPcloud Object 스토리지지역의 서비스 URL]을 참조하십시오.
- ASW IAM: AWS와 달리, myQNAPcloud Object는 AWS IAM(Identity and Access Management)에 대한 지원을 포함하지 않습니다. 따라서 이 가이드는 S3 API 호환성에만 초점을 맞추며 IAM 관련 기능은 언급하지 않습니다.
REST API 소개
호스트 지정
myQNAPcloud Object는 AWS S3와 유사하게 경로 스타일 및 가상 스타일 요청을 모두 지원합니다. 고유한 호스트 이름이 필요합니다(예: s3.us-east-1.myqnapcloud.io 대 s3.amazonaws.com). 이 가이드의 모든 예제에서 보여주는 것처럼 경로 스타일 요청을 사용하는 것이 좋습니다(예: http://s3.us-east-1.myqnapcloud.io/my-bucket/my-object). 경로 스타일 요청은 버킷 이름 지정에 더 큰 유연성을 제공하여 도메인 이름 충돌을 피할 수 있습니다.
항상 일관된
AWS S3의 강력한 일관성 모델과 달리, myQNAPcloud Object는 모든 작업에 대해 "항상 일관된" 보기를 제공합니다. 이는 다른 작업을 따르는 모든 작업이 일관된 결과를 생성하도록 보장합니다. 예를 들어, 객체 삭제(DELETE 작업) 후, 후속 HEAD 요청을 수행하면 항상 객체의 삭제를 확인할 수 있어 작업 완료를 기다리는 추가 프로그래밍이 필요하지 않습니다.
요청 인증
myQNAPcloud Object는 헤더 및 쿼리 매개변수에 대해 AWS S3와 호환되는 자율 및 서명 버전 2 및 4를 지원합니다. 서명 버전 4는 더 나은 보안을 제공하지만, SHA256 해시 계산의 오버헤드로 인해 더 많은 계산 자원이 필요합니다. 성능이 중요하다면, 서명 버전 2를 사용할 수 있으며, MD5(ETag 헤더로 반환됨)가 데이터 무결성을 보장합니다.
버전 4 서명 요청의 경우, 모든 지역이myQNAPcloud Object서명 요청을 지원합니다.
myQNAPcloud Object는 브라우저 기반 업로드 또는 HTML 폼 요청에 대한 서명 서명을 지원하지 않습니다. 이러한 작업은 현재 지원되지 않습니다.
버전 2 서명의 경우, 다음 하위 리소스 키가 요청의 쿼리 매개변수로 지정됩니다:
이 쿼리 매개변수는 PutObject 및 DeleteBucket 작업의 서명을 계산할 때 포함되어야 합니다.
오류 응답
가능한 경우, myQNAPcloud Object는 AWS S3와 호환되는 오류 응답을 사용합니다. 추가 기능을 위한 추가 오류 코드도 제공될 수 있습니다.
HTTP 오류 코드
| 오류 코드 | myQNAPcloud Object설명 | HTTP 상태 코드 |
|---|
| 사용 불가 | 일시적으로 사용 불가 | 503 |
| 복구 불가 | 데이터 복구 불가 |
|
| 구현되지 않음 | 구현되지 않음 | 501 |
| DB 엔티티를 찾을 수 없음 | 해당 엔티티가 없습니다 | 404 |
| DB 엔티티 발견됨 | 엔티티가 이미 존재합니다 | 409 |
| 연결 끊김 오류 | 연결이 닫혔습니다 | 410 |
| 상태 내부 서버 오류 | 내부 오류: 내부 오류가 발생했습니다. 고객 지원에 문의하십시오. | 500 |
| 상태 금지됨 | 액세스 거부됨 | 403 |
| 액세스 금지됨 |
| 계정이 활성화되지 않음 |
| 계정 문제 |
| 인증 잠금: 잘못된 자격 증명으로 계정에 액세스하려는 시도가 너무 많았습니다. 5분 후에 다시 시도하십시오. |
| 잘못된 액세스 키 ID: 제공한 AWS 액세스 키 ID가 기록에 존재하지 않습니다. |
| 잘못된 인증 코드: 장치의 인증 코드가 유효하지 않습니다. |
| 요청 시간이 너무 왜곡됨: 요청 시간과 현재 시간의 차이가 너무 큽니다. |
| 잘못된 객체 상태: 현재 객체 상태에 대해 유효하지 않은 작업입니다. |
| 상태 잘못된 요청 | 잘못된 형식의 인증 헤더 | 400 |
| 인증 쿼리 매개변수 오류 |
| 잘못된 다이제스트: 지정한 Content-MD5가 수신된 것과 일치하지 않습니다. |
| 잘못된 요청: HTTP 요청을 구문 분석하는 동안 오류가 발생했습니다. |
| 불완전한 서명: 요청에는 AWS 표준에 부합하는 서명이 포함되어야 합니다. |
| 잘못된 작업 |
| 잘못된 인수 |
| 잘못된 다이제스트: 지정한 Content-MD5가 유효하지 않습니다. |
| 잘못된 입력 |
| 잘못된 매개변수 값: 입력 매개변수에 대해 잘못되었거나 범위를 벗어난 값이 제공되었습니다. |
| 잘못된 요청 |
| 잘못된 정책 |
| 잘못된 정책 문서 |
| 비밀번호 정책 위반 |
| 검증 오류 |
| X Amz Content SHA256 불일치: 제공된 'x-amz-content-sha256' 헤더가 계산된 것과 일치하지 않습니다. |
| 암호화 허용되지 않음: 사용자가 제공한 암호화 키는 이 작업에서 허용되지 않습니다. |
| 객체는 서버 측 암호화의 한 형태를 사용하여 저장되었습니다. 객체를 검색하려면 올바른 매개변수를 제공해야 합니다. |
| 엔티티가 너무 큼: 제안된 업로드가 허용된 최대 크기보다 큽니다. |
| 엔티티가 너무 작음: 제안된 업로드가 허용된 최소 크기보다 작습니다. |
| 불법 준수 요청 |
| 잘못된 버전 관리 구성 예외: 요청에 지정된 버전 관리 구성이 유효하지 않습니다. |
| 불완전한 본문: Content-Length HTTP 헤더에 지정된 바이트 수를 제공하지 않았습니다. |
| 잘못된 ACL 요청: ACL을 설정할 때 ACL 헤더 또는 XML 본문 중 하나만 제공해야 합니다. |
| 잘못된 인수 |
| 잘못된 버킷 이름: 지정된 버킷이 유효하지 않습니다. |
| 잘못된 암호화 알고리즘 오류: 지정한 암호화 요청이 유효하지 않습니다. 지원되는 값: AES256. |
| 잘못된 파트 순서: 파트 목록이 오름차순이 아닙니다. 파트는 파트 번호 순서대로 정렬되어야 합니다. |
| 잘못된 파트: 지정된 파트 중 하나 이상을 찾을 수 없습니다. 파트가 업로드되지 않았거나 지정된 엔티티 태그가 파트의 엔티티 태그와 일치하지 않을 수 있습니다. |
| 잘못된 정책 문서: 양식의 내용이 정책 문서에 지정된 조건을 충족하지 않습니다. |
| 키가 너무 깁니다 오류: 키가 너무 깁니다. |
| 로깅 버킷 동일 소유자: 로깅 대상 버킷은 로깅되는 버킷과 동일한 소유자를 가져야 합니다. |
| 잘못된 XML: 제공된 XML이 잘 형성되지 않았거나 게시된 스키마에 맞지 않습니다. |
| 메타데이터가 너무 큼: 메타데이터 헤더가 허용된 최대 메타데이터 크기를 초과했습니다. |
| 요청 시간 초과: 서버와의 소켓 연결이 시간 초과 기간 내에 읽히거나 쓰이지 않았습니다. |
| 버킷가 너무 많음: 허용된 것보다 더 많은버킷를 생성하려고 했습니다. |
| 구성 요소가 너무 많음: 복합 객체는 1024개 이상의 구성 요소를 가질 수 없습니다. |
| 이메일 주소로 해결할 수 없는 권한 부여: 제공된 이메일 주소가 기록된 계정과 일치하지 않습니다. |
| 스토리지할당량 초과: 계정이스토리지한도를 초과했습니다. |
| 버킷 계정 비활성: 이 버킷을 소유한 계정이 활성 상태가 아닙니다. |
| 상태 사라짐 | 연결 종료: 네트워크 연결이 종료되었습니다. | 410 |
| 상태 처리 불가능한 엔티티 | 데이터 복구 불가: 요청의 데이터가 복구 불가능합니다. 고객 지원에 문의하십시오. | 422 |
| 상태 충돌 | 삭제 충돌 | 409 |
| 엔티티가 이미 존재함 |
| 엔티티 일시적으로 수정 불가: 엔티티가 일시적으로 수정 불가능합니다. 나중에 다시 시도하십시오. |
| 한도 초과 |
| 작업 중단됨: 현재 이 리소스에 대해 충돌하는 조건부 작업이 진행 중입니다. 다시 시도하십시오. |
| 버킷이 이미 존재함 |
| 버킷이 비어 있지 않음 |
| 준수 설정 잠김: 준수 설정이 이제 잠겨 변경할 수 없습니다. |
| 상태 찾을 수 없음 | 해당 엔티티 없음 | 404 |
| 해당 수명 주기 구성 없음: 수명 주기 구성이 존재하지 않습니다. |
| 해당 버킷 없음: 지정된 버킷이 존재하지 않습니다. |
| 해당 버킷 정책 없음: 버킷 정책이 존재하지 않습니다. |
| 해당 키 없음: 지정된 키가 존재하지 않습니다. |
| 해당 복제 구성 없음: 복제 구성이 존재하지 않습니다. |
| 해당 태그 세트 오류: 버킷과 연결된 태그 세트가 없습니다. |
| 해당 업로드 없음: 지정된 업로드가 존재하지 않습니다. 업로드 ID가 잘못되었거나 업로드가 중단되었거나 완료되었을 수 있습니다. |
| 해당 버전 없음: 지정된 버전이 존재하지 않습니다. |
| 상태 구현되지 않음 | 구현되지 않음: 제공된 헤더가 구현되지 않은 기능을 암시합니다. | 501 |
| 상태 서비스 사용 불가 | 일시적으로 사용 불가: 이 작업에 대한 리소스가 일시적으로 사용 불가능합니다. 나중에 다시 시도하십시오. | 503 |
| 상태 발견됨 | 키가 이미 존재함 | 302 |
| 상태 메서드 허용되지 않음 | 메서드 허용되지 않음: 이 메서드는 계정 소유자 외에는 허용되지 않습니다. | 405 |
| 메서드 허용되지 않음: 지정된 메서드는 이 리소스에 대해 허용되지 않습니다. |
| 상태 길이 필요 | 콘텐츠 길이 누락: Content-Length HTTP 헤더를 제공해야 합니다. | 411 |
TCP 오류 코드
myQNAPcloud Object는 다음 TCP 오류 코드를 지원합니다:
- 예기치 않은 EOF
- 파이프 손상
- 피어에 의해 연결이 재설정됨
myQNAPcloud Object에서 지원되지 않음
| 작업 | 설명 |
|---|
| SOAP | AWS S3는 SOAP 지원을 중단했으며, myQNAPcloud Object는 SOAP 작업을 지원하지 않습니다. |
myQNAPcloud Object S3 API를 사용한버킷작업
버킷작업에는 삭제, 이름 변경, 버킷로깅, 교차 출처 리소스 공유(CORS) 지원, 수명 주기 정책, 객체 잠금 및 준수가 포함됩니다.
버킷 강제 삭제
AWS S3는 삭제되지 않은 객체가 포함된 버킷을 삭제할 수 없습니다.
myQNAPcloud Object는 버킷의 모든 객체를 먼저 삭제한 후 버킷을 삭제하는 강제 삭제 옵션을 제공합니다. 객체 삭제는 버킷의 정책 및 준수 요구 사항에 따라 달라집니다.
강제 삭제 옵션을 사용하려면 쿼리 문자열로 추가하십시오. 예를 들어:
DELETE http://s3.us-east-1.myqnapcloud.io/my-bucket?force_delete=true HTTP/1.1
버킷 이름 변경
AWS S3는버킷의 이름 변경을 지원하지 않습니다. 버킷 내 객체의 이름 변경만 지원합니다.
myQNAPcloud Object는버킷의 이름 변경을 지원합니다. 이름 변경이 성공하려면 새 버킷 이름이 사용 중이지 않아야 합니다. 호출자는 버킷 이름을 변경하기 위해 s3:CreateBucket 정책 권한을 가져야 합니다.
버킷 이름을 변경하려면 HTTP 메서드 MOVE와 함께 헤더 필드 "Destination"을 사용하여 새 버킷 이름을 지정하십시오. 예를 들어:
MOVE http://s3.us-east-1.myqnapcloud.io/my_old_bucket HTTP/1.1
Destination: my_new_bucket
MFA(다중 요소 인증) 삭제
myQNAPcloud Object는 “x-amz-mfa” 헤더를 지원합니다. 다음과 같은 경우에:
- 버킷에서 버전 관리를 구성할 때, 또는
- AWS S3와 호환되는 객체 삭제 요청으로 객체를 삭제할 때.
사용자의 액세스 자격 증명이 MFA로 인증된 경우, myQNAPcloud Object는 “x-amz-mfa” 헤더를 요구하지 않습니다. myQNAPcloud Object는 가상 MFA 장치만 지원합니다.
최대버킷수
표준 AWS S3는 최대 100개의버킷만 지원합니다.
myQNAPcloud Object는 계정당 최대 1000개의버킷를 허용하며, 이 수는myQNAPcloud Object고객 지원에 문의하여 증가시킬 수 있습니다.
버킷 로깅
myQNAPcloud Object는 버킷에 대한 모든 액세스를 텍스트 로그 파일로 생성하는 버킷 로깅을 지원합니다. 로그 파일의 형식은 AWS S3 로그 파일과 동일합니다.
myQNAPcloud Object버킷 로깅은 로그를 대상 버킷에 저장하기 위한 ACL 권한 설정이 필요하지 않습니다. 로깅 요청이나 ACL에서 권한 설정을 할 수 있지만, myQNAPcloud Object에서 로깅이 작동하기 위해서는 필요하지 않습니다. 그러나 로그 파일의 대상이 되는 버킷은 로깅되는 버킷과 동일한 계정 내에 있어야 합니다.
버킷 교차 출처 리소스 공유(CORS) 지원
myQNAPcloud Object를 웹 서버로 브라우저에서 액세스할 수 있도록 호환성을 위해, myQNAPcloud Object서버는 HTTP 요청에 'Origin' 헤더가 주어질 때 CORS 헤더를 반환합니다. 또한, 서버는버킷또는 객체에 대해 HTTP 메서드 OPTIONS를 지원하여 브라우저가myQNAPcloud Object에 액세스하기 전에 필요한 CORS 헤더를 반환합니다.
AWS와 다르게, myQNAPcloud Object는 브라우저가myQNAPcloud Object에 완전한 액세스를 허용하는 설정을 반환합니다. 따라서, myQNAPcloud Object는 URL에 'cors' 매개변수가 있는 버킷에 대해 PUT 및 GET을 허용하는 AWS 기능을 지원하지 않습니다. 브라우저의 완전한 데이터 액세스를 허용하는 것은 객체에 대한 액세스 보안에 영향을 미치지 않으며 모든 액세스 정책은 여전히 적용됩니다.
HTTP 요청에 'Origin' 헤더가 주어질 때 기본적으로 반환되는 HTTP 헤더는 다음과 같습니다:
Access-Control-Allow-Headers: *
Access-Control-Allow-Methods: GET, HEAD, POST, PUT, DELETE, MOVE, OPTIONS
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: *
Access-Control-Max-Age: 86400
수명 주기 정책
수명 주기 기능은 객체의 수명 동안myQNAPcloud Object가 수행할 작업을 정의하는 규칙과 함께 수명 주기 정책을 설정합니다. 이 기능은 보존 기간 후에 객체를 수동으로 삭제할 필요를 대체합니다.
수명 주기 설정 구성
버킷의 수명 주기 설정은 "put-bucket-lifecycle-configuration" 명령어로 구성됩니다. 예를 들어:
$ aws s3api put-bucket-lifecycle-configuration --bucket 1-1-1-1 --endpoint-url https://s3.us-east-1.myqnapcloud.io --lifecycle-configuration file://lifecycle.json
{
"Rules": [
{
"Expiration": {"Days": 1},
"ID": "lifecycle_rule_1",
"Filter": {
"And": {
"ObjectSizeGreaterThan": 1,
"ObjectSizeLessThan": 21474836480
}
},
"Status": "Enabled"
},
{
"Expiration": {"Days": 1},
"ID": "object_lifecycle_rule_bucket_6807766",
"Filter": {"Prefix": "1"},
"Status": "Enabled"
}
]
}
다른 예시는 다음과 같습니다:
PUT https://s3.us-east-1.myqnapcloud.io/1-1-1-1?lifecycle <lifecycleconfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <rule> <expiration> <days>1</days> </expiration> <id>lifecycle_rule_1</id> <filter> <and> <objectsizegreaterthan>1</objectsizegreaterthan> <objectsizelessthan>21474836480</objectsizelessthan> </and> </filter> <status>Enabled</status> </rule> <rule> <expiration> <days>1</days> </expiration> <id>object_lifecycle_rule_bucket_6807766</id> <filter> <prefix>1</prefix> </filter> <status>Enabled</status> </rule> </lifecycleconfiguration>
이 호출에는 응답 본문이 없습니다.
수명 주기 설정 검색
버킷의 수명 주기 설정은 "get-bucket-lifecycle-configuration" 명령어로 검색할 수 있습니다. 예를 들어:
$ aws s3api get-bucket-lifecycle-configuration --bucket 1-1-1-1 --endpoint-url https://s3.us-east-1.myqnapcloud.io
{
"Rules": [
{
"Expiration": {"Days": 1},
"ID": "lifecycle_rule_1",
"Filter": {
"And": {
"ObjectSizeGreaterThan": 1,
"ObjectSizeLessThan": 21474836480
}
},
"Status": "Enabled"
},
{
"Expiration": {"Days": 1},
"ID": "object_lifecycle_rule_bucket_6807766",
"Filter": {"Prefix": "1"},
"Status": "Enabled"
}
]
}
다른 예시는 다음과 같습니다:
GET https://s3.us-east-1.myqnapcloud.io/1-1-1-1?lifecycle <?xml version="1.0" encoding="UTF-8"?> <lifecycleconfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <rule> <expiration> <days>1</days> </expiration> <id>lifecycle_rule_1</id> <filter> <and> <objectsizegreaterthan>1</objectsizegreaterthan> <objectsizelessthan>21474836480</objectsizelessthan> </and> </filter> <status>Enabled</status> </rule> <rule> <expiration> <days>1</days> </expiration> <id>object_lifecycle_rule_bucket_6807766</id> <filter> <prefix>1</prefix> </filter> <status>Enabled</status> </rule> </lifecycleconfiguration>
수명 주기 설정 삭제
버킷의 수명 주기 설정은 "delete-bucket-lifecycle" 명령어로 삭제할 수 있습니다. 예를 들어:
$ aws s3api delete-bucket-lifecycle --bucket 1-1-1-1 --endpoint-url https://s3.us-east-1.myqnapcloud.io
이 호출에는 응답 본문이 없습니다.
개체 잠금
myQNAPcloud Object는 객체 버전의 삭제 또는 덮어쓰기를 일정 기간 동안 또는 무기한 방지하는개체 잠금를 지원합니다.
| 태그 | 설명 |
|---|
| ObjectLockConfiguration | 이것은개체 잠금구성에 대한 필수 루트 레벨 태그입니다. |
| ObjectLockEnabled | 이 태그는 활성화됨으로 설정해야 합니다. |
| 규칙 | 이것은 버킷에 대한개체 잠금규칙을 지정합니다. 모드와 기간이 모두 필요합니다. 기간은 일(Days) 또는 연도(Years) 중 하나를 선택해야 하며, 동시에 둘 다 지정할 수 없습니다. 모드는 COMPLIANCE 또는 GOVERNANCE 중 하나여야 합니다. |
버킷의개체 잠금설정은 요청의 XML 본문과 함께 "?object-lock" 쿼리 문자열을 사용하여 지정됩니다. 예를 들어:
PUT https://s3.us-east-1.myqnapcloud.io/qa.objectlock.002/?object-lock HTTP/1.1 <objectlockconfiguration> <objectlockenabled>Enabled</objectlockenabled> <rule> <defaultretention> <mode>COMPLIANCE</mode> <days>10</days> </defaultretention> </rule> </objectlockconfiguration>
버킷의개체 잠금설정은 "?object-lock" 쿼리 문자열을 사용하여 버킷을 가져와서 검색할 수 있습니다. 예를 들어:
GET https://s3.us-east-1.myqnapcloud.io/qa.objectlock.002/?object-lock HTTP/1.1
응답 본문:
<?xml version="1.0" encoding="UTF-8"?> <objectlockconfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <objectlockenabled>Enabled</objectlockenabled> <rule> <defaultretention> <mode>COMPLIANCE</mode> <days>10</days> </defaultretention> </rule> </objectlockconfiguration>
각 객체에 대해 설명된개체 잠금설정도 있습니다 객체에 대한 작업.
버킷의개체 잠금설정은 "?object-lock" 쿼리 문자열을 사용하여 지울 수 있습니다. 예를 들어:
PUT https://s3.us-east-1.myqnapcloud.io/qa.objectlock.002/?object-lock HTTP/1.1
응답 본문:
<objectlockconfiguration> <objectlockenabled>Enabled</objectlockenabled> <rule> <defaultretention> <mode></mode> <days></days> </defaultretention> </rule> </objectlockconfiguration>
myQNAPcloud Object준수
myQNAPcloud Object는 객체의 삭제를 방지하고 원본 데이터가 작성된 이후 수정되지 않았음을 증명하는 추가 정보를 제공하는 준수 정책을 지원합니다. 준수 기능은 특정 규제 요구 사항에 필요할 수 있지만, 실수로 인한 데이터 삭제를 방지하는 데에도 유용합니다.
준수는 버킷의 객체 잠금 설정과 다릅니다.
버킷에 저장된 모든 객체를 제어하는 준수 정책을 설정할 수 있습니다. 다음 XML 태그를 사용하여 버킷 준수 정책을 지정하십시오.
| 태그 | 설명 |
|---|
| 상태 | 준수를 각각 켜고 끄기 위해 "enabled" 또는 "disabled"를 사용합니다. 활성화하면 즉시 버킷의 모든 객체에 적용됩니다. |
| 잠금 시간 | 준수 설정이 "잠금"되는 시간 - 설정은 API 호출로 줄일 수 없습니다. 설정이 잠기면 QNAP 고객 지원의 개입 없이는 잠금을 해제할 수 없습니다. 잠금 시간은 두 가지 사용 사례를 지원할 수 있습니다:- 준수 기능을 잠그기 전에 소프트웨어가 제대로 작동하는지 테스트하거나;
- 준수를 끄는 추가 단계로 데이터를 삭제할 수 있는 "잠금 없음"을 의미합니다.
잠금 시간 매개변수는 다음과 같을 수 있습니다:- ISO 날짜(예: 2016-11-07T15:08:05Z),
- 즉시 잠금을 강제하기 위한 문자열 "now", 또는
- 준수 설정을 잠그지 않기 위한 문자열 "off". 이것이 기본값입니다.
|
| 보존 일수 | 객체가 생성된 날짜 또는 조건부 보류 해제 후 항상 유지되는 최소 일수를 나타내는 정수입니다. 개별 객체의 보존 날짜를 연장할 수 있지만 날짜를 단축할 수는 없습니다. 이 매개변수는 항상 필요합니다. |
| 조건부 보류 | 새로 생성된 객체가 조건부 보류 상태에 놓이는지 여부를 나타내는 부울 값("true" 또는 "false")입니다. 조건부 보류가 명시적으로 해제될 때까지 삭제할 수 없습니다. 이 매개변수가 주어지지 않으면 기본값은 false입니다. 이 설정은 설정이 잠긴 후에도 변경될 수 있습니다. |
버킷의 준수 설정은 요청의 XML 본문과 함께 "?compliance" 쿼리 문자열을 사용하여 지정됩니다. 예를 들어:
PUT http://s3.us-east-1.myqnapcloud.io/my-bucket?complianceHTTP./1.1 <bucketcomplianceconfiguration> <status>enabled</status> <locktime>off</locktime> <retentiondays>365</retentiondays> <deleteafterretention>true</deleteafterretention> </bucketcomplianceconfiguration>
버킷에 대해 준수가 활성화되면 정책이 즉시 버킷의 모든 객체에 적용됩니다. 보존 기간 전에 객체를 삭제하려고 하면 오류가 반환됩니다.
버킷의 준수 설정은 "?compliance" 쿼리 문자열을 사용하여 버킷을 가져와서 검색할 수 있습니다. 예를 들어:
GET http://s3.us-east-1.myqnapcloud.io/my-buck?complianceHTTP/1.1
응답 본문:
<bucketcomplianceconfiguration xml ns="http://s3.amazonaws.com/doc/2006-03-01/"> <status>enabled</status> <locktime>2016-11-07T15:08:05Z</locktime> <islocked>false</islocked> <retentiondays>0</retentiondays> <conditionalhold>false</conditionalhold> <deleteafterretention>false</deleteafterretention> </bucketcomplianceconfiguration>
각 객체에 대한 준수 설정도 설명되어 있습니다.객체에 대한 작업.
myQNAPcloud Object에서 지원되지 않는버킷에 대한 작업
| 작업 | 설명 |
|---|
| 버킷 태그 지정 | 버킷 태그 지정은 현재myQNAPcloud Object에서 사용할 수 없습니다. |
| 버킷 웹사이트 | 웹사이트 구성은myQNAPcloud Object에서 사용할 수 없습니다. myQNAPcloud Object의 장기 객체 저장소로서의 특성상, 버킷에 대한 웹사이트 작업을 지원할 것으로 기대하지 않습니다. "x-amz-website-redirect-location" 헤더는 모든 객체 요청에서 무시됩니다. |
| 버킷 가속화 | myQNAPcloud Object는 AWS S3 버킷 가속화 하위 리소스를 구현하지 않습니다. |
| 버킷 요청 결제 | myQNAPcloud Object는버킷에 대한 "requestPayment" 하위 리소스 사용을 지원하지 않습니다. |
| 메트릭 구성 | myQNAPcloud Object는 1분 CloudWatch 메트릭 수신, CloudWatch 경보 설정 및 Amazon S3 스토리지의 거의 실시간 운영 및 성능을 보기 위한 CloudWatch 대시보드액세스 작업을 지원하지 않습니다. |
S3 공용 액세스 차단 | myQNAPcloud Object는 기존 공용 액세스를 중앙에서 차단하고(ACL 또는 정책을 통해 가능하든지 간에) 새로 생성된 항목이 실수로 공용 액세스 권한을 부여받지 않도록 하는 작업을 지원하지 않습니다. |
| S3 선택 | myQNAPcloud Object는 S3 선택 API를 지원하지 않습니다. |
myQNAPcloud Object S3 API를 사용한 객체 작업
객체 작업에는 객체 이름 변경, 구성, 추가 및 삭제뿐만 아니라 암호화, 스토리지클래스, 객체 잠금 및 준수가 포함됩니다.
객체 이름 변경
myQNAPcloud Object는 객체를 이동하여 객체의 키를 변경하여 이름을 변경하는 기능을 지원합니다. 이는 먼저 객체를 복사한 다음 원본 객체를 삭제하는 두 단계 프로세스를 제거합니다. 호출자는 객체 이름을 변경하기 위해 버킷에 대한 s3:PutObject 정책 권한을 가져야 합니다.
객체 이름을 변경하려면 HTTP 메서드 MOVE와 이동 작업에 영향을 미치는 요청 헤더의 다음 매개변수를 사용하십시오.
|
| 덮어쓰기 | 부울 값으로, "true"일 때 동일한 키를 가진 대상 객체를 덮어쓸 수 있습니다. 그렇지 않으면 오류가 발생하고 원본 키는 변경되지 않습니다. |
| X-Wasabi-Quiet | 부울 값으로, "true"일 때 XML 상태 반환 본문은 오류가 발생한 키만 표시합니다. 그렇지 않으면 이름이 변경된 모든 객체가 상태에 표시됩니다. 기본값은 "false"입니다. |
| X-Wasabi-Prefix | 부울 값으로, "true"일 때 URL의 소스와 대상에 주어진 값이 접두사임을 의미합니다. 이는 키의 가장 왼쪽 부분과 일치합니다. 개념적으로 접두사를 객체의 폴더로 생각하십시오. 그렇지 않으면 정확히 키와 일치하는 객체(모든 버전 포함)만 이름이 변경됩니다. 기본값은 "false"입니다. |
호출은 응답의 XML 본문으로 결과를 반환합니다. 결과에는 이름이 변경된 각 객체에 대해 다음이 포함됩니다:
- 원본 소스 키,
- 이름이 변경된 대상 키,
- 객체의 버전 ID, 및
- 이름 변경 작업의 모든 오류.
조용한 옵션은 오류가 발생한 키만 목록에 표시되도록 결과를 만듭니다.
아래는 접두사 "TestMove-Dir2/"로 시작하는 모든 객체의 이름을 "TestMove-Dir2-Renamed/"로 변경하는 예입니다.
MOVE http://s3.us-east-1.myqnapcloud.io/my_bucket/TestMove-Dir2/HTTP/1.1 Destination:TestMove-Dir2-Renamed/X-Wasabi-Prefix:true
응답 본문:
<moveobjectresult> <sourceprefix>TestMove-Dir2/SourcePrefix> <destinationprefix>TestMove-Dir2-Renamed/DestinationPrefix> <moveobject> <sourcekey>TestMove-Dir2/SourceKey> <destinationkey>TestMove-Dir2-Renamed/DestinationKey> MoveObject> <moveobject> <sourcekey>TestMove-Dir2/Dir1/SourceKey> <destinationkey>TestMove-Dir2-Renamed/Dir1/DestinationKey> MoveObject> <moveobject> <sourcekey>TestMove-Dir2/Dir1/Obj1SourceKey> <destinationkey>TestMove-Dir2-Renamed/Dir1/Obj1DestinationKey> MoveObject> <moveobject> <sourcekey>TestMove-Dir2/Dir1/Obj2SourceKey> <destinationkey>TestMove-Dir2-Renamed/Dir1/Obj2DestinationKey> MoveObject> <moveobject> <sourcekey>TestMove-Dir2/Dir2/SourceKey> <destinationkey>TestMove-Dir2-Renamed/Dir2/DestinationKey> MoveObject> <moveobject> <sourcekey>TestMove-Dir2/Dir2/Obj1SourceKey> <destinationkey>TestMove-Dir2-Renamed/Dir2/Obj1DestinationKey> MoveObject> <moveobject> <sourcekey>TestMove-Dir2/Dir2/Obj2SourceKey> <destinationkey>TestMove-Dir2-Renamed/Dir2/Obj2DestinationKey> MoveObject> <movecount>7MoveCount> MoveObjectResult>
객체 구성
myQNAPcloud Object 는 다른 객체로 구성된 새 객체를 생성하는 기능을 제공합니다. 구성된 객체는 원본 데이터 객체를 복사하지 않고 구성된 객체를 데이터 객체에 연결하여 형성됩니다. 이는 객체를 구성할 방법을 제공하지 않는 AWS S3와 대조됩니다. myQNAPcloud Object작업은 훨씬 빠르고 원본 데이터를 여러 번 복사할 필요가 없습니다. 원본 구성 객체는 언제든지 삭제할 수 있으며, 시스템은 데이터에 대한 링크가 있는 한 원본 데이터를 유지합니다.
객체 구성을 사용하여 5GB 이상의 객체를 생성하는 다중 파트 업로드 기능을 대체할 수 있습니다. 호출자는 객체를 구성하기 위해 버킷에 대한 s3:PutObject 정책 권한을 가져야 합니다. 구성된 객체는 원본 데이터 객체뿐만 아니라 다른 구성된 객체에서도 생성될 수 있습니다. 그러나 하나의 구성된 객체에서 원본 데이터 객체의 총 수는 32를 초과할 수 없습니다. 구성된 객체는 동일한 버킷의 다른 객체에만 연결할 수 있습니다.
구성 작업은 객체가 XML 본문에 주어진 객체로 구성되었음을 나타내기 위해 "?compose" 쿼리 문자열 매개변수를 사용하여 HTTP 메서드 PUT을 사용하여 수행됩니다. XML 본문에는 객체 키 목록과 선택적으로 새 객체를 형성하는 버전 ID가 포함됩니다. 버전 ID가 제공되지 않으면 객체의 최신 버전이 사용됩니다. 새 객체는 연결된 모든 데이터 객체가 연결된 하나의 객체로 나타납니다. 새로 구성된 객체는 ETag(즉, MD5) 값을 가지지 않으며, 이는 연결된 객체의 MD5가 아니라 모든 데이터 객체 MD5를 함께 해싱한 결과입니다(다중 파트 객체가 완료될 때 수행되는 계산과 유사). 구성된 객체는 사용자가 제공한 암호화 키를 가질 수 없습니다. 그러나 모든 데이터는 휴지 상태에서 암호화되어 저장됩니다.
구성된 객체에 사용된 메타데이터에 대해서만 요금이 부과됩니다. 연결된 객체에 사용된 원본 데이터는 모든 구성된 객체가 원본 데이터 객체에 연결된 상태로 삭제될 때까지 정상 요금이 부과됩니다.
아래는 세 개의 객체 "TestCompose-Data-1", "TestCompose-Data-2", "TestCompose-Data-3"로 구성된 새 객체 "TestComp"를 구성하는 예입니다.
PUT http://s3.wasabisys.com/my_bucket/TestCompose-Object-1?composeHTTP/1.1Content-Type:text/xml <composerequest> <component> <key>TestCompose-Data-1</key> </component> <component> <key>TestCompose-Data-2</key> </component> <component> <key>TestCompose-Data-3</key> </component> </composerequest>
객체에 추가
AWS S3는 객체에 추가할 방법을 제공하지 않습니다.
기존 객체에 추가하는 것은 객체를 구성하는 다른 형태입니다(객체 구성 참조). 호출은 본문의 데이터를 임시 객체에 업로드한 다음 원본 객체의 데이터와 새로 업로드된 데이터가 추가된 새 구성 객체를 생성합니다. 버킷이 버전 관리된 경우, 원본 데이터를 유지하면서 새 구성 객체의 새 버전이 생성됩니다. 버전 관리되지 않은 경우, 새로 구성된 객체가 원본 객체를 대체합니다. 호출자는 객체에 추가하기 위해 버킷에 대한 s3:PutObject 정책 권한을 가져야 합니다. 또한 버전 관리되지 않은 버킷의 경우, 원본 객체를 대체하기 위해 s3:DeleteObject 정책 권한이 필요할 수 있습니다.
구성된 객체와 마찬가지로, 객체에 최대 1023번만 추가할 수 있습니다. 각 추가는 업로드된 데이터에 대한 링크를 생성하기 때문입니다. 객체에 작은 양의 데이터를 여러 번 추가하지 않도록 주의하십시오. 각 추가 데이터 업로드는 최소 크기 요금이 부과되는 새 객체를 생성하며, 작은 데이터 읽기로 인해 성능이 저하될 수 있습니다. 추가 작업은 "?append" 쿼리 문자열 매개변수를 사용하여 HTTP 메서드 PUT을 사용하여 수행됩니다. 추가할 데이터는 요청 본문에 업로드됩니다.
아래는 기존 객체 "TestAppend-Object"에 문자열 ""을 추가하는 예입니다.
PUT http://s3.us-east-1.myqnapcloud.io/my-bucket/TestAppend-Object?appendHTTP/1.1Content-Length:15
PUT 객체 복사 링크 사용
일반적으로 AWS S3 프로토콜을 사용하여 객체 이름을 변경하려면 객체가 하나의 키 값으로 업로드됩니다. 그런 다음 원본 키 값에서 복사된 새 키 값으로 PUT 작업이 제공되고 원본 키 값의 객체가 삭제됩니다.
myQNAPcloud Object 는 복사 키 값에서 원본 데이터로 새 키 값 객체를 연결하여 이 시퀀스를 자동으로 최적화합니다. 이는 데이터의 또 다른 복사를 방지하여 더 높은스토리지요금을 초래할 수 있습니다. myQNAPcloud Object는 원본 데이터에 대한 링크를 사용하기 때문에 최대 5TB 크기의 객체를 복사할 수 있으며 다중 파트 업로드를 사용할 필요가 없습니다.
객체 삭제 MFADelete
버킷 버전 관리에서 MFADelete 옵션이 켜져 있는 경우, 액세스 자격 증명이 MFA를 사용하여 서명된 경우 "x-amz-mfa"가 필요하지 않습니다(MFA(다중 요소 인증) 삭제 참조).
버킷 로깅이 활성화된 경우, 여러 객체를 삭제하면 삭제된 각 객체에 대해 별도의 로그 항목이 생성됩니다.
GET 객체 응답 헤더
GET 객체 요청의 모든 헤더는 "response-"로 시작하며 응답 헤더로 반환됩니다(문자열 "response-" 제외).
객체 서버 측 암호화
myQNAPcloud Object 는 요청된 암호화와 관계없이 휴지 상태의 모든 데이터를 암호화합니다. 시스템은 제공된 경우 호출자가 제공한 암호화 키를 사용하거나, 고객 키가 제공되지 않은 경우 각 객체에 대해 무작위 키 암호화 키를 생성합니다. 고객이 암호화 키를 제공하는 경우, AWS S3와 유사하게myQNAPcloud Object는 메타데이터에 고객 키의 사본을 보관하지 않으며, 호출자는 데이터를 읽기 위해 암호화 키를 제공해야 합니다. myQNAPcloud Object가 암호화 키를 제공하는 경우 호출자는 아무런 조치도 필요하지 않습니다.
호출자는 x-amz-server-side-encryption-customer-algorithm, x-amz-server-side-encryption-customer-key 및 x-amz-server-side-encryption-customer-key-MD5 헤더를 사용하여 암호화 키를 제공할 수 있습니다. 이 매개변수는 AWS S3와 동일하게 작동합니다.
myQNAPcloud Object 는 키 관리 서비스를 지원하지 않습니다. 따라서 "x-amz-server-side-encryption"은 모든 "aws:kms" 기능과 함께 지원되지 않습니다. myQNAPcloud Object 는 서버 측 암호화와 관계없이 항상 업로드된 데이터의 MD5를 저장합니다.
객체스토리지클래스
myQNAPcloud Object 는 표준 AWS S3 스토리지클래스와 가장 유사한 단일스토리지클래스를 제공합니다. 스토리지클래스가 어떤 작업에서 반환될 때, myQNAPcloud Object는 표준 AWS S3 스토리지클래스를 반환합니다.
myQNAPcloud Object에서 지원되지 않는 객체 작업
|
| 객체 복원 | myQNAPcloud Object 는 여러스토리지클래스를 지원하지 않으며, 다른스토리지클래스에서 객체를 복원하는 데 사용되는 POST 객체 복원 요청을 지원하지 않습니다. |
| 객체 콘텐츠 선택 | myQNAPcloud Object 는 간단한 구조화된 쿼리 언어(SQL) 문을 기반으로 Amazon S3 객체의 내용을 필터링하는 작업을 지원하지 않습니다. |
| S3 배치 작업 | myQNAPcloud Object 는 객체 관리를 위한 S3 배치 작업을 지원하지 않습니다. |
myQNAPcloud Object S3 API와의 준수
준수가 있는 버킷의 개별 객체에 대한 준수 설정도 버킷의 준수 한도 내에서 변경할 수 있습니다. 다음 XML 태그를 사용하여 객체 준수 설정을 지정하십시오.
|
| 법적 보류 | 법적 보류 상태를 설정하기 위한 부울 값 "true" 또는 "false"입니다. 객체가 true의 법적 보류 상태를 가지면 보존 기간에 관계없이 객체를 삭제할 수 없습니다. |
| 보존 시간 | 이 시간 이전에 객체를 삭제할 수 없는 새 보존 시간을 제공하는 ISO 시간입니다. 새 보존 시간은 버킷 정책에 의해 주어진 보존 기간을 초과해야 하며, 그렇지 않으면 오류가 반환됩니다. |
다음은 객체에 대한 준수를 설정하는 예입니다:
PUT http://s3.us-east-1.myqnapcloud.io/my-bucket/my-object?complianceHTTP/1.1 <objectcomplianceconfiguration> <conditionalhold>false</conditionalhold> <retentiontime>2018-03-13T10:45:00Z</retentiontime> </objectcomplianceconfiguration>
특정 객체에 대한 준수 설정은 "?compliance" 쿼리 문자열을 사용하여 검색할 수도 있습니다. 위의 객체 준수 설정 외에도 쿼리는 객체가 수정되지 않았음을 확인하는 데 사용할 수 있는 객체의 계산된 SHA256 해시를 반환합니다. SHA256 값은 단일 객체로 업로드된 객체에만 사용할 수 있으며, 다중 파트 또는 구성된 객체에는 사용할 수 없습니다.
다음은 객체에 대한 준수를 가져오는 예입니다:
GET http://s3.us-east-1.myqnapcloud.io/my-bucket/my-object?complianceHTTP/1.1
응답 본문:
<objectcomplianceconfiguration xml ns="http://s3.amazonaws.com/doc/2006-03-01/"> <retentiontime>2016-10-31T15:08:05Z</retentiontime> <conditionalhold>false</conditionalhold> <legalhold>false</legalhold> <sha256>14b4be3894e92166b508007b6c2e4fb6e88d3d0ad652c76475089a50ebe6e33b</sha256> </objectcomplianceconfiguration>
객체 준수 설정은 준수가 활성화된 버킷 목록에도 나타납니다.
myQNAPcloud Object S3 API와의개체 잠금
아래에 설명된 태그를 사용하여 객체에 대한개체 잠금설정을 추가하거나 업데이트할 수 있습니다.
|
| 보존 날짜까지 유지 | 객체의 보존 시간을 정의합니다. 이 시간 이전에는 객체를 삭제할 수 없습니다. 보존 시간은 미래에 있어야 합니다. |
| 법적 보류 | 대소문자를 구분하지 않는 ON 또는 OFF여야 합니다. |
다음은 객체에 대한 객체 잠금 구성을 설정하는 예입니다:
PUT https://s3.us-east-1.myqnapcloud.io/qa.objectlock.002/beta_vpn.png?retention&versionId= 001617181245457483475-4ylsTbqqvP <retention> <mode>compliance</mode> <retainuntildate>2021-04-06T09:00:45Z</retainuntildate> </retention>
다음은 객체에 대한 법적 보류를 설정하는 예입니다:
PUT https://s3.us-east-1.myqnapcloud.io/qa.objectlock.002/beta_vpn.png?legal-hold&versionId=001617181245457483475-4ylsTbqqvP <legalhold> <status>ON</status> </legalhold>
다음은 객체에 대한 거버넌스 모드를 설정하는 예입니다:
PUT https://s3.us-east-1.myqnapcloud.io/qa.objectlock.002/public/ACL.PNG?retention <retention> <mode>governance</mode> <retainuntildate>2021-05-20T09:00:45Z</retainuntildate> </retention>
객체에 대한 거버넌스 설정을 무시하려면 "x-amz-bypass-governance-retention =true" 헤더를 포함해야 합니다.
myQNAPcloud Object 스토리지지역에 대한 서비스 URL
myQNAPcloud Object의 다양한스토리지지역에 대한 myQNAPcloud 서비스 URL은 다음과 같습니다:
미주
| 지역 | 서비스 URL |
|---|
| 미국 동부 1 (버지니아 북부) | s3 .us-east-1.myqnapcloud.io |
| 미국 중부 1 (텍사스) | s3.us-central-1. myqnapcloud.io |
| 미국 서부 1 (오리건) | s3.us-west-1. myqnapcloud.io |
| 캐나다 중부 1 (토론토) | s3.ca-central-1. myqnapcloud.io |
EMEA
| EU 중부 1 (암스테르담) | s3.eu-central-1. myqnapcloud.io |
| EU 중부 2 (프랑크푸르트) | s3.eu-central-2. myqnapcloud.io |
| EU 서부 1 (런던) | s3.eu-west-1. myqnapcloud.io |
| EU 서부 2 (파리) | s3.eu-west-2. myqnapcloud.io |
| EU 서부 3 (런던) | s3.eu-west-3. myqnapcloud.io |
| EU 남부 1 (밀라노) | s3.eu-south-1. myqnapcloud.io |
APAC
| AP 북동부 1 (도쿄) | s3.ap-northeast-1. myqnapcloud.io |
| AP 북동부 2 (오사카) | s3.ap-northeast-2. myqnapcloud.io |
| AP 남동부 1 (싱가포르) | s3.ap-southeast-1. myqnapcloud.io |
| AP 남동부 2 (시드니) | s3.ap-southeast-2. myqnapcloud.io |
myQNAPcloud Object관리 콘솔은 myQNAPcloud 포털을 통해 접근할 수 있습니다.
타사스토리지애플리케이션과 함께 사용할 올바른 서비스 URL을 찾고 있다면, 버킷 위치와 일치하는 것을 선택해야 합니다.
타사스토리지애플리케이션을 사용할 때, 이러한 애플리케이션이스토리지지역 서비스 URL을 처리하는 방법이 다르다는 점을 인식해야 합니다. 이러한 방법에는 다음이 포함됩니다:
- 서비스 URL을 명시적으로 입력할 수 있는 애플리케이션. 이러한 애플리케이션은 새로운 서비스 URL이 사용 가능해질 때 쉽게 구성할 수 있기 때문에 가장 유연합니다.
- 미리 구축된스토리지지역 목록에서만 선택할 수 있는 애플리케이션. 이러한 애플리케이션은 가장 유연성이 떨어지며, 스토리지제공자가 새로운 지역을 구현하면 새로운 지역에 액세스하기 위해 애플리케이션 업데이트를 기다려야 합니다. myQNAPcloud Object 스토리지지역이 사전 정의된 지역 목록에 모두 포함되지 않은 경우, QNAP이 아닌 애플리케이션 공급업체에 지원을 요청하십시오.
- API 키 세트를 입력한 후 계정의 모든버킷를 제공하는 애플리케이션. 이러한 애플리케이션은 유연성을 제공하지만 HTTP 수준에서 자동 리디렉션이 필요할 수 있습니다.
myQNAPcloud Object S3 API를 사용한 객체 복제
GET 객체 태그 지정
myQNAPcloud Object는 객체가 다음과 같은 경우 객체의 태그 세트를 가져오는 기능을 지원합니다:
객체에 태그가 없는 경우
GET https://s3.myqnapcloud.io/my_bucket/Test-object1.txt?tagging
응답 본문:
<?xml version="1.0" encoding="UTF-8"?> <tagging> <tagset></tagset> </tagging>
상태 200 OK
객체에 태그가 있는 경우
GET https://s3.myqnapcloud.io/my_bucket/Test-object2.pdf?tagging
응답 본문:
<!--?xml version="1.0" encoding="UTF-8"?--> <tagging> <tagset> <tag> <key>key2</key> <value>value2</value> </tag> <tag> <key>key1</key> <value>value1</value> </tag> </tagset> </tagging>
PUT 객체 태그 지정
myQNAPcloud Object는 다음을 위한 기능을 지원합니다:
- 버킷의 기존 객체에 태그 값 추가
- 버킷의 기존 객체에 태그 값 추가
버킷의 기존 객체에 태그 값 추가
PUT https://s3.myqnapcloud.io/my_bucket/Test-object3.pdf?tagging
Content-Type: text/xml
응답 본문:
<tagging xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <tagset> <tag> <key>tag1</key> <value>value1</value> </tag> </tagset> </tagging>
버킷의 기존 객체에 태그 값 추가
이 예에서는 기존 객체에 이미 "key5" - "value5" 태그 값이 있습니다. 기존 쌍과 함께 새 태그 쌍을 추가할 수 있습니다.
PUT https://s3.myqnapcloud.io/my_bucket/Test-object4.jpg?tagging
Content-Type: text/xml
응답 본문:
<tagging xmlns="http://s3.myqnapcloud.io/doc/2006-03-01/"> <tagset> <tag> <key>key5</key> <value>value5</value> </tag> <tag> <key>key6</key> <value>value6</value> </tag> </tagset> </tagging>
상태 200 OK
다른 버전의 태그를 PUT하려면 versionId 쿼리 매개변수를 사용하십시오.
객체 태그 삭제
지정된 객체에서 전체 태그 세트를 제거합니다.
DELETE https://s3.myqnapcloud.io/my_bucket/Test-object5.pdf?tagging
응답 본문:
<empty>
상태 204 콘텐츠 없음
다른 버전의 태그를 삭제하려면 versionId 쿼리 매개변수를 사용하십시오.
myQNAPcloud Object API를 사용한 객체 태그 지정
객체 태그 가져오기
myQNAPcloud Object는 객체가 다음과 같은 경우 객체의 태그 세트를 가져오는 기능을 지원합니다:
객체에 태그가 없는 경우
GET
https://s3.myqnapcloud.io/my_bucket/Test-object1.txt?tagging
응답 본문:
<?xml version="1.0" encoding="UTF-8"?> <tagging> <tagset></tagset> </tagging>
상태 200 OK
객체에 태그가 있는 경우
GET
https://s3.myqnapcloud.io/my_bucket/Test-object2.pdf?tagging
응답 본문:
<!--?xml version="1.0" encoding="UTF-8"?--> <tagging> <tagset> <tag> <key>key2</key> <value>value2</value> </tag> <tag> <key>key1</key> <value>value1</value> </tag> </tagset> </tagging>
PUT 객체 태그 지정
myQNAPcloud Object는 다음을 위한 기능을 지원합니다:
- 버킷의 기존 객체에 태그 값 추가
- 버킷의 기존 객체에 태그 값 추가
버킷의 기존 객체에 태그 값 추가
PUT
https://s3.myqnapcloud.io/my_bucket/Test-object3.pdf?tagging
Content-Type: text/xml
응답 본문:
<tagging xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <tagset> <tag> <key>tag1</key> <value>value1</value> </tag> </tagset> </tagging>
버킷의 기존 객체에 태그 값 추가
이 예에서는 기존 객체에 이미 "key5" - "value5" 태그 값이 있습니다. 기존 쌍과 함께 새 태그 쌍을 추가할 수 있습니다.
PUT
https://s3.myqnapcloud.io/my_bucket/Test-object4.jpg?tagging
Content-Type: text/xml
응답 본문:
<tagging xmlns="http://s3.myqnapcloud.io/doc/2006-03-01/"> <tagset> <tag> <key>key5</key> <value>value5</value> </tag> <tag> <key>key6</key> <value>value6</value> </tag> </tagset> </tagging>
상태 200 OK
다른 버전의 태그를 PUT하려면 versionId 쿼리 매개변수를 사용하십시오.
객체 태그 삭제
지정된 객체에서 전체 태그 세트를 제거합니다.
DELETE
https://s3.myqnapcloud.io/my_bucket/Test-object5.pdf?tagging
응답 본문:
<empty>
상태 204 콘텐츠 없음
다른 버전의 태그를 삭제하려면 versionId 쿼리 매개변수를 사용하십시오.
추가 읽기
AWS S3와의 호환성으로 인해, myQNAPcloud Object작업 시 공식 AWS S3 문서가 보완 자료로 사용됩니다. API 버전 2006-03-01에 대한 자세한 내용은 Amazon Simple 스토리지 Service API Reference를 참조하십시오:
Amazon Simple 스토리지 Service API Reference