Improve coverage of multicloud-azure plugin
[multicloud/azure.git] / azure / multicloud_azure / api_v2 / api_definition / networks.yaml
1 ---
2   info:
3     version: "1.0.0"
4     title: "Multi Cloud Network"
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}/networks/{networkid}:
13       parameters:
14         - type: string
15           name: vimid
16         - type: string
17           format: uuid
18           name: tenantid
19         - type: string
20           name: networkid
21           in: path
22           required: true
23       get:
24         produces:
25           - "application/json"
26         responses:
27           "200":
28             schema:
29                 $ref: "#/definitions/network"
30       get_all:
31         produces:
32           - "application/json"
33         responses:
34           "200":
35             schema:
36                 type: "array"
37                 items:
38                   $ref: "#/definitions/network"
39       post:
40         produces:
41           - "application/json"
42         responses:
43           "200":
44             schema:
45                 $ref: "#/definitions/network"
46       delete:
47          responses: "204"
48       vim_path: "/network/v2.0/networks"
49   definitions:
50     network:
51       plural_vim_resource: "networks"
52       vim_resource: "network"
53       plural: "networks"
54       properties:
55         name:
56           type: string
57           required: true
58           source: network.name
59         id:
60           type: string
61           source: network.id
62         status:
63           type: string
64           source: network.status
65         segmentationId:
66           type: string
67           source: network.provider:segmentation_id
68           default: None
69         physicalNetwork:
70           type: string
71           source: network.provider:physical_network
72           default: None
73         networkType:
74           type: string
75           source: network.provider:network_type
76           default: None
77         tenantId:
78           type: string
79           source: network.tenant_id
80         shared:
81           type: boolean
82           source: network.shared
83           required: true
84         routerExternal:
85           type: boolean
86           source: network.router:external
87           required: true
88         vlanTransparent:
89           type: boolean
90           source: network.vlan_transparent
91           default: false