/
CCProtectionRule.go
60 lines (44 loc) · 2.04 KB
/
CCProtectionRule.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Copyright 2018 JDCLOUD.COM
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// NOTE: This class is auto generated by the jdcloud code generator program.
package models
type CCProtectionRule struct {
/* CC 防护规则 ID (Optional) */
Id string `json:"id"`
/* CC 防护规则对应的网站规则 ID (Optional) */
WebRuleId string `json:"webRuleId"`
/* CC 防护规则对应的实例 ID (Optional) */
InstanceId string `json:"instanceId"`
/* CC 防护规则名称, 30 字符以内 (Optional) */
Name string `json:"name"`
/* CC 防护规则状态: 0: 关闭, 1: 开启 (Optional) */
Enable int `json:"enable"`
/* uri, 以 / 开头, 200 字符以内 (Optional) */
Uri string `json:"uri"`
/* 匹配 uri 类型, 0: 精确匹配, 1: 前缀匹配 (Optional) */
MatchType int `json:"matchType"`
/* 检测周期, 单位为秒, 取值范围[5, 10800] (Optional) */
DetectPeriod int64 `json:"detectPeriod"`
/* ip 访问次数, 取值范围[2, 2000] (Optional) */
SingleIpLimit int64 `json:"singleIpLimit"`
/* 阻断类型, 1: 封禁并返回自定义页面, 2: 人机交互 (Optional) */
BlockType int `json:"blockType"`
/* 阻断持续时间, 单位为秒, 取值范围[10, 86400] (Optional) */
BlockTime int64 `json:"blockTime"`
/* 关联的自定义页面id, 阻断类型为封禁时有效, 为空时封禁并返回默认页面 (Optional) */
PageId string `json:"pageId"`
/* 关联的自定义页面名称 (Optional) */
PageName string `json:"pageName"`
}