summaryrefslogtreecommitdiffstats
path: root/vio/vio/api_v2/api_definition/hosts.yaml
blob: 89662f9fdc06fd6706d1c9211c42d32604f7c5d8 (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
  info:
    version: "1.0.0"
    title: "Multi Cloud Host"
    description: "Definition of Host API"
    termsOfService: "http://swagger.io/terms/"
  schemes:
    - "http"
  produces:
    - "application/json"
  paths:
    /{vimid}/{tenantid}/hosts/{hostid}:
      parameters:
        - type: string
          name: vimid
        - type: string
          format: uuid
          name: tenantid
        - type: string
          name: hostid
          in: path
          required: true
      get:
        produces:
          - "application/json"
        responses:
          "200":
            schema:
                $ref: "#/definitions/host"
      get_all:
        produces:
          - "application/json"
        responses:
          "200":
            schema:
                type: "array"
                items:
                  $ref: "#/definitions/host"
      vim_path: "/compute/os-hypervisors"
  definitions:
      host:
        plural_vim_resource: "hypervisors"
        vim_resource: "hypervisor"
        plural: "hosts"
        properties:
          name:
            type: string
            required: true
            source: hypervisor.hypervisor_hostname
          id:
            type: string
            required: true
            source: hypervisor.id
          status:
            type: string
            source: hypervisor.status
          state:
            type: string
            source: hypervisor.state
          cpu:
            type: integer
            minimal: 1
            source: hypervisor.vcpus
            action: copy
          disk_gb:
            type: integer
            minimal: 0
            source: hypervisor.local_gb
          memory_mb:
            type: integer
            minimal: 0
            source: hypervisor.memory_mb