Get Domain Details
This API is used to get website acceleration domain details.
1. Request Definition
- API URL
https://cdn-api.swiftfederation.com/v1.0/domains/{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. |
originProtocol | string | Http/Https protocol that edge server will use to fetch contents from origin server. The Value is http or https or same_as_client. |
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": 201,
"name": "www.website2.com",
"customerId": 11,
"originUrl": "origin.website2.com",
"originProtocol": "http",
"deliveryDomain": "edge.swiftserve.com",
"streamingService": true,
"http2":true,
"redirectHttpToHttps":true,
"active": true
}