获取Agent手动安装命令

最近更新时间: 2026-09-17 00:05:09

1. 接口描述

接口请求域名: tapagentmanager.api3.fincloud.tencent.cn。

获取Agent手动安装命令

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

接口更新时间:2023-12-26 17:46:12。

接口既验签名又鉴权。

2. 输入参数

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

参数名称 必选 允许NULL 类型 描述
Action String 公共参数,本接口取值:GetAgentInstallCommand
Version String 公共参数,本接口取值:2023-12-15
Region String 公共参数,地域信息本接口不需要传递此参数。

3. 输出参数

参数名称 类型 描述
CommandList Array of CommandInfo Agent手动安装命令
示例值:查看
RequestId String 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。

4. 错误码

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

5. 示例

示例1 示例5

输入示例

POST / HTTP/1.1
Host: tapi.fincloud.tencent.cn
Content-Type: application/json
X-TC-Action: GetAgentInstallCommand
<公共请求参数>

{
    "Action": "GetAgentInstallCommand",
    "AppId": 1255000065,
    "ClientIp": "119.147.10.163",
    "Language": "zh-CN",
    "OperatorUin": "110000000075",
    "Region": "ap-newyork-hqtest-ops",
    "RequestId": "b3d8334f-0383-89ae-c4d3-d04f03cc9d38",
    "SubAccountUin": "110000000075",
    "Uin": "110000000075"
}

输出示例

{
    "Response": {
        "CommandList": [
            {
                "Command": "修改主机的hosts文件,增加如下内容:\n169.254.0.228 tap-repo-proxy.31011test.fsphere.cn\n使用以下命令完成安装:\ncurl http://tap-repo-proxy.31011test.fsphere.cn/generic/repo/tat_agent/1.0.8/tat_agent_1.0.8.tgz -O && tar -zxf tat_agent_1.0.8.tgz && cd tat_agent_1.0.8 && sh install.sh && cd .. && rm -rf tat_agent_1.0.8",
                "OsType": "linux"
            },
            {
                "Command": "修改主机的hosts文件,增加如下内容:\n169.254.0.228 tap-repo-proxy.31011test.fsphere.cn\n使用以下步骤完成安装:\n打开cmd,使用curl http://tap-repo-proxy.31011test.fsphere.cn/generic/repo/tat_agent/1.0.8/tat_agent_1.0.8.tgz -O 下载部署包, 通过手动解压缩软件的安装包, 进入解压缩得到的目录, 接着执行该目录下的 install.bat 脚本以完成软件的安装",
                "OsType": "win"
            }
        ],
        "RequestId": "b3d8334f-0383-89ae-c4d3-d04f03cc9d38"
    }
}