创建新的自定义列表,这些列表通常用于规则匹配引擎中值的引用,以便在各种安全策略中实现复杂的逻辑和控制。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
esa:CreateList |
create |
*全部资源
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| Name |
string |
是 |
自定义列表名称。 命名规则:仅支持字母、数字、下划线( |
example |
| Kind |
string |
否 |
列表种类,用于指定自定义列表的类型。 |
ip |
| Description |
string |
否 |
列表描述,用于提供自定义列表的详细信息。 |
a custom list |
| Items |
array |
否 |
列表内容,提供具体的列表项数据。 |
a custom list |
|
string |
否 |
列表内容,提供具体的列表项数据。 |
10.1.1.1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID。 |
36af3fcc-43d0-441c-86b1-428951dc8225 |
| Id |
integer |
自定义列表的 ID,可通过调用 ListLists 接口获取。 |
40000001 |
示例
正常返回示例
JSON格式
{
"RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
"Id": 40000001
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | 输入参数规范校验失败。 |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 403 | %s.NotSupport | The specified resource type %s is not supported. | 不支持指定的资源类型。如需使用该类型资源,请与我们联系。 |
| 403 | %s.OverQuota | The quantity of %s exceeds the quota. | 该资源的数量超出了配额所规定的范围,如需申请更多的额度,请与我们联系。 |
| 403 | %s.WrongValueMatched | The value of specified parameter %s can not pass the matching check. | 指定的参数对应的值不能通过匹配校验。如果您确定需要使用该参数值,请与我们联系。 |
| 403 | List.Name.AlreadyExist | The specified list name already exists. | 指定的列表名称已存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。