S3
KakaoCloud Object Storage provides compatibility with the S3 API.
Before you start
For the prerequisites for API calls, see API preparation.
Compatible S3 tools and SDK versions
The following table lists the latest SDK and S3 CLI versions compatible with KakaoCloud.
Requests may fail when using versions higher than those listed.
| Tool | Maximum compatible version |
|---|---|
| S3 CLI | 2.22.0 |
| python boto3 | 1.35.99 |
| javascript | v3.726.1 |
Authentication
Get S3 access key
You can issue an S3 access key and use it as the credential for AWS Signature.
S3 access keys can be issued for service accounts and user accounts. For details, see the following guides.
Get temporary credentials key
Currently, only AssumeRoleWithWebIdentity is supported.
Use an OpenStack token to create temporary credentials with the token user's permissions.
The credentials inherit the roles of the project in which the user's token was issued.
API call method
| Method | Request URL |
|---|---|
| POST | https://objectstorage.{Region_Name}.kakaocloud.com/ |
Request syntax
curl -X POST 'https://objectstorage.{Region_Name}.kakaocloud.com/' \
--header 'Accept: */*' \
--header 'Content-Type: application/json' \
--data-raw '{
"Action" : "AssumeRoleWithWebIdentity",
"DurationSeconds" : 1800,
"ProviderId" : "iam.kakaocloud.com",
"WebIdentityToken" : "{x-auth-token}"
}'
Request query
| Query | Type | Required | Description |
|---|---|---|---|
| Action | string | Required | Action to perform - Only AssumeRoleWithWebIdentity is supported |
| DurationSeconds | integer | Optional | Validity duration of the temporary credentials |
| ProviderId | string | Optional | WebIdentity provider - Currently, only iam.kakaocloud.com is supported |
| WebIdentityToken | string | Required | Token issued by OpenStack |
Response syntax
<AssumeRoleWithWebIdentityResponse>
<AssumeRoleWithWebIdentityResult>
<SubjectFromWebIdentityToken>{user_id}</SubjectFromWebIdentityToken>
<Credentials>
<SessionToken>{session_token}</SessionToken>
<SecretAccessKey>{session_secret_key}</SecretAccessKey>
<Expiration>{expiration}</Expiration>
<AccessKeyId>{session_access_key}</AccessKeyId>
</Credentials>
<Provider>iam.kakaocloud.com</Provider>
</AssumeRoleWithWebIdentityResult>
<ResponseMetadata>
<RequestId>{request_id}</RequestId>
</ResponseMetadata>
</AssumeRoleWithWebIdentityResponse>
Response elements
| Response | Type | Description |
|---|---|---|
| user_id | String | Cloud account that uses the temporary credentials |
| session_token | String | Security token for the temporary credentials |
| session_secret_key | String | Secret access key for the temporary credentials |
| session_access_key | String | Access key ID for the temporary credentials |
| expiration | Timestamp | Expiration time of the temporary credentials |
Issue credentials
You can issue EC2-style credentials using the OpenStack EC2 credentials command.
AWS Signature
AWS Signature is a digital signature used to authenticate S3 API requests. For direct HTTP access to APIs such as S3, AWS requires a Signature Version 4 (SigV4) signature to verify the request.
AWS SDKs and CLIs handle signatures automatically. When calling S3 APIs directly over HTTP, such as with curl or Postman, you must generate AWS Signature manually.
AWS Signature is included in the S3 API Authorization header.
The Authorization header consists of the following elements.
Authorization: AWS4-HMAC-SHA256 Credential=<AccessKeyID>/<Scope>, SignedHeaders=<SignedHeaders>, Signature=<Signature>
| Component | Description |
|---|---|
AWS4-HMAC-SHA256 | Signature algorithm indicating Signature Version 4 |
Credential | Credential scope consisting of AccessKeyID and Scope |
| AccessKeyID: S3 access key | |
| Scope: - Request date: YYYYMMDD- Region: kr-central-2- Service: s3 | |
SignedHeaders | List of signed header names, such as host and content-type |
Signature | Signature calculated using HMAC-SHA256 for the request |
Create AWS Signature
The following components are required to generate a signature.
| Component | Description |
|---|---|
SecretKey | S3 secret access key |
Date | Date in YYYYMMDD format |
Region | kr-central-2 region |
Service | s3 |
Signing | aws4_request: String indicating Signature Version 4 (SigV4) authentication |
AWS4-HMAC-SHA256 is the signing algorithm used in AWS Signature Version 4. It signs API requests by calculating HMAC with the SHA256 hash function using the signature components.
`Signature` = Hex(HMAC-SHA256(<SigningKey>, <StringToSign>))
S3 API support by region
To use bucket CORS in KakaoCloud Object Storage or access a bucket with public access enabled through its S3 endpoint URL, include the project ID as shown below.
https://objectstorage.{Region_Name}.kakaocloud.com/{project-id}:{bucket-name}/{object-path}
The ExpectedOwner feature is not currently supported.
| Feature | API support status | Description |
|---|---|---|
| ListBuckets | Supported | |
| SecurityTokenService | Partially supported | Only AssumeRoleWithWebIdentity is supported |
| HeadBucket | Supported | |
| GetBucketAccelerateConfiguration | ||
| GetBucketAcl | Supported | |
| GetBucketAnalyticsConfiguration | ||
| ListBucketAnalyticsConfigurations | ||
| GetBucketCors | Supported | |
| GetBucketEncryption | Supported | |
| GetBucketIntelligentTieringConfiguration | ||
| ListBucketIntelligentTieringConfigurations | ||
| GetBucketInventoryConfiguration | ||
| ListBucketInventoryConfigurations | ||
| GetBucketLifecycle | Supported | |
| GetBucketLifecycleConfiguration | Supported | |
| GetBucketLocation | Supported | |
| GetBucketLogging | Supported | |
| GetBucketMetricsConfiguration | ||
| ListBucketMetricsConfigurations | ||
| GetBucketNotification | ||
| GetBucketNotificationConfiguration | ||
| GetBucketOwnershipControls | ||
| GetBucketPolicy | ||
| GetBucketPolicyStatus | ||
| GetBucketReplication | ||
| GetBucketRequestPayment | ||
| GetBucketTagging | ||
| GetBucketVersioning | ||
| GetBucketWebsite | ||
| ListObjectVersions | ||
| ListObjectsV2 | Supported | |
| GetObjectLockConfiguration | ||
| GetPublicAccessBlock | ||
| ListMultipartUploads | Supported | |
| ListObjects | Supported | |
| PutBucketAccelerateConfiguration | ||
| PutBucketAcl | Partially supported | Only cloud account and AllUsers URI-based settings are supported |
| PutBucketAnalyticsConfiguration | ||
| PutBucketCors | Supported | |
| PutBucketEncryption | Partially supported | Initial encryption can be configured on an empty bucket. The default encryption method of an already encrypted bucket can be changed. |
| PutBucketIntelligentTieringConfiguration | ||
| PutBucketInventoryConfiguration | ||
| PutBucketLifecycle | Partial Supported | |
| PutBucketLifecycleConfiguration | Partial Supported | |
| PutBucketLogging | Supported | |
| PutBucketMetricsConfiguration | ||
| PutBucketNotification | ||
| PutBucketNotificationConfiguration | ||
| PutBucketOwnershipControls | ||
| PutBucketPolicy | ||
| PutBucketReplication | ||
| PutBucketRequestPayment | ||
| PutBucketTagging | ||
| PutBucketVersioning | ||
| PutBucketWebsite | ||
| PutObjectLockConfiguration | ||
| PutPublicAccessBlock | ||
| CreateBucket | Supported | |
| DeleteBucketAnalyticsConfiguration | ||
| DeleteBucketCors | Supported | |
| DeleteBucketEncryption | Not supported | Not supported; returns 403 |
| DeleteBucketIntelligentTieringConfiguration | ||
| DeleteBucketInventoryConfiguration | ||
| DeleteBucketLifecycle | Supported | |
| DeleteBucketMetricsConfiguration | ||
| DeleteBucketOwnershipControls | ||
| DeleteBucketPolicy | ||
| DeleteBucketReplication | ||
| DeleteBucketTagging | ||
| DeleteBucketWebsite | ||
| DeletePublicAccessBlock | ||
| DeleteBucket | Supported | |
| DeleteObjects | Supported | |
| HeadObject | Supported | |
| GetObjectAcl | ||
| GetObjectAttributes | ||
| GetObjectLegalHold | ||
| GetObjectRetention | ||
| GetObjectTagging | Supported | |
| GetObjectTorrent | ||
| ListParts | Supported | |
| GetObject | Supported | |
| PutObjectAcl | ||
| PutObjectLegalHold | ||
| PutObjectRetention | ||
| PutObjectTagging | Supported | |
| UploadPartCopy | Supported | |
| UploadPart | Supported | |
| CopyObject | Supported | |
| PutObject | Supported | |
| AbortMultipartUpload | Supported | |
| DeleteObjectTagging | Supported | |
| DeleteObject | Supported | |
| CompleteMultipartUpload | Supported | |
| CreateMultipartUpload | Supported | |
| RestoreObject | ||
| SelectObjectContent | ||
| WriteGetObjectResponse |
S3 API guide
ListBuckets
Lists all buckets created in the project.
API call method
| Method | Request URL |
|---|---|
| GET | https://objectstorage.{Region_Name}.kakaocloud.com/ |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
Request syntax
curl --request GET --location 'https://objectstorage.{Region_Name}.kakaocloud.com/' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
<?xml version="1.0" encoding="UTF-8"?>
<ListAllMyBucketsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Owner>
<DisplayName>String</DisplayName>
<ID>String</ID>
</Owner>
<Buckets>
<Bucket>
<Name>String</Name>
<CreationDate>Timestamp</CreationDate>
</Bucket>
</Buckets>
</ListAllMyBucketsResult>
Response elements
| Response | Type | Description |
|---|---|---|
| DisplayName | String | Cloud account |
| ID | String | User ID |
| Name | String | Bucket name |
| CreationDate | Timestamp | Creation date |
HeadBucket
Use HeadBucket to check whether a bucket exists and whether you have access to it.
API call method
| Method | Request URL |
|---|---|
| Head | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name} |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --head --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
Response headers
| Key | Description |
|---|---|
| Date | Time the response was generated |
| Content-Length | Size of the response body |
| Connection | Whether the connection is reused |
| X-Amz-Request-Id | Unique request ID |
| X-Rgw-Bytes-Used | Creation date |
| X-Rgw-Object-Count | Number of objects in the bucket |
| X-Rgw-Quota-Bucket-Objects | Not used |
| X-Rgw-Quota-Bucket-Size | Not used |
| X-Rgw-Quota-Max-Buckets | Not used |
| X-Rgw-Quota-User-Objects | Not used |
| X-Rgw-Quota-User-Size | Not used |
| X-Content-Type-Options | Security header that prevents MIME type sniffing |
| X-Frame-Options | Security header that prevents clickjacking |
| X-XSS-Protection | Security header that specifies browser behavior when an XSS attack is detected |
| Strict-Transport-Security | Security header that allows only HTTPS communication |
CreateBucket
Creates a bucket.
API call method
| Method | Request URL |
|---|---|
| PUT | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name} |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request PUT --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}' \
--header 'Content-Type: application/xml' \
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
DeleteBucket
Deletes a bucket.
API call method
| Method | Request URL |
|---|---|
| DELETE | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name} |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request DELETE --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 204 response.
GetBucketAcl
Retrieves the roles and permissions that control access to the bucket.
API call method
| Method | Request URL |
|---|---|
| GET | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?acl |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request GET --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?acl' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
<AccessControlPolicy>
<Owner>
<ID>string</ID>
<DisplayName>string</DisplayName>
</Owner>
<AccessControlList>
<Grant>
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="Group">
<ID>string</ID>
<DisplayName>string</DisplayName>
</Grantee>
<Permission>string</Permission>
</Grant>
</AccessControlList>
</AccessControlPolicy>
Response elements
| Response | Type | Description |
|---|---|---|
| DisplayName | String | Cloud account |
| ID | String | User ID |
| xsi | String | - CanonicalUser - Group: Only 'AllUsers' is supported |
| Permission | String | - FULL_CONTROL - WRITE - WRITE_ACP - READ - READ_ACP |
PutBucketAcl
Sets bucket roles and permissions. You can set bucket roles and permissions through the header or the body. If both the header and body specify permissions, the settings in the body take precedence.
API call method
| Method | Request URL |
|---|---|
| PUT | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?acl |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request PUT --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?acl' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}' \
--header 'Content-Type: application/xml' \
--data-raw '<AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<AccessControlList>
<Grant>
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
<ID>{project_id}</ID>
</Grantee>
<Permission>FULL_CONTROL</Permission>
</Grant>
</AccessControlList>
</AccessControlPolicy>'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
| Content-Type | String | Required | text/html |
| x-amz-acl | String | Optional | Canned ACL to apply to the bucket - private: Does not allow public access. Removes all permissions except the initial roles and storage.owner- public-read: Grants storage.objectReader to all users- public-read-write: Grants storage.objectCreator to all users- authenticated-read: Grants storage.objectReader to all IAM users |
| Content-MD5 | String | Required | Base64-encoded MD5 digest of the server-side encryption configuration in the request body |
| x-amz-grant-full-control | String | Optional | Grants storage.admin to specified users; accepts only cloud accounts or AllUsers - Cloud account: id=user ID- AllUsers: uri=http://acs.amazonaws.com/groups/global/AllUsers |
| x-amz-grant-read | String | Optional | Grants storage.objectReader to specified users; accepts only cloud accounts or AllUsers - Cloud account: id=user ID- AllUsers: uri=http://acs.amazonaws.com/groups/global/AllUsers |
| x-amz-grant-read-acp | String | Optional | Grants storage.policyReader to specified users; accepts only cloud accounts or AllUsers - Cloud account: id=user ID- AllUsers: uri=http://acs.amazonaws.com/groups/global/AllUsers |
| x-amz-grant-write | String | Optional | Grants storage.objectCreator to specified users; accepts only cloud accounts or AllUsers - Cloud account: id=user ID- AllUsers: uri=http://acs.amazonaws.com/groups/global/AllUsers |
| x-amz-grant-write-acp | String | Optional | Grants storage.policyWriter to specified users; accepts only cloud accounts or AllUsers - Cloud account: id=user ID- AllUsers: uri=http://acs.amazonaws.com/groups/global/AllUsers |
Request body
<AccessControlPolicy xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<AccessControlList>
<Grant>
<Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser">
<ID>string</ID>
</Grantee>
<Permission>string</Permission>
</Grant>
</AccessControlList>
</AccessControlPolicy>
Request elements
| Request | Type | Required | Description |
|---|---|---|---|
| ID | String | Optional | User ID - Either ID or URI must be provided |
| URI | String | Optional | Grants permissions to the AllUsers group - Either ID or URI must be provided |
| xsi | String | Required | - CanonicalUser - Group: Only 'AllUsers' is supported |
| Permission | String | Optional | - FULL_CONTROL: storage.admin- WRITE: storage.objectCreator- WRITE-ACP: storage.policyWriter- READ: storage.objectReader- READ-ACP: storage.policyReader |
Response syntax
If successful, the service returns an HTTP 200 response.
GetBucketEncryption
Retrieves the bucket's encryption configuration.
API call method
| Method | Request URL |
|---|---|
| GET | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?encryption |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request GET --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?encryption' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
<?xml version="1.0" encoding="UTF-8"?>
<ServerSideEncryptionConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Rule>
<ApplyServerSideEncryptionByDefault>
[ <SSEAlgorithm>AES256</SSEAlgorithm> |
<SSEAlgorithm>aws:kms</SSEAlgorithm>
<KMSMasterKeyID>{kms-key-uuid}</KMSMasterKeyID> ]
</ApplyServerSideEncryptionByDefault>
</Rule>
</ServerSideEncryptionConfiguration>
Response elements
| Response | Type | Description |
|---|---|---|
| SSEAlgorithm | String | Server-side encryption algorithm - SSE-S3, where S3 manages keys: AES256 - SSE-KMS, which uses a KMS key: aws:kms |
| KMSMasterKeyID | String | ID of a user key created in KMS |
PutBucketEncryption
Sets the default server-side encryption for a bucket. You can enable encryption for the first time on an empty bucket or change the default encryption method of an already encrypted bucket between SSE-S3 and SSE-KMS.
- Initial encryption can be configured only on an empty bucket with usage of 0 bytes.
- For an already encrypted bucket, you can switch between SSE-S3 and SSE-KMS regardless of bucket usage.
- When configuring SSE-KMS, specify the KMS user key UUID in
KMSMasterKeyID. - Encryption settings may take a short time to take effect after you configure
aws:kms. Objects uploaded during this period may be encrypted with the service-managed key (AES256). We recommend waiting briefly before uploading objects after changing the setting.
API call method
| Method | Request URL |
|---|---|
| PUT | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?encryption |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request PUT --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?encryption' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}' \
--header 'Content-Type: application/xml' \
--data-raw '<ServerSideEncryptionConfiguration>
<Rule>
<ApplyServerSideEncryptionByDefault>
<SSEAlgorithm>AES256</SSEAlgorithm>
</ApplyServerSideEncryptionByDefault>
</Rule>
</ServerSideEncryptionConfiguration>'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| Content-MD5 | String | Required | Base64-encoded MD5 digest of the server-side encryption configuration in the request body |
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
<ServerSideEncryptionConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Rule>
<ApplyServerSideEncryptionByDefault>
[ <SSEAlgorithm>AES256</SSEAlgorithm> |
<SSEAlgorithm>aws:kms</SSEAlgorithm>
<KMSMasterKeyID>{kms-key-uuid}</KMSMasterKeyID> ]
</ApplyServerSideEncryptionByDefault>
</Rule>
</ServerSideEncryptionConfiguration>
Request elements
| Request | Type | Required | Description |
|---|---|---|---|
| SSEAlgorithm | String | Required | Server-side encryption algorithm - SSE-S3, where S3 manages keys: AES256 - SSE-KMS, which uses a KMS key: aws:kms |
| KMSMasterKeyID | String | Optional | UUID of a user key created in KMS - Required when SSEAlgorithm is aws:kms |
Response syntax
If successful, the service returns an HTTP 200 response.
GetBucketLifecycle
Retrieves the bucket's lifecycle configuration.
API call method
| Method | Request URL |
|---|---|
| GET | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?lifecycle |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request GET --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?lifecycle' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}' \
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Response syntax
If successful, the service returns an HTTP 200 response.
<?xml version="1.0" encoding="UTF-8"?>
<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Rule>
<Status>string</Status>
<Expiration>
<Days>integer</Days>
</Expiration>
<Filter>
<And>
<Prefix>string</Prefix>
<Tag>
<Key>string</Key>
<Value>string</Value>
</Tag>
</And>
</Filter>
<ID>string</ID>
</Rule>
</LifecycleConfiguration>
Response elements
| Response | Type | Description |
|---|---|---|
| Status | String | - Enabled - Disabled |
| Days | integer | Object retention period |
| Prefix | String | Object name prefix |
| Key | String | Tag key |
| Value | String | Tag value |
| ID | String | Lifecycle policy name |
PutBucketLifecycle
Sets lifecycle rules for a bucket.
API call method
| Method | Request URL |
|---|---|
| PUT | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?lifecycle |
Request syntax
curl --request PUT --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?lifecycle' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}' \
--header 'Content-Type: application/xml' \
--data-raw '<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Rule>
<Expiration>
<Days>Integer</Days>
</Expiration>
<Filter>
<And>
<Prefix>String</Prefix>
<Tag>
<Key>String</Key>
<Value>String</Value>
</Tag>
</And>
</Filter>
<ID>String</ID>
<Status>String</Status>
</Rule>
</LifecycleConfiguration>'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| Content-MD5 | String | Required | Base64-encoded MD5 digest of the server-side encryption configuration in the request body |
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
<?xml version="1.0" encoding="UTF-8"?>
<LifecycleConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Rule>
<Expiration>
<Days>Integer</Days>
</Expiration>
<Filter>
<And>
<Prefix>String</Prefix>
<Tag>
<Key>String</Key>
<Value>String</Value>
</Tag>
</And>
</Filter>
<ID>String</ID>
<Status>String</Status>
</Rule>
</LifecycleConfiguration>
Request elements
| Request | Type | Required | Description |
|---|---|---|---|
| Status | String | Required | - Enabled - Disabled |
| Days | Integer | Optional | Object retention period |
| Prefix | String | Required | Object name prefix |
| Key | String | Required | Tag key |
| Value | String | Required | Tag value |
| ID | String | Optional | Lifecycle policy name |
Response syntax
If successful, the service returns an HTTP 200 response.
DeleteBucketLifecycle
Deletes all lifecycle settings for the bucket.
API call method
| Method | Request URL |
|---|---|
| DELETE | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?lifecycle |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request DELETE --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?lifecycle' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 204 response.
GetBucketLocation
Retrieves the bucket's region information.
API call method
| Method | Request URL |
|---|---|
| GET | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?location |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request GET --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?location' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
<?xml version="1.0" encoding="UTF-8"?>
<LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/">String</LocationConstraint>
Response elements
| Response | Type | Description |
|---|---|---|
| LocationConstraint | String | Region information |
Getobject
Retrieves an object stored in the bucket.
API call method
| Method | Request URL |
|---|---|
| GET | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key} |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
| Object_Key | Unique key of the object to download, including the path |
Request syntax
curl --request GET --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}' \
--output {filename_to_save}
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response. Returns the requested object.
Response header
| Key | Description |
|---|---|
| Date | Response creation time |
| Content-Type | Format of the content in the body |
| Content-Length | Object size |
| Connection | Whether the connection can be reused |
| Accept-Ranges | Indicates that the client can request a specific byte range of the file |
| Etag | Identifier used by the web server to detect changes to a resource's content or metadata |
| Last-Modified | Last modification date |
| X-Amz-Expiration | Expiration date specified by the lifecycle policy (included only when object expiration is configured through a lifecycle policy) |
| X-Amz-Request-Id | Unique request ID |
| X-Amz-Storage-Class | Object storage class (included only when the storage class is not Standard) |
| X-Rgw-Object-Type | Object type handled by RGW: only normal is used |
| x-amz-server-side-encryption | Server-side encryption algorithm applied to the object - AES256: service-managed key (SSE-S3)- aws:kms: KMS user key (SSE-KMS)(included only for encrypted objects) |
| x-amz-server-side-encryption-aws-kms-key-id | UUID of the KMS user key used for SSE-KMS encryption (included only when x-amz-server-side-encryption: aws:kms is used) |
| X-Content-Type-Options | Security header that prevents MIME type sniffing |
| X-Frame-Options | Security header that prevents clickjacking |
| X-XSS-Protection | Security header that specifies browser behavior when an XSS attack is detected |
| Strict-Transport-Security | Security header that allows only HTTPS communication |
ListObjectsV2
Lists the objects in the bucket.
API call method
| Method | Request URL |
|---|---|
| GET | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?list-type=2 |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request GET --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?list-type=2&prefix={prefix}&max-keys=100' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
<ListBucketResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Tenant>String</Tenant>
<Name>String</Name>
<Prefix>String</Prefix>
<MaxKeys>Integer</MaxKeys>
<IsTruncated>Boolean</IsTruncated>
<Contents>
<Key>String</Key>
<LastModified>Timestamp</LastModified>
<ETag>String</ETag>
<Size>Long</Size>
<StorageClass>String</StorageClass>
</Contents>
<KeyCount>Integer</KeyCount>
</ListBucketResult>
Response elements
| Response | Type | Description |
|---|---|---|
| Tenant | String | Project ID |
| Name | String | Bucket name |
| Prefix | String | Prefix |
| MaxKeys | Integer | Maximum number of keys to return in the response |
| IsTruncated | Boolean | false: all keys have been returned.true: more keys are available. |
| Key | String | Object key |
| LastModified | Timestamp | Object creation date and time |
| ETag | String | Object hash value |
| Size | Long | Object size |
| StorageClass | String | Storage class of the object |
| KeyCount | Integer | Number of keys returned by the request |
HeadObject
Retrieves the object's header information.
API call method
| Method | Request URL |
|---|---|
| HEAD | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key} |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
| Object_Key | Unique key of the object to download, including the path |
Request syntax
curl --head --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
Response header
| Key | Description |
|---|---|
| Date | Response creation time |
| Content-Type | Format of the content in the body |
| Content-Length | Object size |
| Connection | Whether the connection can be reused |
| Accept-Ranges | Indicates that the client can request a specific byte range of the file |
| Etag | Identifier used by the web server to detect changes to a resource's content or metadata |
| Last-Modified | Last modification date |
| X-Amz-Expiration | Expiration date specified by the lifecycle policy (included only when object expiration is configured through a lifecycle policy) |
| X-Amz-Request-Id | Unique request ID |
| X-Amz-Storage-Class | Object storage class (included only when the storage class is not Standard) |
| X-Rgw-Object-Type | Object type handled by RGW: only normal is used |
| x-amz-server-side-encryption | Server-side encryption algorithm applied to the object - AES256: service-managed key (SSE-S3)- aws:kms: KMS user key (SSE-KMS)(included only for encrypted objects) |
| x-amz-server-side-encryption-aws-kms-key-id | UUID of the KMS user key used for SSE-KMS encryption (included only when x-amz-server-side-encryption: aws:kms is used) |
| X-Content-Type-Options | Security header that prevents MIME type sniffing |
| X-Frame-Options | Security header that prevents clickjacking |
| X-XSS-Protection | Security header that specifies browser behavior when an XSS attack is detected |
| Strict-Transport-Security | Security header that allows only HTTPS communication |
PutObject
Uploads a single object to the bucket.
API call method
| Method | Request URL |
|---|---|
| PUT | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key} |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
| Object_Key | Unique key of the object to download, including the path |
Request syntax
curl --request PUT --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}' \
--header 'Content-Type: {mime_type}' \
--upload-file {local_file_path}
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
| X-Amz-Tagging | String | Optional | Object tag values Example: Key1=Value1&Key2=Value2 |
X-Amz-meta-key | String | Optional | Metadata valuekey is the metadata key name, and the header value is the metadata value. |
| x-amz-server-side-encryption | String | Optional | Server-side encryption algorithm to use - S3-managed key (SSE-S3): AES256- KMS key (SSE-KMS): aws:kms(uses the bucket's default encryption settings if this header is omitted) |
| x-amz-server-side-encryption-aws-kms-key-id | String | Optional | UUID of the KMS user key used to encrypt the object with SSE-KMS - Valid only when x-amz-server-side-encryption: aws:kms is set |
| x-amz-server-side-encryption-bucket-key-enabled | String | Optional | Whether to use a bucket key - Only false is allowed. Setting this to true returns 501. |
SSE-C encryption with customer-provided keys is not supported. Using an x-amz-server-side-encryption-customer-* header returns a 501 response.
Request body
Object data (the actual data to upload).
Send the file's byte stream directly in the request body.
Response syntax
If successful, the service returns an HTTP 200 response.
Response header
| Key | Description |
|---|---|
| x-amz-server-side-encryption | Server-side encryption algorithm applied to the object - AES256: service-managed key (SSE-S3)- aws:kms: KMS user key (SSE-KMS)(included only for encrypted objects) |
| x-amz-server-side-encryption-aws-kms-key-id | UUID of the KMS user key used for SSE-KMS encryption (included only when x-amz-server-side-encryption: aws:kms is used) |
CopyObject
Copies an object to the bucket.
API call method
| Method | Request URL |
|---|---|
| PUT | https://objectstorage.{Region_Name}.kakaocloud.com/{dest_Bucket_Name}/{dest_Object_Key} |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| dest_Bucket_Name | Name of the destination bucket where the copied object will be stored |
| dest_Object_Key | Unique key of the new object at the destination, including the path |
Request syntax
curl --request PUT --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{dest_Bucket_Name}/{dest_Object_Key}' \
--header 'X-Amz-Copy-Source: /{src_Bucket_Name}/{src_Object_Key}' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
| x-amz-copy-source | String | Required | Path of the source object |
| x-amz-server-side-encryption | String | Optional | Server-side encryption algorithm for the destination object - AES256: service-managed key (SSE-S3)- aws:kms: KMS user key (SSE-KMS)(uses the destination bucket's default encryption settings if omitted) |
| x-amz-server-side-encryption-aws-kms-key-id | String | Optional | UUID of the KMS user key used to encrypt the destination object - Valid only when x-amz-server-side-encryption: aws:kms is set |
When copying an SSE-KMS-encrypted source object or encrypting the destination object with SSE-KMS, the requester must have access to the corresponding KMS user key.
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
<CopyObjectResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<ETag>String</ETag>
<LastModified>Timestamp</LastModified>
</CopyObjectResult>
Response elements
| Response | Type | Description |
|---|---|---|
| ETag | String | Object hash value |
| LastModified | Timestamp | Object creation date and time |
DeleteObject
Deletes a single object.
API call method
| Method | Request URL |
|---|---|
| DELETE | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key} |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
| Object_Key | Unique key of the object to download, including the path |
Request syntax
curl --request DELETE --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 204 response.
DeleteObjects
Deletes multiple objects in bulk.
API call method
| Method | Request URL |
|---|---|
| POST | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?delete |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request POST --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?delete' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}' \
--header 'Content-Type: application/xml' \
--data-raw '<Delete>
<Quiet>false</Quiet>
<Object><Key>file1.txt</Key></Object>
<Object><Key>file2.png</Key></Object>
</Delete>'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
Specify the object keys to delete in the request body.
<Delete xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Object>
<Key>String</Key>
</Object>
<Object>
<Key>String</Key>
</Object>
</Delete>
Request elements
| Request | Type | Required | Description |
|---|---|---|---|
| Key | String | Required | Object key |
Response syntax
If successful, the service returns an HTTP 200 response.
<DeleteResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Deleted>
<Key>String</Key>
</Deleted>
<Deleted>
<Key>String</Key>
</Deleted>
</DeleteResult>
Response elements
| Response | Type | Required | Description |
|---|---|---|---|
| Key | String | Required | Object key |
CreateMultipartUpload
Initiates a multipart upload and returns an upload ID. The upload ID associates all parts with the multipart upload.
API call method
| Method | Request URL |
|---|---|
| POST | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?uploads |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
| Object_Key | Unique key of the object to download, including the path |
Request syntax
curl --request POST --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?uploads' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
| x-amz-server-side-encryption | String | Optional | Server-side encryption algorithm to use - S3-managed key (SSE-S3): AES256- KMS key (SSE-KMS): aws:kms(uses the bucket's default encryption settings if this header is omitted) |
| x-amz-server-side-encryption-aws-kms-key-id | String | Optional | UUID of the KMS user key used to encrypt the object with SSE-KMS - Valid only when x-amz-server-side-encryption: aws:kms is set |
| x-amz-server-side-encryption-bucket-key-enabled | String | Optional | Whether to use a bucket key - Only false is allowed. Setting this to true returns 501. |
SSE-C encryption with customer-provided keys is not supported. Using an x-amz-server-side-encryption-customer-* header returns a 501 response.
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
<InitiateMultipartUploadResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Tenant>String</Tenant>
<Bucket>String</Bucket>
<Key>multipart2</Key>
<UploadId>2~7HdUyr3lqN3Ze9MwWxCyxqGBVc_2BoU</UploadId>
</InitiateMultipartUploadResult>
Response elements
| Response | Type | Description |
|---|---|---|
| Tenant | String | Project ID |
| Bucket | String | Bucket name |
| Key | String | Key of the object to upload |
| UploadId | String | Multipart upload ID |
Response header
| Key | Description |
|---|---|
| x-amz-server-side-encryption | Server-side encryption algorithm applied to the multipart upload - AES256: service-managed key (SSE-S3)- aws:kms: KMS user key (SSE-KMS)(included only for encrypted objects) |
| x-amz-server-side-encryption-aws-kms-key-id | UUID of the KMS user key used for SSE-KMS encryption (included only when x-amz-server-side-encryption: aws:kms is used) |
Uploadpart
Uploads a single part of a multipart upload.
API call method
| Method | Request URL |
|---|---|
| PUT | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?partNumber={Number}&UploadId={UploadId} |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
| Object_Key | Unique key of the object to download, including the path |
| partNumber | Number of the part to upload (1–10,000) |
| UploadId | Unique upload ID returned by CreateMultipartUpload |
Request syntax
curl --request PUT --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?partNumber=1&UploadId={upload_id}' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}' \
--upload-file {local_file_part_path}
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
Object data (the actual data to upload).
Send the file's byte stream directly in the request body.
Response syntax
If successful, the service returns an HTTP 200 response.
ListParts
Lists the parts uploaded for a specific multipart upload.
API call method
| Method | Request URL |
|---|---|
| GET | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?UploadId={UploadId} |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
| Object_Key | Unique key of the object to download, including the path |
| UploadId | Unique upload ID returned by CreateMultipartUpload |
Request syntax
curl --request GET --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?UploadId={upload_id}' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
<ListPartsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Tenant>String</Tenant>
<Bucket>String</Bucket>
<Key>String</Key>
<UploadId>String</UploadId>
<StorageClass>String</StorageClass>
<PartNumberMarker>Integer</PartNumberMarker>
<NextPartNumberMarker>Integer</NextPartNumberMarker>
<MaxParts>Integer</MaxParts>
<IsTruncated>Boolean</IsTruncated>
<Owner>
<ID>String</ID>
<DisplayName>String</DisplayName>
</Owner>
<Part>
<LastModified>Timestamp</LastModified>
<PartNumber>Integer</PartNumber>
<ETag>String</ETag>
<Size>Long</Size>
</Part>
<Part>
<LastModified>Timestamp</LastModified>
<PartNumber>Integer</PartNumber>
<ETag>String</ETag>
<Size>Long</Size>
</Part>
<Part>
<LastModified>Timestamp</LastModified>
<PartNumber>Integer</PartNumber>
<ETag>String</ETag>
<Size>Long</Size>
</Part>
</ListPartsResult>
Response elements
| Response | Type | Description |
|---|---|---|
| Tenant | String | Project ID |
| Bucket | String | Bucket name |
| Key | String | Key of the object to upload |
| UploadId | String | Multipart upload ID |
| StorageClass | String | Storage class |
| PartNumberMarker | String | Starting point for the list. Only parts with a higher part number are listed. |
| NextPartNumberMarker | String | Number of the last part in the list |
| MaxParts | String | Maximum number of parts allowed in the response |
| IsTruncated | String | Whether the part list is truncated |
| ID | String | Project ID |
| DisplayName | String | Project name |
| LastModified | Timestamp | Part upload time |
| PartNumber | String | Part number, a positive integer from 1 to 10,000 |
| ETag | String | Entity tag of the uploaded part |
| Size | String | Size of the uploaded part |
ListMultipartUploads
Lists the multipart uploads in progress in the bucket. An in-progress multipart upload is an upload initiated with CreateMultipartUpload that has not yet been completed or aborted.
API call method
| Method | Request URL |
|---|---|
| GET | https://objectstorage.{Region_Name}.kakaocloud.com/{Buckets}?uploads |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
| Object_Key | Unique key of the object to download, including the path |
Request syntax
curl --request GET --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?uploads' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
<?xml version="1.0" encoding="UTF-8"?>
<ListMultipartUploadsResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Tenant>String</Tenant>
<Bucket>String</Bucket>
<NextKeyMarker>String</NextKeyMarker>
<NextUploadIdMarker>String</NextUploadIdMarker>
<MaxUploads>Integer</MaxUploads>
<IsTruncated>Boolean</IsTruncated>
<Upload>
<Key>String</Key>
<UploadId>String</UploadId>
<Initiator>
<ID>String</ID>
<DisplayName>String</DisplayName>
</Initiator>
<Owner>
<ID>String</ID>
<DisplayName>String</DisplayName>
</Owner>
<StorageClass>String</StorageClass>
<Initiated>Timestamp</Initiated>
</Upload>
</ListMultipartUploadsResult>
Response elements
| Response | Type | Description |
|---|---|---|
| Tenant | String | Project ID |
| Bucket | String | Bucket name |
| NextKeyMarker | String | Value to use for the key-marker parameter in the next request |
| NextUploadIdMarker | String | Value to use for the upload-id-marker parameter in the next request |
| MaxUploads | Integer | Maximum number of multipart uploads |
| IsTruncated | String | Whether the part list is truncated |
| Key | String | Key of the object to upload |
| UploadId | String | Multipart upload ID |
| ID | String | Project ID |
| DisplayName | String | Project name |
| StorageClass | String | Storage class |
| Initiated | Timestamp | Multipart upload initiation date and time |
UploadPartCopy
Copies an existing object in the bucket to the specified part number of a multipart upload initiated with CreateMultipartUpload.
API call method
| Method | Request URL |
|---|---|
| PUT | https://objectstorage.{Region_Name}.kakaocloud.com/{dest_Bucket_Name}/{dest_Object_Key}?partNumber={n}&UploadId={upload_id} |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| dest_Bucket_Name | Destination bucket name |
| dest_Object_Key | Unique key of the destination object, including the path |
| partNumber | Number of the part to upload (1–10,000) |
| UploadId | Unique upload ID returned by CreateMultipartUpload |
Request syntax
curl --request PUT --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{dest_Bucket_Name}/{dest_Object_Key}?partNumber=1&UploadId={upload_id}' \
--header 'X-Amz-Copy-Source: /{src_Bucket_Name}/{src_Object_Key}' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| x-amz-copy-source | String | Required | Key of the source object to copy as an upload part |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
<?xml version="1.0" encoding="UTF-8"?>
<CopyPartResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<LastModified>Timestamp</LastModified>
<ETag>String</ETag>
</CopyPartResult>
Response elements
| Response | Type | Description |
|---|---|---|
| LastModified | Timestamp | Object upload date and time |
| ETag | String | Object hash value |
CompleteMultipartUpload
After uploading all parts of a multipart upload initiated with CreateMultipartUpload, use CompleteMultipartUpload to complete it. Completes the multipart upload by assembling the previously uploaded parts.
API call method
| Method | Request URL |
|---|---|
| POST | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?&UploadId={UploadId} |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
| Object_Key | Unique key of the object to download, including the path |
| UploadId | Unique upload ID returned by CreateMultipartUpload |
Request syntax
curl --request POST --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?uploadId={upload_id}' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}' \
--header 'Content-Type: application/xml' \
--data-raw '<CompleteMultipartUpload>
<Part>
<PartNumber>1</PartNumber>
<ETag>{etag_1}</ETag>
</Part>
<Part>
<PartNumber>2</PartNumber>
<ETag>{etag_2}</ETag>
</Part>
</CompleteMultipartUpload>'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
<CompleteMultipartUpload xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Part>
<ETag>String</ETag>
<PartNumber>Integer</PartNumber>
</Part>
...
</CompleteMultipartUpload>
Request elements
| Request | Type | Required | Description |
|---|---|---|---|
| ETag | String | Optional | Object hash value |
| PartNumber | Integer | Optional | Part number (a positive integer from 1 to 10,000) |
Response syntax
If successful, the service returns an HTTP 200 response.
<?xml version="1.0" encoding="UTF-8"?>
<CompleteMultipartUploadResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Location>String</Location>
<Tenant>String</Tenant>
<Bucket>String</Bucket>
<Key>String</Key>
<ETag>String</ETag>
</CompleteMultipartUploadResult>
Response elements
| Response | Type | Description |
|---|---|---|
| Location | String | URI that identifies the newly created object |
| Tenant | String | Project ID |
| Bucket | String | Bucket name |
| Key | String | Object key |
| ETag | String | Object hash value |
AbortMultipartUpload
Aborts a multipart upload. After the upload is aborted, you cannot upload additional parts using its upload ID.
API call method
| Method | Request URL |
|---|---|
| DELETE | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?&UploadId={UploadId} |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
| UploadId | Unique upload ID returned by CreateMultipartUpload |
Request syntax
curl --request DELETE --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?uploadId={upload_id}' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 204 response.
GetObjectTagging
Retrieves the object's tags.
API call method
| Method | Request URL |
|---|---|
| GET | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?tagging |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
| Object_Key | Unique key of the object to download, including the path |
Request syntax
curl --request GET --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?tagging' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
<?xml version="1.0" encoding="UTF-8"?>
<Tagging xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<TagSet>
<Tag>
<Key>String</Key>
<Value>String</Value>
</Tag>
</TagSet>
</Tagging>
Response elements
| Response | Type | Required | Description |
|---|---|---|---|
| Key | String | Required | Object tag key |
| Value | String | Required | Object tag value |
PutObjectTagging
Adds tags to the object, overwriting existing tag values.
API call method
| Method | Request URL |
|---|---|
| PUT | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?tagging |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
| Object_Key | Unique key of the object to download, including the path |
Request syntax
curl --request PUT --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?tagging' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}' \
--header 'Content-Type: application/xml' \
--data-raw '<Tagging>
<TagSet>
<Tag>
<Key>Project</Key>
<Value>Alpha</Value>
</Tag>
</TagSet>
</Tagging>'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
<Tagging xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<TagSet>
<Tag>
<Key>String</Key>
<Value>String</Value>
</Tag>
</TagSet>
</Tagging>
Request elements
| Request | Type | Required | Description |
|---|---|---|---|
| Key | String | Required | Object tag key |
| Value | String | Required | Object tag value |
Response syntax
If successful, the service returns an HTTP 200 response.
DeleteObjectTagging
Deletes the object's tags.
API call method
| Method | Request URL |
|---|---|
| DELETE | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?tagging |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
| Object_Key | Unique key of the object to download, including the path |
Request syntax
curl --request DELETE --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?tagging' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
GetBucketCors
Retrieves the bucket's Cross-Origin Resource Sharing (CORS) settings.
API call method
| Method | Request URL |
|---|---|
| GET | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?cors |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request GET --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?cors' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>http://example.com</AllowedOrigin>
<AllowedOrigin>http://example.com:8080</AllowedOrigin>
<AllowedOrigin>https://example.com</AllowedOrigin>
<AllowedOrigin>http://*.example.com</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
<AllowedHeader>x-auth-token</AllowedHeader>
<ExposeHeader>Access-Control-Allow-Origin</ExposeHeader>
</CORSRule>
</CORSConfiguration>
Response elements
| Response | Type | Description |
|---|---|---|
| CORSRule | String | CORS policy. One or more rules can be configured (up to 10). |
| AllowedOrigin | String | Domain allowed to send CORS requests to the bucket (up to 200 characters) |
| AllowedMethod | String | Allowed HTTP methods: GET, PUT, POST, DELETE, HEAD, * (1–5, uppercase) |
| AllowedHeader | String | Request headers allowed in preflight requests Examples: Content-Type, Authorization, * (0–10, up to 200 characters) |
| ExposeHeader | String | Response headers exposed by the browser to the client Examples: ETag, Authorization, X-Custom-Header (0–10, up to 200 characters) |
| MaxAgeSeconds | Integer | Time in seconds for the browser to cache preflight results (0–86,400 seconds) |
PutBucketCors
Adds or updates the bucket's Cross-Origin Resource Sharing (CORS) settings.
API call method
| Method | Request URL |
|---|---|
| PUT | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?cors |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request PUT --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?cors' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}' \
--header 'Content-Type: application/xml' \
--data-raw '<CORSConfiguration>
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>http://example.com</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>HEAD</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
<ExposeHeader>ETag</ExposeHeader>
<MaxAgeSeconds>3000</MaxAgeSeconds>
</CORSRule>
</CORSConfiguration>
Request elements
| Response | Type | Required | Description |
|---|---|---|---|
| CORSRule | String | Required | CORS policy. One or more rules can be configured (up to 10). |
| AllowedOrigin | String | Required | Domain allowed to send CORS requests to the bucket (up to 200 characters) |
| AllowedMethod | String | Required | Allowed HTTP methods: GET, PUT, POST, DELETE, HEAD, * (1–5, uppercase) |
| AllowedHeader | String | Optional | Request headers allowed in preflight requests Examples: Content-Type, Authorization, * (0–10, up to 200 characters) |
| ExposeHeader | String | Optional | Response headers exposed by the browser to the client Examples: ETag, Authorization, X-Custom-Header (0–10, up to 200 characters) |
| MaxAgeSeconds | Integer | Optional | Time in seconds for the browser to cache preflight results (0–86,400 seconds) |
Response syntax
If successful, the service returns an HTTP 200 response.
DELETEBucketCors
Deletes the bucket's Cross-Origin Resource Sharing (CORS) settings.
API call method
| Method | Request URL |
|---|---|
| DELETE | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?cors |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request DELETE --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?cors' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Response syntax
If successful, the service returns an HTTP 204 response.
CORS Preflight
- A browser can retrieve CORS settings through a CORS preflight request.
No separate token is required for a browser preflight request.
Use{project_id}:{Bucket_Name}for the bucket name in the request URL.
API call method
| Method | Request URL |
|---|---|
| OPTIONS | https://objectstorage.{Region_Name}.kakaocloud.com/{Project-Id}:{Bucket_Name}/?cors |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Project-Id | Project ID |
| Bucket_Name | Target bucket name |
Request syntax
curl --request OPTIONS --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}' \
--header 'Origin: {request_origin_url}' \
--header 'Access-Control-Request-Method: {method_to_use}' \
--header 'Access-Control-Request-Headers: {headers_to_use}' \
--verbose
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| Origin | String | Required | Server origin, including the protocol, host, and port http://example.com |
| Access-Control-Request-Headers | List | Optional | List of request headers - X-Auth-Token, Content-Type |
| Access-Control-Request-Method | List | Optional | List of methods - HEAD, GET, PUT, POST, DELETE |
Request body
This request does not have a body.
Response header
| Response | Type | Description |
|---|---|---|
| Access-Control-Allow-Credentials | Boolean | Whether to allow cookies to be shared across domains - true: allowed - false: not allowed |
| Access-Control-Allow-Headers | List | Request headers allowed by the server |
| Access-Control-Allow-Methods | List | Allowed HTTP methods: HEAD, GET, PUT, POST, DELETE |
| Access-Control-Allow-Origin | String | Origin allowed to send CORS requests Example: http://example.com or the wildcard * |
| Access-Control-Max-Age | Integer | Time for the browser to cache preflight results |
Response syntax
For preflight requests, the response status code does not indicate whether the request succeeded.
If a CORSRule exists, the response includes the corresponding headers. Otherwise, no meaningful header values are returned.
GetBucketLogging
Retrieves the bucket's access logging status, log destination, and configured object key format.
API call method
| Method | Request URL |
|---|---|
| GET | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?logging |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request GET --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?logging' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
This request does not have a body.
Response syntax
If successful, the service returns an HTTP 200 response.
<BucketLoggingStatus xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<LoggingEnabled>
<TargetBucket>String</TargetBucket>
<TargetObjectKeyFormat>
[ <SimplePrefix></SimplePrefix> |
<PartitionedPrefix>
<PartitionDateSource>DeliveryTime</PartitionDateSource>
</PartitionedPrefix> ]
</TargetObjectKeyFormat>
<TargetPrefix>String</TargetPrefix>
</LoggingEnabled>
</BucketLoggingStatus>
Response elements
| Response | Type | Description |
|---|---|---|
| TargetBucket | String | Destination bucket where access log files are stored |
| TargetObjectKeyFormat | Container | Top-level container defining the format of log object keys (paths): SimplePrefix or PartitionedPrefix |
| ↳ SimplePrefix | Empty Element | Empty tag used to store log object keys in the default format without partitions |
| ↳ PartitionedPrefix | Container | Specifies a directory structure that partitions logs by date and time |
| ↳ PartitionDateSource | String | Date source used to partition logs (fixed to DeliveryTime) |
| TargetPrefix | String | Prefix (virtual folder path) added to log file names |
PutBucketLogging
Configures the bucket's access log destination and object key format, and enables or disables access logging.
API call method
| Method | Request URL |
|---|---|
| PUT | https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?logging |
Path parameters
| Variable | Description |
|---|---|
| Region_Name | Service region name, such as kr-central-2 |
| Bucket_Name | Target bucket name |
Request syntax
curl --request PUT --location 'https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?logging' \
--header 'X-Amz-Content-Sha256: {content_sha256}' \
--header 'X-Amz-Date: {amz_date}' \
--header 'Authorization: {authorization_header}' \
--data '<BucketLoggingStatus xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<LoggingEnabled>
<TargetBucket>String</TargetBucket>
<TargetObjectKeyFormat>
<SimplePrefix></SimplePrefix>
</TargetObjectKeyFormat>
<TargetPrefix>String</TargetPrefix>
</LoggingEnabled>
</BucketLoggingStatus>'
Request header
| Key | Type | Required | Description |
|---|---|---|---|
| X-Amz-Content-Sha256 | String | Required | SHA256 hash of the content |
| X-Amz-Date | String | Required | Date and time the AWS service request was sent |
| Authorization | String | Required | AWS Signature Version 4 header signing the request - Credential: AWS access key ID and credential scope (required) - SignedHeaders: List of signed header names (required) - Signature: Signature value (required) |
Request body
<BucketLoggingStatus xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<LoggingEnabled>
<TargetBucket>String</TargetBucket>
<TargetObjectKeyFormat>
[ <SimplePrefix></SimplePrefix> |
<PartitionedPrefix>
<PartitionDateSource>DeliveryTime</PartitionDateSource>
</PartitionedPrefix> ]
</TargetObjectKeyFormat>
<TargetPrefix>String</TargetPrefix>
</LoggingEnabled>
</BucketLoggingStatus>
Request elements
| Response | Type | Description |
|---|---|---|
| TargetBucket | String | Destination bucket where access log files are stored |
| TargetObjectKeyFormat | Container | Top-level container defining the format of log object keys (paths): SimplePrefix or PartitionedPrefix |
| ↳ SimplePrefix | Empty Element | Empty tag used to store log object keys in the default format without partitions |
| ↳ PartitionedPrefix | Container | Specifies a directory structure that partitions logs by date and time |
| ↳ PartitionDateSource | String | Date source used to partition logs (fixed to DeliveryTime) |
| TargetPrefix | String | Prefix (virtual folder path) added to log file names |
Response syntax
If successful, the service returns an HTTP 200 response.
Common status codes
| HTTP Status | Response message | Description |
|---|---|---|
200 | OK | Success |
204 | No Content | Success |
400 | BadRequest | Invalid request |
401 | Unauthorized | Authentication failed |
403 | Forbidden | Permission denied |
404 | Not Found | Requested resource not found |