DeleteDomainVisitControl【删除防盗链信息】¶
删除防盗链信息:可使用域名ID,防盗链信息和域名类型来删除防盗链信息。 如果不指定任何删除条件,则会返回错误信息。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
domainId | String | 域名 ID | Yes |
type | String | 域名类型,有效值anti_link anti_link:防盗链
|
Yes |
data | 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 | 消息 |
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:
{
"action": "DeleteDomainVisitControl",
"domainId": "211595",
"type": "anti_link",
"data": [
[
"/downloads",
"a.com"
]
]
}
Example Response:
{
"message": "Success",
"code": 200,
"data": {
"domain": null,
"xCncRequestId": "b7a96ff4-a92f-4502-9fad-b0949dcb4907",
"domainSummarys": null,
"ret": 202,
"cname": null,
"location": null,
"msg": "success"
}
}