Torch Object Storage
Name | Location | Type | Required | Sample value | Description |
Name | Location | Type | Required | Sample value | Description |
fetchTask | Query | String | Yes | - | A special identifier representing the GetFetchTask request. |
taskId | Query | String | Yes | fac10613-4cfa-4689-bffd-8360b7dd0d38 | asynchronous task ID |
Name | Type | Sample Value | Note |
Name | Type | Sample Value | Note |
State | String | Success | Task status, the value description is as follows:
|
Err | String | fetch failed reason:back-to-source failed. the reason is mirror-back: unexpected status code 404 | Reason for task failure. tip The Err parameter returns the reason for task failure only when Status is in Failed or FetchSuccessCallBackError state. |
Task | Array | - | Task details. See the table below for details Task structure. |
Name | Parameter type | Sample value | Note |
Name | Parameter type | Sample value | Note |
URL | String | http://abc.123/ | URL to be fetched. |
IgnoreSameKey | String | true | Fetch policy when a file with the same name exists in the bucket. The values are described as follows:
|
ContentMD5 | String | XrY7u+Ae7tCTyyK7j1rNww== | The base64 value of the uploaded file's MD5. |
Bucket | String | test | The name of the bucket. |
Object | String | data.jpg | Object name. |
CallbackURL | String | http://domainname.com/callback | Callback request URL. |
CallbackHost | String | alternative-domainname.com | Host header when sending a callback request. |
CallbackBody | String | {"bucket" : ${bucket}, "object" : ${object}, "key1" : ${x:key1}, "key2" : ${x:key2}} | The message body sent with the callback request. |
CallbackBodyType | String | application/json | Callback request message body type. |
StorageClass | String | STANDARD | The storage type of the destination object. |
Acl | String | private | Object access permissions. |
GrantFullControl | String | id=account1 | Grants the grantees READ, READ_ACP, and WRITE_ACP permissions on the object during object creation. Format: id=account1,id=account2. |
GrantRead | String | id=Account1 | Allows the grantees to read the object and its metadata. Format: id=account1,id=account2. |
GrantReadAcp | String | id=account1 | Allows the grantees to read the object ACL. Format: id=account1,id=account2. |
GrantWriteAcp | String | id=account1 | Allows the grantees to modify the object ACL. Format: id=account1,id=account2. |
SSECAlgorithm | String | AES256 | The algorithm used for SSE-C encrypted objects. |
SSECKey | String | YWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWE= | SSE-C encrypted object key. |
SSECKeyMd5 | String | 0gYVWExOAz67jX5A6qY4+A== | The MD5 value of the key used for SSE-C encrypted objects. |
UserMeta | Array | - | Added custom metadata. For details, see the table below UserMeta structure. |
Name | Type | Sample value | Note |
Name | Type | Sample value | Note |
Key | String | key | Custom metadata key. |
Value | String | value | Custom metadata value. |