This topic provides examples on how to use the API operations of the VOD CDN module. The API operations are encapsulated in ApsaraVideo VOD SDK for Java. You can call the API operations to prefetch and refresh cache, query the status of refresh or prefetch tasks, query traffic data and network bandwidth, and download the logs of domain names. You can also query the maximum and remaining numbers of URLs and directories that can be refreshed or prefetched.
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.
Initialize a client
Before you use the SDK, initialize a client. For more information, see Initialization.
Prefetch resources
You can call the PreloadVodObjectCaches operation to prefetch resources.
Click PreloadVodObjectCaches to learn more about this API operation.
Refresh cache
You can call the RefreshVodObjectCaches operation to refresh cache.
Click RefreshVodObjectCaches to learn more about this API operation.
Query the status of refresh or prefetch tasks
You can call the DescribeVodRefreshTasks operation to query the status of refresh or prefetch tasks.
Click DescribeVodRefreshTasks to learn more about this API operation.
Query the maximum and remaining numbers of URLs and directories that can be refreshed or prefetched
You can call the DescribeVodRefreshQuota operation to query the maximum and remaining numbers of URLs and directories that can be refreshed or prefetched.
Click DescribeVodRefreshQuota to learn more about this API operation.
Query traffic data
You can call the DescribeVodDomainTrafficData operation to query traffic data.
Click DescribeVodDomainTrafficData to learn more about this API operation.
Query network bandwidth
You can call the DescribeVodDomainBpsData operation to query network bandwidth.
Click DescribeVodDomainBpsData to learn more about this API operation.
Download logs of a domain name
You can call the DescribeVodDomainLog operation to download logs of a domain name.
Click DescribeVodDomainLog to learn more about this API operation.