Skip to main content

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.

ToolMaximum compatible version
S3 CLI2.22.0
python boto31.35.99
javascriptv3.726.1

Authentication​

Get S3 access key​

You can issue an S3 access key and use it as the credential for AWS Signature.

info

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​
MethodRequest URL
POST   https://objectstorage.{Region_Name}.kakaocloud.com/
Request syntax​
Temporary credentials 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​
QueryTypeRequiredDescription
ActionstringRequiredAction to perform
- Only AssumeRoleWithWebIdentity is supported
DurationSecondsintegerOptionalValidity duration of the temporary credentials
ProviderIdstringOptionalWebIdentity provider
- Currently, only iam.kakaocloud.com is supported
WebIdentityTokenstringRequiredToken issued by OpenStack
Response syntax​
Temporary credentials 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​
ResponseTypeDescription
user_idStringCloud account that uses the temporary credentials
session_tokenStringSecurity token for the temporary credentials
session_secret_keyStringSecret access key for the temporary credentials
session_access_keyStringAccess key ID for the temporary credentials
expirationTimestampExpiration 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 header
Authorization: AWS4-HMAC-SHA256 Credential=<AccessKeyID>/<Scope>, SignedHeaders=<SignedHeaders>, Signature=<Signature>
ComponentDescription
AWS4-HMAC-SHA256Signature algorithm indicating Signature Version 4
CredentialCredential scope consisting of AccessKeyID and Scope
AccessKeyID: S3 access key
Scope:
- Request date: YYYYMMDD
- Region: kr-central-2
- Service: s3
SignedHeadersList of signed header names, such as host and content-type
SignatureSignature calculated using HMAC-SHA256 for the request

Create AWS Signature​

The following components are required to generate a signature.

ComponentDescription
SecretKeyS3 secret access key
DateDate in YYYYMMDD format
Regionkr-central-2 region
Services3
Signingaws4_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
`Signature` = Hex(HMAC-SHA256(<SigningKey>, <StringToSign>))

S3 API support by region​

info

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.

Object Storage S3 API endpoint URL format
  https://objectstorage.{Region_Name}.kakaocloud.com/{project-id}:{bucket-name}/{object-path}
caution

The ExpectedOwner feature is not currently supported.

