All Products
Search
Document Center

ApsaraVideo VOD:AddVodStorageForApp

Last Updated:May 08, 2024

Binds a storage bucket to one or more applications in ApsaraVideo VOD.

Operation description

You can call this operation to add a buckets to an ApsaraVideo VOD applications.

Note You can add only one ApsaraVideo VOD bucket for each application. If you specify an AppId that does not exist or the ID of an application for which an VOD bucket is enabled, an error is returned.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The IDs of applications. You can obtain the application ID from the AppId parameter in the response to the CreateAppInfo or ListAppInfo operation.

app-****
StorageLocationstringNo

The address of an Object Storage Service (OSS) bucket. This parameter does not take effect. You can call this operation to add only VOD buckets.

out-****.oss-cn-shanghai.aliyuncs.com
StorageTypestringNo

The storage class. Default value: vod_oss_bucket.

vod_oss_bucket

Response parameters

ParameterTypeDescriptionExample
object

The returned result.

RequestIdstring

The ID of the request.

25818875-5F78-4A*****F6-D7393642CA58
StorageLocationstring

The address of the VOD bucket.

out-****.oss-cn-shanghai.aliyuncs.com

Examples

Sample success responses

JSONformat

{
  "RequestId": "25818875-5F78-4A*****F6-D7393642CA58",
  "StorageLocation": "out-****.oss-cn-shanghai.aliyuncs.com"
}

Error codes

For a list of error codes, visit the Service error codes.