Remove prepare_env
[functest.git] / functest / api / swagger / envs_action.yaml
1 Update hosts info
2
3 This api offers the interface to update hosts info.
4
5 action: update_hosts
6 ---
7 tags:
8   - Envs
9 parameters:
10   - in: body
11     name: body
12     description: this is the input json dict
13     schema:
14       required:
15         - action
16         - args
17       properties:
18         action:
19           type: string
20           description: this is action for envs
21           default: update_hosts
22         args:
23           type: string
24           description: Hosts info to be updated
25           default:
26             "identity.ac.dz.com": "8.20.11.22"
27             "image.ac.dz.com": "8.20.11.22"
28 definitions:
29   Environment:
30     type: object
31     properties:
32       creds_name:
33           $ref: '#/definitions/Name'
34   Name:
35     type: dict
36 responses:
37   200:
38     description: Update hosts info
39     schema:
40       $ref: '#/definitions/Environment'
41     examples:
42       'status': 0
43       'result': 'Update hosts info successfully'