FeatureAPI support statusDescription
ListBucketsSupported
SecurityTokenServicePartially supportedOnly AssumeRoleWithWebIdentity is supported
HeadBucketSupported
GetBucketAccelerateConfiguration
GetBucketAclSupported
GetBucketAnalyticsConfiguration
ListBucketAnalyticsConfigurations
GetBucketCorsSupported
GetBucketEncryptionSupported
GetBucketIntelligentTieringConfiguration
ListBucketIntelligentTieringConfigurations
GetBucketInventoryConfiguration
ListBucketInventoryConfigurations
GetBucketLifecycleSupported
GetBucketLifecycleConfigurationSupported
GetBucketLocationSupported
GetBucketLoggingSupported
GetBucketMetricsConfiguration
ListBucketMetricsConfigurations
GetBucketNotification
GetBucketNotificationConfiguration
GetBucketOwnershipControls
GetBucketPolicy
GetBucketPolicyStatus
GetBucketReplication
GetBucketRequestPayment
GetBucketTagging
GetBucketVersioning
GetBucketWebsite
ListObjectVersions
ListObjectsV2Supported
GetObjectLockConfiguration
GetPublicAccessBlock
ListMultipartUploadsSupported
ListObjectsSupported
PutBucketAccelerateConfiguration
PutBucketAclPartially supportedOnly cloud account and AllUsers URI-based settings are supported
PutBucketAnalyticsConfiguration
PutBucketCorsSupported
PutBucketEncryptionPartially supportedInitial encryption can be configured on an empty bucket. The default encryption method of an already encrypted bucket can be changed.
PutBucketIntelligentTieringConfiguration
PutBucketInventoryConfiguration
PutBucketLifecyclePartial Supported
PutBucketLifecycleConfigurationPartial Supported
PutBucketLoggingSupported
PutBucketMetricsConfiguration
PutBucketNotification
PutBucketNotificationConfiguration
PutBucketOwnershipControls
PutBucketPolicy
PutBucketReplication
PutBucketRequestPayment
PutBucketTagging
PutBucketVersioning
PutBucketWebsite
PutObjectLockConfiguration
PutPublicAccessBlock
CreateBucketSupported
DeleteBucketAnalyticsConfiguration
DeleteBucketCorsSupported
DeleteBucketEncryptionNot supportedNot supported; returns 403
DeleteBucketIntelligentTieringConfiguration
DeleteBucketInventoryConfiguration
DeleteBucketLifecycleSupported
DeleteBucketMetricsConfiguration
DeleteBucketOwnershipControls
DeleteBucketPolicy
DeleteBucketReplication
DeleteBucketTagging
DeleteBucketWebsite
DeletePublicAccessBlock
DeleteBucketSupported
DeleteObjectsSupported
HeadObjectSupported
GetObjectAcl
GetObjectAttributes
GetObjectLegalHold
GetObjectRetention
GetObjectTaggingSupported
GetObjectTorrent
ListPartsSupported
GetObjectSupported
PutObjectAcl
PutObjectLegalHold
PutObjectRetention
PutObjectTaggingSupported
UploadPartCopySupported
UploadPartSupported
CopyObjectSupported
PutObjectSupported
AbortMultipartUploadSupported
DeleteObjectTaggingSupported
DeleteObjectSupported
CompleteMultipartUploadSupported
CreateMultipartUploadSupported
RestoreObject
SelectObjectContent
WriteGetObjectResponse

S3 API guide​

ListBuckets​

Lists all buckets created in the project.

API call method​

MethodRequest URL
GET  https://objectstorage.{Region_Name}.kakaocloud.com/
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Request syntax​
ListBuckets 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the service request was sent
AuthorizationStringRequiredAWS 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.

ListBuckets Response Syntax
  <?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​
ResponseTypeDescription
DisplayNameStringCloud account
IDStringUser ID
NameStringBucket name
CreationDateTimestampCreation date

HeadBucket​

Use HeadBucket to check whether a bucket exists and whether you have access to it.

API call method​

MethodRequest URL
Head  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
HeadBucket 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​
KeyDescription
DateTime the response was generated
Content-LengthSize of the response body
ConnectionWhether the connection is reused
X-Amz-Request-IdUnique request ID
X-Rgw-Bytes-UsedCreation date
X-Rgw-Object-CountNumber of objects in the bucket
X-Rgw-Quota-Bucket-ObjectsNot used
X-Rgw-Quota-Bucket-SizeNot used
X-Rgw-Quota-Max-BucketsNot used
X-Rgw-Quota-User-ObjectsNot used
X-Rgw-Quota-User-SizeNot used
X-Content-Type-OptionsSecurity header that prevents MIME type sniffing
X-Frame-OptionsSecurity header that prevents clickjacking
X-XSS-ProtectionSecurity header that specifies browser behavior when an XSS attack is detected
Strict-Transport-SecuritySecurity header that allows only HTTPS communication

CreateBucket​

Creates a bucket.

API call method​

MethodRequest URL
PUT  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
CreateBucket 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​

MethodRequest URL
DELETE  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
DeleteBucket 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​

MethodRequest URL
GET  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?acl
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
GetBucketAcl 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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.

GetBucketAcl Response Syntax
  <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​
ResponseTypeDescription
DisplayNameStringCloud account
IDStringUser ID
xsiString- CanonicalUser
- Group: Only 'AllUsers' is supported
PermissionString- 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​

