Update jobs(v2) api-def
Fix some bugs of jobs(v2) in api-ref 1.The respense of "Show Jobs" is missing a "session_id" paramenter. 2.The files of job-create-request.json, job-update-request.json have a unnecessary items "project_id" 3.The "project_id" is a public paramenter in freezer_action, so changed its loaction in the files of job-get-response.json,job-list-response.json. Change-Id: I0e24a5d5eabb1323c53c5268bbeadf4418c11fae
This commit is contained in:
parent
ca1c83094d
commit
9aa9028636
|
@ -141,12 +141,13 @@ Response Parameters
|
||||||
|
|
||||||
.. rest_parameters:: parameters.yaml
|
.. rest_parameters:: parameters.yaml
|
||||||
|
|
||||||
- user_id: user_id
|
|
||||||
- description: job_description_req
|
|
||||||
- job_schedule: job_schedule_req
|
|
||||||
- client_id: client_id
|
|
||||||
- job_actions: job_actions_req
|
|
||||||
- job_id: job_id
|
- job_id: job_id
|
||||||
|
- client_id: client_id
|
||||||
|
- user_id: user_id
|
||||||
|
- session_id: session_id
|
||||||
|
- description: job_description_req
|
||||||
|
- job_actions: job_actions_req
|
||||||
|
- job_schedule: job_schedule_req
|
||||||
|
|
||||||
Response Example
|
Response Example
|
||||||
----------------
|
----------------
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
"status": "scheduled",
|
"status": "scheduled",
|
||||||
"event": "start"
|
"event": "start"
|
||||||
},
|
},
|
||||||
"project_id": "752d8bd43d654e7a840bbfda77ce41af",
|
|
||||||
"job_actions": [
|
"job_actions": [
|
||||||
{
|
{
|
||||||
"max_retries": 5,
|
"max_retries": 5,
|
||||||
|
@ -19,7 +18,6 @@
|
||||||
"snapshot": true,
|
"snapshot": true,
|
||||||
"action": "backup",
|
"action": "backup",
|
||||||
"remove_older_than": 365,
|
"remove_older_than": 365,
|
||||||
"project_id": "752d8bd43d654e7a840bbfda77ce41af"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
"project_id": "752d8bd43d654e7a840bbfda77ce41af",
|
||||||
"user_id": "0cd44caf6db5486b94a04b33256a5ff4",
|
"user_id": "0cd44caf6db5486b94a04b33256a5ff4",
|
||||||
"description": "Test-0001",
|
"description": "Test-0001",
|
||||||
"_version": 83,
|
"_version": 83,
|
||||||
|
@ -14,7 +15,6 @@
|
||||||
"event": ""
|
"event": ""
|
||||||
},
|
},
|
||||||
"client_id": "752d8bd43d654e7a840bbfda77ce41af_szaher",
|
"client_id": "752d8bd43d654e7a840bbfda77ce41af_szaher",
|
||||||
"project_id": "752d8bd43d654e7a840bbfda77ce41af",
|
|
||||||
"job_actions":
|
"job_actions":
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
@ -29,12 +29,12 @@
|
||||||
"snapshot": false,
|
"snapshot": false,
|
||||||
"action": "backup",
|
"action": "backup",
|
||||||
"remove_older_than": 365,
|
"remove_older_than": 365,
|
||||||
"project_id": "752d8bd43d654e7a840bbfda77ce41af"
|
|
||||||
},
|
},
|
||||||
"max_retries": 5,
|
"max_retries": 5,
|
||||||
"max_retries_interval": 6,
|
"max_retries_interval": 6,
|
||||||
"user_id": "0cd44caf6db5486b94a04b33256a5ff4",
|
"user_id": "0cd44caf6db5486b94a04b33256a5ff4",
|
||||||
"action_id": "280d51d041ce4d4da8a386e96263f759"
|
"action_id": "280d51d041ce4d4da8a386e96263f759",
|
||||||
|
"project_id": "752d8bd43d654e7a840bbfda77ce41af"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"job_id": "0ae284d514eb47dd84154748b5056749"
|
"job_id": "0ae284d514eb47dd84154748b5056749"
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
"status": "scheduled",
|
"status": "scheduled",
|
||||||
"event": "stop"
|
"event": "stop"
|
||||||
},
|
},
|
||||||
"project_id": "752d8bd43d654e7a840bbfda77ce41af",
|
|
||||||
"job_actions": [
|
"job_actions": [
|
||||||
{
|
{
|
||||||
"max_retries": 10,
|
"max_retries": 10,
|
||||||
|
@ -20,7 +19,6 @@
|
||||||
"snapshot": false,
|
"snapshot": false,
|
||||||
"action": "backup",
|
"action": "backup",
|
||||||
"remove_older_than": 365,
|
"remove_older_than": 365,
|
||||||
"project_id": "752d8bd43d654e7a840bbfda77ce41af"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
"jobs":
|
"jobs":
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
"project_id": "752d8bd43d654e7a840bbfda77ce41af",
|
||||||
"user_id": "0cd44caf6db5486b94a04b33256a5ff4",
|
"user_id": "0cd44caf6db5486b94a04b33256a5ff4",
|
||||||
"description": "Test-0001",
|
"description": "Test-0001",
|
||||||
"job_schedule":
|
"job_schedule":
|
||||||
|
@ -16,7 +17,6 @@
|
||||||
"event": ""
|
"event": ""
|
||||||
},
|
},
|
||||||
"client_id": "752d8bd43d654e7a840bbfda77ce41af_szaher",
|
"client_id": "752d8bd43d654e7a840bbfda77ce41af_szaher",
|
||||||
"project_id": "752d8bd43d654e7a840bbfda77ce41af",
|
|
||||||
"job_actions":
|
"job_actions":
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
@ -31,12 +31,12 @@
|
||||||
"snapshot": false,
|
"snapshot": false,
|
||||||
"action": "backup",
|
"action": "backup",
|
||||||
"remove_older_than": 365,
|
"remove_older_than": 365,
|
||||||
"project_id": "752d8bd43d654e7a840bbfda77ce41af"
|
|
||||||
},
|
},
|
||||||
"max_retries": 5,
|
"max_retries": 5,
|
||||||
"max_retries_interval": 6,
|
"max_retries_interval": 6,
|
||||||
"user_id": "0cd44caf6db5486b94a04b33256a5ff4",
|
"user_id": "0cd44caf6db5486b94a04b33256a5ff4",
|
||||||
"action_id": "280d51d041ce4d4da8a386e96263f759"
|
"action_id": "280d51d041ce4d4da8a386e96263f759",
|
||||||
|
"project_id": "752d8bd43d654e7a840bbfda77ce41af"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"job_id": "0ae284d514eb47dd84154748b5056749"
|
"job_id": "0ae284d514eb47dd84154748b5056749"
|
||||||
|
|
Loading…
Reference in New Issue