Improve coverage of multicloud-azure plugin
[multicloud/azure.git] / azure / azure / api_v2 / api_definition / images.yaml
1 ---
2   info:
3     version: "1.0.0"
4     title: "Multi Cloud Image"
5     description: "Definition of Image API"
6     termsOfService: "http://swagger.io/terms/"
7   schemes:
8     - "http"
9   produces:
10     - "application/json"
11   paths:
12     /{vimid}/{tenantid}/images/{imageid}:
13       parameters:
14         - type: string
15           name: vimid
16         - type: string
17           format: uuid
18           name: tenantid
19         - type: string
20           name: imageid
21           in: path
22           required: true
23       get:
24         produces:
25           - "application/json"
26         responses:
27           "200":
28             schema:
29                 $ref: "#/definitions/image"
30       get_all:
31         produces:
32           - "application/json"
33         responses:
34           "200":
35             schema:
36                 type: "array"
37                 items:
38                   $ref: "#/definitions/image"
39       post:
40         produces:
41           - "application/json"
42         responses:
43           "200":
44             schema:
45                 $ref: "#/definitions/image"
46       delete:
47          responses: "204"
48       vim_path: "/image/v2/images"
49   definitions:
50     image:
51       plural_vim_resource: "images"
52       vim_resource: "image"
53       plural: "images"
54       properties:
55         name:
56           type: string
57           required: true
58           source: image.name
59         id:
60           type: string
61           source: image.id
62         status:
63           type: string
64           source: image.status
65         imageType:
66           type: string
67           source: image.disk_format
68         containerFormat:
69           type: string
70           source: image.container_format
71         visibility:
72           type: string
73           source: image.visibility
74         size:
75           type: integer
76           source: image.size