MethodRequest URL
PUT  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?acl
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
PutBucketAcl Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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-TypeStringRequiredtext/html
x-amz-aclStringOptionalCanned 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-MD5StringRequiredBase64-encoded MD5 digest of the server-side encryption configuration in the request body
x-amz-grant-full-controlStringOptionalGrants 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-readStringOptionalGrants 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-acpStringOptionalGrants 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-writeStringOptionalGrants 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-acpStringOptionalGrants 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​
PutBucketAcl Request Syntax
<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​
RequestTypeRequiredDescription
IDStringOptionalUser ID
- Either ID or URI must be provided
URIStringOptionalGrants permissions to the AllUsers group
- Either ID or URI must be provided
xsiStringRequired- CanonicalUser
- Group: Only 'AllUsers' is supported
PermissionStringOptional- 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​

MethodRequest URL
GET  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?encryption
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
GetBucketEncryption Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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.

GetBucketEncryption Response Syntax
  <?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​
ResponseTypeDescription
SSEAlgorithmStringServer-side encryption algorithm
- SSE-S3, where S3 manages keys: AES256
- SSE-KMS, which uses a KMS key: aws:kms
KMSMasterKeyIDStringID 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.

info
  • 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​

MethodRequest URL
PUT  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?encryption
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
PutBucketEncryption 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​
KeyTypeRequiredDescription
Content-MD5StringRequiredBase64-encoded MD5 digest of the server-side encryption configuration in the request body
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​
PutBucketEncryption Request Syntax
  <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​
RequestTypeRequiredDescription
SSEAlgorithmStringRequiredServer-side encryption algorithm
- SSE-S3, where S3 manages keys: AES256
- SSE-KMS, which uses a KMS key: aws:kms
KMSMasterKeyIDStringOptionalUUID 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​

MethodRequest URL
GET  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?lifecycle
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
GetBucketLifecycle 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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.

GetBucketLifecycle Response Syntax
  <?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​
ResponseTypeDescription
StatusString- Enabled
- Disabled
DaysintegerObject retention period
PrefixStringObject name prefix
KeyStringTag key
ValueStringTag value
IDStringLifecycle policy name

PutBucketLifecycle​

Sets lifecycle rules for a bucket.

API call method​

MethodRequest URL
PUT  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?lifecycle
Request syntax​
PutBucketLifecycle Response 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​
KeyTypeRequiredDescription
Content-MD5StringRequiredBase64-encoded MD5 digest of the server-side encryption configuration in the request body
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​
PutBucketLifecycle Request Syntax
  <?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​
RequestTypeRequiredDescription
StatusStringRequired- Enabled
- Disabled
DaysIntegerOptionalObject retention period
PrefixStringRequiredObject name prefix
KeyStringRequiredTag key
ValueStringRequiredTag value
IDStringOptionalLifecycle policy name
Response syntax​

If successful, the service returns an HTTP 200 response.

DeleteBucketLifecycle​

Deletes all lifecycle settings for the bucket.

API call method​

MethodRequest URL
DELETE  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?lifecycle
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
DeleteBucketLifecycle 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​

MethodRequest URL
GET  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?location
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
GetBucketLocation 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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.

GetBucketLocation Response Syntax
  <?xml version="1.0" encoding="UTF-8"?>
<LocationConstraint xmlns="http://s3.amazonaws.com/doc/2006-03-01/">String</LocationConstraint>
Response elements​
ResponseTypeDescription
LocationConstraintStringRegion information

Getobject​

Retrieves an object stored in the bucket.

API call method​

MethodRequest URL
GET  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Object_KeyUnique key of the object to download, including the path
Request syntax​
Getobject Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​
KeyDescription
DateResponse creation time
Content-TypeFormat of the content in the body
Content-LengthObject size
ConnectionWhether the connection can be reused
Accept-RangesIndicates that the client can request a specific byte range of the file
EtagIdentifier used by the web server to detect changes to a resource's content or metadata
Last-ModifiedLast modification date
X-Amz-ExpirationExpiration date specified by the lifecycle policy (included only when object expiration is configured through a lifecycle policy)
X-Amz-Request-IdUnique request ID
X-Amz-Storage-ClassObject storage class (included only when the storage class is not Standard)
X-Rgw-Object-TypeObject type handled by RGW: only normal is used
x-amz-server-side-encryptionServer-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-idUUID 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-OptionsSecurity header that prevents MIME type sniffing
X-Frame-OptionsSecurity header that prevents clickjacking
X-XSS-ProtectionSecurity header that specifies browser behavior when an XSS attack is detected
Strict-Transport-SecuritySecurity header that allows only HTTPS communication

