获取网络清单项
此方法返回网络清单项目。
重要提示
此方法已更新至1.1版本。关于1.0版本的适用信息,请参阅 本节内容 .
参数
可用选项
您可通过
选项
参数控制响应中返回的数据内容。
|
章节 |
子章节 |
可选 |
选项 |
|---|---|---|---|
|
|
|
是 |
|
|
|
|
是 |
|
可用筛选器
|
章节 |
子章节 |
筛选选项 |
|---|---|---|
|
|
|
|
|
|
管理 |
|
|
|
|
|
|
|
|
|
重要
某些筛选器需要激活特定许可证,否则将被忽略,导致API响应不准确。
该字段
名称
支持部分匹配。
该过滤器返回名称完全匹配或以指定值开头的条目。若要将指定值作为后缀,请使用星号符号(*)。
例如:
如果
名称
为
computer
,则API返回所有名称以
computer
.
如果
名称
为
*puter
,则API返回名称中包含
puter
的所有条目列表。
返回值
此方法返回包含网络条目信息的对象。返回对象包含:
-
page- 当前显示的页码。 -
pagesCount- 总页数(仅在第一页结果中显示)。 -
perPage- 每页返回的条目总数。 -
total- 条目总数(仅在第一页结果中显示)。 -
hasMoreRecords- 布尔值,指示是否还有更多结果页可用。 -
items- 包含项目列表的数组。列表中每个条目包含以下字段:-
id,网络项目的ID。 -
name,网络项目的名称。 -
parentId,父容器的ID。 -
companyId,母公司的ID。 -
type,网络项目的类型:1- 公司,2- 根容器(公司和网络容器),3- 公司文件夹,4- 群组,5- 计算机,6- 虚拟机,7- EC2实例,14- 容器组,15- 容器主机文件夹,16- 容器。 -
详情,关于该项目的更多信息。此字段适用于1- 公司,5- 计算机,6- 虚拟机,7- EC2 实例及16- 容器。有关详情成员内容的详细信息,请参阅 详情成员 .
-
详情成员
某些网络库存项目包含一个
详情
成员。该成员提供了关于该项目的更多信息,具体信息取决于项目类型。
|
项目类型 |
详情 |
|---|---|
|
|
|
示例
请求 :
{
"params": {
"parentId": "23b19c39b1a43d89367b32ce",
"page": 1,
"perPage": 1,
"filters": {
"type": {
"computers": true
},
"depth": {
"allItemsRecursively": true
}
},
"options": {
"companies": {
"returnAllProducts": true,
"includeRiskScore": true
},
"endpoints": {
"returnProductOutdated": true,
"includeScanLogs": true,
"includeRiskScore": true
}
}
},
"jsonrpc": "2.0",
"method": "getNetworkInventoryItems",
"id": "301f7b05-ec02-481b-9ed6-c07b97de2b7b"
}
响应 :
{
"id": "103d7b05-ec02-481b-9ed6-c07b97de2b7a",
"jsonrpc": "2.0",
"result": {
"page": 2,
"pagesCount": 11,
"perPage": 1,
"total": 11,
"items": [
{
"id": "21a295eeb1a43d8b497b24b7",
"name": "计算机",
"type": 5,
"parentId": "21a295eeb1a43d8b497b24b7",
"companyId": "21a295eeb1a43d8b497b24b7",
"details": {
"label": "终端2",
"fqdn": "endpoint2.local",
"groupId": "5a5f4d36b1a43d5f097b23bb",
"isManaged": true,
"machineType": 2,
"operatingSystemVersion": "Windows Server",
"ip": "60.40.10.220",
"macs": [
"324935237346"
],
"modules": {
"高级威胁防护": false,
"反恶意软件": true,
"内容控制": false,
"设备控制": false,
"防火墙": false,
"高级用户": false,
"网络攻击防护": false
},
"ssid": ""
}
}
]
}
}
{
"result": {
"page": 2,
"perPage": 3,
"hasMoreRecords": true,
"items": [
"...": "..."
]
}
版本1.0
参数
可用选项
您可以使用
选项
参数来控制响应中返回的数据。
|
章节 |
子章节 |
选项 |
|---|---|---|
|
|
|
|
|
|
|
|
可用筛选器
|
章节 |
子章节 |
筛选选项 |
|---|---|---|
|
|
|
|
|
|
management |
|
|
|
|
|
|
|
|
|
重要提示
部分筛选器需激活特定许可证,否则将被忽略,导致API返回结果不准确。
字段
name
支持部分匹配。
该筛选器返回名称完全匹配或以指定值开头的项目。若需将指定值作为后缀,请使用星号符号(*)。
例如:
若
name
是
computer
,则API返回所有名称以
computer
.
若
name
为
*puter
,则API返回名称中包含
puter
的所有条目列表。
返回值
此方法返回一个包含网络条目信息的对象。返回的对象包含以下字段:
-
page- 当前页码 -
pagesCount- 总页数 -
perPage- 每页返回的条目总数 -
total- 条目总数 -
items- 包含条目列表的数组。列表中每个条目包含以下字段:-
id,网络条目的ID, -
name,网络条目的名称, -
parentId,父容器的ID, -
companyId,母公司ID, -
type,网络项类型:1- 公司,2- 根容器(公司及网络容器),3- 公司文件夹,4- 组,5- 计算机,6- 虚拟机,7- EC2实例,14- 容器组,15- 容器主机文件夹,16- 容器。 -
details,关于该项的更多信息。该字段适用于1- 公司,5- 计算机,6- 虚拟机,7- EC2实例和16- 容器。有关details成员内容的详细信息,请参阅 details成员 .
-
details成员
部分网络清单项包含一个
details
成员。该成员会展示关于该项的更多信息,具体信息取决于项的类型。
|
项类型 |
详情 |
|---|---|
|
|
|
示例
请求 :
{
"params": {
"parentId": "23b19c39b1a43d89367b32ce",
"page": 1,
"perPage": 1,
"filters": {
"type": {
"computers": true
},
"depth": {
"allItemsRecursively": true
}
},
"options": {
"companies": {
"returnAllProducts": true
},
"endpoints": {
"returnProductOutdated": true,
"includeScanLogs": true
}
}
},
"jsonrpc": "2.0",
"method": "getNetworkInventoryItems",
"id": "301f7b05-ec02-481b-9ed6-c07b97de2b7b"
}
响应 :
{
"result": {
"total": 8,
"page": 1,
"perPage": 30,
"pagesCount": 1,
"items": [
{
"id": "64b51d5266333579d804e696",
"name": "MSPPartner01",
"type": 1,
"parentId": "64b503c21ecee42e130a7bc7",
"companyId": "64b503c21ecee42e130a7bc4",
"details": {
"type": 0,
"address": "",
"phone": "",
"industry": 0,
"canBeManagedByAbove": true,
"enforce2FA": true,
"skip2FAPeriod": 0,
"isSuspended": false,
"createdAt": "2023-07-17T10:52:02",
"country": "N/A",
"state": "N/A",
"contactPerson": {
"email": "test@email.com",
"fullName": "",
"phoneNumber": "",
"companyRole": ""
},
"mdrContactInformation": {
"phoneNumber": {
"countryPrefix": "+4",
"subscriberNumber": "112345"
},
"fullName": "联系人",
"email": "mdrcontact@nebula.local",
"emailVerificationCode": "43728676"
},
"licenseInfo": {
"isAddon": false,
"expiryDate": "2025-04-22T00:00:00",
"usedSlots": 2,
"reservedSlots": 0,
"totalSlots": null,
"manageExchange": false,
"manageEncryption": false,
"manageRemoteEnginesScanning": false,
"manageHyperDetect": true,
"managePHASR": true,
"manageSandboxAnalyzer": true,
"managePatchManagement": false,
"manageEventCorrelator": true,
"manageEmailSecurity": false,
"manageMobileSecurity": false,
"manageContainerProtection": false,
"manageIntegrityMonitoring": false,
"assignedProtectionModel": "mspSecureExtra",
"additionalProtectionModels": [
"aLaCarte",
"mspSecure",
"mspSecurePlus",
"mspSecureExtra"
],
"assignedProductType": 0,
"additionalProductTypes": [
0
],
"ownUse": {
"manageXDRIdentityProviders": true,
"manageXDRProductivityApps": true,
"manageXDRNetwork": false,
"manageXDRCloudWorkloads": false,
"manageRemoteEnginesScanning": false,
"manageContainerProtection": false,
"manageHyperDetect": true,
"managePHASR": true,
"manageSandboxAnalyzer": true,
"manageEventCorrelator": true
},
"resell": {
"manageXDRResell": true,
"manageRemoteEnginesScanningResell": false,
"manageContainerProtectionResell": false,
"manageHyperDetectResell": true,
"managePHASRResell": true,
"manageSandboxAnalyzerResell": true,
"manageEventCorrelatorResell": true
},
"licensedServices": {
"mdrServiceFlavor": 1,
"mdrServiceStatus": 3,
"mdrStatusStartDate": "2023-07-17T10:52:03",
"mdrServiceResell": true
},
"subscriptionType": 3
}
}
},
{
"id": "64b503c21ecee42e130a7bc9",
"name": "自定义分组",
"type": 4,
"parentId": "64b503c21ecee42e130a7bc4",
"companyId": "64b503c21ecee42e130a7bc4"
},
{
"id": "64b51d5366333579d804e69c",
"name": "自定义分组",
"type": 4,
"parentId": "64b51d5266333579d804e696",
"companyId": "64b51d5266333579d804e696"
},
{
"id": "64b76496cc33ea14e43c3c2b",
"name": "gfdsg00:16:3e:28:ee:fe",
"type": 5,
"parentId": "64b51d5366333579d804e69c",
"companyId": "64b51d5266333579d804e696",
"details": {
"label": "",
"fqdn": "t4x03.mqdhn.dsd.ro",
"groupId": "64b51d5366333579d804e69c",
"isManaged": true,
"machineType": 1,
"operatingSystemVersion": "Windows 7 专业版",
"ip": "136.61.135.44",
"macs": ["00:16:3e:28:ee:fe"],
"ssid": "",
"managedWithBest": true,
"policy": {
"id": "64b76bed92f0176fa203b64c",
"name": "新策略",
"applied": false
},
"productOutdated": false
},
"lastSuccessfulScan": {
"name": "tXoRyyCSLn",
"date": "2023-07-19T04:18:58+00:00"
}
},
{
"id": "64b51ecd4eea172c5b3f92d1",
"name": "string00:16:3e:2c:45:da",
"type": 5,
"parentId": "64b51d5366333579d804e69c",
"companyId": "64b51d5266333579d804e696",
"details": {
"label": "",
"fqdn": "fcm0s.oyzqh.dsd.ro",
"groupId": "64b51d5366333579d804e69c",
"isManaged": true,
"machineType": 1,
"operatingSystemVersion": "Windows 7 专业版",
"ip": "44.215.154.49",
"macs": ["00:16:3e:2c:45:da"],
"ssid": "",
"managedWithBest": true,
"policy": {
"id": "64b76bed92f0176fa203b64c",
"name": "新策略",
"applied": false
},
"productOutdated": false
},
"lastSuccessfulScan": {
"name": "lJeA5kuIWK",
"date": "2023-07-17T10:58:05+00:00"
}
},
{
"id": "64b7625d3c11463ef77e5d6d",
"name": "string00:16:3e:7f:d3:2e",
"type": 5,
"parentId": "64b503c21ecee42e130a7bc9",
"companyId": "64b503c21ecee42e130a7bc4",
"details": {
"label": "",
"fqdn": "s0lc5.wkorh.dsd.ro",
"groupId": "64b503c21ecee42e130a7bc9",
"isManaged": true,
"machineType": 1,
"operatingSystemVersion": "Windows 7 专业版",
"ip": "231.180.244.114",
"macs": ["00:16:3e:7f:d3:2e"],
"ssid": "",
"managedWithBest": true,
"policy": {
"id": "64b76bed92f0176fa203b64c",
"name": "新策略",
"applied": false
},
"productOutdated": false
},
"lastSuccessfulScan": {
"name": "72OHI5dnIH",
"date": "2023-07-19T04:09:29+00:00"
}
},
{
"id": "64b503c21ecee42e130a7bca",
"name": "已删除",
"type": 4,
"parentId": "64b503c21ecee42e130a7bc4",
"companyId": "64b503c21ecee42e130a7bc4"
},
{
"id": "64b51d5366333579d804e69d",
"name": "已删除",
"type": 4,
"parentId": "64b51d5266333579d804e696",
"companyId": "64b51d5266333579d804e696"
}
]
},
"jsonrpc": "2.0",
"id": "5986",
"error": null
}