Modifying the Configurations of a Domain Name
Function Description
This API is used to modify basic configurations of a domain name.
URI
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
certificate_id |
No |
String |
Specifies the certificate ID. This parameter is not required when client_protocol is set to HTTP. |
server |
No |
Array |
Specifies the origin server information, including the client_protocol, server_protocol, address, and port fields.
|
proxy |
No |
Boolean |
Specifies whether a proxy is configured.
|
sip_header_name |
No |
String |
Specifies the type of the source IP header. This parameter is required only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom. |
sip_header_list |
No |
Array |
Specifies the HTTP request header for identifying the real source IP address. This parameter is required only when proxy is set to true.
|
Response
Parameter |
Type |
Description |
---|---|---|
id |
String |
Specifies the domain ID. |
hostname |
String |
Specifies the domain name. |
cname |
String |
Specifies the CNAME value. For example, efec1196267b41c399f2980ea4048517.waf.cloud.com. |
txt_code |
String |
Specifies the TXT record. This parameter is returned only when proxy is set to true. |
sub_domain |
String |
Specifies the subdomain name. This parameter is returned only when proxy is set to true. |
policy_id |
String |
Specifies the policy ID. |
protect_status |
Integer |
Specifies the WAF mode.
|
access_status |
Integer |
Specifies whether a domain name is connected to WAF.
|
protocol |
Integer |
Specifies the protocol type. The options are HTTP, HTTPS, and HTTP,HTTPS. |
certificate_id |
String |
Specifies the certificate ID. This parameter is returned only when protocol is set to HTTPS. |
server |
Array |
Specifies the origin server information, including the client_protocol, server_protocol, address, and port fields. |
proxy |
Boolean |
Specifies whether a proxy is configured.
|
sip_header_name |
String |
Specifies the type of the source IP header. This parameter is returned only when proxy is set to true. The options are as follows: default, cloudflare, akamai, and custom. |
sip_header_list |
Array |
Specifies the HTTP request header for identifying the real source IP address. This parameter is returned only when proxy is set to true.
|
timestamp |
Long |
Specifies the time when a domain name is created. |
Examples
www.a.com is used as an example.
- Request example
{ "certificate_id": "07fb6809a89241fca86ac6f69e34963d", "server": [ {"client_protocol": "HTTPS","server_protocol": "HTTP", "address": "X.X.X.X","port": "8080"}, {"client_protocol": "HTTP", "server_protocol": "HTTP", "address": "X.X.X.X", "port": "80"} ], "proxy": true, "sip_header_name": "default", "sip_header_list": ["X-Forwarded-For"] }
- Response example
{ "id": "388a7789d55b41d1918b3088a8f1e7f3", "hostname": "www.a.com", "cname": "3249d21e5eb34d21be12fdc817fcb67d.wafcloud.com", "txt_code": "3249d21e5eb34d21be12fdc817fcb67d", "sub_domain": "3249d21e5eb34d21be12fdc817fcb67d.www.a.com", "policy_id": "xxxxxxxxxxxxxx", "certificate_id": "xxxxxxxxxxxxxxxxxxx", "protect_status": 0, "access_status": 0, "protocol": "HTTP,HTTPS", "server": [ {"client_protocol": "HTTPS", "server_protocol":"HTTP", "address":"X.X.X.X", "port":443}, {"client_protocol": "HTTP", "server_protocol":"HTTP", "address":"X.X.X.X", "port":80} ], "proxy": true, "sip_header_name": "default", "sip_header_list": ["X-Forwarded-For"], "timestamp": 1499817600 }
Status Code
For details about error status codes, see Status 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