Copying Domain Configurations to New Domains
Function
This API is used to copy the configuration of an existing domain name to a new domain name.
-
You have enabled CDN.
-
If the service area of a domain name includes the Chinese mainland, the domain name must have been licensed by the Ministry of Industry and Information Technology (MIIT).
-
A single tenant can call this API 20 times per minute.
Calling Method
For details, see Calling APIs.
URI
POST /v1.0/cdn/configuration/domains/duplicate
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Definition User token, which can be obtained by calling the IAM API (value of X-Subject-Token in the response header). Constraints N/A Range N/A Default Value N/A |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
reference_domain_name |
Yes |
String |
Definition Existing domain name whose configuration is copied to the new domain name. Constraints The domain name must have been added to CDN. Range N/A Default Value N/A |
|
domain_name |
Yes |
String |
Definition Domain name to be added to the CDN console for acceleration.
NOTE:
Adding a wildcard domain name automatically enables CDN acceleration for all associated secondary domain names.
Constraints An acceleration domain name must be unique. Range
Default Value N/A |
Response Parameters
Status code: 204
Successful response.
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
ErrMsg object |
Error code and error message. |
Example Requests
POST https://cdn.myhuaweicloud.com/v1.0/cdn/configuration/domains/duplicate
{
"reference_domain_name" : "www.example1.com",
"domain_name" : "www.example2.com"
}
Example Responses
None
Status Codes
|
Status Code |
Description |
|---|---|
|
204 |
Successful response. |
|
400 |
Error response. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot