Skip to content

Storage Groups

Storage group is a collections of Media Packs, enabling you to create large pools of storage for media files accessible within a shared-storage environment.

Retrieve all storage groups

GET /storagegroups Get all storage groups of the system.

Request Example:

bash
curl --location '{{url}}/storagegroups' \
--header 'token;'

Create a storage group

POST /storagegroups Create a storage group.

At least one Media Pack has to exist prior to creating a storage group.

Required parameters to create a new storage group are name and mediapacks. The mediapacks parameter is an array. Its nested field called operation supports the following values: add and remove.

Example cURL

bash
curl --location '{{url}}/storagegroups' \
--header 'token;' \
--header 'Content-Type: application/json' \
--data '{
"name": "sg1",
"mediapacks": [
    {
        "name": "mp1",
        "operation": "add"
    }
]
}'

Retrieve a storage group by Id

GET /storagegroups/storageGroupId Get a storage group's details by its Id.

Example cURL

bash
curl --location '{{url}}/storagegroups/{{id}}' \
--header 'token;'

Update a storage group

PUT /storagegroups/storageGroupId Update a storage group by Id.

Example cURL

bash
curl --location --request PUT '{{url}}/storagegroups/{{id}}' \
--header 'token;' \
--header 'Content-Type: application/json' \
--data '{
    "mediapacks": [
        {
            "name": "mp2",
            "operation": "remove"
        }
    ]
}'

Delete a storage group

DELETE /storagegroups/storageGroupId Delete a storage group by Id.

Example cURL

bash
curl --location --request DELETE '{{url}}/storagegroups/{{id}}' \
--header 'token;'