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