The page has been translated by Gen AI.

Amazon S3 Usage Guide

Object Storage provides features such as service creation, listing, folder listing, folder creation, file upload, and download through the Samsung Cloud Platform Console. Additionally, the corresponding features are also available through APIs that are compatible with Amazon S3. You can use the same tools that leverage Amazon S3.
To use Amazon S3 utility tools, you must create and verify your authentication keys. For details, see Create an authentication key.

Amazon S3 API

The following is a list of Amazon S3 APIs supported by the Samsung Cloud Platform Object Storage service.

Reference
For more information about the Amazon S3 API, see the Amazon S3 API Guide.
CategoryDetailed Description
head-bucketQuery bucket information
list-bucketsList Buckets
get-bucket-versioningQuery bucket versioning
put-bucket-versioningFix bucket versioning
get-bucket-encryptionView bucket encryption settings
put-bucket-encryptionApply bucket encryption settings
delete-bucket-encryptionDelete bucket encryption settings
copy-objectCopy, Move, and Rename Objects
put-objectCreate Object
get-objectDownload Object
list-objectsList Objects
head-objectObject Details
get-object-aclQuery Object ACL
delete-objectDelete Object
  • If versioning is enabled, deleting a file adds a Delete Marker to the file, and the Delete Marker becomes the latest version.
  • To permanently delete a file, specify the version ID when deleting.
list-object-versionsList object versions
delete-objectDelete Object Version
presignIssuing a Presigned URL for a PUT Object
get-bucket-aclCheck bucket public permissions
create-bucketCreate a bucket
delete-bucketDelete Bucket
get-bucket-corsCheck the bucket CORS (Cross Origin Resources) configuration
put-bucket-corsCreate Bucket CORS (PUT)
delete-bucket-corsDelete bucket CORS
put-bucket-taggingCreate bucket tagging
get-bucket-taggingQuery bucket tagging
delete-bucket-taggingDelete bucket tagging
put-bucket-websiteCreate a bucket website
get-bucket-websiteQuery bucket website
delete-bucket-websiteDelete the bucket website
get-bucket-policy-statusQuery bucket policy status
put-bucket-aclCreate bucket ACL
create-multipart-uploadCreate a multipart upload
upload-partPerform a multipart upload
complete-multipart-uploadMultipart upload complete
list-multipart-uploadsMultipart upload list
abort-multipart-uploadDelete Incomplete Multipart Upload
put-object-taggingCreate object tagging
get-object-taggingObject tagging lookup
delete-object-taggingDelete object tagging
list-objects-V2Object Query (v2)
put-object-aclCreate an Object ACL
list-partsQuery Parts
put-public-access-blockCreate a public access block
get-public-access-blockQuery public access block
delete-public-access-blockDelete public access block
put-bucket-lifecycleCreate a bucket lifecycle (only Expiration rules are supported)
get-bucket-lifecycleQuery Bucket Lifecycle
delete-bucket-lifecycleDelete Bucket Lifecycle
put-bucket-policyCreate a bucket policy. For an example of creating a bucket policy, see Example of creating a bucket policy.
get-bucket-policyQuery bucket policy
delete-bucket-policyDelete bucket policy
put-bucket-replicationModify bucket replication policy
get-bucket-replicationView bucket replication policy
delete-bucket-replicationDelete bucket replication policy
Table. List of Amazon S3 supported APIs

Example of creating a bucket policy

put-bucket-policy When using , refer to the following example to create a JSON file.

