tccli 3.0.1333.1__py2.py3-none-any.whl → 3.0.1335.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.
- tccli/__init__.py +1 -1
- tccli/services/cdn/v20180606/api.json +3 -3
- tccli/services/cfs/v20190719/api.json +2 -2
- tccli/services/clb/v20180317/api.json +1 -1
- tccli/services/csip/csip_client.py +53 -0
- tccli/services/csip/v20221121/api.json +466 -0
- tccli/services/csip/v20221121/examples.json +9 -1
- tccli/services/ess/v20201111/api.json +33 -4
- tccli/services/essbasic/v20210526/api.json +33 -4
- tccli/services/goosefs/goosefs_client.py +53 -0
- tccli/services/goosefs/v20220519/api.json +53 -0
- tccli/services/goosefs/v20220519/examples.json +8 -0
- tccli/services/gs/v20191118/api.json +11 -1
- tccli/services/gs/v20191118/examples.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +64 -0
- tccli/services/lke/v20231130/api.json +3 -3
- tccli/services/mps/v20190612/api.json +129 -0
- tccli/services/ocr/ocr_client.py +4 -110
- tccli/services/ocr/v20181119/api.json +0 -282
- tccli/services/ocr/v20181119/examples.json +0 -16
- tccli/services/ssl/ssl_client.py +53 -0
- tccli/services/ssl/v20191205/api.json +100 -0
- tccli/services/ssl/v20191205/examples.json +8 -0
- tccli/services/tcss/v20201101/api.json +5 -5
- tccli/services/tcss/v20201101/examples.json +2 -2
- tccli/services/trocket/v20230308/api.json +1 -1
- tccli/services/trocket/v20230308/examples.json +1 -1
- tccli/services/trtc/v20190722/api.json +30 -2
- tccli/services/tse/v20201207/api.json +1 -1
- tccli/services/tsf/v20180326/api.json +1 -1
- {tccli-3.0.1333.1.dist-info → tccli-3.0.1335.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1333.1.dist-info → tccli-3.0.1335.1.dist-info}/RECORD +35 -35
- {tccli-3.0.1333.1.dist-info → tccli-3.0.1335.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1333.1.dist-info → tccli-3.0.1335.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1333.1.dist-info → tccli-3.0.1335.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1335.1'
|
@@ -5782,7 +5782,7 @@
|
|
5782
5782
|
{
|
5783
5783
|
"disabled": false,
|
5784
5784
|
"document": "域名列表,最多支持20个域名",
|
5785
|
-
"example": "[\"www.test.com
|
5785
|
+
"example": "[\"www.test.com\"]",
|
5786
5786
|
"member": "string",
|
5787
5787
|
"name": "Domains",
|
5788
5788
|
"required": true,
|
@@ -5818,7 +5818,7 @@
|
|
5818
5818
|
{
|
5819
5819
|
"disabled": false,
|
5820
5820
|
"document": "指定省份查询,不填充表示查询所有省份\n省份、国家/地区编码可以查看 [省份编码映射](https://cloud.tencent.com/document/product/228/6316#.E5.8C.BA.E5.9F.9F-.2F-.E8.BF.90.E8.90.A5.E5.95.86.E6.98.A0.E5.B0.84.E8.A1.A8)",
|
5821
|
-
"example": "122",
|
5821
|
+
"example": "[122]",
|
5822
5822
|
"member": "int64",
|
5823
5823
|
"name": "Districts",
|
5824
5824
|
"required": false,
|
@@ -5827,7 +5827,7 @@
|
|
5827
5827
|
{
|
5828
5828
|
"disabled": false,
|
5829
5829
|
"document": "指定运营商查询,不填充表示查询所有运营商\n运营商编码可以查看 [运营商编码映射](https://cloud.tencent.com/document/product/228/6316#.E5.8C.BA.E5.9F.9F-.2F-.E8.BF.90.E8.90.A5.E5.95.86.E6.98.A0.E5.B0.84.E8.A1.A8)",
|
5830
|
-
"example": "3947",
|
5830
|
+
"example": "[3947]",
|
5831
5831
|
"member": "int64",
|
5832
5832
|
"name": "Isps",
|
5833
5833
|
"required": false,
|
@@ -1005,7 +1005,7 @@
|
|
1005
1005
|
},
|
1006
1006
|
{
|
1007
1007
|
"disabled": false,
|
1008
|
-
"document": "文件系统容量,turbo系列必填,单位为GiB。 turbo标准型单位GB,起售20TiB,即20480 GiB;扩容步长
|
1008
|
+
"document": "文件系统容量,turbo系列必填,单位为GiB。 turbo标准型单位GB,起售20TiB,即20480 GiB;扩容步长10TiB,即10240 GiB。turbo性能型起售10TiB,即10240 GiB;扩容步长10TiB,10240 GiB。",
|
1009
1009
|
"example": "40960",
|
1010
1010
|
"member": "uint64",
|
1011
1011
|
"name": "Capacity",
|
@@ -3505,7 +3505,7 @@
|
|
3505
3505
|
},
|
3506
3506
|
{
|
3507
3507
|
"disabled": false,
|
3508
|
-
"document": "扩容后达到阈值,范围[
|
3508
|
+
"document": "扩容后达到阈值,范围[1-90]",
|
3509
3509
|
"example": "75",
|
3510
3510
|
"member": "uint64",
|
3511
3511
|
"name": "TargetThreshold",
|
@@ -6556,7 +6556,7 @@
|
|
6556
6556
|
},
|
6557
6557
|
{
|
6558
6558
|
"disabled": false,
|
6559
|
-
"document": "
|
6559
|
+
"document": "自定义探测相关参数。健康检查端口,默认为后端服务的端口,除非您希望指定特定端口,否则建议留空。传参数值-1可恢复默认设置。(仅适用于TCP/UDP监听器)。\n注意:此字段可能返回 null,表示取不到有效值。",
|
6560
6560
|
"example": "8000",
|
6561
6561
|
"member": "int64",
|
6562
6562
|
"name": "CheckPort",
|
@@ -2201,6 +2201,58 @@ def doDescribeVULRiskAdvanceCFGList(args, parsed_globals):
|
|
2201
2201
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2202
2202
|
|
2203
2203
|
|
2204
|
+
def doDescribeExposures(args, parsed_globals):
|
2205
|
+
g_param = parse_global_arg(parsed_globals)
|
2206
|
+
|
2207
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2208
|
+
cred = credential.CVMRoleCredential()
|
2209
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2210
|
+
cred = credential.STSAssumeRoleCredential(
|
2211
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2212
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2213
|
+
)
|
2214
|
+
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):
|
2215
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2216
|
+
else:
|
2217
|
+
cred = credential.Credential(
|
2218
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2219
|
+
)
|
2220
|
+
http_profile = HttpProfile(
|
2221
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2222
|
+
reqMethod="POST",
|
2223
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2224
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2225
|
+
)
|
2226
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2227
|
+
if g_param[OptionsDefine.Language]:
|
2228
|
+
profile.language = g_param[OptionsDefine.Language]
|
2229
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2230
|
+
client = mod.CsipClient(cred, g_param[OptionsDefine.Region], profile)
|
2231
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2232
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2233
|
+
model = models.DescribeExposuresRequest()
|
2234
|
+
model.from_json_string(json.dumps(args))
|
2235
|
+
start_time = time.time()
|
2236
|
+
while True:
|
2237
|
+
rsp = client.DescribeExposures(model)
|
2238
|
+
result = rsp.to_json_string()
|
2239
|
+
try:
|
2240
|
+
json_obj = json.loads(result)
|
2241
|
+
except TypeError as e:
|
2242
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2243
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2244
|
+
break
|
2245
|
+
cur_time = time.time()
|
2246
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2247
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2248
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2249
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2250
|
+
else:
|
2251
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2252
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2253
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2254
|
+
|
2255
|
+
|
2204
2256
|
def doCreateDomainAndIp(args, parsed_globals):
|
2205
2257
|
g_param = parse_global_arg(parsed_globals)
|
2206
2258
|
|
@@ -2566,6 +2618,7 @@ ACTION_MAP = {
|
|
2566
2618
|
"DescribeRiskCenterPortViewPortRiskList": doDescribeRiskCenterPortViewPortRiskList,
|
2567
2619
|
"DescribeRiskCenterAssetViewPortRiskList": doDescribeRiskCenterAssetViewPortRiskList,
|
2568
2620
|
"DescribeVULRiskAdvanceCFGList": doDescribeVULRiskAdvanceCFGList,
|
2621
|
+
"DescribeExposures": doDescribeExposures,
|
2569
2622
|
"CreateDomainAndIp": doCreateDomainAndIp,
|
2570
2623
|
"ModifyOrganizationAccountStatus": doModifyOrganizationAccountStatus,
|
2571
2624
|
"DescribeTopAttackInfo": doDescribeTopAttackInfo,
|
@@ -105,6 +105,13 @@
|
|
105
105
|
"output": "DescribeDomainAssetsResponse",
|
106
106
|
"status": "online"
|
107
107
|
},
|
108
|
+
"DescribeExposures": {
|
109
|
+
"document": "互联网暴露资产列表",
|
110
|
+
"input": "DescribeExposuresRequest",
|
111
|
+
"name": "查询互联网暴露资产列表",
|
112
|
+
"output": "DescribeExposuresResponse",
|
113
|
+
"status": "online"
|
114
|
+
},
|
108
115
|
"DescribeGatewayAssets": {
|
109
116
|
"document": "获取网关列表",
|
110
117
|
"input": "DescribeGatewayAssetsRequest",
|
@@ -7015,6 +7022,98 @@
|
|
7015
7022
|
],
|
7016
7023
|
"type": "object"
|
7017
7024
|
},
|
7025
|
+
"DescribeExposuresRequest": {
|
7026
|
+
"document": "DescribeExposures请求参数结构体",
|
7027
|
+
"members": [
|
7028
|
+
{
|
7029
|
+
"disabled": false,
|
7030
|
+
"document": "集团账号的成员id",
|
7031
|
+
"example": "[\"mem-6wfo0fzks3\",\"mem-85fo0fzks4\"]",
|
7032
|
+
"member": "string",
|
7033
|
+
"name": "MemberId",
|
7034
|
+
"required": false,
|
7035
|
+
"type": "list"
|
7036
|
+
},
|
7037
|
+
{
|
7038
|
+
"disabled": false,
|
7039
|
+
"document": "过滤内容",
|
7040
|
+
"example": "{\"Filters\":[{\"Name\":\"Status\",\"Values\":[\"0\"],\"OperatorType\":7}]}",
|
7041
|
+
"member": "Filters",
|
7042
|
+
"name": "Filters",
|
7043
|
+
"required": false,
|
7044
|
+
"type": "list"
|
7045
|
+
},
|
7046
|
+
{
|
7047
|
+
"disabled": false,
|
7048
|
+
"document": "分页大小",
|
7049
|
+
"example": "10",
|
7050
|
+
"member": "uint64",
|
7051
|
+
"name": "Limit",
|
7052
|
+
"required": false,
|
7053
|
+
"type": "int"
|
7054
|
+
},
|
7055
|
+
{
|
7056
|
+
"disabled": false,
|
7057
|
+
"document": "偏移量",
|
7058
|
+
"example": "0",
|
7059
|
+
"member": "uint64",
|
7060
|
+
"name": "Offset",
|
7061
|
+
"required": false,
|
7062
|
+
"type": "int"
|
7063
|
+
},
|
7064
|
+
{
|
7065
|
+
"disabled": false,
|
7066
|
+
"document": "排序类型",
|
7067
|
+
"example": "desc",
|
7068
|
+
"member": "string",
|
7069
|
+
"name": "Order",
|
7070
|
+
"required": false,
|
7071
|
+
"type": "string"
|
7072
|
+
},
|
7073
|
+
{
|
7074
|
+
"disabled": false,
|
7075
|
+
"document": "排序字段",
|
7076
|
+
"example": "update_time",
|
7077
|
+
"member": "string",
|
7078
|
+
"name": "By",
|
7079
|
+
"required": false,
|
7080
|
+
"type": "string"
|
7081
|
+
}
|
7082
|
+
],
|
7083
|
+
"type": "object"
|
7084
|
+
},
|
7085
|
+
"DescribeExposuresResponse": {
|
7086
|
+
"document": "DescribeExposures返回参数结构体",
|
7087
|
+
"members": [
|
7088
|
+
{
|
7089
|
+
"disabled": false,
|
7090
|
+
"document": "互联网暴露资产数量",
|
7091
|
+
"example": "1",
|
7092
|
+
"member": "int64",
|
7093
|
+
"name": "TotalCount",
|
7094
|
+
"output_required": true,
|
7095
|
+
"type": "int",
|
7096
|
+
"value_allowed_null": false
|
7097
|
+
},
|
7098
|
+
{
|
7099
|
+
"disabled": false,
|
7100
|
+
"document": "互联网暴露资产列表",
|
7101
|
+
"example": "无",
|
7102
|
+
"member": "ExposesItem",
|
7103
|
+
"name": "ExposeList",
|
7104
|
+
"output_required": true,
|
7105
|
+
"type": "list",
|
7106
|
+
"value_allowed_null": false
|
7107
|
+
},
|
7108
|
+
{
|
7109
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
7110
|
+
"member": "string",
|
7111
|
+
"name": "RequestId",
|
7112
|
+
"type": "string"
|
7113
|
+
}
|
7114
|
+
],
|
7115
|
+
"type": "object"
|
7116
|
+
},
|
7018
7117
|
"DescribeGatewayAssetsRequest": {
|
7019
7118
|
"document": "DescribeGatewayAssets请求参数结构体",
|
7020
7119
|
"members": [
|
@@ -8892,6 +8991,33 @@
|
|
8892
8991
|
"DescribeTopAttackInfoRequest": {
|
8893
8992
|
"document": "DescribeTopAttackInfo请求参数结构体",
|
8894
8993
|
"members": [
|
8994
|
+
{
|
8995
|
+
"disabled": false,
|
8996
|
+
"document": "起始时间",
|
8997
|
+
"example": "2023-03-01 00:00:00",
|
8998
|
+
"member": "string",
|
8999
|
+
"name": "StartTime",
|
9000
|
+
"required": true,
|
9001
|
+
"type": "string"
|
9002
|
+
},
|
9003
|
+
{
|
9004
|
+
"disabled": false,
|
9005
|
+
"document": "结束时间",
|
9006
|
+
"example": "2023-03-08 00:00:00",
|
9007
|
+
"member": "string",
|
9008
|
+
"name": "EndTime",
|
9009
|
+
"required": true,
|
9010
|
+
"type": "string"
|
9011
|
+
},
|
9012
|
+
{
|
9013
|
+
"disabled": false,
|
9014
|
+
"document": "1:攻击类型 2:攻击者",
|
9015
|
+
"example": "1",
|
9016
|
+
"member": "int64",
|
9017
|
+
"name": "QueryType",
|
9018
|
+
"required": true,
|
9019
|
+
"type": "int"
|
9020
|
+
},
|
8895
9021
|
{
|
8896
9022
|
"disabled": false,
|
8897
9023
|
"document": "集团账号的成员id",
|
@@ -8909,6 +9035,24 @@
|
|
8909
9035
|
"name": "OperatedMemberId",
|
8910
9036
|
"required": false,
|
8911
9037
|
"type": "list"
|
9038
|
+
},
|
9039
|
+
{
|
9040
|
+
"disabled": false,
|
9041
|
+
"document": "资产名称",
|
9042
|
+
"example": "ins-n7281d",
|
9043
|
+
"member": "string",
|
9044
|
+
"name": "AssetName",
|
9045
|
+
"required": false,
|
9046
|
+
"type": "string"
|
9047
|
+
},
|
9048
|
+
{
|
9049
|
+
"disabled": false,
|
9050
|
+
"document": "0: 默认全部 1:资产ID 2:域名",
|
9051
|
+
"example": "1",
|
9052
|
+
"member": "int64",
|
9053
|
+
"name": "AssetType",
|
9054
|
+
"required": false,
|
9055
|
+
"type": "int"
|
8912
9056
|
}
|
8913
9057
|
],
|
8914
9058
|
"type": "object"
|
@@ -9816,6 +9960,292 @@
|
|
9816
9960
|
],
|
9817
9961
|
"usage": "both"
|
9818
9962
|
},
|
9963
|
+
"ExposesItem": {
|
9964
|
+
"document": "暴露资产",
|
9965
|
+
"members": [
|
9966
|
+
{
|
9967
|
+
"disabled": false,
|
9968
|
+
"document": "云厂商",
|
9969
|
+
"example": "tencent",
|
9970
|
+
"member": "string",
|
9971
|
+
"name": "Provider",
|
9972
|
+
"output_required": true,
|
9973
|
+
"type": "string",
|
9974
|
+
"value_allowed_null": false
|
9975
|
+
},
|
9976
|
+
{
|
9977
|
+
"disabled": false,
|
9978
|
+
"document": "云账号名称",
|
9979
|
+
"example": "长安守夜人",
|
9980
|
+
"member": "string",
|
9981
|
+
"name": "CloudAccountName",
|
9982
|
+
"output_required": true,
|
9983
|
+
"type": "string",
|
9984
|
+
"value_allowed_null": false
|
9985
|
+
},
|
9986
|
+
{
|
9987
|
+
"disabled": false,
|
9988
|
+
"document": "云账号",
|
9989
|
+
"example": "1112222",
|
9990
|
+
"member": "string",
|
9991
|
+
"name": "CloudAccountId",
|
9992
|
+
"output_required": true,
|
9993
|
+
"type": "string",
|
9994
|
+
"value_allowed_null": false
|
9995
|
+
},
|
9996
|
+
{
|
9997
|
+
"disabled": false,
|
9998
|
+
"document": "域名",
|
9999
|
+
"example": "www.test.com",
|
10000
|
+
"member": "string",
|
10001
|
+
"name": "Domain",
|
10002
|
+
"output_required": true,
|
10003
|
+
"type": "string",
|
10004
|
+
"value_allowed_null": false
|
10005
|
+
},
|
10006
|
+
{
|
10007
|
+
"disabled": false,
|
10008
|
+
"document": "IP",
|
10009
|
+
"example": "1.1.1.1",
|
10010
|
+
"member": "string",
|
10011
|
+
"name": "Ip",
|
10012
|
+
"output_required": true,
|
10013
|
+
"type": "string",
|
10014
|
+
"value_allowed_null": false
|
10015
|
+
},
|
10016
|
+
{
|
10017
|
+
"disabled": false,
|
10018
|
+
"document": "端口或者端口范围",
|
10019
|
+
"example": "1-65535",
|
10020
|
+
"member": "string",
|
10021
|
+
"name": "Port",
|
10022
|
+
"output_required": true,
|
10023
|
+
"type": "string",
|
10024
|
+
"value_allowed_null": false
|
10025
|
+
},
|
10026
|
+
{
|
10027
|
+
"disabled": false,
|
10028
|
+
"document": "开放",
|
10029
|
+
"example": "open",
|
10030
|
+
"member": "string",
|
10031
|
+
"name": "Status",
|
10032
|
+
"output_required": true,
|
10033
|
+
"type": "string",
|
10034
|
+
"value_allowed_null": false
|
10035
|
+
},
|
10036
|
+
{
|
10037
|
+
"disabled": false,
|
10038
|
+
"document": "风险类型",
|
10039
|
+
"example": "high_risk_port",
|
10040
|
+
"member": "string",
|
10041
|
+
"name": "RiskType",
|
10042
|
+
"output_required": true,
|
10043
|
+
"type": "string",
|
10044
|
+
"value_allowed_null": false
|
10045
|
+
},
|
10046
|
+
{
|
10047
|
+
"disabled": false,
|
10048
|
+
"document": "acl类型",
|
10049
|
+
"example": "blacklist",
|
10050
|
+
"member": "string",
|
10051
|
+
"name": "AclType",
|
10052
|
+
"output_required": true,
|
10053
|
+
"type": "string",
|
10054
|
+
"value_allowed_null": false
|
10055
|
+
},
|
10056
|
+
{
|
10057
|
+
"disabled": false,
|
10058
|
+
"document": "acl列表",
|
10059
|
+
"example": "[\"1.1.1.1\"]",
|
10060
|
+
"member": "string",
|
10061
|
+
"name": "AclList",
|
10062
|
+
"output_required": true,
|
10063
|
+
"type": "string",
|
10064
|
+
"value_allowed_null": false
|
10065
|
+
},
|
10066
|
+
{
|
10067
|
+
"disabled": false,
|
10068
|
+
"document": "资产ID",
|
10069
|
+
"example": "ins-test",
|
10070
|
+
"member": "string",
|
10071
|
+
"name": "AssetId",
|
10072
|
+
"output_required": true,
|
10073
|
+
"type": "string",
|
10074
|
+
"value_allowed_null": false
|
10075
|
+
},
|
10076
|
+
{
|
10077
|
+
"disabled": false,
|
10078
|
+
"document": "实例名称",
|
10079
|
+
"example": "cvm_sdhj123",
|
10080
|
+
"member": "string",
|
10081
|
+
"name": "InstanceName",
|
10082
|
+
"output_required": true,
|
10083
|
+
"type": "string",
|
10084
|
+
"value_allowed_null": false
|
10085
|
+
},
|
10086
|
+
{
|
10087
|
+
"disabled": false,
|
10088
|
+
"document": "资产类型",
|
10089
|
+
"example": "cvm_instance",
|
10090
|
+
"member": "string",
|
10091
|
+
"name": "AssetType",
|
10092
|
+
"output_required": true,
|
10093
|
+
"type": "string",
|
10094
|
+
"value_allowed_null": false
|
10095
|
+
},
|
10096
|
+
{
|
10097
|
+
"disabled": false,
|
10098
|
+
"document": "端口服务数量",
|
10099
|
+
"example": "0",
|
10100
|
+
"member": "uint64",
|
10101
|
+
"name": "PortServiceCount",
|
10102
|
+
"output_required": true,
|
10103
|
+
"type": "int",
|
10104
|
+
"value_allowed_null": false
|
10105
|
+
},
|
10106
|
+
{
|
10107
|
+
"disabled": false,
|
10108
|
+
"document": "高危端口数量",
|
10109
|
+
"example": "0",
|
10110
|
+
"member": "uint64",
|
10111
|
+
"name": "HighRiskPortServiceCount",
|
10112
|
+
"output_required": true,
|
10113
|
+
"type": "int",
|
10114
|
+
"value_allowed_null": false
|
10115
|
+
},
|
10116
|
+
{
|
10117
|
+
"disabled": false,
|
10118
|
+
"document": "web应用数量",
|
10119
|
+
"example": "0",
|
10120
|
+
"member": "uint64",
|
10121
|
+
"name": "WebAppCount",
|
10122
|
+
"output_required": true,
|
10123
|
+
"type": "int",
|
10124
|
+
"value_allowed_null": false
|
10125
|
+
},
|
10126
|
+
{
|
10127
|
+
"disabled": false,
|
10128
|
+
"document": "有风险web应用数量",
|
10129
|
+
"example": "0",
|
10130
|
+
"member": "uint64",
|
10131
|
+
"name": "RiskWebAppCount",
|
10132
|
+
"output_required": true,
|
10133
|
+
"type": "int",
|
10134
|
+
"value_allowed_null": false
|
10135
|
+
},
|
10136
|
+
{
|
10137
|
+
"disabled": false,
|
10138
|
+
"document": "弱口令数量",
|
10139
|
+
"example": "0",
|
10140
|
+
"member": "uint64",
|
10141
|
+
"name": "WeakPasswordCount",
|
10142
|
+
"output_required": true,
|
10143
|
+
"type": "int",
|
10144
|
+
"value_allowed_null": false
|
10145
|
+
},
|
10146
|
+
{
|
10147
|
+
"disabled": false,
|
10148
|
+
"document": "漏洞数量",
|
10149
|
+
"example": "0",
|
10150
|
+
"member": "uint64",
|
10151
|
+
"name": "VulCount",
|
10152
|
+
"output_required": true,
|
10153
|
+
"type": "int",
|
10154
|
+
"value_allowed_null": false
|
10155
|
+
},
|
10156
|
+
{
|
10157
|
+
"disabled": false,
|
10158
|
+
"document": "首次发现时间",
|
10159
|
+
"example": "2024-12-30 00:00:00",
|
10160
|
+
"member": "string",
|
10161
|
+
"name": "CreateTime",
|
10162
|
+
"output_required": true,
|
10163
|
+
"type": "string",
|
10164
|
+
"value_allowed_null": false
|
10165
|
+
},
|
10166
|
+
{
|
10167
|
+
"disabled": false,
|
10168
|
+
"document": "最近更新时间",
|
10169
|
+
"example": "2024-12-30 00:00:00",
|
10170
|
+
"member": "string",
|
10171
|
+
"name": "UpdateTime",
|
10172
|
+
"output_required": true,
|
10173
|
+
"type": "string",
|
10174
|
+
"value_allowed_null": false
|
10175
|
+
},
|
10176
|
+
{
|
10177
|
+
"disabled": false,
|
10178
|
+
"document": "实例类型名称",
|
10179
|
+
"example": "云服务器",
|
10180
|
+
"member": "string",
|
10181
|
+
"name": "AssetTypeName",
|
10182
|
+
"output_required": true,
|
10183
|
+
"type": "string",
|
10184
|
+
"value_allowed_null": false
|
10185
|
+
},
|
10186
|
+
{
|
10187
|
+
"disabled": false,
|
10188
|
+
"document": "开放状态",
|
10189
|
+
"example": "完全开放/Open",
|
10190
|
+
"member": "string",
|
10191
|
+
"name": "DisplayStatus",
|
10192
|
+
"output_required": true,
|
10193
|
+
"type": "string",
|
10194
|
+
"value_allowed_null": false
|
10195
|
+
},
|
10196
|
+
{
|
10197
|
+
"disabled": false,
|
10198
|
+
"document": "端口状态",
|
10199
|
+
"example": "高危端口",
|
10200
|
+
"member": "string",
|
10201
|
+
"name": "DisplayRiskType",
|
10202
|
+
"output_required": true,
|
10203
|
+
"type": "string",
|
10204
|
+
"value_allowed_null": false
|
10205
|
+
},
|
10206
|
+
{
|
10207
|
+
"disabled": false,
|
10208
|
+
"document": "扫描任务状态",
|
10209
|
+
"example": "running",
|
10210
|
+
"member": "string",
|
10211
|
+
"name": "ScanTaskStatus",
|
10212
|
+
"output_required": true,
|
10213
|
+
"type": "string",
|
10214
|
+
"value_allowed_null": false
|
10215
|
+
},
|
10216
|
+
{
|
10217
|
+
"disabled": false,
|
10218
|
+
"document": "uuid",
|
10219
|
+
"example": "uuid",
|
10220
|
+
"member": "string",
|
10221
|
+
"name": "Uuid",
|
10222
|
+
"output_required": true,
|
10223
|
+
"type": "string",
|
10224
|
+
"value_allowed_null": false
|
10225
|
+
},
|
10226
|
+
{
|
10227
|
+
"disabled": false,
|
10228
|
+
"document": "是否进行过安全体检",
|
10229
|
+
"example": "true",
|
10230
|
+
"member": "string",
|
10231
|
+
"name": "HasScan",
|
10232
|
+
"output_required": true,
|
10233
|
+
"type": "string",
|
10234
|
+
"value_allowed_null": false
|
10235
|
+
},
|
10236
|
+
{
|
10237
|
+
"disabled": false,
|
10238
|
+
"document": "租户ID",
|
10239
|
+
"example": "1235316210",
|
10240
|
+
"member": "uint64",
|
10241
|
+
"name": "AppId",
|
10242
|
+
"output_required": true,
|
10243
|
+
"type": "int",
|
10244
|
+
"value_allowed_null": false
|
10245
|
+
}
|
10246
|
+
],
|
10247
|
+
"usage": "out"
|
10248
|
+
},
|
9819
10249
|
"Filter": {
|
9820
10250
|
"document": "列表查询接口采用新filter 接口,直接传给后台供后台查询过滤",
|
9821
10251
|
"members": [
|
@@ -9911,6 +10341,42 @@
|
|
9911
10341
|
],
|
9912
10342
|
"usage": "out"
|
9913
10343
|
},
|
10344
|
+
"Filters": {
|
10345
|
+
"document": "filter过滤条件",
|
10346
|
+
"members": [
|
10347
|
+
{
|
10348
|
+
"disabled": false,
|
10349
|
+
"document": "无\n注意:此字段可能返回 null,表示取不到有效值。",
|
10350
|
+
"example": "无",
|
10351
|
+
"member": "string",
|
10352
|
+
"name": "Name",
|
10353
|
+
"required": false,
|
10354
|
+
"type": "string",
|
10355
|
+
"value_allowed_null": true
|
10356
|
+
},
|
10357
|
+
{
|
10358
|
+
"disabled": false,
|
10359
|
+
"document": "无\n注意:此字段可能返回 null,表示取不到有效值。",
|
10360
|
+
"example": "无",
|
10361
|
+
"member": "string",
|
10362
|
+
"name": "Values",
|
10363
|
+
"required": false,
|
10364
|
+
"type": "list",
|
10365
|
+
"value_allowed_null": true
|
10366
|
+
},
|
10367
|
+
{
|
10368
|
+
"disabled": false,
|
10369
|
+
"document": "模糊匹配\n注意:此字段可能返回 null,表示取不到有效值。",
|
10370
|
+
"example": "无",
|
10371
|
+
"member": "string",
|
10372
|
+
"name": "ExactMatch",
|
10373
|
+
"required": false,
|
10374
|
+
"type": "string",
|
10375
|
+
"value_allowed_null": true
|
10376
|
+
}
|
10377
|
+
],
|
10378
|
+
"usage": "both"
|
10379
|
+
},
|
9914
10380
|
"GateWayAsset": {
|
9915
10381
|
"document": "网关资产",
|
9916
10382
|
"members": [
|
@@ -120,6 +120,14 @@
|
|
120
120
|
"title": "接口示例"
|
121
121
|
}
|
122
122
|
],
|
123
|
+
"DescribeExposures": [
|
124
|
+
{
|
125
|
+
"document": "",
|
126
|
+
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExposures\n<公共请求参数>\n\n{}",
|
127
|
+
"output": "{\n \"Response\": {\n \"ExposeList\": [\n {\n \"AclList\": \"0.0.0.0/0\",\n \"AclType\": \"whitelist\",\n \"AssetId\": \"ins-bvxns9uy\",\n \"AssetType\": \"cvm_instance\",\n \"AssetTypeName\": \"云服务器\",\n \"CloudAccountId\": \"100010427547\",\n \"CloudAccountName\": \"安全攻防\",\n \"CreateTime\": \"2024-10-15T07:21:22Z\",\n \"DisplayRiskType\": \"非标端口\",\n \"DisplayStatus\": \"完全开放\",\n \"Domain\": \"\",\n \"HighRiskPortServiceCount\": 0,\n \"InstanceName\": \"tke_cls-5q9sj52q_worker21\",\n \"Ip\": \"175.178.22.29\",\n \"Port\": \"30000-32768\",\n \"PortServiceCount\": 0,\n \"Provider\": \"腾讯云\",\n \"RiskType\": \"no_standard_port\",\n \"RiskWebAppCount\": 0,\n \"Status\": \"open\",\n \"UpdateTime\": \"2025-01-14T02:31:55Z\",\n \"VulCount\": 0,\n \"WeakPasswordCount\": 0,\n \"WebAppCount\": 0,\n \"ScanTaskStatus\": \"running\",\n \"Uuid\": \"sadsds\",\n \"HasScan\": \"true\",\n \"AppId\": 12465129\n }\n ],\n \"RequestId\": \"0ce09587-eaba-4f70-ae9b-1a80b69ee21f\",\n \"TotalCount\": 102\n }\n}",
|
128
|
+
"title": "互联网暴露资产列表"
|
129
|
+
}
|
130
|
+
],
|
123
131
|
"DescribeGatewayAssets": [
|
124
132
|
{
|
125
133
|
"document": "示例",
|
@@ -291,7 +299,7 @@
|
|
291
299
|
"DescribeTopAttackInfo": [
|
292
300
|
{
|
293
301
|
"document": "",
|
294
|
-
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTopAttackInfo\n<公共请求参数>\n\n{\n \"MemberId\": [\n \"mem-tencent-1f94db8d0x231e0\"\n ]\n}",
|
302
|
+
"input": "POST / HTTP/1.1\nHost: csip.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTopAttackInfo\n<公共请求参数>\n\n{\n \"StartTime\": \"2024-10-24 00:00:00\",\n \"EndTime\": \"2024-10-30 23:59:59\",\n \"MemberId\": [\n \"mem-tencent-1f94db8d0x231e0\"\n ],\n \"QueryType\": 1\n}",
|
295
303
|
"output": "{\n \"Response\": {\n \"TopAttackInfo\": [\n {\n \"Name\": \"漏洞攻击\",\n \"Count\": 13\n }\n ],\n \"RequestId\": \"ab168264-2afb-4c51-bfb5-d8e24e0a03ac\"\n }\n}",
|
296
304
|
"title": "查询TOP攻击信息示例"
|
297
305
|
}
|