Last update:2022-03-01 18:22:22
CDNetworks Object Storage provides two versions of API: V1 and V2. This chapter introduces the difference and usage between these two versions.
Function | API-V1 | API-V2 |
---|---|---|
List Bucket | Support(only list the bucket created by the account itself) | Support |
List Resource | Support | Support |
Normal Upload | Support | Support |
Multipart Upload | Support | Support |
Delete Files | Support | Support |
Copy Resource | Support | Support |
Move Resource | Support | Not Support (need to copy first then delete) |
Audio/video operations | Support | Not Support |
Download Files | Support (public download, authentication is not required) | Support (authentication is required by default, allow to configure not required) |
IAM (See detailed explanation as below) | Not Support | Support |
What does IAM support mean
IAM allows parent account(main account) to grant operations of bucket to his sub-accounts. For example, main account allow sub account to upload files of one specific bucket and forbid sub account to download files of one specific bucket by using IAM.
API version choose suggestion
Customer could choose related api version to use based on your functional needs. You are allowed to call API-V1 to move resource and do audio/video operations, and call API-V2 to list bucket and delete files, but we suggest you use one version api just in case of mixing them.