tccli 3.0.1380.1__py2.py3-none-any.whl → 3.0.1381.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/ioa/v20220601/api.json +22 -13
- tccli/services/lke/v20231130/api.json +91 -8
- tccli/services/lkeap/v20240522/api.json +47 -1
- tccli/services/lkeap/v20240522/examples.json +6 -0
- tccli/services/mna/mna_client.py +53 -0
- tccli/services/mna/v20210119/api.json +137 -0
- tccli/services/mna/v20210119/examples.json +8 -0
- tccli/services/monitor/v20180724/api.json +2 -2
- tccli/services/oceanus/v20190422/api.json +105 -17
- tccli/services/redis/v20180412/api.json +3 -3
- tccli/services/redis/v20180412/examples.json +1 -1
- tccli/services/tcb/v20180608/api.json +10 -0
- tccli/services/tcbr/v20220217/api.json +10 -0
- tccli/services/tke/v20180525/api.json +11 -11
- tccli/services/waf/v20180125/api.json +1442 -102
- tccli/services/waf/v20180125/examples.json +48 -0
- tccli/services/waf/waf_client.py +338 -20
- {tccli-3.0.1380.1.dist-info → tccli-3.0.1381.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1380.1.dist-info → tccli-3.0.1381.1.dist-info}/RECORD +23 -23
- {tccli-3.0.1380.1.dist-info → tccli-3.0.1381.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1380.1.dist-info → tccli-3.0.1381.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1380.1.dist-info → tccli-3.0.1381.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1381.1'
|
@@ -1610,7 +1610,7 @@
|
|
1610
1610
|
{
|
1611
1611
|
"disabled": false,
|
1612
1612
|
"document": "滤条件、分页参数 <li>Name - String - 是否必填:否 - 操作符: like - 排序支持:否- 按终端自定义分组过滤。</li> <li>DeviceVirtualGroupName - String - 是否必填:否 - 操作符: like - 排序支持:否- 按终端自定义分组过滤。</li>",
|
1613
|
-
"example": "
|
1613
|
+
"example": "无",
|
1614
1614
|
"member": "Condition",
|
1615
1615
|
"name": "Condition",
|
1616
1616
|
"required": false,
|
@@ -1618,7 +1618,7 @@
|
|
1618
1618
|
},
|
1619
1619
|
{
|
1620
1620
|
"disabled": false,
|
1621
|
-
"document": "
|
1621
|
+
"document": "系统类型(0: win,1:linux,2: mac,4:android,5:ios 默认值0)",
|
1622
1622
|
"example": "0",
|
1623
1623
|
"member": "int64",
|
1624
1624
|
"name": "OsType",
|
@@ -1643,7 +1643,7 @@
|
|
1643
1643
|
{
|
1644
1644
|
"disabled": false,
|
1645
1645
|
"document": "查询终端自定义分组的Data数据",
|
1646
|
-
"example": "
|
1646
|
+
"example": "无",
|
1647
1647
|
"member": "DescribeDeviceVirtualGroupsPageRsp",
|
1648
1648
|
"name": "Data",
|
1649
1649
|
"output_required": false,
|
@@ -1690,10 +1690,19 @@
|
|
1690
1690
|
"DescribeDevicesRequest": {
|
1691
1691
|
"document": "DescribeDevices请求参数结构体",
|
1692
1692
|
"members": [
|
1693
|
+
{
|
1694
|
+
"disabled": false,
|
1695
|
+
"document": "管理域实例ID,用于CAM管理域权限分配。若企业未进行管理域的划分,可直接传入根域\"1\",此时表示针对当前企业的全部设备和账号进行接口CRUD,具体CRUD的影响范围限制于相应接口的入参。",
|
1696
|
+
"example": "1",
|
1697
|
+
"member": "string",
|
1698
|
+
"name": "DomainInstanceId",
|
1699
|
+
"required": false,
|
1700
|
+
"type": "string"
|
1701
|
+
},
|
1693
1702
|
{
|
1694
1703
|
"disabled": false,
|
1695
1704
|
"document": "过滤条件参数(字段含义请参考接口返回值)\n\n- Mid, 类型String,支持操作:【eq,like,ilike】,支持排序\n- Name, 类型String,支持操作:【eq,like,ilike】,支持排序\n- Itime, 类型String,支持操作:【eq,like,ilike】,支持排序\n- UserName, 类型String,支持操作:【eq,like,ilike】,支持排序\n- MacAddr, 类型String,支持操作:【eq,like,ilike】,支持排序\n- UserId, 类型String,支持操作:【eq,like,ilike】,支持排序\n- Ip, 类型String,支持操作:【eq,like,ilike】,支持排序\n- Tags,类型String,支持操作:【eq,like,ilike】,支持排序\n- LocalIpList,类型String,支持操作:【eq,like,ilike】,支持排序\n- SerialNum,类型String,支持操作:【eq,like,ilike】,支持排序\n- Version,类型String,支持操作:【eq,like,ilike】,支持排序\n- StrVersion,类型String,支持操作:【eq,like,ilike】,支持排序\n- RtpStatus,类型String,支持操作:【eq,like,ilike】,**不支持排序**\n- HostName,类型String,支持操作:【eq,like,ilike】,支持排序\n- IoaUserName,类型String,支持操作:【eq,like,ilike】,支持排序\n- GroupName,类型String,支持操作:【eq,like,ilike】,支持排序\n- CriticalVulListCount,**类型Int**,支持操作:【eq】,**不支持排序**\n- RiskCount,**类型Int**,支持操作:【eq】,**不支持排序**\n- VulVersion,类型String,支持操作:【eq,like,ilike】,**不支持排序**\n- Virusver,类型String,支持操作:【eq,like,ilike】,**不支持排序**\n- SysRepver,类型String,支持操作:【eq,like,ilike】,**不支持排序**\n- BaseBoardSn,类型String,支持操作:【eq,like,ilike】,支持排序\n- Os,类型String,支持操作:【eq,like,ilike】,支持排序\n- ConnActiveTime,类型String,支持操作:【eq,like,ilike】,**不支持排序**\n- FirewallStatus,**类型Int**,支持操作:【eq】,**不支持排序**\n- ProfileName,类型String,支持操作:【eq,like,ilike】,支持排序\n- DomainName,类型String,支持操作:【eq,like,ilike】,支持排序\n- SysRepVersion,类型String,支持操作:【eq,like,ilike】,支持排序\n- VirusVer,类型String,支持操作:【eq,like,ilike】,支持排序\n- Cpu,类型String,支持操作:【eq,like,ilike】,支持排序\n- Memory,类型String,支持操作:【eq,like,ilike】,支持排序\n- HardDiskSize,类型String,支持操作:【eq,like,ilike】,支持排序\n- HardwareChangeCount,**类型Int**,支持操作:【eq】,支持排序\n- AccountName,类型String,支持操作:【like.ilike】,支持排序\n- AccountGroupName,类型String,支持操作:【like.ilike】,支持排序\n- ScreenRecordingPermission,**类型Int**,支持操作:【eq】,支持排序\n- DiskAccessPermission,**类型Int**,支持操作:【eq】,支持排序\n\n\n\n\n\n分页参数\n- PageNum 从1开始,小于等于0时使用默认参数\n- PageSize 最大值5000,最好不超过100",
|
1696
|
-
"example": "
|
1705
|
+
"example": "无",
|
1697
1706
|
"member": "Condition",
|
1698
1707
|
"name": "Condition",
|
1699
1708
|
"required": false,
|
@@ -1710,7 +1719,7 @@
|
|
1710
1719
|
},
|
1711
1720
|
{
|
1712
1721
|
"disabled": false,
|
1713
|
-
"document": "
|
1722
|
+
"document": "操作系统类型(0: win,1:linux,2: mac,4:android,5:ios 默认值0),需要和GroupId或者GroupIds匹配",
|
1714
1723
|
"example": "0",
|
1715
1724
|
"member": "int64",
|
1716
1725
|
"name": "OsType",
|
@@ -1729,7 +1738,7 @@
|
|
1729
1738
|
{
|
1730
1739
|
"disabled": false,
|
1731
1740
|
"document": "过滤条件--兼容旧接口,参数同Condition",
|
1732
|
-
"example": "
|
1741
|
+
"example": "无",
|
1733
1742
|
"member": "Filter",
|
1734
1743
|
"name": "Filters",
|
1735
1744
|
"required": false,
|
@@ -1738,7 +1747,7 @@
|
|
1738
1747
|
{
|
1739
1748
|
"disabled": false,
|
1740
1749
|
"document": "排序字段--兼容旧接口,参数同Condition",
|
1741
|
-
"example": "
|
1750
|
+
"example": "无",
|
1742
1751
|
"member": "Sort",
|
1743
1752
|
"name": "Sort",
|
1744
1753
|
"required": false,
|
@@ -1774,7 +1783,7 @@
|
|
1774
1783
|
{
|
1775
1784
|
"disabled": false,
|
1776
1785
|
"document": "【和GroupId必须有一个填写】设备分组id列表(需要和OsType匹配)\n",
|
1777
|
-
"example": "93",
|
1786
|
+
"example": "[93]",
|
1778
1787
|
"member": "int64",
|
1779
1788
|
"name": "GroupIds",
|
1780
1789
|
"required": false,
|
@@ -1789,7 +1798,7 @@
|
|
1789
1798
|
{
|
1790
1799
|
"disabled": false,
|
1791
1800
|
"document": "分页的data数据",
|
1792
|
-
"example": " { \"Data\": { \"Items\": [ { \"CriticalVulListCount\": 0, \"Camera\": 1, \"Desktop\": 1, \"UDisk\": 1, \"Download\": 1, \"SysFile\": 1, \"Reg\": 1, \"Proc\": 1, \"Mid\": \"348F553431765C49EAA34F373001D8106572EA05\", \"Guid\": \"348F553431765C49EAA34F373001D810\", \"Computer\": \"VMware, Inc. None\", \"Cpu\": \"Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz\", \"MainBoard\": \"Intel Corporation 440BX Desktop Reference Platform\", \"GroupNamePath\": \"全网终端.未分组终端\", \"OsType\": 0, \"GroupName\": \"未分组终端\", \"HardDiskSize\": \"VMware Virtual NVMe Disk 59 GB\", \"AccountName\": \"canaan\", \"VideoCard\": \"VMware SVGA 3D\", \"AccountGroupIdPath\": \"\", \"NetworkCard\": \"Intel(R) 82574L Gigabit Network Connection\", \"Monitor\": \"\", \"AudioCard\": \"High Definition Audio Device\", \"OsBits\": 64, \"OsVersion\": \"10.0.18363\", \"OsLanguage\": \"简体中文\", \"OsInstallDate\": \"20230417175437.000000+480\", \"ComputerName\": \"DESKTOP-QRDNJ1O\", \"DomainName\": \"\", \"MacAddr\": \"00:0C:29:C1:28:2E\", \"VulCount\": 0, \"RiskCount\": 0, \"VirusVer\": \"2.0.13712.315\", \"VulVersion\": \"2023.12.01.15.05.16\", \"Itime\": \"2023-12-08T18:03:49.688332+08:00\", \"SysRepVersion\": \"2023.01.04.16.34.51\", \"Utime\": \"2023-12-08T23:33:25.320371+08:00\", \"RiskScanTime\": \"\", \"VulScanTime\": \"\", \"VulCriticalList\": [], \"VulIgnoreCount\": 0, \"Tags\": \"\", \"UserName\": \"canaanzhu\", \"CloudQueryState\": 3, \"FirewallStatus\": 0, \"SerialNum\": \"VMware-56 4d fc 76 58 77 77 69-b9 6c 6e 35 58 c1 28 2e\", \"IsRoot\": 0, \"DeviceStrategyVer\": \"2023-12-08 18:11:00\", \"NGNStrategyVer\": \"2023-12-08 18:15:00\", \"IOAUserName\": \"canaan\", \"DeviceNewStrategyVer\": \"2024-11-06 10:51:00\", \"NGNNewStrategyVer\": \"2024-10-15 20:00:00\", \"DeviceMark\": \"canaan\", \"HostName\": \"\", \"Profiles\": [], \"ProfileFileTotal\": 0, \"ProfileFileInstalled\": 0, \"Sort\": 0, \"BaseBoardSn\": \"\", \"AccountUsers\": \"\", \"IdentityStrategyVer\": \"\", \"IdentityNewStrategyVer\": \"\", \"AccountList\": [], \"NoPermission\": 0, \"BaseBoardManufacturer\": \"\", \"MemoryDetail\": \"\", \"SystemArchitecture\": \"\", \"HardwareChangeCount\": 0, \"RealTimeProtectionStatus\": 0, \"GroupId\": 67, \"ScreenRecordingPermission\": 0, \"DiskAccessPermission\": 0, \"Id\": 36488, \"Ip\": \"59.37.125.62\", \"Description\": \"\", \"AccountGroupSource\": 0, \"AccountGroupId\": 7, \"AccountGroupName\": \"sarielliutest\", \"ProfileFileNotInstall\": [], \"Memory\": \"2 GB\", \"Status\": 5, \"OnlineStatus\": 1, \"Locked\": 0, \"StrVersion\": \"208.12.18778.62001\", \"Version\": \"58546847926121009\", \"Os\": \"Microsoft Windows 10 教育版\", \"Driver\": 1, \"ConnActiveTime\": \"2023-12-08T23:49:21.642365+08:00\", \"Hacker\": 1, \"LocalIpList\": \"192.168.54.128\", \"Name\": \"DESKTOP-QRDNJ1O\", \"HostId\": 0, \"GroupFromAuto\": 0 }, { \"CriticalVulListCount\": 0, \"Camera\": 1, \"Desktop\": 1, \"UDisk\": 1, \"Download\": 1, \"SysFile\": 1, \"Reg\": 1, \"Proc\": 1, \"Mid\": \"AAA23147EA9AFBDB64DBB51BF703B4B96527F461\", \"Guid\": \"AAA23147EA9AFBDB64DBB51BF703B4B9\", \"Computer\": \"LENOVO ThinkPad X1 Extreme Gen 4i\", \"Cpu\": \"11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz\", \"MainBoard\": \"LENOVO 20Y6S12Q00 SDK0J40675 WIN\", \"GroupNamePath\": \"全网终端.未分组终端\", \"OsType\": 0, \"GroupName\": \"未分组终端\", \"HardDiskSize\": \"WDC PC SN730 SDBQNTY-1T00-1001 953 GB\", \"AccountName\": \"sarielliu@tencent.com\", \"VideoCard\": \"Intel(R) UHD Graphics | NVIDIA GeForce RTX 3050 Ti Laptop GPU\", \"AccountGroupIdPath\": \"\", \"NetworkCard\": \"Intel(R) Wi-Fi 6E AX210 160MHz\", \"Monitor\": \"\", \"AudioCard\": \"NVIDIA High Definition Audio | Realtek High Definition Audio(SST) | 适用于 USB 音频的英特尔® 智音技术 | 适用于数字麦克风的英特尔® 智音技术\", \"OsBits\": 64, \"OsVersion\": \"10.0.19045\", \"OsLanguage\": \"简体中文\", \"OsInstallDate\": \"20240116154100.000000+480\", \"ComputerName\": \"SARIELLIU-NB4\", \"DomainName\": \"\", \"MacAddr\": \"F0:B6:1E:57:21:19\", \"VulCount\": 0, \"RiskCount\": 0, \"VirusVer\": \"2.0.13712.288\", \"VulVersion\": \"2024.08.19.11.28.16\", \"Itime\": \"2023-10-12T21:28:01.794806+08:00\", \"SysRepVersion\": \"2024.09.05.09.00.49\", \"Utime\": \"2024-09-12T21:27:52.468659+08:00\", \"RiskScanTime\": \"2024-03-28T17:26:59.199403+08:00\", \"VulScanTime\": \"2023-11-02T20:38:19.422357+08:00\", \"VulCriticalList\": [], \"VulIgnoreCount\": 0, \"Tags\": \"\", \"UserName\": \"sarielliu\", \"CloudQueryState\": 3, \"FirewallStatus\": 1, \"SerialNum\": \"PW021WJP\", \"IsRoot\": 0, \"DeviceStrategyVer\": \"2024-09-02 16:22:00\", \"NGNStrategyVer\": \"2023-12-25 09:53:00\", \"IOAUserName\": \"sarielliu\", \"DeviceNewStrategyVer\": \"2024-11-06 10:51:00\", \"NGNNewStrategyVer\": \"2024-10-15 20:00:00\", \"DeviceMark\": \"sarielliu\", \"HostName\": \"\", \"Profiles\": [], \"ProfileFileTotal\": 0, \"ProfileFileInstalled\": 0, \"Sort\": 0, \"BaseBoardSn\": \"W2CG24S00F2\", \"AccountUsers\": \"\", \"IdentityStrategyVer\": \"\", \"IdentityNewStrategyVer\": \"\", \"AccountList\": [], \"NoPermission\": 0, \"BaseBoardManufacturer\": \"\", \"MemoryDetail\": \"\", \"SystemArchitecture\": \"\", \"HardwareChangeCount\": 8, \"RealTimeProtectionStatus\": 0, \"GroupId\": 67, \"ScreenRecordingPermission\": 0, \"DiskAccessPermission\": 0, \"Id\": 32599, \"Ip\": \"113.108.77.57\", \"Description\": \"\", \"AccountGroupSource\": 0, \"AccountGroupId\": 7, \"AccountGroupName\": \"sarielliutest\", \"ProfileFileNotInstall\": [], \"Memory\": \"32 GB\", \"Status\": 5, \"OnlineStatus\": 1, \"Locked\": 0, \"StrVersion\": \"209.4.20987.62001\", \"Version\": \"58828288687862321\", \"Os\": \"Microsoft Windows 10 专业版\", \"Driver\": 1, \"ConnActiveTime\": \"2024-09-12T21:58:33.210869+08:00\", \"Hacker\": 1, \"LocalIpList\": \"10.64.87.90\", \"Name\": \"SARIELLIU-NB4\", \"HostId\": 0, \"GroupFromAuto\": 0 }, { \"CriticalVulListCount\": 0, \"Camera\": 1, \"Desktop\": 1, \"UDisk\": 1, \"Download\": 1, \"SysFile\": 1, \"Reg\": 1, \"Proc\": 1, \"Mid\": \"6A925DB4A3223F6CC38488D0E241AE0B5D14B363\", \"Guid\": \"6A925DB4A3223F6CC38488D0E241AE0B\", \"Computer\": \"LENOVO ThinkCentre M910t-N000\", \"Cpu\": \"Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz\", \"MainBoard\": \"LENOVO 3107 SDK0J40675 WIN 3305553586072\", \"GroupNamePath\": \"全网终端.未分组终端\", \"OsType\": 0, \"GroupName\": \"未分组终端\", \"HardDiskSize\": \"SAMSUNG MZVLB256HAHQ-000L7 238 GB\", \"AccountName\": \"\", \"VideoCard\": \"Intel(R) HD Graphics 630\", \"AccountGroupIdPath\": \"\", \"NetworkCard\": \"Intel(R) Ethernet Connection (2) I219-LM\", \"Monitor\": \"P24i-10\", \"AudioCard\": \"Realtek High Definition Audio\", \"OsBits\": 64, \"OsVersion\": \"10.0.17134\", \"OsLanguage\": \"简体中文\", \"OsInstallDate\": \"20190531115405.000000+480\", \"ComputerName\": \"sarielliu-PCa\", \"DomainName\": \"tencent.com\", \"MacAddr\": \"00:D8:61:48:50:11\", \"VulCount\": 0, \"RiskCount\": 0, \"VirusVer\": \"2.0.13645.8348\", \"VulVersion\": \"2019.08.19.09.50.30\", \"Itime\": \"2022-10-26T17:52:40.783424+08:00\", \"SysRepVersion\": \"2023.01.04.16.34.51\", \"Utime\": \"2023-03-13T06:30:35.428937+08:00\", \"RiskScanTime\": \"2023-03-15T17:12:30.388189+08:00\", \"VulScanTime\": \"2023-01-10T11:46:47.884224+08:00\", \"VulCriticalList\": [], \"VulIgnoreCount\": 0, \"Tags\": \"\", \"UserName\": \"sarielliu\", \"CloudQueryState\": 3, \"FirewallStatus\": 0, \"SerialNum\": \"M70AG2FV\", \"IsRoot\": 0, \"DeviceStrategyVer\": \"2023-02-14 16:59:00\", \"NGNStrategyVer\": \"2023-01-05 15:29:00\", \"IOAUserName\": \"\", \"DeviceNewStrategyVer\": \"2024-11-06 10:51:00\", \"NGNNewStrategyVer\": \"2024-10-15 20:00:00\", \"DeviceMark\": \"\", \"HostName\": \"\", \"Profiles\": [], \"ProfileFileTotal\": 0, \"ProfileFileInstalled\": 0, \"Sort\": 0, \"BaseBoardSn\": \"\", \"AccountUsers\": \"\", \"IdentityStrategyVer\": \"\", \"IdentityNewStrategyVer\": \"\", \"AccountList\": [], \"NoPermission\": 0, \"BaseBoardManufacturer\": \"\", \"MemoryDetail\": \"\", \"SystemArchitecture\": \"\", \"HardwareChangeCount\": 0, \"RealTimeProtectionStatus\": 0, \"GroupId\": 67, \"ScreenRecordingPermission\": 0, \"DiskAccessPermission\": 0, \"Id\": 1, \"Ip\": \"119.147.10.202\", \"Description\": \"\", \"AccountGroupSource\": 0, \"AccountGroupId\": 0, \"AccountGroupName\": \"\", \"ProfileFileNotInstall\": [], \"Memory\": \"16 GB\", \"Status\": 5, \"OnlineStatus\": 1, \"Locked\": 0, \"StrVersion\": \"208.0.14144.62000\", \"Version\": \"58546796082819632\", \"Os\": \"Microsoft Windows 10 专业版\", \"Driver\": 1, \"ConnActiveTime\": \"2023-03-16T10:49:53.116277+08:00\", \"Hacker\": 1, \"LocalIpList\": \"10.6.59.48,192.168.245.1,192.168.127.1\", \"Name\": \"sarielliu-PCa\", \"HostId\": 0, \"GroupFromAuto\": 0 } ] } }",
|
1801
|
+
"example": "无",
|
1793
1802
|
"member": "DescribeDevicesPageRsp",
|
1794
1803
|
"name": "Data",
|
1795
1804
|
"output_required": false,
|
@@ -2499,7 +2508,7 @@
|
|
2499
2508
|
{
|
2500
2509
|
"disabled": false,
|
2501
2510
|
"document": "过滤条件参数(字段含义请参考接口返回值)- Mid, 类型String,支持操作:【eq,like,ilike】,支持排序- Name, 类型String,支持操作:【eq,like,ilike】,支持排序- Itime, 类型String,支持操作:【eq,like,ilike】,支持排序- UserName, 类型String,支持操作:【eq,like,ilike】,支持排序- MacAddr, 类型String,支持操作:【eq,like,ilike】,支持排序- UserId, 类型String,支持操作:【eq,like,ilike】,支持排序- Ip, 类型String,支持操作:【eq,like,ilike】,支持排序- Tags,类型String,支持操作:【eq,like,ilike】,支持排序- LocalIpList,类型String,支持操作:【eq,like,ilike】,支持排序- SerialNum,类型String,支持操作:【eq,like,ilike】,支持排序- Version,类型String,支持操作:【eq,like,ilike】,支持排序- StrVersion,类型String,支持操作:【eq,like,ilike】,支持排序- RtpStatus,类型String,支持操作:【eq,like,ilike】,**不支持排序**- HostName,类型String,支持操作:【eq,like,ilike】,支持排序- IoaUserName,类型String,支持操作:【eq,like,ilike】,支持排序- GroupName,类型String,支持操作:【eq,like,ilike】,支持排序- CriticalVulListCount,**类型Int**,支持操作:【eq】,**不支持排序**- RiskCount,**类型Int**,支持操作:【eq】,**不支持排序**- VulVersion,类型String,支持操作:【eq,like,ilike】,**不支持排序**- Virusver,类型String,支持操作:【eq,like,ilike】,**不支持排序**- SysRepver,类型String,支持操作:【eq,like,ilike】,**不支持排序**- BaseBoardSn,类型String,支持操作:【eq,like,ilike】,支持排序- Os,类型String,支持操作:【eq,like,ilike】,支持排序- ConnActiveTime,类型String,支持操作:【eq,like,ilike】,**不支持排序**- FirewallStatus,**类型Int**,支持操作:【eq】,**不支持排序**- ProfileName,类型String,支持操作:【eq,like,ilike】,支持排序- DomainName,类型String,支持操作:【eq,like,ilike】,支持排序- SysRepVersion,类型String,支持操作:【eq,like,ilike】,支持排序- VirusVer,类型String,支持操作:【eq,like,ilike】,支持排序- Cpu,类型String,支持操作:【eq,like,ilike】,支持排序- Memory,类型String,支持操作:【eq,like,ilike】,支持排序- HardDiskSize,类型String,支持操作:【eq,like,ilike】,支持排序- HardwareChangeCount,**类型Int**,支持操作:【eq】,支持排序- AccountName,类型String,支持操作:【like.ilike】,支持排序- AccountGroupName,类型String,支持操作:【like.ilike】,支持排序- ScreenRecordingPermission,**类型Int**,支持操作:【eq】,支持排序- DiskAccessPermission,**类型Int**,支持操作:【eq】,支持排序分页参数- PageNum 从1开始,小于等于0时使用默认参数- PageSize 最大值5000,最好不超过100",
|
2502
|
-
"example": "
|
2511
|
+
"example": "无",
|
2503
2512
|
"member": "Condition",
|
2504
2513
|
"name": "Condition",
|
2505
2514
|
"required": false,
|
@@ -2507,7 +2516,7 @@
|
|
2507
2516
|
},
|
2508
2517
|
{
|
2509
2518
|
"disabled": false,
|
2510
|
-
"document": "
|
2519
|
+
"document": "终端自定义分组ID(0:获取租户全部自定义分组下的终端数据;其他值:获取具体ID分组下的终端数据)",
|
2511
2520
|
"example": "14990",
|
2512
2521
|
"member": "int64",
|
2513
2522
|
"name": "DeviceVirtualGroupId",
|
@@ -2516,7 +2525,7 @@
|
|
2516
2525
|
},
|
2517
2526
|
{
|
2518
2527
|
"disabled": false,
|
2519
|
-
"document": "
|
2528
|
+
"document": "系统类型(0: win,1:linux,2: mac,4:android,5:ios 默认值0)",
|
2520
2529
|
"example": "0",
|
2521
2530
|
"member": "int64",
|
2522
2531
|
"name": "OsType",
|
@@ -2541,7 +2550,7 @@
|
|
2541
2550
|
{
|
2542
2551
|
"disabled": false,
|
2543
2552
|
"document": "返回的具体Data数据",
|
2544
|
-
"example": "
|
2553
|
+
"example": "无",
|
2545
2554
|
"member": "DescribeVirtualDevicesPageRsp",
|
2546
2555
|
"name": "Data",
|
2547
2556
|
"output_required": false,
|
@@ -1027,13 +1027,74 @@
|
|
1027
1027
|
{
|
1028
1028
|
"disabled": false,
|
1029
1029
|
"document": "自定义变量(API参数)",
|
1030
|
-
"example": "
|
1030
|
+
"example": "9sde32de-d2ae-4a26-839c-6b6c6d0ea4d7",
|
1031
1031
|
"member": "string",
|
1032
1032
|
"name": "CustomVarId",
|
1033
1033
|
"output_required": false,
|
1034
1034
|
"required": false,
|
1035
1035
|
"type": "string",
|
1036
1036
|
"value_allowed_null": false
|
1037
|
+
},
|
1038
|
+
{
|
1039
|
+
"disabled": false,
|
1040
|
+
"document": "环境变量参数",
|
1041
|
+
"example": "9sde32de-d2ae-4a26-839c-6b6c6d0ea4d7",
|
1042
|
+
"member": "string",
|
1043
|
+
"name": "EnvVarId",
|
1044
|
+
"output_required": false,
|
1045
|
+
"required": false,
|
1046
|
+
"type": "string",
|
1047
|
+
"value_allowed_null": false
|
1048
|
+
},
|
1049
|
+
{
|
1050
|
+
"disabled": false,
|
1051
|
+
"document": "应用变量参数",
|
1052
|
+
"example": "27d332de-d2ae-4a26-839c-6b6c6d0ea4d7",
|
1053
|
+
"member": "string",
|
1054
|
+
"name": "AppVarId",
|
1055
|
+
"output_required": false,
|
1056
|
+
"required": false,
|
1057
|
+
"type": "string",
|
1058
|
+
"value_allowed_null": false
|
1059
|
+
},
|
1060
|
+
{
|
1061
|
+
"disabled": false,
|
1062
|
+
"document": "系统参数",
|
1063
|
+
"example": "无",
|
1064
|
+
"member": "AgentInputSystemVariable",
|
1065
|
+
"name": "SystemVariable",
|
1066
|
+
"output_required": false,
|
1067
|
+
"required": false,
|
1068
|
+
"type": "object",
|
1069
|
+
"value_allowed_null": false
|
1070
|
+
}
|
1071
|
+
],
|
1072
|
+
"usage": "both"
|
1073
|
+
},
|
1074
|
+
"AgentInputSystemVariable": {
|
1075
|
+
"document": "系统参数",
|
1076
|
+
"members": [
|
1077
|
+
{
|
1078
|
+
"disabled": false,
|
1079
|
+
"document": "系统参数名",
|
1080
|
+
"example": "sdhge",
|
1081
|
+
"member": "string",
|
1082
|
+
"name": "Name",
|
1083
|
+
"output_required": false,
|
1084
|
+
"required": false,
|
1085
|
+
"type": "string",
|
1086
|
+
"value_allowed_null": false
|
1087
|
+
},
|
1088
|
+
{
|
1089
|
+
"disabled": false,
|
1090
|
+
"document": "对话历史轮数的配置;如果Input是系统变量中的“对话历史”时才使用;",
|
1091
|
+
"example": "3",
|
1092
|
+
"member": "int64",
|
1093
|
+
"name": "DialogHistoryLimit",
|
1094
|
+
"output_required": false,
|
1095
|
+
"required": false,
|
1096
|
+
"type": "int",
|
1097
|
+
"value_allowed_null": false
|
1037
1098
|
}
|
1038
1099
|
],
|
1039
1100
|
"usage": "both"
|
@@ -2835,6 +2896,17 @@
|
|
2835
2896
|
"required": false,
|
2836
2897
|
"type": "list",
|
2837
2898
|
"value_allowed_null": false
|
2899
|
+
},
|
2900
|
+
{
|
2901
|
+
"disabled": false,
|
2902
|
+
"document": "创建人昵称\n注意:此字段可能返回 null,表示取不到有效值。",
|
2903
|
+
"example": "创建人",
|
2904
|
+
"member": "string",
|
2905
|
+
"name": "Creator",
|
2906
|
+
"output_required": false,
|
2907
|
+
"required": false,
|
2908
|
+
"type": "string",
|
2909
|
+
"value_allowed_null": true
|
2838
2910
|
}
|
2839
2911
|
],
|
2840
2912
|
"usage": "both"
|
@@ -10383,7 +10455,7 @@
|
|
10383
10455
|
{
|
10384
10456
|
"disabled": false,
|
10385
10457
|
"document": "输出方式 1:流式 2:非流式\n注意:此字段可能返回 null,表示取不到有效值。",
|
10386
|
-
"example": "
|
10458
|
+
"example": "1",
|
10387
10459
|
"member": "uint64",
|
10388
10460
|
"name": "Method",
|
10389
10461
|
"output_required": false,
|
@@ -10394,7 +10466,7 @@
|
|
10394
10466
|
{
|
10395
10467
|
"disabled": false,
|
10396
10468
|
"document": "通用模型回复\n注意:此字段可能返回 null,表示取不到有效值。",
|
10397
|
-
"example": "
|
10469
|
+
"example": "false",
|
10398
10470
|
"member": "bool",
|
10399
10471
|
"name": "UseGeneralKnowledge",
|
10400
10472
|
"output_required": false,
|
@@ -10405,7 +10477,7 @@
|
|
10405
10477
|
{
|
10406
10478
|
"disabled": false,
|
10407
10479
|
"document": "未知回复语,300字符以内\n注意:此字段可能返回 null,表示取不到有效值。",
|
10408
|
-
"example": "
|
10480
|
+
"example": "当前无法回答",
|
10409
10481
|
"member": "string",
|
10410
10482
|
"name": "BareAnswer",
|
10411
10483
|
"output_required": false,
|
@@ -10416,7 +10488,7 @@
|
|
10416
10488
|
{
|
10417
10489
|
"disabled": false,
|
10418
10490
|
"document": "是否展示问题澄清开关\n注意:此字段可能返回 null,表示取不到有效值。",
|
10419
|
-
"example": "
|
10491
|
+
"example": "true",
|
10420
10492
|
"member": "bool",
|
10421
10493
|
"name": "ShowQuestionClarify",
|
10422
10494
|
"output_required": false,
|
@@ -10427,7 +10499,7 @@
|
|
10427
10499
|
{
|
10428
10500
|
"disabled": false,
|
10429
10501
|
"document": "是否打开问题澄清\n注意:此字段可能返回 null,表示取不到有效值。",
|
10430
|
-
"example": "
|
10502
|
+
"example": "false",
|
10431
10503
|
"member": "bool",
|
10432
10504
|
"name": "UseQuestionClarify",
|
10433
10505
|
"output_required": false,
|
@@ -10438,7 +10510,7 @@
|
|
10438
10510
|
{
|
10439
10511
|
"disabled": false,
|
10440
10512
|
"document": "问题澄清关键词列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
10441
|
-
"example": "
|
10513
|
+
"example": "[\"歧义\"]",
|
10442
10514
|
"member": "string",
|
10443
10515
|
"name": "QuestionClarifyKeywords",
|
10444
10516
|
"output_required": false,
|
@@ -10449,13 +10521,24 @@
|
|
10449
10521
|
{
|
10450
10522
|
"disabled": false,
|
10451
10523
|
"document": "是否打开推荐问题开关\n注意:此字段可能返回 null,表示取不到有效值。",
|
10452
|
-
"example": "
|
10524
|
+
"example": "false",
|
10453
10525
|
"member": "bool",
|
10454
10526
|
"name": "UseRecommended",
|
10455
10527
|
"output_required": false,
|
10456
10528
|
"required": false,
|
10457
10529
|
"type": "bool",
|
10458
10530
|
"value_allowed_null": true
|
10531
|
+
},
|
10532
|
+
{
|
10533
|
+
"disabled": false,
|
10534
|
+
"document": "推荐问模式,0.结合知识库&对话历史推荐问题Prompt(默认) 1.仅结合知识库输出推荐问的prompt\n注意:此字段可能返回 null,表示取不到有效值。",
|
10535
|
+
"example": "1",
|
10536
|
+
"member": "uint64",
|
10537
|
+
"name": "RecommendedPromptMode",
|
10538
|
+
"output_required": false,
|
10539
|
+
"required": false,
|
10540
|
+
"type": "int",
|
10541
|
+
"value_allowed_null": true
|
10459
10542
|
}
|
10460
10543
|
],
|
10461
10544
|
"usage": "both"
|
@@ -1295,7 +1295,7 @@
|
|
1295
1295
|
},
|
1296
1296
|
{
|
1297
1297
|
"disabled": false,
|
1298
|
-
"document": "
|
1298
|
+
"document": "文件大小,单位:字节",
|
1299
1299
|
"example": "100",
|
1300
1300
|
"member": "int64",
|
1301
1301
|
"name": "FileSize",
|
@@ -1323,6 +1323,32 @@
|
|
1323
1323
|
],
|
1324
1324
|
"usage": "both"
|
1325
1325
|
},
|
1326
|
+
"ErrorInfo": {
|
1327
|
+
"document": "错误信息",
|
1328
|
+
"members": [
|
1329
|
+
{
|
1330
|
+
"disabled": false,
|
1331
|
+
"document": "错误码",
|
1332
|
+
"example": "FailedOperation.FileParseError",
|
1333
|
+
"member": "string",
|
1334
|
+
"name": "Code",
|
1335
|
+
"output_required": false,
|
1336
|
+
"type": "string",
|
1337
|
+
"value_allowed_null": false
|
1338
|
+
},
|
1339
|
+
{
|
1340
|
+
"disabled": false,
|
1341
|
+
"document": "错误信息",
|
1342
|
+
"example": "file parse timeout",
|
1343
|
+
"member": "string",
|
1344
|
+
"name": "Message",
|
1345
|
+
"output_required": false,
|
1346
|
+
"type": "string",
|
1347
|
+
"value_allowed_null": false
|
1348
|
+
}
|
1349
|
+
],
|
1350
|
+
"usage": "out"
|
1351
|
+
},
|
1326
1352
|
"GetCharacterUsageRequest": {
|
1327
1353
|
"document": "GetCharacterUsage请求参数结构体",
|
1328
1354
|
"members": [],
|
@@ -1474,6 +1500,16 @@
|
|
1474
1500
|
"type": "object",
|
1475
1501
|
"value_allowed_null": false
|
1476
1502
|
},
|
1503
|
+
{
|
1504
|
+
"disabled": false,
|
1505
|
+
"document": "文档解析任务失败错误信息,当文档解析任务失败会返回具体的错误信息",
|
1506
|
+
"example": "无",
|
1507
|
+
"member": "ErrorInfo",
|
1508
|
+
"name": "Error",
|
1509
|
+
"output_required": false,
|
1510
|
+
"type": "object",
|
1511
|
+
"value_allowed_null": false
|
1512
|
+
},
|
1477
1513
|
{
|
1478
1514
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1479
1515
|
"member": "string",
|
@@ -1541,6 +1577,16 @@
|
|
1541
1577
|
"type": "object",
|
1542
1578
|
"value_allowed_null": false
|
1543
1579
|
},
|
1580
|
+
{
|
1581
|
+
"disabled": false,
|
1582
|
+
"document": "文档拆分失败的错误信息,当拆分任务失败时返回该错误信息",
|
1583
|
+
"example": "无",
|
1584
|
+
"member": "ErrorInfo",
|
1585
|
+
"name": "Error",
|
1586
|
+
"output_required": false,
|
1587
|
+
"type": "object",
|
1588
|
+
"value_allowed_null": false
|
1589
|
+
},
|
1544
1590
|
{
|
1545
1591
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1546
1592
|
"member": "string",
|
@@ -122,6 +122,12 @@
|
|
122
122
|
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetReconstructDocumentResult\n<公共请求参数>\n\n{\n \"TaskId\": \"25adcef61750343903609\"\n}",
|
123
123
|
"output": "{\n \"Response\": {\n \"DocumentRecognizeResultUrl\": \"https://document-restruction-1258344699.cos.ap-guangzhou.myqcloud.com/doc_parse/output_files/a9c6a9482c72412fa84445a44ss125531.zip?q-sign-algorithm=sha1&q-ak=AKIDlWFaadfHLNbidLwPqOrAKGzXrx40scL7l&q-sign-time=1715503711%3B1718804311&q-key-time=1718855711%3B1718804311&q-header-list=host&q-url-param-list=&q-signature=71b568b8632d7e45gertdc3d235ef68d41fdfe7f8\",\n \"FailedPages\": [],\n \"RequestId\": \"a37b0d0b-c3af-44bd-iuiu-632442644a80\",\n \"Status\": \"Success\",\n \"Usage\": {\n \"PageNumber\": 10,\n \"TotalTokens\": 2048\n }\n }\n}",
|
124
124
|
"title": "接口调用成功示例"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"document": "",
|
128
|
+
"input": "POST / HTTP/1.1\nHost: lkeap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetReconstructDocumentResult\n<公共请求参数>\n\n{\n \"TaskId\": \"25adcef61750343903609\"\n}",
|
129
|
+
"output": "{\n \"Response\": {\n \"FailedPages\": [],\n \"RequestId\": \"a37b0d0b-c3af-44bd-iuiu-632442644a80\",\n \"Status\": \"Failed\",\n \"Error\": {\n \"Code\": \"InvalidParameter.FileURLInvalid\",\n \"Message\": \"url download failed\"\n }\n }\n}",
|
130
|
+
"title": "任务处理失败示例"
|
125
131
|
}
|
126
132
|
],
|
127
133
|
"GetSplitDocumentResult": [
|
tccli/services/mna/mna_client.py
CHANGED
@@ -1473,6 +1473,58 @@ def doGetDevice(args, parsed_globals):
|
|
1473
1473
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1474
1474
|
|
1475
1475
|
|
1476
|
+
def doReportOrder(args, parsed_globals):
|
1477
|
+
g_param = parse_global_arg(parsed_globals)
|
1478
|
+
|
1479
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1480
|
+
cred = credential.CVMRoleCredential()
|
1481
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1482
|
+
cred = credential.STSAssumeRoleCredential(
|
1483
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1484
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1485
|
+
)
|
1486
|
+
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):
|
1487
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1488
|
+
else:
|
1489
|
+
cred = credential.Credential(
|
1490
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1491
|
+
)
|
1492
|
+
http_profile = HttpProfile(
|
1493
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1494
|
+
reqMethod="POST",
|
1495
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1496
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1497
|
+
)
|
1498
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1499
|
+
if g_param[OptionsDefine.Language]:
|
1500
|
+
profile.language = g_param[OptionsDefine.Language]
|
1501
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1502
|
+
client = mod.MnaClient(cred, g_param[OptionsDefine.Region], profile)
|
1503
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1504
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1505
|
+
model = models.ReportOrderRequest()
|
1506
|
+
model.from_json_string(json.dumps(args))
|
1507
|
+
start_time = time.time()
|
1508
|
+
while True:
|
1509
|
+
rsp = client.ReportOrder(model)
|
1510
|
+
result = rsp.to_json_string()
|
1511
|
+
try:
|
1512
|
+
json_obj = json.loads(result)
|
1513
|
+
except TypeError as e:
|
1514
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1515
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1516
|
+
break
|
1517
|
+
cur_time = time.time()
|
1518
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1519
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1520
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1521
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1522
|
+
else:
|
1523
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1524
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1525
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1526
|
+
|
1527
|
+
|
1476
1528
|
def doGroupDeleteDevice(args, parsed_globals):
|
1477
1529
|
g_param = parse_global_arg(parsed_globals)
|
1478
1530
|
|
@@ -2136,6 +2188,7 @@ ACTION_MAP = {
|
|
2136
2188
|
"AddL3Conn": doAddL3Conn,
|
2137
2189
|
"CreateEncryptedKey": doCreateEncryptedKey,
|
2138
2190
|
"GetDevice": doGetDevice,
|
2191
|
+
"ReportOrder": doReportOrder,
|
2139
2192
|
"GroupDeleteDevice": doGroupDeleteDevice,
|
2140
2193
|
"OrderFlowPackage": doOrderFlowPackage,
|
2141
2194
|
"GetStatisticData": doGetStatisticData,
|