基础设施相关接口/安装器
POSTInstaller起始版本 1.0同步需要认证
测试安装器软件仓库连接
测试连通性已配置软件仓库返回结果。
调试可用性
在线调试
使用当前认证信息和示例参数提交 Mock 请求。
请求参数
请求体字段
configObject必填配置信息。
modeString软件仓库访问模式在线上游目录本地目录。
示例: online
tokenString令牌。
示例: ****
baseUrlString上游软件仓库服务。
示例: https://depot.example.com
localDirString本地目录路径模式目录。
示例: /opt/packages
channelString可选渠道过滤软件包列表。
示例: stable
httpProxyString可选HTTP代理地址软件仓库访问。
示例: http://proxy.example.com:3128
响应状态
请求地址
POST/api/v1/installer/depot/test-connection
/api/v1/installer/depot/test-connection
请求示例
curl -X POST '{host}/api/v1/installer/depot/test-connection' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"config":{"mode":"online","token":"****","baseUrl":"https://depot.example.com","localDir":"/opt/packages","channel":"stable","httpProxy":"http://proxy.example.com:3128"}}'
响应示例
200{
"connected": true,
"connectedAt": "example"
}变更历史
此 API 暂无变更历史记录。
