任务详情查询接口
GET
/api/deployment/task/detail
请求参数
Query 参数
task_id
integer
任务id
示例值:
388
Header 参数
token
string
必需
timestamp
string
必需
示例值:
1747379023000
version
string
必需
示例值:
1.0.0
sign_str
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://openapi.suanli.cn/api/deployment/task/detail?task_id=388' \
--header 'token;' \
--header 'timestamp: 1747379023000' \
--header 'version: 1.0.0' \
--header 'sign_str;'
返回响应
🟢200成功
application/json
Body
code
string
响应码
message
string
响应文案
data
object
必需
task_id
integer
任务id
task_name
string
任务名
resources
array [object {2}]
资源
status
string
任务状态
points
integer
任务节点数量
runing_points
integer
计费中节点数量
billing_value
integer
计费coin量
forecast_value
integer
每秒计费量(coin)
services
array [object {6}]
服务列表
示例
{
"code": "0000",
"message": "success",
"data": {
"task_id": 383,
"task_name": "suanleme-corn-job-handlererror",
"resources": [
{
"resource": {
"device_name": "910B",
"region": "qinghai-yidong",
"gpu_name": "910B",
"gpu_count": 1,
"gpu_memory": 24564,
"memory": 64512,
"cpu_cores": 13
},
"mark": "L3G2WlaG+chj2qDncuEp6ilXCJS9cyF0zVOCX6zAee+qpZS1aK0zi/LPO717R0ciNymOGDHuJ2PCZ0+HVA92mq25CHio0t/pzLOdQa0paiDu+4t7DJ5GKtMw/JREDjrh1cFGFtmlukNR4pxA8+fwEkVhDoqGNH/e6tvHNvAixAITrMHYswpXMjhablYihexEyw=="
}
],
"status": "Running",
"points": 4,
"runing_points": 2,
"billing_value": 0,
"forecast_value": 0,
"services": [
{
"service_id": 383,
"service_name": "suanleme-corn-job-handlererror",
"service_image": "harbor.suanleme.cn/library/ffmpeg-api:cpu",
"remote_ports": [
{
"url": "https://suanleme-corn-job-handlererror-36-68zboyj4-8000.suanleme.cloud",
"service_port": 8000
}
],
"health_checks": {
"liveness_probe": {
"switch": false,
"probe_type": "httpGet",
"path": "/live",
"port": 80,
"initial_delay_seconds": 0,
"period_seconds": 10,
"timeout_seconds": 1,
"failure_threshold": 3
},
"startup_probe": {
"switch": false,
"probe_type": "httpGet",
"path": "/health",
"port": 80,
"initial_delay_seconds": 0,
"period_seconds": 10,
"timeout_seconds": 1,
"failure_threshold": 3
},
"readiness_probe": {
"switch": false,
"probe_type": "httpGet",
"path": "/ready",
"port": 80,
"initial_delay_seconds": 0,
"period_seconds": 10,
"timeout_seconds": 1,
"failure_threshold": 3
}
},
"env": null,
"start_script": null
}
]
}
}