Color mode
{
    "Statement": [
        {
            "Action": "s3:*",
            "Condition": {
                "IpAddress": {
                    "scp:SourceIp": []
                },
                "Resource": {
                    "scp:SourceDBaaSId": [],
                    "scp:SourceResourceId": [],
                    "scp:SourceVpcEndpointId": []
                },
                "Service": {
                    "scp:ServiceAiTraining": "true",
                    "scp:ServiceScf": "false"
                }
            },
            "Effect": "Allow",
            "Principal": "*",
            "Resource": [
                "srn:e::1234:kr-west1::objectstorage:bucket/bucketname",
                "srn:e::1234:kr-west1::objectstorage:bucket/bucketname/*"
            ]
        }
    ],
    "Version": "2012-10-17"
}
{
    "Statement": [
        {
            "Action": "s3:*",
            "Condition": {
                "IpAddress": {
                    "scp:SourceIp": []
                },
                "Resource": {
                    "scp:SourceDBaaSId": [],
                    "scp:SourceResourceId": [],
                    "scp:SourceVpcEndpointId": []
                },
                "Service": {
                    "scp:ServiceAiTraining": "true",
                    "scp:ServiceScf": "false"
                }
            },
            "Effect": "Allow",
            "Principal": "*",
            "Resource": [
                "srn:e::1234:kr-west1::objectstorage:bucket/bucketname",
                "srn:e::1234:kr-west1::objectstorage:bucket/bucketname/*"
            ]
        }
    ],
    "Version": "2012-10-17"
}
Example of writing a JSON file when using put-bucket-policy

  • Action, Effect, and Principal cannot be modified.
  • Resource: Enter Object Storage SRN and Object Storage SRN/*.
  • Condition IpAddress, Resource, and Service can be modified as follows.
    • IpAddress: Enter a single IP address or CIDR format.
    • Resource: Enter each resource ID.
    • Service: Enter false or true.
    • For details on allowed targets, see Configure Access Control.

Example of creating a bucket replication policy

put-bucket-replication When using , refer to the following example to create a JSON file.

Color mode
{
    "Role": "srn:e::1234:::iam:user/abc3d3442",
    "Rules": [
        {
            "ID": "replication-policy-1",
            "Status": "Enabled",
            "Priority": 1,
            "DeleteMarkerReplication": {
                "Status": "Enabled"
            },
            "Filter": {
                "Prefix": ""
            },
            "Destination": {
                "Bucket": "srn:e::1234:kr-west1::objectstorage:bucket/bucketname"
            }
        }
    ]
}
{
    "Role": "srn:e::1234:::iam:user/abc3d3442",
    "Rules": [
        {
            "ID": "replication-policy-1",
            "Status": "Enabled",
            "Priority": 1,
            "DeleteMarkerReplication": {
                "Status": "Enabled"
            },
            "Filter": {
                "Prefix": ""
            },
            "Destination": {
                "Bucket": "srn:e::1234:kr-west1::objectstorage:bucket/bucketname"
            }
        }
    ]
}
Example of writing a JSON file when using put-bucket-replication

  • Role: Enter the IAM SRN.
  • Rules > Destination Bucket: Enter the bucket SRN.
  • If you do not enter an ID for the Rule, it is automatically generated with a random value.
  • Changing the ID of a Rule creates a new policy and deletes the existing policy.

Amazon S3 CLI

To use Amazon S3 with the AWS CLI, see the Amazon S3 CLI guide.

Amazon S3 SDK for Java

To use the Amazon S3 SDK for Java, refer to the Amazon S3 SDK guide.

Reference
For SDK and REST API guides for other languages, refer to the AWS official website.
Reference
  • For the required region parameter when using the Amazon S3 SDK, refer to the following.
    • For the Korea West (kr-west1) region: kr-west
    • For Korea South 1, 2, and 3 (kr-south1, 2, 3): kr-south
  • The region parameter is for reference only; the actual region is determined by the URL.
Reference
  • South Korea 3 (kr-south3) Region Limitations
    • File upload and download functionality through the Samsung Cloud Platform Console is restricted.
    • Use of the S3 API/CLI with a public URL is restricted.
    • However, access to Private URLs through resources (such as Virtual Servers) created in the Samsung Cloud Platform Console is possible.
  • Regional restrictions for Korea South 1 (kr-south1) and Korea South 2 (kr-south2)
    • You must allow a separate firewall configuration to access the public URL.
    • You can find the public URL address on the Object Storage details page. * See Viewing Object Storage Details.
Overview
Monitoring Metrics