ListObjectsV2​

Lists the objects in the bucket.

API call method​

MethodRequest URL
GET  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?list-type=2
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
ListObjectsV2 Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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.

ListObjectsV2 Response Syntax
  <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​
ResponseTypeDescription
TenantStringProject ID
NameStringBucket name
PrefixStringPrefix
MaxKeysIntegerMaximum number of keys to return in the response
IsTruncatedBooleanfalse: all keys have been returned.
true: more keys are available.
KeyStringObject key
LastModifiedTimestampObject creation date and time
ETagStringObject hash value
SizeLongObject size
StorageClassStringStorage class of the object
KeyCountIntegerNumber of keys returned by the request

HeadObject​

Retrieves the object's header information.

API call method​

MethodRequest URL
HEAD  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Object_KeyUnique key of the object to download, including the path
Request syntax​
HeadObject Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​
KeyDescription
DateResponse creation time
Content-TypeFormat of the content in the body
Content-LengthObject size
ConnectionWhether the connection can be reused
Accept-RangesIndicates that the client can request a specific byte range of the file
EtagIdentifier used by the web server to detect changes to a resource's content or metadata
Last-ModifiedLast modification date
X-Amz-ExpirationExpiration date specified by the lifecycle policy (included only when object expiration is configured through a lifecycle policy)
X-Amz-Request-IdUnique request ID
X-Amz-Storage-ClassObject storage class (included only when the storage class is not Standard)
X-Rgw-Object-TypeObject type handled by RGW: only normal is used
x-amz-server-side-encryptionServer-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-idUUID 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-OptionsSecurity header that prevents MIME type sniffing
X-Frame-OptionsSecurity header that prevents clickjacking
X-XSS-ProtectionSecurity header that specifies browser behavior when an XSS attack is detected
Strict-Transport-SecuritySecurity header that allows only HTTPS communication

PutObject​

Uploads a single object to the bucket.

API call method​

MethodRequest URL
PUT  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Object_KeyUnique key of the object to download, including the path
Request syntax​
PutObject Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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-TaggingStringOptionalObject tag values
Example: Key1=Value1&Key2=Value2
X-Amz-meta-keyStringOptionalMetadata value
key is the metadata key name, and the header value is the metadata value.
x-amz-server-side-encryptionStringOptionalServer-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-idStringOptionalUUID 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-enabledStringOptionalWhether to use a bucket key
- Only false is allowed. Setting this to true returns 501.
caution

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​
KeyDescription
x-amz-server-side-encryptionServer-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-idUUID 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​

MethodRequest URL
PUT  https://objectstorage.{Region_Name}.kakaocloud.com/{dest_Bucket_Name}/{dest_Object_Key}
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
dest_Bucket_NameName of the destination bucket where the copied object will be stored
dest_Object_KeyUnique key of the new object at the destination, including the path
Request syntax​
CopyObject Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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-sourceStringRequiredPath of the source object
x-amz-server-side-encryptionStringOptionalServer-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-idStringOptionalUUID of the KMS user key used to encrypt the destination object
- Valid only when x-amz-server-side-encryption: aws:kms is set
caution

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.

CopyObject Response Syntax
  <CopyObjectResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<ETag>String</ETag>
<LastModified>Timestamp</LastModified>
</CopyObjectResult>
Response elements​
ResponseTypeDescription
ETagStringObject hash value
LastModifiedTimestampObject creation date and time

DeleteObject​

Deletes a single object.

API call method​

