删除用量封顶接口
更新时间:2026-10-15
接口
本接口用于删除用量封顶。
请求接口
| Method | Path | 说明 |
|---|---|---|
| POST | /v2/geo/limit-consumption?action=delete | 删除用量封顶 |
请求体
| 参数 | 类型 | 是否必须 | 说明 |
|---|---|---|---|
| site | String | 是 | 站点名称 |
| object | String | 是 | 如果值为 site ,表示为“站点”,其他的为站点下的域名 |
响应码
| HTTP Status Code | 说明 |
|---|---|
| 200 | 删除成功 |
| 400 | 删除用量封顶请求参数无效 |
| 500 | 服务端错误 |
响应体
| 参数 | 类型 | 说明 |
|---|---|---|
| success | Bool | 删除用量封顶成功 |
请求示例1:删除站点的用量封顶规则
Plain Text
1POST /v2/geo/limit-consumption?action=delete HTTP/1.1
2Host: geo.baidubce.com
3Authorization: xxx
4Content-Type: application/json;charset=utf-8
5Accept-Encoding: gzip
6{
7 "site": "test-eo.com",
8 "object": "site"
9}
请求示例2:删除域名的用量封顶规则
Plain Text
1POST /v2/geo/limit-consumption?action=delete HTTP/1.1
2Host: geo.baidubce.com
3Authorization: xxx
4Content-Type: application/json;charset=utf-8
5Accept-Encoding: gzip
6{
7 "site": "test-eo.com",
8 "object": "1.test-eo.com"
9}
响应示例
Plain Text
1HTTP/1.1 200 OK
2Server: nginx/1.16.1
3Content-Type: application/json; charset=utf-8
4Transfer-Encoding: chunked
5Connection: keep-alive
6{
7 "success": true
8}
评价此篇文章
