Get Filedownload Details
This API is used to get file download service details.
1. Request Definition
- API URL
https://cdn-api.swiftfederation.com/v1.0/filedownloads/{serviceId}
- Request Method
GET
- Request Header
Refer to HTTP Request Headers
- Request Body
No request Body for this API.
2. Response Definition
- Response Header
Refer to HTTP Response Headers
- Response Body
Field | Type | Description |
---|---|---|
id | int | Service ID number. |
name | string | Domain name. |
customerId | int | Customer ID of this domain. |
originUrl | string | IP or domain name of origin server. |
deliveryDomain | string | CName domain that the domain name has to point to. |
originAccountId | int | Origin server account ID for file download service. |
webDavUrl | string | Webdav url of origin server. |
deliveryEndpoint | string | Delivery endpoint uri. |
diskUsage | int | Number of bytes of disk storage being used by filedownload service. |
streamingService | boolean | To indicate if need to combine multiple requests as one request to origin server. true: Enabled, false: Disabled. Default is false. |
redirectHttpToHttps | boolean | Whether redirect all plain HTTP requests to HTTPS. true: Enabled, false: Disabled. Default is false. |
active | boolean | To indicate if service is enabled or disabled. true: Enabled, false: Disabled. Default is true. |
- Response Body Example
{
"id": 201,
"name": "www.website2.com",
"customerId": 11,
"originUrl": "origin.website2.com",
"deliveryDomain": "edge.swiftserve.com",
"originAccountId": 123,
"webDavUrl": "http://origin.website2.com/webdav/",
"deliveryEndpoint": "http://www.website2.com/",
"diskUsage": 121212,
"streamingService": true,
"redirectHttpToHttps":true,
"active": true
}