Create a FS container
POST
https://api-v2.acrcloud.com/api/fs-containers
Request Body
```json
{
"data": {
"id": 123456,
"uid": 123,
"region": "eu-west-1",
"name": "container name",
"buckets": [
{
"id": 23,
"name": "ACRCloud Music",
"type": "ACRCloudFile",
"metadata_template": null
}
],
"audio_type": "linein",
"num": 1,
"size": 14,
"policy": {
"type": "traverse",
"interval": 0,
"rec_length": 10
},
"engine": 1,
"callback_url": null,
"created_at": "2023-04-28T07:53:40.000000Z",
"updated_at": "2023-04-28T07:53:40.000000Z"
}
}
```
import requests
url = "https://api-v2.acrcloud.com/api/fs-containers"
payload={
"name":"test",
"region":"eu-west-1",
"buckets":[8881,8882,"ACRCloud Music"],
"audio_type":"linein",
"engine":1,
"policy":{"type":"traverse", "interval":0, "rec_length":10}
}
headers = {
'Accept': 'application/json',
'Authorization': 'Bearer token',
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers, json=payload)
print(response.text)
Get all the containers
GET
https://api-v2.acrcloud.com/api/fs-containers
Show one container
GET
https://api-v2.acrcloud.com/api/fs-containers/:container_id
{
"data": {
"id": 123456,
"uid": 123,
"region": "eu-west-1",
"name": "container name",
"buckets": [
{
"id": 23,
"name": "ACRCloud Music",
"type": "ACRCloudFile",
"metadata_template": null
}
],
"audio_type": "linein",
"num": 1,
"size": 14,
"policy": {
"type": "traverse",
"interval": 0,
"rec_length": 10
},
"engine": 1,
"callback_url": null,
"created_at": "2023-04-28T07:53:40.000000Z",
"updated_at": "2023-04-28T07:53:40.000000Z"
}
}
Delete one container
DELETE
https://api-v2.acrcloud.com/api/fs-containers/:container_id
Path Parameters