aboutsummaryrefslogtreecommitdiffstats
path: root/functest/api/swagger/envs_action.yaml
blob: 3ad6c880dfa9e4d1af493b3d49e9bb1e95f4d9f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
Update hosts info

This api offers the interface to update hosts info.
---
tags:
    - Envs
parameters:
    - in: body
      name: body
      description: this is the input json dict
      schema:
          required:
              - action
              - args
          properties:
              action:
                  type: string
                  description: this is action for envs
                  default: update_hosts
              args:
                  type: string
                  description: Hosts info to be updated
                  default:
                      "identity.ac.dz.com": "8.20.11.22"
                      "image.ac.dz.com": "8.20.11.22"
definitions:
    Environment:
        type: object
        properties:
            creds_name:
                $ref: '#/definitions/Name'
    Name:
        type: dict
responses:
    200:
        description: Update hosts info
        schema:
            $ref: '#/definitions/Environment'
        examples:
            'status': 0
            'result': 'Update hosts info successfully'