Uploads the file that contains resources to be purged or prefetched.
Operation description
Note
- The file can be up to 10 MB in size.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SiteId | long | Yes | The website ID. You can call the ListSites operation to obtain the ID. | 123456789**** |
Url | string | Yes | The OSS URL of the file that contains resources to be purged or prefetched. | https://xxxxx.oss-cn-shenzhen.aliyuncs.com/test_oss_file?Expires=1708659191&OSSAccessKeyId=**********&Signature=********** |
Type | string | Yes | The type of the purge or prefetch task. Valid values:
| file |
UploadTaskName | string | Yes | The name of the upload task. | purge_task_2024_11_11 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "3C6CCEC4-6B88-4D4A-93E4-D47B3D92CF8F",
"UploadId": 0
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidTime | The query time cannot exceed the last 3 days. | The query time cannot exceed the last 3 days. |
400 | MissingParameter.ObjectType | The ObjectType parameter is required if DomainName or ObjectType is specified. | Specify the ObjectType parameter. |
400 | InvalidParameters | The specified parameters are invalid. | Parameter is illegal. |
400 | ExceedFileUpload | The size of the uploaded file exceeds the upper limit. Select a file less than 10 MB. | The size of the uploaded file exceeds the upper limit. Select a file less than 10 MB. |
400 | TooManyRequests | Too many requests.Please try again later. | Requests are too frequent, please try again later. |
For a list of error codes, visit the Service error codes.