Browse Source

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
tags/7.0.0
Cai Hui 6 months ago
parent
commit
9aa9028636

+ 4
- 3
api-ref/source/v2/jobs-v2.inc View File

@@ -141,12 +141,13 @@ Response Parameters
141 141
 
142 142
 .. rest_parameters:: parameters.yaml
143 143
 
144
+  - job_id: job_id
145
+  - client_id: client_id
144 146
   - user_id: user_id
147
+  - session_id: session_id
145 148
   - description: job_description_req
146
-  - job_schedule: job_schedule_req
147
-  - client_id: client_id
148 149
   - job_actions: job_actions_req
149
-  - job_id: job_id
150
+  - job_schedule: job_schedule_req
150 151
 
151 152
 Response Example
152 153
 ----------------

+ 0
- 2
api-ref/source/v2/samples/job-create-request.json View File

@@ -5,7 +5,6 @@
5 5
         "status": "scheduled",
6 6
         "event": "start"
7 7
     },
8
-    "project_id": "752d8bd43d654e7a840bbfda77ce41af",
9 8
     "job_actions": [
10 9
         {
11 10
             "max_retries": 5,
@@ -19,7 +18,6 @@
19 18
                 "snapshot": true,
20 19
                 "action": "backup",
21 20
                 "remove_older_than": 365,
22
-                "project_id": "752d8bd43d654e7a840bbfda77ce41af"
23 21
             }
24 22
         }
25 23
 ]

+ 3
- 3
api-ref/source/v2/samples/job-get-response.json View File

@@ -1,4 +1,5 @@
1 1
 {
2
+        "project_id": "752d8bd43d654e7a840bbfda77ce41af",
2 3
         "user_id": "0cd44caf6db5486b94a04b33256a5ff4",
3 4
         "description": "Test-0001",
4 5
         "_version": 83,
@@ -14,7 +15,6 @@
14 15
             "event": ""
15 16
         },
16 17
         "client_id": "752d8bd43d654e7a840bbfda77ce41af_szaher",
17
-        "project_id": "752d8bd43d654e7a840bbfda77ce41af",
18 18
         "job_actions":
19 19
         [
20 20
             {
@@ -29,12 +29,12 @@
29 29
                     "snapshot": false,
30 30
                     "action": "backup",
31 31
                     "remove_older_than": 365,
32
-                    "project_id": "752d8bd43d654e7a840bbfda77ce41af"
33 32
                 },
34 33
                 "max_retries": 5,
35 34
                 "max_retries_interval": 6,
36 35
                 "user_id": "0cd44caf6db5486b94a04b33256a5ff4",
37
-                "action_id": "280d51d041ce4d4da8a386e96263f759"
36
+                "action_id": "280d51d041ce4d4da8a386e96263f759",
37
+                "project_id": "752d8bd43d654e7a840bbfda77ce41af"
38 38
             }
39 39
         ],
40 40
         "job_id": "0ae284d514eb47dd84154748b5056749"

+ 0
- 2
api-ref/source/v2/samples/job-update-request.json View File

@@ -5,7 +5,6 @@
5 5
         "status": "scheduled",
6 6
         "event": "stop"
7 7
     },
8
-    "project_id": "752d8bd43d654e7a840bbfda77ce41af",
9 8
     "job_actions": [
10 9
         {
11 10
             "max_retries": 10,
@@ -20,7 +19,6 @@
20 19
                 "snapshot": false,
21 20
                 "action": "backup",
22 21
                 "remove_older_than": 365,
23
-                "project_id": "752d8bd43d654e7a840bbfda77ce41af"
24 22
             }
25 23
         }
26 24
 ]

+ 3
- 3
api-ref/source/v2/samples/jobs-list-response.json View File

@@ -2,6 +2,7 @@
2 2
         "jobs":
3 3
         [
4 4
             {
5
+                "project_id": "752d8bd43d654e7a840bbfda77ce41af",
5 6
                 "user_id": "0cd44caf6db5486b94a04b33256a5ff4",
6 7
                 "description": "Test-0001",
7 8
                 "job_schedule":
@@ -16,7 +17,6 @@
16 17
                     "event": ""
17 18
                 },
18 19
                 "client_id": "752d8bd43d654e7a840bbfda77ce41af_szaher",
19
-                "project_id": "752d8bd43d654e7a840bbfda77ce41af",
20 20
                 "job_actions":
21 21
                 [
22 22
                     {
@@ -31,12 +31,12 @@
31 31
                             "snapshot": false,
32 32
                             "action": "backup",
33 33
                             "remove_older_than": 365,
34
-                            "project_id": "752d8bd43d654e7a840bbfda77ce41af"
35 34
                         },
36 35
                         "max_retries": 5,
37 36
                         "max_retries_interval": 6,
38 37
                         "user_id": "0cd44caf6db5486b94a04b33256a5ff4",
39
-                        "action_id": "280d51d041ce4d4da8a386e96263f759"
38
+                        "action_id": "280d51d041ce4d4da8a386e96263f759",
39
+                        "project_id": "752d8bd43d654e7a840bbfda77ce41af"
40 40
                     }
41 41
                 ],
42 42
                 "job_id": "0ae284d514eb47dd84154748b5056749"

Loading…
Cancel
Save