接口功能介绍
资产指纹列表查询
接口约束
已经签约安全卫士服务协议
URI
POST /v1/assert/list
路径参数
无
Query参数
无
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionid | 是 | String | 资源池id | 100054c0416811e9a6690242ac110002 | |
urlType | 是 | String | 请求地址类型。CTAPI | CTAPI | |
Content-Type | 是 | String | Content-Type | application/json |
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
currentPage | 是 | Integer | 当前页 | 1 | |
pageSize | 是 | Integer | 每页记录数 | 10 | |
sysType | 是 | Integer | 资产类型。1_端口,2_进程,3_账号,4_软件 | 1 | |
param | 否 | String | 参数值 | ||
agentGuid | 否 | String | 不传查全部 | ||
sendCommand | 是 | Integer | 是否下发命令,0.不下发;1.下发 | 1 |
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | String | 状态码 200-成功 | ||
error | String | 返回码 CTCSSCN_000000:成功 CTCSSCN_000001:失败 CTCSSCN_000003:用户未签署协议,安全卫士系统无法正常使用 CTCSSCN_000004:鉴权错误 CTCSSCN_000005:用户没有付费版配额,功能不可用 |
CTCSSCN_000000 | |
message | String | 返回信息 | 成功 | |
returnObj | Object | 返回对象 | pageInfo |
表 pageInfo
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
pageNum | Integer | 当前页 | 1 | |
pageSize | Integer | 每页记录数 | 10 | |
pages | Integer | 总页数 | 2 | |
total | Integer | 总记录数 | 20 | |
isFirstPage | Boolean | 是否为首页 | false | |
isLastPage | Boolean | 是否为末页 | false | |
list | Object | 列表 | list |
表 list
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
custName | String | 服务器名称 | CentOS76-az1-2 | |
agentGuid | String | 服务器id | F5283205-CB2C-45E6-8629-9D5DB63D3AC3 | |
publicIp | String | 服务器公网ip | 172.18.208.172 | |
privateIp | String | 服务器ip | 172.18.208.172 | |
osType | String | 操作系统 | linux | |
userName | String | 用户名 | test | |
passwordFlag | Integer | 是否设置密码。1_是,0_否 | 1 | |
userGroup | String | 用户组 | test | |
expireTime | String | 到期时间 | never:永不过期。2022-10-10 15:08:38 | |
lastTime | String | 上次登录时间 | 2022-10-10 15:08:38 | |
loginIp | String | 上次登录ip |
枚举参数
无
请求示例
请求url
无
请求头header
{"regionid": "100054c0416811e9a6690242ac110002","Content-Type":"application/json","urlType": "CTAPI"}
请求体body
{"currentPage":1,"pageSize":10,"sysType":3,"sendCommand":0}
响应示例
{"statusCode": "200","error": "CTCSSCN_000000","message": "查询成功!","returnObj":{"total": 93,"list": [{"custName": "vm-76","publicIp": null,"privateIp": "192.168.0.76","agentGuid": "C39CD1FD-BEC1-44BF-ACF5-F7C412BD590C","protocol": null,"port": null,"osType": "linux","ip": null,"process": null,"processPath": null,"processId": null,"fatherProcess": null,"startParam": null,"startTime": null,"runUser": null,"programName": null,"version": null,"updateTime": null,"userName": "test","passwordFlag": 1,"userGroup": "test","lastTime": null,"expireTime": "never","loginIp": null},{"custName": "vm-76","publicIp": null,"privateIp": "192.168.0.76","agentGuid": "C39CD1FD-BEC1-44BF-ACF5-F7C412BD590C","protocol": null,"port": null,"osType": "linux","ip": null,"process": null,"processPath": null,"processId": null,"fatherProcess": null,"startParam": null,"startTime": null,"runUser": null,"programName": null,"version": null,"updateTime": null,"userName": "secure","passwordFlag": 1,"userGroup": "wheel","lastTime": "2022-10-10 15:08:38","expireTime": "never","loginIp": "192.168.0.126"},{"custName": "vm-76","publicIp": null,"privateIp": "192.168.0.76","agentGuid": "C39CD1FD-BEC1-44BF-ACF5-F7C412BD590C","protocol": null,"port": null,"osType": "linux","ip": null,"process": null,"processPath": null,"processId": null,"fatherProcess": null,"startParam": null,"startTime": null,"runUser": null,"programName": null,"version": null,"updateTime": null,"userName": "polkitd","passwordFlag": 0,"userGroup": "polkitd","lastTime": null,"expireTime": "never","loginIp": null},{"custName": "vm-76","publicIp": null,"privateIp": "192.168.0.76","agentGuid": "C39CD1FD-BEC1-44BF-ACF5-F7C412BD590C","protocol": null,"port": null,"osType": "linux","ip": null,"process": null,"processPath": null,"processId": null,"fatherProcess": null,"startParam": null,"startTime": null,"runUser": null,"programName": null,"version": null,"updateTime": null,"userName": "dbus","passwordFlag": 0,"userGroup": "dbus","lastTime": null,"expireTime": "never","loginIp": null},{"custName": "vm-76","publicIp": null,"privateIp": "192.168.0.76","agentGuid": "C39CD1FD-BEC1-44BF-ACF5-F7C412BD590C","protocol": null,"port": null,"osType": "linux","ip": null,"process": null,"processPath": null,"processId": null,"fatherProcess": null,"startParam": null,"startTime": null,"runUser": null,"programName": null,"version": null,"updateTime": null,"userName": "systemd-network","passwordFlag": 0,"userGroup": "systemd-network","lastTime": null,"expireTime": "never","loginIp": null},{"custName": "vm-76","publicIp": null,"privateIp": "192.168.0.76","agentGuid": "C39CD1FD-BEC1-44BF-ACF5-F7C412BD590C","protocol": null,"port": null,"osType": "linux","ip": null,"process": null,"processPath": null,"processId": null,"fatherProcess": null,"startParam": null,"startTime": null,"runUser": null,"programName": null,"version": null,"updateTime": null,"userName": "nobody","passwordFlag": 0,"userGroup": "nobody","lastTime": null,"expireTime": "never","loginIp": null},{"custName": "vm-76","publicIp": null,"privateIp": "192.168.0.76","agentGuid": "C39CD1FD-BEC1-44BF-ACF5-F7C412BD590C","protocol": null,"port": null,"osType": "linux","ip": null,"process": null,"processPath": null,"processId": null,"fatherProcess": null,"startParam": null,"startTime": null,"runUser": null,"programName": null,"version": null,"updateTime": null,"userName": "ftp","passwordFlag": 0,"userGroup": "ftp","lastTime": null,"expireTime": "never","loginIp": null},{"custName": "vm-76","publicIp": null,"privateIp": "192.168.0.76","agentGuid": "C39CD1FD-BEC1-44BF-ACF5-F7C412BD590C","protocol": null,"port": null,"osType": "linux","ip": null,"process": null,"processPath": null,"processId": null,"fatherProcess": null,"startParam": null,"startTime": null,"runUser": null,"programName": null,"version": null,"updateTime": null,"userName": "games","passwordFlag": 0,"userGroup": "users","lastTime": null,"expireTime": "never","loginIp": null},{"custName": "vm-76","publicIp": null,"privateIp": "192.168.0.76","agentGuid": "C39CD1FD-BEC1-44BF-ACF5-F7C412BD590C","protocol": null,"port": null,"osType": "linux","ip": null,"process": null,"processPath": null,"processId": null,"fatherProcess": null,"startParam": null,"startTime": null,"runUser": null,"programName": null,"version": null,"updateTime": null,"userName": "adm","passwordFlag": 0,"userGroup": "adm","lastTime": null,"expireTime": "never","loginIp": null},{"custName": "vm-76","publicIp": null,"privateIp": "192.168.0.76","agentGuid": "C39CD1FD-BEC1-44BF-ACF5-F7C412BD590C","protocol": null,"port": null,"osType": "linux","ip": null,"process": null,"processPath": null,"processId": null,"fatherProcess": null,"startParam": null,"startTime": null,"runUser": null,"programName": null,"version": null,"updateTime": null,"userName": "daemon","passwordFlag": 0,"userGroup": "daemon","lastTime": null,"expireTime": "never","loginIp": null}],"pageNum": 1,"pageSize": 10,"size": 0,"startRow": 0,"endRow": 0,"pages": 10,"prePage": 0,"nextPage": 0,"isFirstPage": false,"isLastPage": false,"hasPreviousPage": false,"hasNextPage": false,"navigatePages": 0,"navigatepageNums": null,"navigateFirstPage": 0,"navigateLastPage": 0}}
状态码
请参考 状态码
错误码
请参考 错误码