UpdateAntiLink【修改URL防盗链信息】¶
修改URL防盗链信息:可根据域名ID,修改前路径名称,修改前域名,修改后路径名称和修改后域名来修改URL防盗链。 如果不指定任何修改条件,则会返回错误信息。
Request Parameters
Parameter name | Type | Description | Required |
---|---|---|---|
action | String | API 标识符 | Yes |
domainId | String | 域名 ID | Yes |
old_path | String | 修改前路径名称 | Yes |
old_domain | String | 修改前域名 | Yes |
new_path | String | 修改后路径名称 | Yes |
new_domain | String | 修改后域名 | 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",
"old_path": "/uploads",
"old_domain": "a.com",
"action": "UpdateAntiLink",
"new_path": "/downloads",
"new_domain": ""
}
Example Response:
{
"message": "Success",
"code": 200,
"data": {
"domain": null,
"xCncRequestId": "075a0e1b-8263-4ee7-a73d-c1c3b214c452",
"domainSummarys": null,
"ret": 202,
"cname": null,
"location": null,
"msg": "success"
}
}