CDN for ApsaraVideo VOD

Updated at:

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 Python. 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

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.

Alibaba Cloud OpenAPI Portal URL: PreloadVodObjectCaches.

Refresh cache

You can call the RefreshVodObjectCaches operation to refresh cache.

Alibaba Cloud OpenAPI Portal URL: RefreshVodObjectCaches.

Query the status of refresh or prefetch tasks

You can call the DescribeVodRefreshTasks operation to query the status of refresh or prefetch tasks.

Alibaba Cloud OpenAPI Portal URL: DescribeVodRefreshTasks.

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.

Alibaba Cloud OpenAPI Portal URL: DescribeVodRefreshQuota.

Query traffic data

You can call the DescribeVodDomainTrafficData operation to query traffic data.

Alibaba Cloud OpenAPI Portal URL: DescribeVodDomainTrafficData.

Query network bandwidth

You can call the DescribeVodDomainBpsData operation to query network bandwidth.

Alibaba Cloud OpenAPI Portal URL: DescribeVodDomainBpsData.

Download logs of a domain name

You can call the DescribeVodDomainLog operation to download logs of a domain name.

Alibaba Cloud OpenAPI Portal URL: DescribeVodDomainLog.