How to pre import files from Cloud Storage - Video CDN

How to pre import files from Cloud Storage - Video CDN

How to pre-import files from Cloud Storage - Video CDN

This guide relates to Cloud Storage.

Preparations

Before setting up file imports from Cloud Storage, make sure you already have a bucket created.

For the sake of this guide, we’ll assume your bucket is not empty and that the files you want to import are placed directly in its root directory.

Bucket creation

If you try to start the import setup without an existing bucket in Cloud Storage, you’ll see a dialog like this:

Screenshot_16.jpg

 

To create a bucket on the fly, click Create new bucket.

Fill in the desired bucket name, choose its type, and click Create new bucket.

Once the bucket is ready, be sure to upload the files you plan to import.

Configuring files import from origin

  1. Open the Resources section.

  2. Pick the resource you want to configure

  3. Then go to the File Import tab and click Add new source:

Resource without import methods configured

This will open a dialog:

8967d116-44e1-4892-9375-4965be3f0692.jpg

 

  1. Switch to the Storage sync tab and select Import from: Cloud Storage.

  2. From the dropdown menu, choose the bucket you want to use.

  3. Click Add new source, and you’ll be taken to the resource’s import settings page:

db100f12-75a7-49ec-8657-cf189f969521.jpg

 

The newly added origin will appear in the list.

At this stage, simply wait for the import to complete. For small to moderately sized files (anything short of tens of gigabytes), the process usually takes no more than 5–10 minutes.

Check the result

Once the origin has been scanned and the files imported, you’ll see them listed in the Files section — ready to be delivered by Video CDN.

3cf8bcaf-2588-41b0-b0eb-59fca52e6434.jpg

 

Files can be accessed directly over HTTP using the following format: https://<domain>/<filename>

In our example, the system domain is vcdn10000000.ahvcdn.com and the file name is SampleVideo_640x360_10mb.mp4. The complete download URL would be:

https://vcdn10000000.ahvcdn.com/SampleVideo_640x360_10mb.mp4

Cloud Storage UI integration

Any Cloud Storage bucket linked to a Video CDN resource via this method will be marked with a corresponding label in the buckets list:

11024ef6-f70d-4e69-a86b-f8d422847b5e.jpg