分页查询指定 RASP 配置覆盖的主机及 Agent、进程、防护状态;配置 ID 可从 ListRaspConfigs 获取。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | ListRaspConfigAgentInfos | 要执行的操作,取值:ListRaspConfigAgentInfos。 |
Version | String | 是 | 2024-05-08 | API的版本,取值:2024-05-08。 |
TopGroupID | String | 否 | group-id-001 | 根分组 ID,可通过多级分组查询接口获取;不传时不限制根分组 |
CloudProviders | Array of String | 否 | ["volcengine"] | 云厂商 |
Hostname | String | 否 | host-001 | 主机名称 |
PageNumber | Long | 是 | 1 | 翻页页码,取值范围为 1 及以上 |
PageSize | Long | 是 | 20 | 每页记录数,取值范围为 1~5000 |
RaspEnableStatus | Array of String | 否 | ["open"] | rasp开启状态 open: 开启 close: 关闭 open_fail: 开启失败 |
Tags | Array of String | 否 | ["production"] | 主机标签 |
AgentID | String | 否 | agent-id-001 | 主机ID |
IP | String | 否 | 192.0.2.10 | IP |
LeafGroupIDs | Array of String | 否 | ["group-id-101","group-id-102"] | 叶子分组 ID 列表,可通过多级分组查询接口获取;不传时不限制叶子分组 |
SortBy | String | 否 | LastHeartbeatTime | 排序字段;不传时使用接口默认排序 |
SortOrder | String | 否 | Desc | 排序顺序
|
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
Data | Array of Object | -- | 分页业务数据,具体元素结构见各接口响应声明 |
PageNumber | Long | 1 | 当前页面 |
PageSize | Long | 20 | 页面大小 |
TotalCount | Long | 1 | 全部数据条数 |
POST /?Action=ListRaspConfigAgentInfos&Version=2024-05-08 HTTP/1.1 Host: seccenter.volcengineapi.com Content-Type: application/json; charset=UTF-8 X-Date: 20241120T080538Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20241120/cn-beijing/seccenter/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "AgentID": "agent-id-001", "CloudProviders": [ "volcengine" ], "Hostname": "host-001", "IP": "192.0.2.10", "LeafGroupIDs": [ "group-id-101", "group-id-102" ], "PageNumber": 1, "PageSize": 20, "RaspEnableStatus": [ "open" ], "SortBy": "LastHeartbeatTime", "SortOrder": "Desc", "Tags": [ "production" ], "TopGroupID": "group-id-001" }
{ "ResponseMetadata": { "RequestId": "20241120165538010234567890", "Action": "ListRaspConfigAgentInfos", "Version": "2024-05-08", "Service": "seccenter", "Region": "cn-beijing" }, "Result": { "Data": [ { "AccountID": "account-id-001", "AgentID": "agent-id-001", "CloudProvider": "volcengine", "EcsInstance": { "AccessKey": "AKLTEXAMPLE001", "AccountID": "account-id-001", "Cpu": 1, "CreatedAt": "2024-05-08T10:00:00Z", "ECSUpdateAt": "2024-05-08T10:00:00Z", "EipAddress": "192.0.2.10", "HostName": "host-001", "IPList": [ "192.0.2.10" ], "InstanceName": "example-name", "Mem": 1, "OsName": "veLinux 1.0 64位", "OsType": "veLinux", "Platform": "Linux", "PlatformVersion": "1.0", "PrimaryIpAddress": "192.0.2.10", "Region": "cn-beijing", "SecurityEnhancementStrategy": "security-enhancement-strategy-sample", "Status": "RUNNING", "Visibility": "visibility-sample", "VpcId": "vpc-id-001", "VpcName": "example-name", "ZoneId": "cn-beijing-a" }, "EnableStatus": "open", "GroupID": "group-id-001", "GroupPath": "/var/log/example.log", "HitWhiteProcessCount": 1, "InsertTime": 1786492800, "ManualClose": true, "Platform": "linux", "ProcessCount": 1, "ProtectAbnormalProcessCount": 1, "ProtectedProcessCount": 1, "RaspConfigs": [ "config-id-001" ], "Reason": "example description", "RelateConfigNameList": [ "production-rasp" ], "Tags": [ "production" ], "ToBeProtectedProcessCount": 1, "TopGroupID": "group-id-001", "UpdateTime": 1786579199 } ], "PageNumber": 1, "PageSize": 20, "TotalCount": 1 } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
|---|---|---|
400 | MissingParameter | 请求参数缺失 |
400 | InvalidParameter | 请求参数错误 |
400 | OperationDenied | 不允许的操作 |
500 | InternalError | 服务器内部错误 |
500 | DBOperateError | 数据库操作异常,请稍后重试或联系技术支持。 |