Home / Docs Center / Device API Reference / Recording FileCloud UploadConfiguration
Recording FileCloud UploadConfiguration
Project: Device API Documentation (New) | page_id: 356
Brief Description:
- A specific version that supports recording upload is required. China Mobile Cloud and Alibaba Cloud Object Storage are supported. For other vendors, please contact us for custom development
Request URL:
- /xsw/set_st
Request Method:
- POST or GET
Parameters:
| Parameter | Required | Type | Description |
|---|---|---|---|
| st_enable | Yes | number | Switch, 0 disabled, 1 China Mobile Cloud, 2 Alibaba Cloud |
| st_name | Yes | string | Outermost folder of the object storage |
| st_obs | Yes | string | Length less than 512, endpoint ak sk bucketName can be updated independently, i.e. the encode can contain partial fields, see the notes for details |
Response Example
{
"code": 0,
"msg": "",
}
Request Example
http://serialnumber.cloud.xstrive.com:9502/set_st?st_name=record-15d&st_enable=1&st_obs=xxxxx
http://192.168.0.15/set_st?st_name=record-15d&st_enable=0&st_obs=xxxxx
Notes
- st_obs parameter description:
endpoint: access domain name
ak: access key, AccessKey ID: used to identify the user
sk: secret access key, used to verify the user's key. The AccessKey Secret must be kept confidential
bucketName: bucket name
Examples (partial fields can be updated):
base64.encode(endpoint=obs.xxx.cmecloud.cn&ak=xxxx&sk=xxxx&bucketName=media-record)
base64.encode(ak=xxxx&sk=xxxx)
base64.encode(bucketName=media-record) - Storage path
bucketName/st_name/serial number/channel number (starting from 0) - date (20060102)/current milliseconds-duration.ts(.flv)
Example:
media-record/record-15d/xuliehao/0-20060102/1659924502314-30000.ts
Didn't find what you need?Contact us,Talk to our engineers directly.