Skip to main content

Multipart Upload

GET Multiparts uploads#

Get all multipart uploads.

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/buckets/{name}/uploads
HeadersAuthorization
Parametersversion, projectId, name
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}YesGuidf5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the id of project
{name}YesstringstringShows the name of bucket

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API
Project IdYesstring($Guid)f5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the project id of API
NameYesstringrandomstringShows the bucket name
DelimiterNostringrandomstringCharacter you use to group keys.
Encoding.ValueNostringrandomstringEncode the object keys in the response
PrefixNostringrandomstringLists in-progress uploads only for those keys that begin with the specified prefix
KeyMarkerNostringrandomstringSpecifies the multipart upload after which listing should begin
MaxUploadsNostringrandomstringSets the maximum number of multipart uploads, from 1 to 1,000
UploadIdMarkerNostringrandomstringTogether with key-marker, specifies the multipart upload after which listing should begin

Request body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": {    "responseMetadata": {      "requestId": "string",      "metadata": {        "additionalProp1": "string",        "additionalProp2": "string",        "additionalProp3": "string"      },      "checksumAlgorithm": 0,      "checksumValidationStatus": 0    },    "contentLength": 0,    "httpStatusCode": 100,    "bucketName": "string",    "keyMarker": "string",    "uploadIdMarker": "string",    "nextKeyMarker": "string",    "nextUploadIdMarker": "string",    "maxUploads": 0,    "isTruncated": true,    "multipartUploads": [      {        "checksumAlgorithm": {          "value": "string"        },        "initiated": "2022-04-01T07:23:15.203Z",        "initiator": {          "displayName": "string",          "id": "string"        },        "key": "string",        "owner": {          "displayName": "string",          "id": "string"        },        "storageClass": {          "value": "string"        },        "uploadId": "string"      }    ],    "prefix": "string",    "delimiter": "string",    "commonPrefixes": [      "string"    ]  },  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Return a list of created buckets
responseMetadataarray [object]Returns the object of response metadata
requestIdlong1234Returns the request Id
metadataarray [object]Returns an object of metadata
additionalProp1string"string"Returns the additional property of metadata
additionalProp2string"string"Returns the additional property of metadata
additionalProp3string"string"Returns the additional property of metadata
checksumAlgorithmint0Returns the check sum algorithm
checksumValidationStatusint0Returns the status of check sum validation
contentLengthint0Returns the content length
httpStatusCodeint200Returns the http status code
bucketNamestring"string"Returns the bucket name
keyMarkerstring"stringReturns the key marker of an object
uploadIdMarkerstring"string"Returns the upload id marker
nextKeyMarkerstring"string"Returns the next key marker
nextUploadIdMarkerstring"string"Returns the next upload id marker
maxUploadsint0Returns the maximum uploads
isTruncatedbooltrueReturns the result if object is truncated
multipartUploadsarray[object]Returns the object of multipart uploads
checksumAlgorithmarray[object]Returns the object of check sum algorithm
valuestring"string"Returns the value of check sum algorithm
initiatedDateTime"2022-03-31T14:27:14.768Z"Returns the initiation date time
initiatorarray[object]Returns the object of initiatior
displayNamestring"string"Returns the display name of initiator
idstring"string"Returns the id of initiator
keystring"string"Returns the key
ownerarray[object]Returns the object of the owner
displayNamestring"string"Returns the display name of owner
idstring"string"Returns the id of owner
storageClassarray[object]Returns the object of storage classes
valuestring"string"Returns the value of the storage class
uploadIdstring"string"Returns the upload id
prefixstring"string"Returns the prefix of which key should be listed
delimiterbooltrueReturns the delimiter you specified in the request
commonPrefixesarray[string]Returns the common prefixes
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors#

For information about the errors that are common to all actions, see Common Errors:

HTTP Status Code: 401 Unauthorized

HTTP Status Code: 403 Forbidden

