All Products
Search
Document Center

RefreshVodObjectCaches

Last Updated: Jul 11, 2019

Description

You can call this operation to refresh the content (such as files) on nodes. You can specify one or more URLs to refresh their content on cache nodes. This operation supports POST requests in which parameters are sent as a form.

Restrictions:

  • With an Alibaba Cloud account, you can submit a maximum of 2,000 requests to refresh or preload URLs and 100 requests to refresh directories every day.
  • You can call the RefreshVodObjectCaches operation to refresh content of a specific URL and call the PreloadVodObjectCaches operation to preload resources from a URL to a node.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set this parameter to RefreshVodObjectCaches.
ObjectPath String Yes The URL of the content to be refreshed, for example, abc.com/image/1.png. Separate multiple URLs with line breaks (\n or \r\n).
ObjectType String No The type of the content to be refreshed. Valid values:
  • File
  • Directory
Default value: File.

Response parameters

Parameter Type Description
RefreshTaskId String The ID of the refresh task. Multiple task IDs are separated with commas (,).

Examples

Sample request

https://vod.cn-shanghai.aliyuncs.com?&Action=RefreshObjectCaches&ObjectPath=test.test.com/test.txt&ObjectType=File&<Common request parameters>

Sample response

JSON format

{
"RefreshTaskId":"704222904","RequestId":"D61E4801-EAFF-4A63-AAE1-FBF6CE1CFD1C"
}

XML format

<? xml version="1.0" encoding="utf-8"? >
<RefreshVodObjectCachesResponse>
  <RefreshTaskId>704225667</RefreshTaskId>
  <RequestId>AB14769A-A5F2-4CCD-B85B-3368DFF63C0A</RequestId>
</RefreshVodObjectCachesResponse>

Error codes

Error code Error message HTTP status code Description
Throttling Request was denied due to request throttling. 503 The error message returned because the request is denied due to throttling.
IllegalOperation Illegal domain operate is not permitted. 403 The error message returned because the specified domain name is invalid.
OperationDenied Your account does not open VOD service yet. 403 The error message returned because ApsaraVideo for VOD has not been activated for your account.
OperationDenied.Suspended Your VOD service is suspended. 403 The error message returned because your account has overdue payments. Recharge your account.
InvalidDomain.NotFound The domain provided does not belong to you. 404 The error message returned because the specified domain name does not exist or does not belong to you.
InvalidDomain.Offline The domain provided is offline. 404 The error message returned because the specified domain name has been discontinued.
QuotaExceeded.Refresh You've exceeded the prescribed refresh limits. 400 The error message returned because the number of requests to refresh or preload the content exceeds the upper limit on the current day.
ServiceBusy The specified Domain is configuring, please retry later. 403 The error message returned because the specified domain name is being configured. Try again later.
InvalidDomain.Configure_failed Failed to configure the provided domain. 500 The error message returned because the system failed to configure the specified domain name and cannot refresh or preload the content.
MissingParameter The input parameter "ObjectPath" that is mandatory for processing this request is not supplied. 400 The error message returned because the ObjectPath parameter is not set.
InvalidObjectType.ValueNotSupported The specified value of "<ObjectType>" is not supported. 400 The error message returned because the specified ObjectType parameter is invalid.
InvalidObjectPath.Malformed The specific value of parameter ObjectPath is malformed. 400 The error message returned because the format of the specified ObjectPath parameter is invalid.
InvalidExtensiveDomain.ValueNotSupported Extensive domain not supported. 400 The error message returned because the specified domain name contains a wildcard character.
QuotaPerMinuteExceeded.Refresh You've exceeded the prescribed refresh limits per minute. 400 The error message returned because the number of requests to refresh the content exceeds the upper limit per minute.