MethodRequest URL
DELETE  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Object_KeyUnique key of the object to download, including the path
Request syntax​
DeleteObject Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​

MethodRequest URL
POST  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?delete
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
DeleteObjects Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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.

DeleteObjects Requst Syntax
  <Delete xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Object>
<Key>String</Key>
</Object>
<Object>
<Key>String</Key>
</Object>
</Delete>
Request elements​
RequestTypeRequiredDescription
KeyStringRequiredObject key
Response syntax​

If successful, the service returns an HTTP 200 response.

DeleteObjects Response Syntax
  <DeleteResult xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Deleted>
<Key>String</Key>
</Deleted>
<Deleted>
<Key>String</Key>
</Deleted>
</DeleteResult>
Response elements​
ResponseTypeRequiredDescription
KeyStringRequiredObject key

CreateMultipartUpload​

Initiates a multipart upload and returns an upload ID. The upload ID associates all parts with the multipart upload.

API call method​

MethodRequest URL
POST  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?uploads
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Object_KeyUnique key of the object to download, including the path
Request syntax​
CreateMultipartUpload Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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-encryptionStringOptionalServer-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-idStringOptionalUUID 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-enabledStringOptionalWhether to use a bucket key
- Only false is allowed. Setting this to true returns 501.
caution

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.

CreateMultipartUpload Response Syntax
  <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​
ResponseTypeDescription
TenantStringProject ID
BucketStringBucket name
KeyStringKey of the object to upload
UploadIdStringMultipart upload ID
Response header​
KeyDescription
x-amz-server-side-encryptionServer-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-idUUID 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​

MethodRequest URL
PUT  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?partNumber={Number}&UploadId={UploadId}
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Object_KeyUnique key of the object to download, including the path
partNumberNumber of the part to upload (1–10,000)
UploadIdUnique upload ID returned by CreateMultipartUpload
Request syntax​
Uploadpart Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​

MethodRequest URL
GET  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?UploadId={UploadId}
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Object_KeyUnique key of the object to download, including the path
UploadIdUnique upload ID returned by CreateMultipartUpload
Request syntax​
ListParts Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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.

ListParts Response Syntax
  <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​
ResponseTypeDescription
TenantStringProject ID
BucketStringBucket name
KeyStringKey of the object to upload
UploadIdStringMultipart upload ID
StorageClassStringStorage class
PartNumberMarkerStringStarting point for the list. Only parts with a higher part number are listed.
NextPartNumberMarkerStringNumber of the last part in the list
MaxPartsStringMaximum number of parts allowed in the response
IsTruncatedStringWhether the part list is truncated
IDStringProject ID
DisplayNameStringProject name
LastModifiedTimestampPart upload time
PartNumberStringPart number, a positive integer from 1 to 10,000
ETagStringEntity tag of the uploaded part
SizeStringSize 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​

MethodRequest URL
GET  https://objectstorage.{Region_Name}.kakaocloud.com/{Buckets}?uploads
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Object_KeyUnique key of the object to download, including the path
Request syntax​
ListMultipartUploads Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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.

ListMultipartUploads Response Syntax
  <?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​
ResponseTypeDescription
TenantStringProject ID
BucketStringBucket name
NextKeyMarkerStringValue to use for the key-marker parameter in the next request
NextUploadIdMarkerStringValue to use for the upload-id-marker parameter in the next request
MaxUploadsIntegerMaximum number of multipart uploads
IsTruncatedStringWhether the part list is truncated
KeyStringKey of the object to upload
UploadIdStringMultipart upload ID
IDStringProject ID
DisplayNameStringProject name
StorageClassStringStorage class
InitiatedTimestampMultipart 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​

