VOD CDN
This document provides API call examples for the video-on-demand (VOD) CDN module of the Java SDK. The examples show how to prefetch content, refresh the cache, query the status and quotas for refresh and prefetch tasks, query traffic data and network bandwidth, and download domain name logs.
Usage notes
For details on API parameters and response fields, visit Alibaba Cloud OpenAPI Explorer and view the Documentation tab for each API.
You can get SDK sample code from Alibaba Cloud OpenAPI Explorer. On the Parameters tab, configure the required parameters and make a call. Then, on the SDK Sample Code tab, select the SDK version and programming language to view and download the code. For more information, see Automatic generation of SDK examples.
Initialization
You must initialize the client before use. For more information, see Initialization.
Prefetch cache
You can call the PreloadVodObjectCaches API to prefetch the cache.
Alibaba Cloud OpenAPI Portal URL: PreloadVodObjectCaches.
Refresh cache
You can call the RefreshVodObjectCaches API to refresh the cache.
Alibaba Cloud OpenAPI Portal URL: RefreshVodObjectCaches.
Query the status of refresh and prefetch tasks
You can call the DescribeVodRefreshTasks API to query the status of refresh and prefetch tasks.
Alibaba Cloud OpenAPI Portal URL: DescribeVodRefreshTasks.
Query refresh and prefetch quotas
You can call the DescribeVodRefreshQuota API to query the limits and remaining quotas for refresh and prefetch tasks.
Alibaba Cloud OpenAPI Portal URL: DescribeVodRefreshQuota.
Query traffic data
You can call the DescribeVodDomainTrafficData API to query traffic data.
Alibaba Cloud OpenAPI Portal URL: DescribeVodDomainTrafficData.
Query network bandwidth
You can call the DescribeVodDomainBpsData API to query network bandwidth.
Alibaba Cloud OpenAPI Portal URL: DescribeVodDomainBpsData.
Download domain name logs
You can call the DescribeVodDomainLog API to download domain name logs.
Alibaba Cloud OpenAPI Portal URL: DescribeVodDomainLog.