CDN
Disable Domains
API Endpoint
Request URL: domain/disable (GET)
API request domain:
cdn.api.edgenext.com
API version:v2
Description
Disables a domain and changes its status to suspend.
You must wait for the configuration to be deployed after performing this operation.
Input Parameters
The following table lists the API request parameters.
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/disable?token={token}&domains=aa.cdn.com,bb.cdn.com"
Sample Response
JSON format
{
"code": 0,
"data": [
{
"keywrod": "aa.cdn.com",
"id": "231335",
"domain": "test.dl.cdn.com",
"errno": 0,
"status": "suspend"// Status returned when disabling a domain: suspend
},
{
"argument": "gg.cdn.com",
"errno": -1,
"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: 247013405
Content-Type: application/json; charset=utf-8
X-Ratelimit-Grad: minute
X-Ratelimit-Limit: 300
X-Ratelimit-Remaining: 300
X-Retry-After: 34
Need help? Contact our support team at support@edgenext.com.
Back to documentation home