List Domains
This API is used to list all website acceleration domains under this customer.
1. Request Definition
- API URL
https://cdn-api.swiftfederation.com/v1.0/customers/{customerId}/domains
- 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. |
originUrl | string | IP or domain name of origin server. |
originProtocol | string | Http/Https protocol that edge server will use to fetch contents from origin server. Value should be http, https or null. It will use client protocol if pass null or do not pass this field. |
deliveryDomain | string | CName domain that the domain name has to point to. |
streamingService | boolean | To indicate if need to combine multiple requests as one request to origin server. true: Enabled, false: Disabled. Default is false. |
http2 | boolean | true: Enabled, false: Disabled. |
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": 101,
"name": "www.website1.com",
"originUrl": "1.2.3.4",
"originProtocol": "http",
"deliveryDomain": "edge.swiftserve.com",
"streamingService": true,
"http2":true,
"redirectHttpToHttps":true,
"active": true
},
{
"id": 102,
"name": "www.website2.com",
"originUrl": "1.2.3.5",
"originProtocol": "https",
"deliveryDomain": "edge.swiftserve.com",
"streamingService": false,
"http2":true,
"redirectHttpToHttps":true,
"active": false
}
]