删除黑白名单
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
mse:DeleteBlackWhiteList |
delete |
*Gateway
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| GatewayId |
integer |
否 |
网关 id |
430 |
| Id |
integer |
否 |
黑白名单 id |
120 |
| GatewayUniqueId |
string |
否 |
网关唯一 id |
gw-9cdcf8e4f58144059e73ff4c5ef9**** |
| AcceptLanguage |
string |
否 |
返回结果显示的语言。取值:zh(默认值):中文,en:英文 |
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
DC34E4A3-5F1C-4E40-86EA-02EDF967**** |
| HttpStatusCode |
integer |
HTTP 状态码。 |
200 |
| Message |
string |
响应信息。 |
OK |
| Code |
integer |
code 仅仅用来和 success 同步 |
200 |
| Success |
boolean |
请求结果,取值如下:
|
true |
| Data |
object |
数据结构。 |
|
| Id |
integer |
黑白名单 id |
120 |
| ResourceId |
integer |
已废弃 |
1 |
| ResourceType |
string |
生效粒度:
|
GATEWAY |
| Content |
string |
配置内容 |
1.1.1.1 |
| Type |
string |
已废弃,固定值 |
IP |
| IsWhite |
boolean |
是否为白名单。 |
true |
| Status |
boolean |
开启状态:
|
1 |
| GatewayId |
integer |
网关 id |
430 |
| GatewayUniqueId |
string |
网关唯一 id |
gw-9cdcf8e4f58144059e73ff4c5ef9**** |
| GmtCreate |
string |
创建时间。 |
2022-08-10 20:22:34 |
| GmtModified |
string |
更新时间 |
2022-08-10 20:22:34 |
示例
正常返回示例
JSON格式
{
"RequestId": "DC34E4A3-5F1C-4E40-86EA-02EDF967****",
"HttpStatusCode": 200,
"Message": "OK",
"Code": 200,
"Success": true,
"Data": {
"Id": 120,
"ResourceId": 1,
"ResourceType": "GATEWAY",
"Content": "1.1.1.1",
"Type": "IP",
"IsWhite": true,
"Status": true,
"GatewayId": 430,
"GatewayUniqueId": "gw-9cdcf8e4f58144059e73ff4c5ef9****",
"GmtCreate": "2022-08-10 20:22:34",
"GmtModified": "2022-08-10 20:22:34"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IllegalRequest | Invalid request:%s | 非法请求: %s |
| 400 | InvalidParameter | Parameter error:%s | 请求参数错误:%s |
| 500 | InternalError | Console error. Try again later:%s | 控制台错误.稍后重试:%s |
| 403 | NoPermission | You are not authorized to perform this operation:%s | 没有权限使用此接口:%s |
| 404 | NotFound | Not found:%s | 资源不存在:%s |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。