Improve coverage of multicloud-azure plugin
[multicloud/azure.git] / azure / multicloud_azure / api_v2 / api_definition / hosts.yaml
1 ---
2   info:
3     version: "1.0.0"
4     title: "Multi Cloud Host"
5     description: "Definition of Host API"
6     termsOfService: "http://swagger.io/terms/"
7   schemes:
8     - "http"
9   produces:
10     - "application/json"
11   paths:
12     /{vimid}/{tenantid}/hosts/{hostid}:
13       parameters:
14         - type: string
15           name: vimid
16         - type: string
17           format: uuid
18           name: tenantid
19         - type: string
20           name: hostid
21           in: path
22           required: true
23       get:
24         produces:
25           - "application/json"
26         responses:
27           "200":
28             schema:
29                 $ref: "#/definitions/host"
30       get_all:
31         produces:
32           - "application/json"
33         responses:
34           "200":
35             schema:
36                 type: "array"
37                 items:
38                   $ref: "#/definitions/host"
39       vim_path: "/compute/os-hypervisors"
40   definitions:
41     host:
42       plural_vim_resource: "hypervisors"
43       vim_resource: "hypervisor"
44       plural: "hosts"
45       properties:
46         name:
47           type: string
48           required: true
49           source: hypervisor.hypervisor_hostname
50         id:
51           type: string
52           required: true
53           source: hypervisor.id
54         status:
55           type: string
56           source: hypervisor.status
57         state:
58           type: string
59           source: hypervisor.state
60         cpu:
61           type: integer
62           minimal: 1
63           source: hypervisor.vcpus
64           action: copy
65         disk_gb:
66           type: integer
67           minimal: 0
68           source: hypervisor.local_gb
69         memory_mb:
70           type: integer
71           minimal: 0
72           source: hypervisor.memory_mb