接口地址:/webapi/job/create
请求方式:PUT
请求数据类型:application/x-www-form-urlencoded,application/json
响应数据类型:*/*
接口描述:
创建作业
请求示例:
{
"jobLevel": 1,
"taskType": 2,
"jobType": 1,
"contentId": 753,
"otherProperties": "",
"requestId": "84dbdbb2-4b23-7a4a-3c2b-b108c24ed720"
}
请求参数:
请求参数:
| 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
|---|---|---|---|---|---|
| jSONObject | 请求json数据 | body | true | JSONObject | JSONObject |
| jobLevel | 备份作业类型1-全量2-增量,如果taskType=1,则jobLevel填0 | true | int | ||
| taskType | 1-提交planid的作业,2-提交backupobjectset的作业,3-恢复文件或者目录,4-拷贝,5-虚拟机组备份,6-虚拟机备份 | true | int | ||
| jobType | 作业类型 | true | int | ||
| contentId | 如果taskType=1,则此id表示planid,如果taskType=2,此id表示backupobjectsetid | true | Integer | ||
| otherProperties | 其他属性 | true | string | ||
| requestId | 本次请求的id | true | string |
响应状态:
| 状态码 | 说明 | schema |
|---|---|---|
| 200 | OK | ResponseResultObject |
响应参数:
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| message | 返回状态标记 | string | |
| statFlag | 返回状态 | integer(int32) | integer(int32) |
| dataInfo | 返回的数据 | object | |
| dataCount | 返回数据条数 | integer(int32) | integer(int32) |
响应示例:
{
"message": "操作成功",
"statFlag": 200,
"dataInfo": 753
}