CDN
Enable Domains
API Endpoint
Request URL: domain/enable (GET)
API request domain:
cdn.api.edgenext.com
API version:v2
Description
Enables or re-enables a domain and changes its status to deploying.
You must wait for the configuration to be deployed after performing this operation.
Input Parameters
The following table lists only the API-specific request parameters. You must also include the common request parameters when making an actual API call. For details, see the Common Request Parameters page.
Request Parameters (GET)
Add the parameters to the URL query string, for example: ?key1=value1&key2=value2
| Parameter | Data Type | Required | Description |
|---|---|---|---|
| domains | string | Yes | Multiple domains (excluding live streaming acceleration domains) can be specified for the query, separated by commas (,). You can specify up to 10 domains per request, for example: aa.cdn.com,bb.cdn.com. This parameter also supports domain IDs, with multiple IDs separated by commas, for example: 111,222. |
Sample Request
curl -X GET "https://cdn.api.edgenext.com/v2/domain/enable?token={token}&domains=aa.cdn.com,bb.cdn.com,cc.cdn.com"
Sample Response
JSON format
{
"code": 0,
"data": [
{
"argument": "aa.cdn.com",// The input parameter. If a domain ID is provided, the value is the domain ID.
"id": "31335",
"domain": "aa.cdn.com",
"errno": 0,// 0: normal; -2: error
"status": "deploying"// Status returned when enabling a domain: deploying
},
{
"argument": "gg.cdn.com",
"errno": -2,
"errmsg":"not exists"// Indicates that the specified domain or ID does not exist or has been deleted.
}
]
}
Response Headers
HTTP/1.0 200 OK
Api-Id: 247014081
Content-Type: application/json; charset=utf-8
X-Ratelimit-Grad: minute
X-Ratelimit-Limit: 300
X-Ratelimit-Remaining: 300
X-Retry-After: 60
Need help? Contact our support team at support@edgenext.com.
Back to documentation home