Create policies in ApsaraVideo VOD to automatically change the storage class or delete audio and video files in batches.
-
Storage and deletion policies apply only to media assets in the ApsaraVideo VOD bucket. You can configure up to five policies per type, for a total of ten.
-
Policies run daily from 00:00 to 24:00 (UTC+8) based on upload time. Each policy processes up to 50,000 media assets per day. Excess assets carry over to the next day.
-
If a media asset matches multiple policies, only the highest-priority policy runs.
Create a media asset policy
-
Log on to the ApsaraVideo VOD console.
-
In the left-side navigation pane, choose Configuration Management > Media Management > Policy Management.
-
On the Policy Management tab, click Create Policy and configure the parameters.
-
Storage class change
Note-
If the tiered storage of a media asset does not meet the minimum storage duration requirement, the storage class change policy is not executed. Limitations on minimum storage duration.
Parameter
Description
Upload Time or Storage Duration
-
Upload Time: Changes the storage class for media assets uploaded within the specified time range.
-
Storage Duration: Changes the storage class for media assets stored longer than the specified duration.
Category
The media asset category to which the policy applies. Media asset categories.
NotePolicies can be applied only to first-level categories. Deleting a first-level category does not delete the media assets in its subcategories.
Storage Class
The current storage class of the media assets.
Bucket
Fixed. Only the ApsaraVideo VOD bucket is supported.
Storage Scope
-
All Media Resources: The source file and its transcoded files.
-
Source File Only: The uploaded source file only.
Change To
The target storage class for the media asset.
Effective Scope
-
All Media Resources: The source file and its transcoded files.
-
Source File Only: The uploaded source file only.
Start Date
The time when the policy starts to take effect.
Priority
Higher values indicate higher priority. For policies with equal priority, the earliest-created policy takes precedence.
Media asset deletion
Note-
You can delete only media assets of the Standard storage class.
-
The deletion policy does not apply to media assets that have been stored for less than seven days.
Parameter
Description
Upload Time or Storage Duration
-
Upload Time: Deletes media assets uploaded within the specified time range.
-
Storage Duration: Deletes media assets stored longer than the specified duration.
Category
The media asset categories to which the deletion policy applies. Select up to three categories. Media asset categories.
NotePolicies can be applied only to first-level categories. Deleting a first-level category does not delete the media assets in its subcategories.
Storage Class
The value is fixed. Only media assets of the Standard storage class are supported.
Bucket
Fixed. Only the ApsaraVideo VOD bucket is supported.
Deletion Configuration
-
All Media Resources: The source file and its transcoded files.
-
Transcoded files only: The transcoded output files only.
-
Source File Only: The uploaded source file only.
Start Date
The time when the deletion policy starts to take effect.
Priority
Higher values indicate higher priority. For policies with equal priority, the earliest-created policy takes precedence.
-
Manage media asset policies
After creating a policy, you can view, modify, enable, or delete it.
-
On the Policy Management page, find the target policy and click View, Edit, Enable, or Delete in the Actions column.