CDN
Manage Domain Groups
API Endpoint
Request URL: domain/group/manage (POST)
API request domain:
cdn.api.edgenext.com
API version:v2
Description
Manages domain groups, including adding, deleting, and updating groups.
Notes:
- Group names must comply with the naming rules.
- Deleting a group also removes all domain associations within that group.
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 (POST)
Parameters can be passed in formats such as form-data, x-www-form-urlencoded, and JSON.
| Parameter | Data Type | Required | Description |
|---|---|---|---|
| type | string | Yes | Operation type: add: add a group; delete: delete a group; update: update a group. |
| group_name | string | Yes | Group name. It must be 1–50 characters long and can contain letters, digits, underscores, hyphens, and Chinese characters. |
| des | string | No | Group description, up to 200 characters. |
| target_name | string | No | Target group name. Required only for the update operation. It must be 1–50 characters long and can contain letters, digits, underscores, hyphens, and Chinese characters. |
Sample Request
// URL-encode the request.
curl -X POST 'https://cdn.api.edgenext.com/v2/domain/group/manage?token=xxxx' \
--header 'content-type: application/json' \
-d '{
"type": "add",
"group_name": "test",
"des": "test"
}'
Sample Response
JSON format
Group Added Successfully
{
"code": 0,
"data": {
"status": "success",
"message": "domain group created successfully"
}
}
Response Headers
HTTP/1.0 200 OK
Api-Id: 112006099
Content-Type: application/json; charset=utf-8
X-Ratelimit-Grad: minute
X-Ratelimit-Limit: 300
X-Ratelimit-Remaining: 300
X-Retry-After: 53
Need help? Contact our support team at support@edgenext.com.
Back to documentation home