获取任务详情
GET
/task/api/v1.0/projects/{project_uuid}/flight-tasks/{task_uuid}请求参数
Path 参数
project_uuid
string
项目uuid
示例值:
{{project_uuid}}
task_uuid
string
必需
任务uuid(调用“创建任务”接口时,如果创建成功,系统会返回任务uuid)
示例值:
1dc16944-a82f-47ec-bfde-205781a8f6b1
Header 参数
X-Organization-Key
string
组织密钥
示例值:
{{organization_key}}
示例代码
返回响应
成功(200)
401(401)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
非0代表异常
message
string
消息提示
data
object
必需
name
string
任务名称
uuid
string
任务uuid
task_type
enum<integer>
任务类型
枚举值:
1234567
status
enum<integer>
必需
0: 待开始 1: 启动失败 2:执行中 3:已暂停 4:终止 5:成功 6:挂起 7:超时 8:部分执行 9:准备中
枚举值:
012345689
sn
string
机场sn
landing_dock_sn
string
必需
计划降落的机场sn,非蛙跳任务为空
wayline_uuid
string
航线uuid
begin_at
string
任务计划执行时间
extended_begin_at
null
必需
固定为null,可忽略
continuous_task_periods
null
必需
固定为null,可忽略
end_at
string
任务计划结束时间
repeat_type
integer
固定为0,可忽略
默认值:
0
interval
integer
固定为0,可忽略
dow
null
必需
固定为null,可忽略
dom
null
必需
固定为null,可忽略
wom
integer
固定为0,可忽略
out_of_control_action_in_flight
integer
航线失控动作
rth_altitude
integer
返航高度
rth_mode
enum<integer>
返航模式
枚举值:
01
min_battery_capacity
integer
必需
断点续飞或连续任务的起飞电量
resumable_status
enum<string>
续飞状态
枚举值:
automanual
wayline_precision_type
enum<integer>
任务精度类型
枚举值:
01
tags
array[string]
设备直传任务标签
cloud_to_cloud_id
string
必需
打开设备媒体直传功能后,此处会有一个表示第三方云的ID,无实际用处
exceptions
array [object {9}]
任务异常
示例
{
"code": 0,
"message": "success",
"data": {
"name": "新建计划",
"uuid": "459268e4-82bf-485a-b02d-48c6a99a5abc",
"task_type": 1,
"status": 4,
"sn": "7CTDL000000000",
"landing_dock_sn": "",
"wayline_uuid": "65d7e611-d0fd-4b96-8466-e7018bca7af3",
"begin_at": "2023-12-20T07:41:52.206474Z",
"extended_begin_at": null,
"continuous_task_periods": null,
"end_at": "2023-12-20T07:43:32.206475Z",
"repeat_type": 0,
"interval": 0,
"dow": null,
"dom": null,
"wom": 0,
"out_of_control_action_in_flight": 1,
"rth_altitude": 90,
"rth_mode": 1,
"min_battery_capacity": 0,
"resumable_status": "manual",
"wayline_precision_type": 1,
"tags": [],
"cloud_to_cloud_id": "220ea3f3-5b3b-4425-8dd2-7e1c91079d16"
}
}
最后修改时间: 3 个月前