HTTP Status Code: 404 If the service is down

POST MultipartUpload#

Initiate a new multipart upload.

POST
MethodPOST
URL or EndPoint/api/v{version}/projects/{projectId}/buckets/{name}/uploads
HeadersAuthorization
ParametersprojectId, version, name
Body

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring2e21fae6-af4c-4a4a-e0fc-08d903f55711Shows the project Id
{name}YesstringstringShows the bucket name

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
versionYesstring($uuid)v1Shows the version of API
projectIdYesstring2e21fae6-af4c-4a4a-e0fc-08d903f55711Id of the project
nameYesstringstringShows the bucket name
keyNostringstringShows the key of an object you want to upload

Request body#

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": "string",  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultstring"string"Returns the result if its completed successfully
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Responses#

If the action is successful, the service sends back an HTTP 201 response.

The following data is returned in json format by the service.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 400 Bad Request
  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

GET Multipart parts#

Gets all multipart parts.

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/buckets/{name}/uploads/{uploadId}
HeadersAuthorization
Parametersversion, projectId, name, uploadId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}YesGuidf5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the id of project
{name}Yesstring"string"Shows the name of the bucket
{uploadId}Yesstring"string"Shows the upload id

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
VersionYesstring($uuid)v1Shows the version of API
Project IdYesstring($Guid)f5faa2e3-316b-4dd0-8f4d-ab41f6f71bd6Shows the project id of API
NameYesstring"string"Shows the name of the bucket
UploadIdYesstring"string"Shows the upload id
KeyNostring"string"Shows the key of the object

Request body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": [    {      "partNumber": 0,      "eTag": "string",      "checksumCRC32": "string",      "checksumCRC32C": "string",      "checksumSHA1": "string",      "checksumSHA256": "string",      "lastModified": "2022-04-01T08:20:02.302Z",      "size": 0    }  ],  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns the result of created bucket
partNumberstring"string"Returns the specified part after which listing begun.
eTagarray[object]Returns the e-tag of the multipart
checksumCRC32string"string"Returns checksum algorithm used to detect data corruption.
checksumCRC32Cstring"string"Returns the cyclic redundancy rheck checksum
checksumSHA1string"string"Returns the verified file that has been unaltered
checksumSHA256string"string"Returns the secure password hashing.
lastModifiedDateTime"2022-03-31T14:36:48.792Z"Returns the date time of where multipart was last modified
sizeint0Returns the size of the multipart
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found

PUT Multipart upload#

Complete or abort a multipart upload

PUT
MethodPUT
URL or EndPoint/api/v{version}/projects/{projectId}/buckets/{name}/lifecycle/{id}
HeadersAuthorization
ParametersprojectId, version, name, id
Body{key, abort}

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
v{version}Yesstringv1Shows the version of API
{projectId}Yesstring2e21fae6-af4c-4a4a-e0fc-08d903f55711Shows the project Id
nameYesstring"string"Shows the bucket name
idYesstring"string"Shows the id of lifecycle

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
versionYesstring($uuid)v1Shows the version of API
projectIdYesstring2e21fae6-af4c-4a4a-e0fc-08d903f55711Put the id of project
nameYesstring"string"Put the bucket name
idYesstring"string"Shows the id of lifecycle

Request body#

{  "key": "string",  "abort": true}

The description of the parameters is as follows:

Body Parameter NameMandatoryTypeExampleDescription
keyYesstring"string"Sends key of an object to complete or abort a multipart upload
abortYesbooltrueSends the true/false value if you want to abort multipart upload

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": true,  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultbooltrueReturns the result if its completed successfully
resultInfoarray [object]Returns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns how many pages of paganed data are
pageSizeinteger($int32)0Returns paganed data
totalPagesinteger($int32)0How many pages
hasNextPagebooltrueReturns the next page of paganed data
hasPreviousPagebooltrueReturns the previous page of paganed data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 400 Bad Request
  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found