更新网关黑白名单。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
mse:UpdateBlackWhiteList |
update |
*Gateway
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Id |
integer |
是 |
黑名 ID。 |
1 |
| ResourceType |
string |
否 |
绑定资源作用范围。 |
GATEWAY |
| Type |
string |
否 |
黑白名单资源类型。 |
IP |
| Content |
string |
否 |
黑名单内容。 |
127.0.2.11 |
| Status |
string |
否 |
是否开启状态。 枚举值:
|
on |
| GatewayUniqueId |
string |
是 |
网关唯一标识 ID。 |
gw-c70622ff52fe49beb29bea9a6f52**** |
| IsWhite |
boolean |
否 |
是否白名单(默认为否)。 |
true |
| ResourceIdJsonList |
string |
否 |
资源 ID 列表 JSON。 |
[123] |
| Note |
string |
否 |
备注。 |
this is a note |
| Name |
string |
否 |
名称。 |
name |
| AcceptLanguage |
string |
否 |
返回信息的语言类型:
|
zh |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
数据结构。 |
||
| RequestId |
string |
请求 ID。 |
AD5DEDA0-C82A-50D9-AF54-BD3576CCFB4C |
| HttpStatusCode |
integer |
HTTP 状态码。 |
200 |
| Message |
string |
请求消息 |
You are not authorized to perform this operation. |
| Code |
integer |
返回值。 |
200 |
| Success |
boolean |
请求结果,取值如下:
|
true |
| Data |
integer |
记录 ID。 |
13 |
示例
正常返回示例
JSON格式
{
"RequestId": "AD5DEDA0-C82A-50D9-AF54-BD3576CCFB4C",
"HttpStatusCode": 200,
"Message": "You are not authorized to perform this operation.",
"Code": 200,
"Success": true,
"Data": 13
}
错误码
|
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 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。