DomainUpdate【修改域名信息】¶
修改域名信息:可使用域名ID,回源IP和加速区域来修改域名信息。 如果不指定任何修改条件,则会返回错误信息。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
domainId | String | 域名 ID | Yes |
origin_ips | Array | 回源 IP | Yes |
areas | Array | 加速区域 | Yes |
Response Elements
Name | Type | Description |
---|---|---|
message | String | 执行结果信息 |
code | Integer | HTTP Resonpe响应状态码 |
data | Dict | 域名信息修改后返回列表,每项参数可见下面 Data Item |
Data Item
Name | Type | Description |
---|---|---|
domain | String | 域名 |
xCncRequestId | String | CNC 请求 ID |
domainSummarys | String | 域名汇总 |
ret | Integer | 返回值 |
location | String | 位置 |
msg | String | 消息 |
Example
Example Request:
Request Headers:
POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json
JSON Data:
{
"action": "DomainUpdate",
"domainId": "211540",
"origin_ips": [
"192.168.172.171"
],
"areas": [
"hk",
"ov"
]
}
Example Response:
{
"message": "Success",
"code": 200,
"data": {
"domain": null,
"xCncRequestId": "91e828d9-60da-4984-8291-d9074285feff",
"domainSummarys": null,
"ret": 202,
"cname": null,
"location": null,
"msg": "success"
}
}