tccli 3.0.1269.1__py2.py3-none-any.whl → 3.0.1270.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +0 -3
  3. tccli/services/aiart/v20221229/api.json +13 -13
  4. tccli/services/aiart/v20221229/examples.json +2 -2
  5. tccli/services/antiddos/v20200309/api.json +201 -132
  6. tccli/services/antiddos/v20200309/examples.json +12 -12
  7. tccli/services/apm/v20210622/api.json +13 -3
  8. tccli/services/cam/v20190116/api.json +8 -8
  9. tccli/services/cbs/cbs_client.py +220 -8
  10. tccli/services/cbs/v20170312/api.json +409 -2
  11. tccli/services/cbs/v20170312/examples.json +32 -0
  12. tccli/services/cdwdoris/v20211228/api.json +10 -1
  13. tccli/services/cls/v20201016/api.json +11 -0
  14. tccli/services/dlc/v20210125/api.json +24 -24
  15. tccli/services/dlc/v20210125/examples.json +2 -2
  16. tccli/services/dts/v20211206/api.json +1 -1
  17. tccli/services/gme/v20180711/api.json +29 -26
  18. tccli/services/gme/v20180711/examples.json +3 -3
  19. tccli/services/ocr/v20181119/api.json +73 -1
  20. tccli/services/ses/v20201002/api.json +15 -5
  21. tccli/services/svp/v20240125/api.json +6 -6
  22. tccli/services/teo/v20220901/api.json +38 -0
  23. tccli/services/trp/v20210515/api.json +549 -513
  24. tccli/services/trp/v20210515/examples.json +5 -5
  25. tccli/services/vpc/v20170312/api.json +124 -0
  26. tccli/services/vpc/v20170312/examples.json +16 -0
  27. tccli/services/vpc/vpc_client.py +106 -0
  28. {tccli-3.0.1269.1.dist-info → tccli-3.0.1270.1.dist-info}/METADATA +2 -2
  29. {tccli-3.0.1269.1.dist-info → tccli-3.0.1270.1.dist-info}/RECORD +32 -36
  30. tccli/services/aa/__init__.py +0 -4
  31. tccli/services/aa/aa_client.py +0 -207
  32. tccli/services/aa/v20200224/api.json +0 -397
  33. tccli/services/aa/v20200224/examples.json +0 -13
  34. {tccli-3.0.1269.1.dist-info → tccli-3.0.1270.1.dist-info}/WHEEL +0 -0
  35. {tccli-3.0.1269.1.dist-info → tccli-3.0.1270.1.dist-info}/entry_points.txt +0 -0
  36. {tccli-3.0.1269.1.dist-info → tccli-3.0.1270.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,207 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- import os
3
- import sys
4
- import six
5
- import json
6
- import tccli.options_define as OptionsDefine
7
- import tccli.format_output as FormatOutput
8
- from tccli import __version__
9
- from tccli.utils import Utils
10
- from tccli.exceptions import ConfigurationError, ClientError, ParamError
11
- from tencentcloud.common import credential
12
- from tencentcloud.common.profile.http_profile import HttpProfile
13
- from tencentcloud.common.profile.client_profile import ClientProfile
14
- from tencentcloud.aa.v20200224 import aa_client as aa_client_v20200224
15
- from tencentcloud.aa.v20200224 import models as models_v20200224
16
-
17
- from jmespath import search
18
- import time
19
-
20
- def doQueryActivityAntiRush(args, parsed_globals):
21
- g_param = parse_global_arg(parsed_globals)
22
-
23
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
24
- cred = credential.CVMRoleCredential()
25
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
26
- cred = credential.STSAssumeRoleCredential(
27
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
28
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
29
- )
30
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
31
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
32
- else:
33
- cred = credential.Credential(
34
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
35
- )
36
- http_profile = HttpProfile(
37
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
38
- reqMethod="POST",
39
- endpoint=g_param[OptionsDefine.Endpoint],
40
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
41
- )
42
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
43
- if g_param[OptionsDefine.Language]:
44
- profile.language = g_param[OptionsDefine.Language]
45
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
46
- client = mod.AaClient(cred, g_param[OptionsDefine.Region], profile)
47
- client._sdkVersion += ("_CLI_" + __version__)
48
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
49
- model = models.QueryActivityAntiRushRequest()
50
- model.from_json_string(json.dumps(args))
51
- start_time = time.time()
52
- while True:
53
- rsp = client.QueryActivityAntiRush(model)
54
- result = rsp.to_json_string()
55
- try:
56
- json_obj = json.loads(result)
57
- except TypeError as e:
58
- json_obj = json.loads(result.decode('utf-8')) # python3.3
59
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
60
- break
61
- cur_time = time.time()
62
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
63
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
64
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
65
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
66
- else:
67
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
68
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
69
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
70
-
71
-
72
- CLIENT_MAP = {
73
- "v20200224": aa_client_v20200224,
74
-
75
- }
76
-
77
- MODELS_MAP = {
78
- "v20200224": models_v20200224,
79
-
80
- }
81
-
82
- ACTION_MAP = {
83
- "QueryActivityAntiRush": doQueryActivityAntiRush,
84
-
85
- }
86
-
87
- AVAILABLE_VERSION_LIST = [
88
- "v20200224",
89
-
90
- ]
91
-
92
-
93
- def action_caller():
94
- return ACTION_MAP
95
-
96
-
97
- def parse_global_arg(parsed_globals):
98
- g_param = parsed_globals
99
- cvm_role_flag = True
100
- for param in parsed_globals.keys():
101
- if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.RoleArn,
102
- OptionsDefine.RoleSessionName]:
103
- if parsed_globals[param] is not None:
104
- cvm_role_flag = False
105
- break
106
- is_exist_profile = True
107
- if not parsed_globals["profile"]:
108
- is_exist_profile = False
109
- g_param["profile"] = os.environ.get("TCCLI_PROFILE", "default")
110
-
111
- configure_path = os.path.join(os.path.expanduser("~"), ".tccli")
112
- is_conf_exist, conf_path = Utils.file_existed(configure_path, g_param["profile"] + ".configure")
113
- is_cred_exist, cred_path = Utils.file_existed(configure_path, g_param["profile"] + ".credential")
114
-
115
- conf = {}
116
- cred = {}
117
-
118
- if is_conf_exist:
119
- conf = Utils.load_json_msg(conf_path)
120
- if is_cred_exist:
121
- cred = Utils.load_json_msg(cred_path)
122
-
123
- if not (isinstance(conf, dict) and isinstance(cred, dict)):
124
- raise ConfigurationError(
125
- "file: %s or %s is not json format"
126
- % (g_param["profile"] + ".configure", g_param["profile"] + ".credential"))
127
-
128
- if OptionsDefine.Token not in cred:
129
- cred[OptionsDefine.Token] = None
130
-
131
- if not is_exist_profile:
132
- if os.environ.get(OptionsDefine.ENV_SECRET_ID) and os.environ.get(OptionsDefine.ENV_SECRET_KEY):
133
- cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
134
- cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
135
- cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
136
- cvm_role_flag = False
137
-
138
- if os.environ.get(OptionsDefine.ENV_REGION):
139
- conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
140
-
141
- if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
142
- cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
143
- cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
144
- cvm_role_flag = False
145
-
146
- if cvm_role_flag:
147
- if "type" in cred and cred["type"] == "cvm-role":
148
- g_param[OptionsDefine.UseCVMRole.replace('-', '_')] = True
149
-
150
- for param in g_param.keys():
151
- if g_param[param] is None:
152
- if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.Token]:
153
- if param in cred:
154
- g_param[param] = cred[param]
155
- elif not (g_param[OptionsDefine.UseCVMRole.replace('-', '_')]
156
- or os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN)):
157
- raise ConfigurationError("%s is invalid" % param)
158
- elif param in [OptionsDefine.Region, OptionsDefine.Output, OptionsDefine.Language]:
159
- if param in conf[OptionsDefine.SysParam]:
160
- g_param[param] = conf[OptionsDefine.SysParam][param]
161
- elif param != OptionsDefine.Language:
162
- raise ConfigurationError("%s is invalid" % param)
163
- elif param.replace('_', '-') in [OptionsDefine.RoleArn, OptionsDefine.RoleSessionName]:
164
- if param.replace('_', '-') in cred:
165
- g_param[param] = cred[param.replace('_', '-')]
166
-
167
- try:
168
- if g_param[OptionsDefine.ServiceVersion]:
169
- g_param[OptionsDefine.Version] = "v" + g_param[OptionsDefine.ServiceVersion].replace('-', '')
170
- else:
171
- version = conf["aa"][OptionsDefine.Version]
172
- g_param[OptionsDefine.Version] = "v" + version.replace('-', '')
173
-
174
- if g_param[OptionsDefine.Endpoint] is None:
175
- g_param[OptionsDefine.Endpoint] = conf["aa"][OptionsDefine.Endpoint]
176
- g_param["sts_cred_endpoint"] = conf.get("sts", {}).get("endpoint")
177
- except Exception as err:
178
- raise ConfigurationError("config file:%s error, %s" % (conf_path, str(err)))
179
-
180
- if g_param[OptionsDefine.Version] not in AVAILABLE_VERSION_LIST:
181
- raise Exception("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST))
182
-
183
- if g_param[OptionsDefine.Waiter]:
184
- param = eval(g_param[OptionsDefine.Waiter])
185
- if 'expr' not in param:
186
- raise Exception('`expr` in `--waiter` must be defined')
187
- if 'to' not in param:
188
- raise Exception('`to` in `--waiter` must be defined')
189
- if 'timeout' not in param:
190
- if 'waiter' in conf and 'timeout' in conf['waiter']:
191
- param['timeout'] = conf['waiter']['timeout']
192
- else:
193
- param['timeout'] = 180
194
- if 'interval' not in param:
195
- if 'waiter' in conf and 'interval' in conf['waiter']:
196
- param['interval'] = conf['waiter']['interval']
197
- else:
198
- param['interval'] = 5
199
- param['interval'] = min(param['interval'], param['timeout'])
200
- g_param['OptionsDefine.WaiterInfo'] = param
201
-
202
- if six.PY2:
203
- for key, value in g_param.items():
204
- if isinstance(value, six.text_type):
205
- g_param[key] = value.encode('utf-8')
206
- return g_param
207
-
@@ -1,397 +0,0 @@
1
- {
2
- "actions": {
3
- "QueryActivityAntiRush": {
4
- "document": "腾讯云活动防刷(ActivityAntiRush,AA)是针对电商、O2O、P2P、游戏、支付等行业在促销活动中遇到“羊毛党”恶意刷取优惠福利的行为时,通过防刷引擎,精准识别出“薅羊毛”恶意行为的活动防刷服务,避免了企业被刷带来的巨大经济损失。",
5
- "input": "QueryActivityAntiRushRequest",
6
- "name": "活动防刷",
7
- "output": "QueryActivityAntiRushResponse",
8
- "status": "online"
9
- }
10
- },
11
- "metadata": {
12
- "apiVersion": "2020-02-24",
13
- "api_brief": "",
14
- "serviceNameCN": "活动防刷",
15
- "serviceShortName": "aa"
16
- },
17
- "objects": {
18
- "QueryActivityAntiRushRequest": {
19
- "document": "QueryActivityAntiRush请求参数结构体",
20
- "members": [
21
- {
22
- "disabled": false,
23
- "document": "账号类型",
24
- "example": "10004",
25
- "member": "string",
26
- "name": "AccountType",
27
- "required": true,
28
- "type": "string"
29
- },
30
- {
31
- "disabled": false,
32
- "document": "uid值",
33
- "example": "bfd81ee3ed27ad31c95ca75e21365973",
34
- "member": "string",
35
- "name": "Uid",
36
- "required": true,
37
- "type": "string"
38
- },
39
- {
40
- "disabled": false,
41
- "document": "用户的真实外网 IP。若填入非外网有效ip,会返回level=0的风控结果,risktype中会有205的风险码返回作为标识",
42
- "example": "101.231.62.66",
43
- "member": "string",
44
- "name": "UserIp",
45
- "required": true,
46
- "type": "string"
47
- },
48
- {
49
- "disabled": false,
50
- "document": "用户操作时间戳。",
51
- "example": "1582029456",
52
- "member": "string",
53
- "name": "PostTime",
54
- "required": true,
55
- "type": "string"
56
- },
57
- {
58
- "disabled": false,
59
- "document": "accountType 是QQ开放账号时,该参数必填,表示 QQ 开放平台分配给网站或应用的 AppID,用来唯一标识网站或应用。",
60
- "example": "无",
61
- "member": "string",
62
- "name": "AppIdU",
63
- "required": false,
64
- "type": "string"
65
- },
66
- {
67
- "disabled": false,
68
- "document": "昵称,UTF-8 编码。",
69
- "example": "无",
70
- "member": "string",
71
- "name": "NickName",
72
- "required": false,
73
- "type": "string"
74
- },
75
- {
76
- "disabled": false,
77
- "document": "手机号",
78
- "example": "无",
79
- "member": "string",
80
- "name": "PhoneNumber",
81
- "required": false,
82
- "type": "string"
83
- },
84
- {
85
- "disabled": false,
86
- "document": "用户邮箱地址。",
87
- "example": "无",
88
- "member": "string",
89
- "name": "EmailAddress",
90
- "required": false,
91
- "type": "string"
92
- },
93
- {
94
- "disabled": false,
95
- "document": "注册时间戳。",
96
- "example": "无",
97
- "member": "string",
98
- "name": "RegisterTime",
99
- "required": false,
100
- "type": "string"
101
- },
102
- {
103
- "disabled": false,
104
- "document": "注册来源的外网 IP。",
105
- "example": "无",
106
- "member": "string",
107
- "name": "RegisterIp",
108
- "required": false,
109
- "type": "string"
110
- },
111
- {
112
- "disabled": false,
113
- "document": "用户 HTTP 请求中的 cookie 进行2次 hash 的值,只要保证相同 cookie 的 hash 值一致即可。",
114
- "example": "无",
115
- "member": "string",
116
- "name": "CookieHash",
117
- "required": false,
118
- "type": "string"
119
- },
120
- {
121
- "disabled": false,
122
- "document": "地址。",
123
- "example": "无",
124
- "member": "string",
125
- "name": "Address",
126
- "required": false,
127
- "type": "string"
128
- },
129
- {
130
- "disabled": false,
131
- "document": "登录来源:\n0:其他。\n1:PC 网页。\n2:移动页面。\n3:App。\n4:微信公众号。",
132
- "example": "无",
133
- "member": "string",
134
- "name": "LoginSource",
135
- "required": false,
136
- "type": "string"
137
- },
138
- {
139
- "disabled": false,
140
- "document": "登录方式:\n0:其他。\n1:手动账号密码输入。\n2:动态短信密码登录。\n3:二维码扫描登录。",
141
- "example": "无",
142
- "member": "string",
143
- "name": "LoginType",
144
- "required": false,
145
- "type": "string"
146
- },
147
- {
148
- "disabled": false,
149
- "document": "登录耗时,单位:秒。",
150
- "example": "无",
151
- "member": "string",
152
- "name": "LoginSpend",
153
- "required": false,
154
- "type": "string"
155
- },
156
- {
157
- "disabled": false,
158
- "document": "用户操作的目的 ID,如点赞等,该字段就是被点赞的消息 ID,如果是投票,则为被投号码的 ID。",
159
- "example": "无",
160
- "member": "string",
161
- "name": "RootId",
162
- "required": false,
163
- "type": "string"
164
- },
165
- {
166
- "disabled": false,
167
- "document": "用户 HTTP 请求的 referer 值。",
168
- "example": "无",
169
- "member": "string",
170
- "name": "Referer",
171
- "required": false,
172
- "type": "string"
173
- },
174
- {
175
- "disabled": false,
176
- "document": "登录成功后跳转页面。",
177
- "example": "无",
178
- "member": "string",
179
- "name": "JumpUrl",
180
- "required": false,
181
- "type": "string"
182
- },
183
- {
184
- "disabled": false,
185
- "document": "用户 HTTP 请求的 userAgent。",
186
- "example": "无",
187
- "member": "string",
188
- "name": "UserAgent",
189
- "required": false,
190
- "type": "string"
191
- },
192
- {
193
- "disabled": false,
194
- "document": "用户 HTTP 请求中的 x_forward_for。",
195
- "example": "无",
196
- "member": "string",
197
- "name": "XForwardedFor",
198
- "required": false,
199
- "type": "string"
200
- },
201
- {
202
- "disabled": false,
203
- "document": "用户操作过程中鼠标单击次数。",
204
- "example": "无",
205
- "member": "string",
206
- "name": "MouseClickCount",
207
- "required": false,
208
- "type": "string"
209
- },
210
- {
211
- "disabled": false,
212
- "document": "用户操作过程中键盘单击次数。",
213
- "example": "无",
214
- "member": "string",
215
- "name": "KeyboardClickCount",
216
- "required": false,
217
- "type": "string"
218
- },
219
- {
220
- "disabled": false,
221
- "document": "MAC 地址或设备唯一标识。",
222
- "example": "无",
223
- "member": "string",
224
- "name": "MacAddress",
225
- "required": false,
226
- "type": "string"
227
- },
228
- {
229
- "disabled": false,
230
- "document": "手机制造商 ID,如果手机注册,请带上此信息。",
231
- "example": "无",
232
- "member": "string",
233
- "name": "VendorId",
234
- "required": false,
235
- "type": "string"
236
- },
237
- {
238
- "disabled": false,
239
- "document": "手机设备号。支持以下格式:\n1.imei明文\n2.idfa明文,\n3.imei小写后MD5值小写\n4.idfa大写后MD5值小写",
240
- "example": "无",
241
- "member": "string",
242
- "name": "Imei",
243
- "required": false,
244
- "type": "string"
245
- },
246
- {
247
- "disabled": false,
248
- "document": "App 客户端版本。",
249
- "example": "无",
250
- "member": "string",
251
- "name": "AppVersion",
252
- "required": false,
253
- "type": "string"
254
- },
255
- {
256
- "disabled": false,
257
- "document": "业务 ID 网站或应用在多个业务中使用此服务,通过此 ID 区分统计数据。",
258
- "example": "无",
259
- "member": "string",
260
- "name": "BusinessId",
261
- "required": false,
262
- "type": "string"
263
- },
264
- {
265
- "disabled": false,
266
- "document": "1:微信公众号。\n2:微信小程序。",
267
- "example": "无",
268
- "member": "string",
269
- "name": "WxSubType",
270
- "required": false,
271
- "type": "string"
272
- },
273
- {
274
- "disabled": false,
275
- "document": "Token 签名随机数,WxSubType为微信小程序时必填,建议16个字符。",
276
- "example": "无",
277
- "member": "string",
278
- "name": "RandNum",
279
- "required": false,
280
- "type": "string"
281
- },
282
- {
283
- "disabled": false,
284
- "document": "token",
285
- "example": "无",
286
- "member": "string",
287
- "name": "WxToken",
288
- "required": false,
289
- "type": "string"
290
- },
291
- {
292
- "disabled": false,
293
- "document": "是否识别设备异常:\n0:不识别。\n1:识别。",
294
- "example": "无",
295
- "member": "string",
296
- "name": "CheckDevice",
297
- "required": false,
298
- "type": "string"
299
- }
300
- ],
301
- "type": "object"
302
- },
303
- "QueryActivityAntiRushResponse": {
304
- "document": "QueryActivityAntiRush返回参数结构体",
305
- "members": [
306
- {
307
- "disabled": false,
308
- "document": "操作时间戳,单位:秒。\n注意:此字段可能返回 null,表示取不到有效值。",
309
- "example": "1582029456",
310
- "member": "string",
311
- "name": "PostTime",
312
- "required": true,
313
- "type": "string",
314
- "value_allowed_null": true
315
- },
316
- {
317
- "disabled": false,
318
- "document": "用户操作的真实外网 IP。\n注意:此字段可能返回 null,表示取不到有效值。",
319
- "example": "101.231.62.66",
320
- "member": "string",
321
- "name": "UserIp",
322
- "required": true,
323
- "type": "string",
324
- "value_allowed_null": true
325
- },
326
- {
327
- "disabled": false,
328
- "document": "0:表示无恶意。\n1 - 4:恶意等级由低到高。",
329
- "example": "1",
330
- "member": "int64",
331
- "name": "Level",
332
- "required": true,
333
- "type": "int",
334
- "value_allowed_null": false
335
- },
336
- {
337
- "disabled": false,
338
- "document": "风险类型。\n\n账号风险:\n\n1,账号信用低,账号近期存在因恶意被处罚历史,网络低活跃,被举报等因素;\n2,垃圾账号,疑似批量注册小号,近期存在严重违规或大量举报;\n3,无效账号,送检账号参数无法成功解析,请检查微信openid是否有误 ,QQopenid是否与appidU对应,手机号是否有误。\n4,黑名单,该账号在业务侧有过拉黑记录\n5,白名单,该账号在业务侧有过加白名单记录\n\n行为风险:\n101,批量操作,存在ip/设备/环境等因素的聚集性异常;\n102,自动机,疑似自动机批量请求;\n104,微信登录态无效,检查wxToken参数,是否已经失效;\n\n环境风险:\n201,环境异常,操作ip/设备/环境存在异常。当前ip为非常用ip或恶意ip段;\n205,非公网有效ip,传进来的IP地址为内网ip地址或者ip保留地址;\n206,设备异常,该设备存在异常的使用行为",
339
- "example": "[1,2]",
340
- "member": "int64",
341
- "name": "RiskType",
342
- "required": true,
343
- "type": "list",
344
- "value_allowed_null": false
345
- },
346
- {
347
- "disabled": false,
348
- "document": "accountType是QQ或微信开放账号时,用于标识QQ或微信用户登录后关联业务自身的账号ID\n注意:此字段可能返回 null,表示取不到有效值。",
349
- "example": "xx",
350
- "member": "string",
351
- "name": "AssociateAccount",
352
- "required": true,
353
- "type": "string",
354
- "value_allowed_null": true
355
- },
356
- {
357
- "disabled": false,
358
- "document": "uid值\n注意:此字段可能返回 null,表示取不到有效值。",
359
- "example": "bfd81ee3ed27ad31c95ca75e21365973",
360
- "member": "string",
361
- "name": "Uid",
362
- "required": true,
363
- "type": "string",
364
- "value_allowed_null": true
365
- },
366
- {
367
- "disabled": false,
368
- "document": "用户操作的目的ID \n比如:点赞,该字段就是被点 赞的消息 id,如果是投票,就是被投号码的 ID\n注意:此字段可能返回 null,表示取不到有效值。",
369
- "example": "xx",
370
- "member": "string",
371
- "name": "RootId",
372
- "required": true,
373
- "type": "string",
374
- "value_allowed_null": true
375
- },
376
- {
377
- "disabled": false,
378
- "document": "业务侧错误码。成功时返回Success,错误时返回具体业务错误原因。\n注意:此字段可能返回 null,表示取不到有效值。",
379
- "example": "Success",
380
- "member": "string",
381
- "name": "CodeDesc",
382
- "required": true,
383
- "type": "string",
384
- "value_allowed_null": true
385
- },
386
- {
387
- "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
388
- "member": "string",
389
- "name": "RequestId",
390
- "type": "string"
391
- }
392
- ],
393
- "type": "object"
394
- }
395
- },
396
- "version": "1.0"
397
- }
@@ -1,13 +0,0 @@
1
- {
2
- "actions": {
3
- "QueryActivityAntiRush": [
4
- {
5
- "document": "",
6
- "input": "https://aa.tencentcloudapi.com/?Action=QueryActivityAntiRush\n&AccountType=10004\n&Uid=bfd81ee3ed27ad31c95ca75e21365973\n&UserIp=101.231.62.66\n&PostTime=1582029456\n&<公共请求参数>",
7
- "output": "{\n \"Response\": {\n \"Level\": 1,\n \"PostTime\": \"1582029456\",\n \"RequestId\": \"fafjdlsajfldsj\",\n \"RiskType\": [\n 1,\n 2\n ],\n \"UserIp\": \"101.231.62.66\",\n \"CodeDesc\": \"Success\",\n \"Uid\": \"bfd81ee3ed27ad31c95ca75e21365973\",\n \"RootId\": \"xx\",\n \"AssociateAccount\": \"xx\"\n }\n}",
8
- "title": "活动防刷接口示范"
9
- }
10
- ]
11
- },
12
- "version": "1.0"
13
- }