Querying Basic Information About a Domain Name
Function
This API is used to query basic information about a domain name, including the CNAME resolution status and whether the domain supports configuration replication.
-
A single tenant can call this API five times per second.
Calling Method
For details, see Calling APIs.
URI
GET /v1.0/cdn/configuration/domains
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
domain_names |
No |
String |
Definition Domain name.
NOTE:
Constraints You can query only domain names that have been added to CDN. Range N/A Default Value N/A |
|
item |
Yes |
String |
Definition Data type to be queried. Constraints N/A Range
Default Value N/A |
|
enterprise_project_id |
No |
String |
Definition Enterprise project ID. Obtain the enterprise project ID by calling the ListEnterpriseProject API of EPS. Constraints This parameter is valid only when the enterprise project function is enabled. The value all indicates all projects. Range N/A Default Value N/A |
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 |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
cname_status |
Array of CnameStatus objects |
CNAME resolution status of the domain name. |
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
Integer |
CNAME resolution status of the domain name. |
|
domain_name |
String |
Domain name. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
ErrMsg object |
Error code and error message. |
Example Requests
GET https://cdn.myhuaweicloud.com/v1.0/cdn/configuration/domains?domain_names=www.example.com&item=cname_status
Example Responses
Status code: 200
Successful response.
{
"CnameStatus" : [ {
"status" : 0,
"domain_name" : "www.example.com"
} ]
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
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