UpdateDomainVisitControl【修改域名访问控制信息】¶
修改域名访问控制信息:可使用域名ID,域名黑名单和域名类型来修改域名访问控制。 如果不指定任何必要条件,则会返回错误信息。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
domain | Array | 域名 | Yes |
domainId | String | 域名 ID | Yes |
type | String | 域名类型,有效值black_ip,black_domain,anti_link black_ip:IP 黑名单
black_domain:域名黑名单
anti_link:防盗链
|
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 | 消息 |
cname | 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:
{
"domainId": "211595",
"action": "UpdateDomainVisitControl",
"type": "black_domain",
"domain": [
"a.com"
]
}
Example Response:
{
"message": "Success",
"code": 200,
"data": {
"domain": null,
"xCncRequestId": "c389ebf7-572c-451d-b002-76bedc8c1acc",
"domainSummarys": null,
"ret": 202,
"cname": null,
"location": null,
"msg": "success"
}
}