getAllCompanyResources
调用此方法可获取公司所有被检测到的资源
参数
|
名称 |
描述 |
包含于请求中 |
类型 |
取值 |
|---|---|---|---|---|
|
|
用于搜索并仅返回名称匹配指定字符串的资源的文本值。 |
可选 |
字符串 |
无额外要求。 若不包含此参数,响应将返回所有资源。 |
这些是公共参数,适用于所有公开API方法。
|
参数 |
描述 |
是否包含在请求中 |
类型 |
取值 |
|---|---|---|---|---|
|
|
此参数为请求添加标识符,将其与对应响应关联。 目标方在响应中返回相同值,便于调用追踪。 |
必填 |
字符串 |
无额外要求 |
|
|
用于发送请求的方法名称。 |
必填 |
字符串 |
必须是有效的方法名。 |
|
|
请求与响应所使用的JSON-RPC协议版本。 |
必填 |
整数 |
可选值:
|
|
|
包含请求配置参数的对象。 |
必填 |
对象 |
无额外要求。 |
|
在
|
||||
|
|
结果页码。 |
可选 |
整数 |
默认值:
|
|
|
每页显示的结果数量。 |
可选 |
整数 |
每页上限为100条。
默认值:
|
返回值
|
属性 |
类型 |
描述 |
|---|---|---|
|
|
对象数组 |
每个对象包含一个资源的信息。 |
对象
条目
|
属性 |
类型 |
描述 |
|---|---|---|
|
|
字符串 |
资源的ID。 |
|
|
字符串 |
资源的名称。 |
示例
请求 :
{
"params": {
"companyId": "67fe8595d4db0d536908ec92",
"page": 1,
"perPage": 10,
"searchString": "AUTHORITY"
},
"jsonrpc": "2.0",
"method": "getAllCompanyResources",
"id": "b7e2c1d4-9f8a-4c2e-8b1a-ef1234567890"
}
响应 :
{
"id": "b7e2c1d4-9f8a-4c2e-8b1a-ef1234567890",
"jsonrpc": "2.0",
"result": [
"page": 1,
"pagesCount": 1,
"perPage": 20,
"total": 10,
"items": [
{
"behavioralProfileResource": "376f7eff-b0d7-49b2-825b-2af1c0f1aede-b545e199a29e",
"behavioralProfileResourceName": "AutoTestWin-24c6n"
},
{
"behavioralProfileResource": "3d2dd1ac-d170-4be0-8691-69a549f9df67-499dd90e3d7d",
"behavioralProfileResourceName": "AutoTestWin-q7dmj"
},
{
"behavioralProfileResource": "b655e398-3c71-4be8-a4af-0006d8dde22d-b8d3ad357b1a",
"behavioralProfileResourceName": "AutoTestWin-rhluh"
},
{
"behavioralProfileResource": "d5cff268-b67c-4cad-90c8-ff2742f3bf43-47146daa1909",
"behavioralProfileResourceName": "AutoTestWinSpecialV1-bsd6i"
},
{
"behavioralProfileResource": "cc7f0156-0f86-4a73-9fa6-ef2022eb5b84-84852c001b54",
"behavioralProfileResourceName": "AutoTestWinSpecialV1-gdtqn"
},
{
"behavioralProfileResource": "6fb6e145-903e-442f-ae6a-ae3b221132d7-e6e3a2e60257",
"behavioralProfileResourceName": "AutoTestWinSpecialV1-lf9ru"
},
{
"behavioralProfileResource": "78746acd-5527-4d12-b2c7-bb122819dea6-a414d927d168",
"behavioralProfileResourceName": "AutoTestWinSpecialV1-s49bj"
},
{
"behavioralProfileResource": "2f2c1642-d190-b971-32fc-56f667db7b33-0050569662d8",
"behavioralProfileResourceName": "DESKTOP-Q2C86HV"
},
{
"behavioralProfileResource": "00000000-0000-0000-0000-100000000001",
"behavioralProfileResourceName": "TEST_ENDPOINT_WINDOWS_10"
},
{
"behavioralProfileResource": "00000000-0000-0000-0000-100000000003",
"behavioralProfileResourceName": "TEST_ENDPOINT_WINDOWS_103"
}
]
]
}