Request Parameters for an Append Upload
Type Definition
type AppendObjectInput struct
Parameter Description
| Field | Type | Optional or Mandatory | Description |
|---|---|---|---|
| Bucket | string | Mandatory | Bucket name |
| Key | string | Mandatory | Object name |
| Position | int64 | Mandatory | Position where the object data is appended. The position must be set to 0 when an object is uploaded for the first time. The value of position for the second append upload will be contained in the x-obs-next-append-position header of the response returned by the server during the first upload. |
| ContentMD5 | string | Optional | Base64-encoded MD5 value of the data to be uploaded. It is used for the OBS server to verify data integrity. |
| ACL | Optional | Pre-defined access control policy specified during object creation | |
| WebsiteRedirectLocation | string | Optional | Location where an object is redirected. It is available when website hosting is configured for a bucket. |
| ContentType | string | Optional | MIME type of an object. It is specified when the object is uploaded for the first time. |
| ContentLength | int64 | Optional | Size of the data to be uploaded |
| SseHeader | Optional | Header for server-side encryption | |
| StorageClass | Optional | Storage class of an object. It is specified when the object is uploaded for the first time. | |
| Metadata | map[string]string | Optional | User-defined metadata of an object. It is specified when the object is uploaded for the first time. |
| Body | io.Reader | Optional | Data stream of the object to be uploaded |
| GrantReadId | string | Optional | Permission required to read the object and obtain object metadata. It is specified when the object is uploaded for the first time. |
| GrantReadAcpId | string | Optional | Permission required to obtain the object ACL. It is specified when the object is uploaded for the first time. |
| GrantWriteAcpId | string | Optional | Permission required to write the object ACL. It is specified when the object is uploaded for the first time. |
| GrantFullControlId | string | Optional | Permission required to read objects, obtain object metadata, as well as obtain and write the object ACL. It is specified when the object is uploaded for the first time. |
| Expires | int64 | Optional | Indicates when an object will expire. |
Last Article: Response Result for Obtaining Bucket Encryption Settings
Next Article: Response Result for an Append Upload
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.