All Products
Search
Document Center

ApsaraVideo VOD:CDN for ApsaraVideo VOD

Last Updated:Aug 22, 2023

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 more information about the request and response parameters of API operations, visit OpenAPI Explorer and find the documentation of the API operation in the left-side navigation pane.

  • To obtain sample code of the SDK, visit OpenAPI Explorer. On the OpenAPI Explorer page, specify the request parameters on the Parameters tab and initiate a call. Then, view and download the sample code in a specific language on the SDK Sample Code tab.

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.