查询Agent部署列表

最近更新时间: 2026-10-11 00:08:40

1. 接口描述

接口请求域名: cds.api3.fincloud.tencent.com。

查询Agent部署列表

默认接口请求频率限制:20次/秒。

接口更新时间:2026-01-28 14:57:33。

接口既验签名又鉴权。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见公共请求参数。

参数名称 必选 允许NULL 类型 描述
Action 是 否 String 公共参数,本接口取值:DescribeAgentDeploy
Version 是 否 String 公共参数,本接口取值:2018-04-20
Region 是 否 String 公共参数,地域信息本接口不需要传递此参数。
VpcId 是 是 String VPC
示例值: vpc-osmndkx5
Limit 否 是 Int64 限制数目
示例值: 1
Offset 否 是 Int64 偏移量
示例值: 10
SystemType 否 是 Int64 操作系统(-1 全部,0 linux,1 windows)
示例值: 1
AgentStatus 否 是 Int64 Agent状态 (0 已离线,1 运行中,2 过载停止,3 手动停止,4 已卸载,5 未部署,6 部署中,8 卸载中,9 卸载失败)
示例值: 1
AutoAssistant 否 是 Int64 自动化助手(-1 全部 ,0 离线,1 在线,2 未安装)
示例值: 1
SearchValues 否 是 Array of NameValueString CVM IP/名称 搜索
示例值:查看
RegionId 是 是 String 地域
示例值: ap-region

3. 输出参数

参数名称 类型 描述
JobStatus Int64 0: 任务未执行 1 任务执行中
示例值: 0
TotalCount Uint64 总数目
示例值: 10
List Array of AgentDeployInfo Agent部署列表信息
示例值:查看
VpcAccessStatus Uint64 是否打通VPC
示例值: 1
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

4. 错误码

该接口暂无业务逻辑相关的错误码,其他错误码详见公共错误码。

5. 示例

示例1 查询Agent部署列表

输入示例

POST / HTTP/1.1
Host: cds.api3.fincloud.tencent.com
Content-Type: application/json
X-TC-Action: DescribeAgentDeploy
<Common Parameters>

{
  "Limit": 100,
  "Offset": 0,
  "SystemType": 1,
  "AgentStatus": 0,
  "AutoAssistant": 0,
  "RegionId": "region",
  "VpcId": "vpc-82iwjqs",
  "SearchValues": [
    {
      "Name": "ip",
      "Value": "127.0.0.1"
    }
  ]
}

输出示例

{
    "Response": {
        "TotalCount": 1,
        "List": [
            {
                "InstanceId": "ins-3298wis",
                "InstanceName": "MyTestAssets",
                "VpcId": "vpc-12wsaZ",
                "RegionId": "region",
                "PrivateIp": "127.0.0.1",
                "SystemType": 0,
                "AutoAssistant": 0,
                "AgentStatus": 0,
                "AgentId": 0
            }
        ],
        "VpcAccessStatus": 1,
        "JobStatus": 0,
        "RequestId": "22df809b-9eea-4fd0-89e5-dd3e330c32f7"
    }
}