创建设备异常报告
POST
/openapi/v0.9/manage/api/v1/organizations/{org_uuid}/manage-devices/reports
es-management-service
请求参数
Path 参数
org_uuid
string
必需
Header 参数
x-user-token
string
必需
默认值:
{{x-user-token}}
X-Request-Id
string
可选
默认值:
{% mock 'uuid' %}
Body 参数application/json
appendix_files
array [object {3}]
附件文件列表
file_name
string
文件名称
file_object_key
string
文件存储key
file_size
integer
文件大小
device_topo
object
必需
required: true
hosts
array [object {3}]
可选
index
string
TAS服务原始字段
nodes
array [object {4}] | null
中继设备时必填
parents
array [object {4}]
可选
error_start_time
integer
必需
required: true
example: 1609459200
description: Unix时间戳(秒)
log_list
array [object {5}]
日志文件列表
device_sn
string
设备sn
list
array [object {4}]
可选
module
string
日志所属模块
object_key
string
存储桶key
result
integer
返回码
report_contact_information
object
必需
required: true
email
string
可选
phone
string
可选
report_information
string
必需
required: true
example: 设备出现异常情况...
description: 详细描述设备异常情况
report_uuid
string
可选
example: 4dbc6ef2-0e3c-4d47-8b32-552a44f573c5
示例
{
"report_uuid": "af728299xxxx-845a-078777ed640a",
"report_information": "{\"text\":\"仅仅测试002\",\"error_codes\":[\"test-002\"]}",
"error_start_time": 1750067655,
"device_topo": {
"parents": [
{
"device_model_key": "3-3-0",
"sn": "8Uxxx0122"
}
],
"hosts": [
{
"device_model_key": "0-100-1",
"sn": "158xxxD24BJ0010065"
}
]
},
"report_contact_information": {
"email": "xxx@dji.com",
"phone": "18xxxx954"
},
"appendix_files": [
{
"file_object_key": "device_logs/ca7480c9-xxxxx-9c504a7007cb/72164BC3-B8FB-6229-0CA8-BE97475DDD5E.png",
"file_name": "72164BC3-xxxx-BE97475DDD5E.png",
"file_size": 66365
}
],
"log_list": [],
"domains": [
{
"key": 17500xxxxx9552,
"value": "test-001"
}
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/openapi/v0.9/manage/api/v1/organizations//manage-devices/reports' \
--header 'x-user-token;' \
--header 'X-Request-Id: {% mock '\''uuid'\'' %}' \
--header 'Content-Type: application/json' \
--data-raw '{
"report_uuid": "af728299xxxx-845a-078777ed640a",
"report_information": "{\"text\":\"仅仅测试002\",\"error_codes\":[\"test-002\"]}",
"error_start_time": 1750067655,
"device_topo": {
"parents": [
{
"device_model_key": "3-3-0",
"sn": "8Uxxx0122"
}
],
"hosts": [
{
"device_model_key": "0-100-1",
"sn": "158xxxD24BJ0010065"
}
]
},
"report_contact_information": {
"email": "xxx@dji.com",
"phone": "18xxxx954"
},
"appendix_files": [
{
"file_object_key": "device_logs/ca7480c9-xxxxx-9c504a7007cb/72164BC3-B8FB-6229-0CA8-BE97475DDD5E.png",
"file_name": "72164BC3-xxxx-BE97475DDD5E.png",
"file_size": 66365
}
],
"log_list": [],
"domains": [
{
"key": 17500xxxxx9552,
"value": "test-001"
}
]
}'
返回响应
🟢200成功
application/json
Body
HTTP响应模板
code
integer
响应码
message
string
响应消息
data
object
响应数据
creat_device_job_data
object | null
可选
error_log_list
array [object {5}] | null
错误日志列表
report_uuid
string
可选
required: true
example: 4dbc6ef2-0e3c-4d47-8b32-552a44f573c5
track_number
string
可选
example: TN123456789
示例
{
"code": 0,
"message": "OK",
"data": {
"track_number": "0fbe5705-02ad-43d1-8c20-56a455321271",
"report_uuid": "ace6e0bf-a4d6-4d50-bf97-1fb9949410cd",
"error_log_list": null,
"creat_device_job_data": {
"bid": "cac86f19-2fa4-4971-9777-13b3e3784506",
"sn": "8UUDMAQ00A0200",
"biz_code": "fileupload_start",
"status": "sent",
"result": 0,
"progress": {
"percent": 0,
"current_step": 0,
"ext": null
},
"service_identifier": "fileupload_start"
}
}
}
修改于 2025-06-27 12:02:06