tccli 3.0.1180.1__py2.py3-none-any.whl → 3.0.1182.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/__init__.py +3 -0
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +185 -0
- tccli/services/cdb/v20170320/examples.json +17 -1
- tccli/services/cdwdoris/v20211228/api.json +27 -0
- tccli/services/clb/v20180317/api.json +59 -1
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/controlcenter/__init__.py +4 -0
- tccli/services/controlcenter/controlcenter_client.py +195 -0
- tccli/services/controlcenter/v20230110/api.json +82 -0
- tccli/services/controlcenter/v20230110/examples.json +13 -0
- tccli/services/csip/v20221121/api.json +308 -1
- tccli/services/cvm/v20170312/api.json +20 -20
- tccli/services/cvm/v20170312/examples.json +1 -1
- tccli/services/cwp/v20180228/api.json +3 -3
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +51 -12
- tccli/services/cynosdb/v20190107/examples.json +3 -3
- tccli/services/dasb/v20191018/api.json +11 -1
- tccli/services/dsgc/v20190723/api.json +18 -0
- tccli/services/es/v20180416/api.json +39 -1
- tccli/services/ess/v20201111/api.json +12 -2
- tccli/services/ess/v20201111/examples.json +1 -1
- tccli/services/essbasic/v20210526/api.json +12 -2
- tccli/services/essbasic/v20210526/examples.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +106 -0
- tccli/services/hunyuan/v20230901/api.json +235 -0
- tccli/services/hunyuan/v20230901/examples.json +16 -0
- tccli/services/iotexplorer/v20190423/api.json +2 -2
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/organization/organization_client.py +53 -0
- tccli/services/organization/v20210331/api.json +43 -0
- tccli/services/organization/v20210331/examples.json +8 -0
- tccli/services/redis/v20180412/api.json +16 -16
- tccli/services/scf/v20180416/api.json +29 -9
- tccli/services/ses/v20201002/api.json +148 -11
- tccli/services/sqlserver/v20180328/api.json +2 -2
- tccli/services/sqlserver/v20180328/examples.json +1 -1
- tccli/services/ssl/v20191205/api.json +10 -0
- tccli/services/tdmq/v20200217/api.json +10 -0
- tccli/services/tms/tms_client.py +0 -53
- tccli/services/tms/v20201229/api.json +2 -46
- tccli/services/tms/v20201229/examples.json +0 -8
- tccli/services/tmt/v20180321/api.json +3 -3
- tccli/services/wedata/v20210820/api.json +1568 -0
- tccli/services/wedata/v20210820/examples.json +54 -0
- tccli/services/wedata/wedata_client.py +334 -16
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/RECORD +54 -50
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1180.1.dist-info → tccli-3.0.1182.1.dist-info}/license_files/LICENSE +0 -0
@@ -0,0 +1,195 @@
|
|
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.controlcenter.v20230110 import controlcenter_client as controlcenter_client_v20230110
|
15
|
+
from tencentcloud.controlcenter.v20230110 import models as models_v20230110
|
16
|
+
|
17
|
+
from jmespath import search
|
18
|
+
import time
|
19
|
+
|
20
|
+
def doBatchApplyAccountBaselines(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.ControlcenterClient(cred, g_param[OptionsDefine.Region], profile)
|
47
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
48
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
+
model = models.BatchApplyAccountBaselinesRequest()
|
50
|
+
model.from_json_string(json.dumps(args))
|
51
|
+
start_time = time.time()
|
52
|
+
while True:
|
53
|
+
rsp = client.BatchApplyAccountBaselines(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
|
+
"v20230110": controlcenter_client_v20230110,
|
74
|
+
|
75
|
+
}
|
76
|
+
|
77
|
+
MODELS_MAP = {
|
78
|
+
"v20230110": models_v20230110,
|
79
|
+
|
80
|
+
}
|
81
|
+
|
82
|
+
ACTION_MAP = {
|
83
|
+
"BatchApplyAccountBaselines": doBatchApplyAccountBaselines,
|
84
|
+
|
85
|
+
}
|
86
|
+
|
87
|
+
AVAILABLE_VERSION_LIST = [
|
88
|
+
"v20230110",
|
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
|
+
|
100
|
+
is_exist_profile = True
|
101
|
+
if not parsed_globals["profile"]:
|
102
|
+
is_exist_profile = False
|
103
|
+
g_param["profile"] = os.environ.get("TCCLI_PROFILE", "default")
|
104
|
+
|
105
|
+
configure_path = os.path.join(os.path.expanduser("~"), ".tccli")
|
106
|
+
is_conf_exist, conf_path = Utils.file_existed(configure_path, g_param["profile"] + ".configure")
|
107
|
+
is_cred_exist, cred_path = Utils.file_existed(configure_path, g_param["profile"] + ".credential")
|
108
|
+
|
109
|
+
conf = {}
|
110
|
+
cred = {}
|
111
|
+
|
112
|
+
if is_conf_exist:
|
113
|
+
conf = Utils.load_json_msg(conf_path)
|
114
|
+
if is_cred_exist:
|
115
|
+
cred = Utils.load_json_msg(cred_path)
|
116
|
+
|
117
|
+
if not (isinstance(conf, dict) and isinstance(cred, dict)):
|
118
|
+
raise ConfigurationError(
|
119
|
+
"file: %s or %s is not json format"
|
120
|
+
% (g_param["profile"] + ".configure", g_param["profile"] + ".credential"))
|
121
|
+
|
122
|
+
if OptionsDefine.Token not in cred:
|
123
|
+
cred[OptionsDefine.Token] = None
|
124
|
+
|
125
|
+
if not is_exist_profile:
|
126
|
+
if os.environ.get(OptionsDefine.ENV_SECRET_ID) and os.environ.get(OptionsDefine.ENV_SECRET_KEY):
|
127
|
+
cred[OptionsDefine.SecretId] = os.environ.get(OptionsDefine.ENV_SECRET_ID)
|
128
|
+
cred[OptionsDefine.SecretKey] = os.environ.get(OptionsDefine.ENV_SECRET_KEY)
|
129
|
+
cred[OptionsDefine.Token] = os.environ.get(OptionsDefine.ENV_TOKEN)
|
130
|
+
|
131
|
+
if os.environ.get(OptionsDefine.ENV_REGION):
|
132
|
+
conf[OptionsDefine.SysParam][OptionsDefine.Region] = os.environ.get(OptionsDefine.ENV_REGION)
|
133
|
+
|
134
|
+
if os.environ.get(OptionsDefine.ENV_ROLE_ARN) and os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME):
|
135
|
+
cred[OptionsDefine.RoleArn] = os.environ.get(OptionsDefine.ENV_ROLE_ARN)
|
136
|
+
cred[OptionsDefine.RoleSessionName] = os.environ.get(OptionsDefine.ENV_ROLE_SESSION_NAME)
|
137
|
+
|
138
|
+
for param in g_param.keys():
|
139
|
+
if g_param[param] is None:
|
140
|
+
if param in [OptionsDefine.SecretKey, OptionsDefine.SecretId, OptionsDefine.Token]:
|
141
|
+
if param in cred:
|
142
|
+
g_param[param] = cred[param]
|
143
|
+
elif not (g_param[OptionsDefine.UseCVMRole.replace('-', '_')]
|
144
|
+
or os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN)):
|
145
|
+
raise ConfigurationError("%s is invalid" % param)
|
146
|
+
elif param in [OptionsDefine.Region, OptionsDefine.Output, OptionsDefine.Language]:
|
147
|
+
if param in conf[OptionsDefine.SysParam]:
|
148
|
+
g_param[param] = conf[OptionsDefine.SysParam][param]
|
149
|
+
elif param != OptionsDefine.Language:
|
150
|
+
raise ConfigurationError("%s is invalid" % param)
|
151
|
+
elif param.replace('_', '-') in [OptionsDefine.RoleArn, OptionsDefine.RoleSessionName]:
|
152
|
+
if param.replace('_', '-') in cred:
|
153
|
+
g_param[param] = cred[param.replace('_', '-')]
|
154
|
+
|
155
|
+
try:
|
156
|
+
if g_param[OptionsDefine.ServiceVersion]:
|
157
|
+
g_param[OptionsDefine.Version] = "v" + g_param[OptionsDefine.ServiceVersion].replace('-', '')
|
158
|
+
else:
|
159
|
+
version = conf["controlcenter"][OptionsDefine.Version]
|
160
|
+
g_param[OptionsDefine.Version] = "v" + version.replace('-', '')
|
161
|
+
|
162
|
+
if g_param[OptionsDefine.Endpoint] is None:
|
163
|
+
g_param[OptionsDefine.Endpoint] = conf["controlcenter"][OptionsDefine.Endpoint]
|
164
|
+
g_param["sts_cred_endpoint"] = conf.get("sts", {}).get("endpoint")
|
165
|
+
except Exception as err:
|
166
|
+
raise ConfigurationError("config file:%s error, %s" % (conf_path, str(err)))
|
167
|
+
|
168
|
+
if g_param[OptionsDefine.Version] not in AVAILABLE_VERSION_LIST:
|
169
|
+
raise Exception("available versions: %s" % " ".join(AVAILABLE_VERSION_LIST))
|
170
|
+
|
171
|
+
if g_param[OptionsDefine.Waiter]:
|
172
|
+
param = eval(g_param[OptionsDefine.Waiter])
|
173
|
+
if 'expr' not in param:
|
174
|
+
raise Exception('`expr` in `--waiter` must be defined')
|
175
|
+
if 'to' not in param:
|
176
|
+
raise Exception('`to` in `--waiter` must be defined')
|
177
|
+
if 'timeout' not in param:
|
178
|
+
if 'waiter' in conf and 'timeout' in conf['waiter']:
|
179
|
+
param['timeout'] = conf['waiter']['timeout']
|
180
|
+
else:
|
181
|
+
param['timeout'] = 180
|
182
|
+
if 'interval' not in param:
|
183
|
+
if 'waiter' in conf and 'interval' in conf['waiter']:
|
184
|
+
param['interval'] = conf['waiter']['interval']
|
185
|
+
else:
|
186
|
+
param['interval'] = 5
|
187
|
+
param['interval'] = min(param['interval'], param['timeout'])
|
188
|
+
g_param['OptionsDefine.WaiterInfo'] = param
|
189
|
+
|
190
|
+
if six.PY2:
|
191
|
+
for key, value in g_param.items():
|
192
|
+
if isinstance(value, six.text_type):
|
193
|
+
g_param[key] = value.encode('utf-8')
|
194
|
+
return g_param
|
195
|
+
|
@@ -0,0 +1,82 @@
|
|
1
|
+
{
|
2
|
+
"actions": {
|
3
|
+
"BatchApplyAccountBaselines": {
|
4
|
+
"document": "批量对存量账号应用基线",
|
5
|
+
"input": "BatchApplyAccountBaselinesRequest",
|
6
|
+
"name": "批量对存量账号应用基线",
|
7
|
+
"output": "BatchApplyAccountBaselinesResponse",
|
8
|
+
"status": "online"
|
9
|
+
}
|
10
|
+
},
|
11
|
+
"metadata": {
|
12
|
+
"apiVersion": "2023-01-10",
|
13
|
+
"api_brief": "通过控制中心API,通过API完成控制中心中产品能力的查看和设置",
|
14
|
+
"serviceNameCN": "控制中心",
|
15
|
+
"serviceShortName": "controlcenter"
|
16
|
+
},
|
17
|
+
"objects": {
|
18
|
+
"BaselineConfigItem": {
|
19
|
+
"document": "账号工厂基线配置项",
|
20
|
+
"members": [
|
21
|
+
{
|
22
|
+
"disabled": false,
|
23
|
+
"document": "账号工厂基线项唯一标识,只能包含英文字母、数字和@、,._[]-:()()【】+=,。,长度2-128个字符。\n注意:此字段可能返回 null,表示取不到有效值。",
|
24
|
+
"example": "ACS-BP_ACCOUNT_FACTORY_ACCOUNT_CONTACT",
|
25
|
+
"member": "string",
|
26
|
+
"name": "Identifier",
|
27
|
+
"required": false,
|
28
|
+
"type": "string",
|
29
|
+
"value_allowed_null": true
|
30
|
+
},
|
31
|
+
{
|
32
|
+
"disabled": false,
|
33
|
+
"document": "账号工厂基线项配置,不同基线项配置参数不同。\n注意:此字段可能返回 null,表示取不到有效值。",
|
34
|
+
"example": "{\\\"Contacts\\\":[{\\\"Name\\\":\\\"dest\\\",\\\"Email\\\":\\\"ia@22.com\\\",\\\"Mobile\\\":\\\"12345678910\\\",\\\"Position\\\":\\\"Technical Director\\\"}]}",
|
35
|
+
"member": "string",
|
36
|
+
"name": "Configuration",
|
37
|
+
"required": false,
|
38
|
+
"type": "string",
|
39
|
+
"value_allowed_null": true
|
40
|
+
}
|
41
|
+
],
|
42
|
+
"usage": "both"
|
43
|
+
},
|
44
|
+
"BatchApplyAccountBaselinesRequest": {
|
45
|
+
"document": "BatchApplyAccountBaselines请求参数结构体",
|
46
|
+
"members": [
|
47
|
+
{
|
48
|
+
"disabled": false,
|
49
|
+
"document": "成员账号uin,也是被应用基线的账号uin。",
|
50
|
+
"example": "[124254533, 13894929458]",
|
51
|
+
"member": "int64",
|
52
|
+
"name": "MemberUinList",
|
53
|
+
"required": true,
|
54
|
+
"type": "list"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"disabled": false,
|
58
|
+
"document": "基线项配置信息列表。",
|
59
|
+
"example": "[{\"Identifier\":\"ACS-BP_ACCOUNT_FACTORY_ACCOUNT_CONTACT\",\"Configuration\":\"{\\\"Contacts\\\":[{\\\"Name\\\":\\\"dest\\\",\\\"Email\\\":\\\"ia@22.com\\\",\\\"Mobile\\\":\\\"12345678910\\\",\\\"Position\\\":\\\"Technical Director\\\"}]}\"}]",
|
60
|
+
"member": "BaselineConfigItem",
|
61
|
+
"name": "BaselineConfigItems",
|
62
|
+
"required": true,
|
63
|
+
"type": "list"
|
64
|
+
}
|
65
|
+
],
|
66
|
+
"type": "object"
|
67
|
+
},
|
68
|
+
"BatchApplyAccountBaselinesResponse": {
|
69
|
+
"document": "BatchApplyAccountBaselines返回参数结构体",
|
70
|
+
"members": [
|
71
|
+
{
|
72
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
73
|
+
"member": "string",
|
74
|
+
"name": "RequestId",
|
75
|
+
"type": "string"
|
76
|
+
}
|
77
|
+
],
|
78
|
+
"type": "object"
|
79
|
+
}
|
80
|
+
},
|
81
|
+
"version": "1.0"
|
82
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"actions": {
|
3
|
+
"BatchApplyAccountBaselines": [
|
4
|
+
{
|
5
|
+
"document": "批量对存量账号应用基线",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: controlcenter.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BatchApplyAccountBaselines\n<公共请求参数>\n\n{\n \"MemberUinList\": [\n 13436673356\n ],\n \"BaselineConfigItems\": [\n {\n \"Identifier\": \"ACS-BP_ACCOUNT_FACTORY_ACCOUNT_CONTACT\",\n \"Configuration\": \"{\\\"Contacts\\\":[{\\\"Name\\\":\\\"dest\\\",\\\"Email\\\":\\\"ia@22.com\\\",\\\"Mobile\\\":\\\"12345678910\\\",\\\"Position\\\":\\\"Technical Director\\\"}]}\"\n }\n ]\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e2f35fb3-3c8c-431e-b318-b4746cfe076c\"\n }\n}",
|
8
|
+
"title": "批量对存量账号应用基线"
|
9
|
+
}
|
10
|
+
]
|
11
|
+
},
|
12
|
+
"version": "1.0"
|
13
|
+
}
|
@@ -1097,6 +1097,237 @@
|
|
1097
1097
|
"required": false,
|
1098
1098
|
"type": "string",
|
1099
1099
|
"value_allowed_null": true
|
1100
|
+
},
|
1101
|
+
{
|
1102
|
+
"disabled": false,
|
1103
|
+
"document": "进程名\n注意:此字段可能返回 null,表示取不到有效值。",
|
1104
|
+
"example": "无",
|
1105
|
+
"member": "string",
|
1106
|
+
"name": "ProcessName",
|
1107
|
+
"output_required": false,
|
1108
|
+
"required": false,
|
1109
|
+
"type": "string",
|
1110
|
+
"value_allowed_null": true
|
1111
|
+
},
|
1112
|
+
{
|
1113
|
+
"disabled": false,
|
1114
|
+
"document": "PID\n注意:此字段可能返回 null,表示取不到有效值。",
|
1115
|
+
"example": "无",
|
1116
|
+
"member": "string",
|
1117
|
+
"name": "PID",
|
1118
|
+
"output_required": false,
|
1119
|
+
"required": false,
|
1120
|
+
"type": "string",
|
1121
|
+
"value_allowed_null": true
|
1122
|
+
},
|
1123
|
+
{
|
1124
|
+
"disabled": false,
|
1125
|
+
"document": "容器Pod名\n注意:此字段可能返回 null,表示取不到有效值。",
|
1126
|
+
"example": "无",
|
1127
|
+
"member": "string",
|
1128
|
+
"name": "PodName",
|
1129
|
+
"output_required": false,
|
1130
|
+
"required": false,
|
1131
|
+
"type": "string",
|
1132
|
+
"value_allowed_null": true
|
1133
|
+
},
|
1134
|
+
{
|
1135
|
+
"disabled": false,
|
1136
|
+
"document": "容器PodID\n注意:此字段可能返回 null,表示取不到有效值。",
|
1137
|
+
"example": "无",
|
1138
|
+
"member": "string",
|
1139
|
+
"name": "PodID",
|
1140
|
+
"output_required": false,
|
1141
|
+
"required": false,
|
1142
|
+
"type": "string",
|
1143
|
+
"value_allowed_null": true
|
1144
|
+
},
|
1145
|
+
{
|
1146
|
+
"disabled": false,
|
1147
|
+
"document": "Http响应\n注意:此字段可能返回 null,表示取不到有效值。",
|
1148
|
+
"example": "无",
|
1149
|
+
"member": "string",
|
1150
|
+
"name": "Response",
|
1151
|
+
"output_required": false,
|
1152
|
+
"required": false,
|
1153
|
+
"type": "string",
|
1154
|
+
"value_allowed_null": true
|
1155
|
+
},
|
1156
|
+
{
|
1157
|
+
"disabled": false,
|
1158
|
+
"document": "系统调用\n注意:此字段可能返回 null,表示取不到有效值。",
|
1159
|
+
"example": "无",
|
1160
|
+
"member": "string",
|
1161
|
+
"name": "SystemCall",
|
1162
|
+
"output_required": false,
|
1163
|
+
"required": false,
|
1164
|
+
"type": "string",
|
1165
|
+
"value_allowed_null": true
|
1166
|
+
},
|
1167
|
+
{
|
1168
|
+
"disabled": false,
|
1169
|
+
"document": "操作类型verb\n注意:此字段可能返回 null,表示取不到有效值。",
|
1170
|
+
"example": "无",
|
1171
|
+
"member": "string",
|
1172
|
+
"name": "Verb",
|
1173
|
+
"output_required": false,
|
1174
|
+
"required": false,
|
1175
|
+
"type": "string",
|
1176
|
+
"value_allowed_null": true
|
1177
|
+
},
|
1178
|
+
{
|
1179
|
+
"disabled": false,
|
1180
|
+
"document": "日志ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
1181
|
+
"example": "无",
|
1182
|
+
"member": "string",
|
1183
|
+
"name": "LogID",
|
1184
|
+
"output_required": false,
|
1185
|
+
"required": false,
|
1186
|
+
"type": "string",
|
1187
|
+
"value_allowed_null": true
|
1188
|
+
},
|
1189
|
+
{
|
1190
|
+
"disabled": false,
|
1191
|
+
"document": "变更内容\n注意:此字段可能返回 null,表示取不到有效值。",
|
1192
|
+
"example": "无",
|
1193
|
+
"member": "string",
|
1194
|
+
"name": "Different",
|
1195
|
+
"output_required": false,
|
1196
|
+
"required": false,
|
1197
|
+
"type": "string",
|
1198
|
+
"value_allowed_null": true
|
1199
|
+
},
|
1200
|
+
{
|
1201
|
+
"disabled": false,
|
1202
|
+
"document": "事件类型\n注意:此字段可能返回 null,表示取不到有效值。",
|
1203
|
+
"example": "无",
|
1204
|
+
"member": "string",
|
1205
|
+
"name": "EventType",
|
1206
|
+
"output_required": false,
|
1207
|
+
"required": false,
|
1208
|
+
"type": "string",
|
1209
|
+
"value_allowed_null": true
|
1210
|
+
},
|
1211
|
+
{
|
1212
|
+
"disabled": false,
|
1213
|
+
"document": "事件描述\n注意:此字段可能返回 null,表示取不到有效值。",
|
1214
|
+
"example": "无",
|
1215
|
+
"member": "string",
|
1216
|
+
"name": "Description",
|
1217
|
+
"output_required": false,
|
1218
|
+
"required": false,
|
1219
|
+
"type": "string",
|
1220
|
+
"value_allowed_null": true
|
1221
|
+
},
|
1222
|
+
{
|
1223
|
+
"disabled": false,
|
1224
|
+
"document": "目标地址(容器反弹shell)\n注意:此字段可能返回 null,表示取不到有效值。",
|
1225
|
+
"example": "无",
|
1226
|
+
"member": "string",
|
1227
|
+
"name": "TargetAddress",
|
1228
|
+
"output_required": false,
|
1229
|
+
"required": false,
|
1230
|
+
"type": "string",
|
1231
|
+
"value_allowed_null": true
|
1232
|
+
},
|
1233
|
+
{
|
1234
|
+
"disabled": false,
|
1235
|
+
"document": "恶意请求域名(容器恶意外联)\n注意:此字段可能返回 null,表示取不到有效值。",
|
1236
|
+
"example": "无",
|
1237
|
+
"member": "string",
|
1238
|
+
"name": "MaliciousRequestDomain",
|
1239
|
+
"output_required": false,
|
1240
|
+
"required": false,
|
1241
|
+
"type": "string",
|
1242
|
+
"value_allowed_null": true
|
1243
|
+
},
|
1244
|
+
{
|
1245
|
+
"disabled": false,
|
1246
|
+
"document": "规则类型(容器K8sAPI异常请求)\n注意:此字段可能返回 null,表示取不到有效值。",
|
1247
|
+
"example": "无",
|
1248
|
+
"member": "string",
|
1249
|
+
"name": "RuleType",
|
1250
|
+
"output_required": false,
|
1251
|
+
"required": false,
|
1252
|
+
"type": "string",
|
1253
|
+
"value_allowed_null": true
|
1254
|
+
},
|
1255
|
+
{
|
1256
|
+
"disabled": false,
|
1257
|
+
"document": "请求资源(容器K8sAPI异常请求)\n注意:此字段可能返回 null,表示取不到有效值。",
|
1258
|
+
"example": "无",
|
1259
|
+
"member": "string",
|
1260
|
+
"name": "RequestURI",
|
1261
|
+
"output_required": false,
|
1262
|
+
"required": false,
|
1263
|
+
"type": "string",
|
1264
|
+
"value_allowed_null": true
|
1265
|
+
},
|
1266
|
+
{
|
1267
|
+
"disabled": false,
|
1268
|
+
"document": "发起请求用户(容器K8sAPI异常请求)\n注意:此字段可能返回 null,表示取不到有效值。",
|
1269
|
+
"example": "无",
|
1270
|
+
"member": "string",
|
1271
|
+
"name": "RequestUser",
|
1272
|
+
"output_required": false,
|
1273
|
+
"required": false,
|
1274
|
+
"type": "string",
|
1275
|
+
"value_allowed_null": true
|
1276
|
+
},
|
1277
|
+
{
|
1278
|
+
"disabled": false,
|
1279
|
+
"document": "请求对象(容器K8sAPI异常请求)\n注意:此字段可能返回 null,表示取不到有效值。",
|
1280
|
+
"example": "无",
|
1281
|
+
"member": "string",
|
1282
|
+
"name": "RequestObject",
|
1283
|
+
"output_required": false,
|
1284
|
+
"required": false,
|
1285
|
+
"type": "string",
|
1286
|
+
"value_allowed_null": true
|
1287
|
+
},
|
1288
|
+
{
|
1289
|
+
"disabled": false,
|
1290
|
+
"document": "响应对象(容器K8sAPI异常请求)\n注意:此字段可能返回 null,表示取不到有效值。",
|
1291
|
+
"example": "无",
|
1292
|
+
"member": "string",
|
1293
|
+
"name": "ResponseObject",
|
1294
|
+
"output_required": false,
|
1295
|
+
"required": false,
|
1296
|
+
"type": "string",
|
1297
|
+
"value_allowed_null": true
|
1298
|
+
},
|
1299
|
+
{
|
1300
|
+
"disabled": false,
|
1301
|
+
"document": "文件类型(容器文件篡改)\n注意:此字段可能返回 null,表示取不到有效值。",
|
1302
|
+
"example": "无",
|
1303
|
+
"member": "string",
|
1304
|
+
"name": "FileType",
|
1305
|
+
"output_required": false,
|
1306
|
+
"required": false,
|
1307
|
+
"type": "string",
|
1308
|
+
"value_allowed_null": true
|
1309
|
+
},
|
1310
|
+
{
|
1311
|
+
"disabled": false,
|
1312
|
+
"document": "标签特征(容器恶意外联)\n注意:此字段可能返回 null,表示取不到有效值。",
|
1313
|
+
"example": "无",
|
1314
|
+
"member": "string",
|
1315
|
+
"name": "TIType",
|
1316
|
+
"output_required": false,
|
1317
|
+
"required": false,
|
1318
|
+
"type": "string",
|
1319
|
+
"value_allowed_null": true
|
1320
|
+
},
|
1321
|
+
{
|
1322
|
+
"disabled": false,
|
1323
|
+
"document": "来源IP(容器K8sAPI异常请求)\n注意:此字段可能返回 null,表示取不到有效值。",
|
1324
|
+
"example": "无",
|
1325
|
+
"member": "string",
|
1326
|
+
"name": "SourceIP",
|
1327
|
+
"output_required": false,
|
1328
|
+
"required": false,
|
1329
|
+
"type": "string",
|
1330
|
+
"value_allowed_null": true
|
1100
1331
|
}
|
1101
1332
|
],
|
1102
1333
|
"usage": "both"
|
@@ -1400,6 +1631,28 @@
|
|
1400
1631
|
"required": false,
|
1401
1632
|
"type": "string",
|
1402
1633
|
"value_allowed_null": true
|
1634
|
+
},
|
1635
|
+
{
|
1636
|
+
"disabled": false,
|
1637
|
+
"document": "日志类型\n注意:此字段可能返回 null,表示取不到有效值。",
|
1638
|
+
"example": "无",
|
1639
|
+
"member": "string",
|
1640
|
+
"name": "LogType",
|
1641
|
+
"output_required": false,
|
1642
|
+
"required": false,
|
1643
|
+
"type": "string",
|
1644
|
+
"value_allowed_null": true
|
1645
|
+
},
|
1646
|
+
{
|
1647
|
+
"disabled": false,
|
1648
|
+
"document": "语句检索\n注意:此字段可能返回 null,表示取不到有效值。",
|
1649
|
+
"example": "无",
|
1650
|
+
"member": "string",
|
1651
|
+
"name": "LogSearch",
|
1652
|
+
"output_required": false,
|
1653
|
+
"required": false,
|
1654
|
+
"type": "string",
|
1655
|
+
"value_allowed_null": true
|
1403
1656
|
}
|
1404
1657
|
],
|
1405
1658
|
"usage": "both"
|
@@ -3643,7 +3896,7 @@
|
|
3643
3896
|
"usage": "out"
|
3644
3897
|
},
|
3645
3898
|
"CVMAssetVO": {
|
3646
|
-
"document": "
|
3899
|
+
"document": "主机资产信息\n\n主机防护状态枚举,左边是常量,右边是显示\n0:未安装\n1:基础版防护中\n2:普惠版防护中\n3:专业版防护中\n4:旗舰版防护中\n5:已离线\n6:已关机",
|
3647
3900
|
"members": [
|
3648
3901
|
{
|
3649
3902
|
"disabled": false,
|
@@ -4359,6 +4612,28 @@
|
|
4359
4612
|
"required": false,
|
4360
4613
|
"type": "int",
|
4361
4614
|
"value_allowed_null": true
|
4615
|
+
},
|
4616
|
+
{
|
4617
|
+
"disabled": false,
|
4618
|
+
"document": "主机防护状态枚举\n0:未安装\n1:基础版防护中\n2:普惠版防护中\n3:专业版防护中\n4:旗舰版防护中\n5:已离线\n6:已关机\n注意:此字段可能返回 null,表示取不到有效值。",
|
4619
|
+
"example": "0",
|
4620
|
+
"member": "int64",
|
4621
|
+
"name": "ProtectStatus",
|
4622
|
+
"output_required": false,
|
4623
|
+
"required": false,
|
4624
|
+
"type": "int",
|
4625
|
+
"value_allowed_null": true
|
4626
|
+
},
|
4627
|
+
{
|
4628
|
+
"disabled": false,
|
4629
|
+
"document": "最后离线时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
4630
|
+
"example": "2024-08-07 10:01:01",
|
4631
|
+
"member": "string",
|
4632
|
+
"name": "OfflineTime",
|
4633
|
+
"output_required": false,
|
4634
|
+
"required": false,
|
4635
|
+
"type": "string",
|
4636
|
+
"value_allowed_null": true
|
4362
4637
|
}
|
4363
4638
|
],
|
4364
4639
|
"usage": "both"
|
@@ -5824,6 +6099,16 @@
|
|
5824
6099
|
"type": "list",
|
5825
6100
|
"value_allowed_null": true
|
5826
6101
|
},
|
6102
|
+
{
|
6103
|
+
"disabled": false,
|
6104
|
+
"document": "主机防护状态\n注意:此字段可能返回 null,表示取不到有效值。",
|
6105
|
+
"example": "无",
|
6106
|
+
"member": "FilterDataObject",
|
6107
|
+
"name": "ProtectStatusList",
|
6108
|
+
"output_required": false,
|
6109
|
+
"type": "list",
|
6110
|
+
"value_allowed_null": true
|
6111
|
+
},
|
5827
6112
|
{
|
5828
6113
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
5829
6114
|
"member": "string",
|
@@ -10911,6 +11196,28 @@
|
|
10911
11196
|
"required": false,
|
10912
11197
|
"type": "list",
|
10913
11198
|
"value_allowed_null": true
|
11199
|
+
},
|
11200
|
+
{
|
11201
|
+
"disabled": false,
|
11202
|
+
"document": "容器名\n注意:此字段可能返回 null,表示取不到有效值。",
|
11203
|
+
"example": "无",
|
11204
|
+
"member": "string",
|
11205
|
+
"name": "ContainerName",
|
11206
|
+
"output_required": false,
|
11207
|
+
"required": false,
|
11208
|
+
"type": "string",
|
11209
|
+
"value_allowed_null": true
|
11210
|
+
},
|
11211
|
+
{
|
11212
|
+
"disabled": false,
|
11213
|
+
"document": "容器ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
11214
|
+
"example": "无",
|
11215
|
+
"member": "string",
|
11216
|
+
"name": "ContainerID",
|
11217
|
+
"output_required": false,
|
11218
|
+
"required": false,
|
11219
|
+
"type": "string",
|
11220
|
+
"value_allowed_null": true
|
10914
11221
|
}
|
10915
11222
|
],
|
10916
11223
|
"usage": "both"
|