MethodRequest URL
PUT  https://objectstorage.{Region_Name}.kakaocloud.com/{dest_Bucket_Name}/{dest_Object_Key}?partNumber={n}&UploadId={upload_id}
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
dest_Bucket_NameDestination bucket name
dest_Object_KeyUnique key of the destination object, including the path
partNumberNumber of the part to upload (1–10,000)
UploadIdUnique upload ID returned by CreateMultipartUpload
Request syntax​
UploadPartCopy Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
x-amz-copy-sourceStringRequiredKey of the source object to copy as an upload part
AuthorizationStringRequiredAWS 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.

UploadPartCopy Response Syntax
  <?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​
ResponseTypeDescription
LastModifiedTimestampObject upload date and time
ETagStringObject 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​

MethodRequest URL
POST  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?&UploadId={UploadId}
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Object_KeyUnique key of the object to download, including the path
UploadIdUnique upload ID returned by CreateMultipartUpload
Request syntax​
CompleteMultipartUpload Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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 Response Syntax
<CompleteMultipartUpload xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<Part>
<ETag>String</ETag>
<PartNumber>Integer</PartNumber>
</Part>
...
</CompleteMultipartUpload>
Request elements​
RequestTypeRequiredDescription
ETagStringOptionalObject hash value
PartNumberIntegerOptionalPart number (a positive integer from 1 to 10,000)
Response syntax​

If successful, the service returns an HTTP 200 response.

CompleteMultipartUpload Response Syntax
  <?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​
ResponseTypeDescription
LocationStringURI that identifies the newly created object
TenantStringProject ID
BucketStringBucket name
KeyStringObject key
ETagStringObject hash value

AbortMultipartUpload​

Aborts a multipart upload. After the upload is aborted, you cannot upload additional parts using its upload ID.

API call method​

MethodRequest URL
DELETE  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?&UploadId={UploadId}
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
UploadIdUnique upload ID returned by CreateMultipartUpload
Request syntax​
AbortMultipartUpload Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​

MethodRequest URL
GET  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?tagging
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Object_KeyUnique key of the object to download, including the path
Request syntax​
GetObjectTagging Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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.

GetObjectTagging Response Syntax
  <?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​
ResponseTypeRequiredDescription
KeyStringRequiredObject tag key
ValueStringRequiredObject tag value

PutObjectTagging​

Adds tags to the object, overwriting existing tag values.

API call method​

MethodRequest URL
PUT  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?tagging
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Object_KeyUnique key of the object to download, including the path
Request syntax​
PutObjectTagging Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​
PutObjectTagging Response Syntax
  <Tagging xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<TagSet>
<Tag>
<Key>String</Key>
<Value>String</Value>
</Tag>
</TagSet>
</Tagging>
Request elements​
RequestTypeRequiredDescription
KeyStringRequiredObject tag key
ValueStringRequiredObject tag value
Response syntax​

If successful, the service returns an HTTP 200 response.

DeleteObjectTagging​

Deletes the object's tags.

API call method​

MethodRequest URL
DELETE  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/{Object_Key}?tagging
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Object_KeyUnique key of the object to download, including the path
Request syntax​
DeleteObjectTagging Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​

MethodRequest URL
GET  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?cors
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
GetBucketCors Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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 Response Syntax
  <?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​
ResponseTypeDescription
CORSRuleStringCORS policy. One or more rules can be configured (up to 10).
AllowedOriginStringDomain allowed to send CORS requests to the bucket (up to 200 characters)
AllowedMethodStringAllowed HTTP methods: GET, PUT, POST, DELETE, HEAD, * (1–5, uppercase)
AllowedHeaderStringRequest headers allowed in preflight requests
Examples: Content-Type, Authorization, * (0–10, up to 200 characters)
ExposeHeaderStringResponse headers exposed by the browser to the client
Examples: ETag, Authorization, X-Custom-Header (0–10, up to 200 characters)
MaxAgeSecondsIntegerTime 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​

MethodRequest URL
PUT  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?cors
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
PutBucketCors Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​
PutBucketCors Response Syntax
  <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​
