Storage Locations
Last updated
Last updated
Retrieve details for a single storage location.
User ID
GET /api/admin/storage_location/{id} HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Accept: */*
{
"links": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"id": 1,
"type": "station_media",
"adapter": "local",
"path": "/var/azuracast/stations/azuratest_radio/media",
"s3CredentialKey": "your-key-here",
"s3CredentialSecret": "your-secret-here",
"s3Region": "your-region",
"s3Version": "latest",
"s3Bucket": "your-bucket-name",
"s3Endpoint": "https://your-region.digitaloceanspaces.com",
"dropboxAppKey": "",
"dropboxAppSecret": "",
"dropboxAuthToken": "",
"sftpHost": "127.0.0.1",
"sftpUsername": "root",
"sftpPassword": "abc123",
"sftpPort": 20,
"sftpPrivateKey": "text",
"sftpPrivateKeyPassPhrase": "text",
"storageQuota": "50 GB",
"storageQuotaBytes": "120000",
"storageUsed": "1 GB",
"storageUsedBytes": "60000",
"storageAvailable": "1 GB",
"storageAvailableBytes": "120000",
"storageUsedPercent": "75",
"isFull": "true",
"uri": "/var/azuracast/www",
"stations": [
"AzuraTest Radio"
]
}
Delete a single storage location.
Storage Location ID
DELETE /api/admin/storage_location/{id} HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Accept: */*
{
"success": true,
"message": "Changes saved successfully.",
"formatted_message": "<b>Changes saved successfully.</b>"
}
List all current storage locations in the system.
GET /api/admin/storage_locations HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Accept: */*
[
{
"links": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"id": 1,
"type": "station_media",
"adapter": "local",
"path": "/var/azuracast/stations/azuratest_radio/media",
"s3CredentialKey": "your-key-here",
"s3CredentialSecret": "your-secret-here",
"s3Region": "your-region",
"s3Version": "latest",
"s3Bucket": "your-bucket-name",
"s3Endpoint": "https://your-region.digitaloceanspaces.com",
"dropboxAppKey": "",
"dropboxAppSecret": "",
"dropboxAuthToken": "",
"sftpHost": "127.0.0.1",
"sftpUsername": "root",
"sftpPassword": "abc123",
"sftpPort": 20,
"sftpPrivateKey": "text",
"sftpPrivateKeyPassPhrase": "text",
"storageQuota": "50 GB",
"storageQuotaBytes": "120000",
"storageUsed": "1 GB",
"storageUsedBytes": "60000",
"storageAvailable": "1 GB",
"storageAvailableBytes": "120000",
"storageUsedPercent": "75",
"isFull": "true",
"uri": "/var/azuracast/www",
"stations": [
"AzuraTest Radio"
]
}
]
Create a new storage location.
POST /api/admin/storage_locations HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 818
{
"links": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"id": 1,
"type": "station_media",
"adapter": "local",
"path": "/var/azuracast/stations/azuratest_radio/media",
"s3CredentialKey": "your-key-here",
"s3CredentialSecret": "your-secret-here",
"s3Region": "your-region",
"s3Version": "latest",
"s3Bucket": "your-bucket-name",
"s3Endpoint": "https://your-region.digitaloceanspaces.com",
"dropboxAppKey": "",
"dropboxAppSecret": "",
"dropboxAuthToken": "",
"sftpHost": "127.0.0.1",
"sftpUsername": "root",
"sftpPassword": "abc123",
"sftpPort": 20,
"sftpPrivateKey": "text",
"sftpPrivateKeyPassPhrase": "text",
"storageQuota": "50 GB",
"storageQuotaBytes": "120000",
"storageUsed": "1 GB",
"storageUsedBytes": "60000",
"storageAvailable": "1 GB",
"storageAvailableBytes": "120000",
"storageUsedPercent": "75",
"isFull": "true",
"uri": "/var/azuracast/www",
"stations": [
"AzuraTest Radio"
]
}
{
"links": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"id": 1,
"type": "station_media",
"adapter": "local",
"path": "/var/azuracast/stations/azuratest_radio/media",
"s3CredentialKey": "your-key-here",
"s3CredentialSecret": "your-secret-here",
"s3Region": "your-region",
"s3Version": "latest",
"s3Bucket": "your-bucket-name",
"s3Endpoint": "https://your-region.digitaloceanspaces.com",
"dropboxAppKey": "",
"dropboxAppSecret": "",
"dropboxAuthToken": "",
"sftpHost": "127.0.0.1",
"sftpUsername": "root",
"sftpPassword": "abc123",
"sftpPort": 20,
"sftpPrivateKey": "text",
"sftpPrivateKeyPassPhrase": "text",
"storageQuota": "50 GB",
"storageQuotaBytes": "120000",
"storageUsed": "1 GB",
"storageUsedBytes": "60000",
"storageAvailable": "1 GB",
"storageAvailableBytes": "120000",
"storageUsedPercent": "75",
"isFull": "true",
"uri": "/var/azuracast/www",
"stations": [
"AzuraTest Radio"
]
}
Update details of a single storage location.
Storage Location ID
PUT /api/admin/storage_location/{id} HTTP/1.1
Host: listen.dovafm.xyz
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 818
{
"links": {
"ANY_ADDITIONAL_PROPERTY": "text"
},
"id": 1,
"type": "station_media",
"adapter": "local",
"path": "/var/azuracast/stations/azuratest_radio/media",
"s3CredentialKey": "your-key-here",
"s3CredentialSecret": "your-secret-here",
"s3Region": "your-region",
"s3Version": "latest",
"s3Bucket": "your-bucket-name",
"s3Endpoint": "https://your-region.digitaloceanspaces.com",
"dropboxAppKey": "",
"dropboxAppSecret": "",
"dropboxAuthToken": "",
"sftpHost": "127.0.0.1",
"sftpUsername": "root",
"sftpPassword": "abc123",
"sftpPort": 20,
"sftpPrivateKey": "text",
"sftpPrivateKeyPassPhrase": "text",
"storageQuota": "50 GB",
"storageQuotaBytes": "120000",
"storageUsed": "1 GB",
"storageUsedBytes": "60000",
"storageAvailable": "1 GB",
"storageAvailableBytes": "120000",
"storageUsedPercent": "75",
"isFull": "true",
"uri": "/var/azuracast/www",
"stations": [
"AzuraTest Radio"
]
}
{
"success": true,
"message": "Changes saved successfully.",
"formatted_message": "<b>Changes saved successfully.</b>"
}