Last update:2025-08-18 15:32:15
This interface provides the function of obtaining specified resources from the mirror source site and storing them for the mirror storage space. If a resource with the same name already exists in the space, it will be completely overwritten by the resource from the mirror source site.
Request Path
POST /prefetch/{param1}
Host: <MgrDomain>
Authorization: <AccessToken>
Rules for Generating Parameter {param1}
The generation rule for {param1} is: bucket name + “:” + file name 1 | file name 2 | file name 3…
The concatenated string needs to be URL-safe Base64 encoded.
Encoding format:
encode_file_key = Urlsafe_Base64_Encode(<key>)
{param1} = Urlsafe_Base64_Encode(<bucekt>:encode_file_key1|encode_file_key2|encode_file_key3)
header Description
| Parameter | Required | Description |
|---|---|---|
| Host | Yes | The management domain name can be obtained on the user management interface. |
| Authorization | Yes | Manage credentials . |
Jsonstring with the following content is returned:{
"bucket":"<bucket string>",
"items":[
{
"key":"<filekey>",
"mirrorAddress":"<mirrorAddress string>",
"code":"<code int>",
"message":"<message string>"
}]
}
| Field name | Required | Description |
|---|---|---|
| bucket | Yes | bucket name |
| mirrorAddress | Yes | mirror source address |
| code | Yes | Mirror source response code |
| message | Yes | Mirror source response information |
Jsonstring with the following content is returned:{
"code": "<code string>",
"message": "<message string>"
}
| Field name | Required | Description |
|---|---|---|
| code | Yes | HTTP request response code, see HTTP response status code |
| message | Yes | Tips |
curl -v -X POST -H "Authorization:bea919a5a1bc53d76a9e4340951b0b3692ff2517:YjRmYWI4ZWVkYzNmNDkyYmM2Y2I0NWE2NzVjNjk1Y2NjOGQxYzI3NQ==" –-url http://mgrDomain/prefetch/aW1hZ2U6TVM1cWNHYz18TWk1cWNHYz0=