ResponseTypeRequiredDescription
CORSRuleStringRequiredCORS policy. One or more rules can be configured (up to 10).
AllowedOriginStringRequiredDomain allowed to send CORS requests to the bucket (up to 200 characters)
AllowedMethodStringRequiredAllowed HTTP methods: GET, PUT, POST, DELETE, HEAD, * (1–5, uppercase)
AllowedHeaderStringOptionalRequest headers allowed in preflight requests
Examples: Content-Type, Authorization, * (0–10, up to 200 characters)
ExposeHeaderStringOptionalResponse headers exposed by the browser to the client
Examples: ETag, Authorization, X-Custom-Header (0–10, up to 200 characters)
MaxAgeSecondsIntegerOptionalTime 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​

MethodRequest URL
DELETE  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?cors
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
PutBucketCors Response 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​

  1. 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​

MethodRequest URL
OPTIONS  https://objectstorage.{Region_Name}.kakaocloud.com/{Project-Id}:{Bucket_Name}/?cors
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Project-IdProject ID
Bucket_NameTarget bucket name
Request syntax​
CORS Preflight Response 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​
KeyTypeRequiredDescription
OriginStringRequiredServer origin, including the protocol, host, and port
http://example.com
Access-Control-Request-HeadersListOptionalList of request headers
- X-Auth-Token, Content-Type
Access-Control-Request-MethodListOptionalList of methods
- HEAD, GET, PUT, POST, DELETE
Request body​

This request does not have a body.

Response header​
ResponseTypeDescription
Access-Control-Allow-CredentialsBooleanWhether to allow cookies to be shared across domains
- true: allowed
- false: not allowed
Access-Control-Allow-HeadersListRequest headers allowed by the server
Access-Control-Allow-MethodsListAllowed HTTP methods: HEAD, GET, PUT, POST, DELETE
Access-Control-Allow-OriginStringOrigin allowed to send CORS requests
Example: http://example.com or the wildcard *
Access-Control-Max-AgeIntegerTime 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​

MethodRequest URL
GET  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?logging
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
GetBucketLogging 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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.

GetBucketLogging Response Syntax
<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​
ResponseTypeDescription
TargetBucketStringDestination bucket where access log files are stored
TargetObjectKeyFormatContainerTop-level container defining the format of log object keys (paths): SimplePrefix or PartitionedPrefix
↳ SimplePrefixEmpty ElementEmpty tag used to store log object keys in the default format without partitions
↳ PartitionedPrefixContainerSpecifies a directory structure that partitions logs by date and time
↳ PartitionDateSourceStringDate source used to partition logs (fixed to DeliveryTime)
TargetPrefixStringPrefix (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​

MethodRequest URL
PUT  https://objectstorage.{Region_Name}.kakaocloud.com/{Bucket_Name}/?logging
Path parameters​
VariableDescription
Region_NameService region name, such as kr-central-2
Bucket_NameTarget bucket name
Request syntax​
PutBucketLogging 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​
KeyTypeRequiredDescription
X-Amz-Content-Sha256StringRequiredSHA256 hash of the content
X-Amz-DateStringRequiredDate and time the AWS service request was sent
AuthorizationStringRequiredAWS 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​
PutBucketAcl Request Syntax
<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​
ResponseTypeDescription
TargetBucketStringDestination bucket where access log files are stored
TargetObjectKeyFormatContainerTop-level container defining the format of log object keys (paths): SimplePrefix or PartitionedPrefix
↳ SimplePrefixEmpty ElementEmpty tag used to store log object keys in the default format without partitions
↳ PartitionedPrefixContainerSpecifies a directory structure that partitions logs by date and time
↳ PartitionDateSourceStringDate source used to partition logs (fixed to DeliveryTime)
TargetPrefixStringPrefix (virtual folder path) added to log file names
Response syntax​

If successful, the service returns an HTTP 200 response.

Common status codes​

HTTP StatusResponse messageDescription
200     OKSuccess
204     No ContentSuccess
400BadRequestInvalid request
401UnauthorizedAuthentication failed
403ForbiddenPermission denied
404Not FoundRequested resource not found