diff options
author | SudhakarReddy <Sudhakar.Reddy@amdocs.com> | 2018-09-06 12:37:26 +0300 |
---|---|---|
committer | SudhakarReddy <Sudhakar.Reddy@amdocs.com> | 2018-09-06 12:54:35 +0300 |
commit | e212f4fcb3d6f7d2853c6a80144f193b6cc266bf (patch) | |
tree | 3c49cb66dea9b1cfee90bb185c8c8969915dca69 /azure/multicloud_azure/api_v2/api_definition/networks.yaml | |
parent | 98609ecffcaef619e31044ac40b71b4fa8858357 (diff) |
Added V0 Registry API
Change-Id: Iac61b136485ddb06b76d8b701ab51e8e18439e94
Issue-ID: MULTICLOUD-354
Signed-off-by: SudhakarReddy <Sudhakar.Reddy@amdocs.com>
Diffstat (limited to 'azure/multicloud_azure/api_v2/api_definition/networks.yaml')
-rw-r--r-- | azure/multicloud_azure/api_v2/api_definition/networks.yaml | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/azure/multicloud_azure/api_v2/api_definition/networks.yaml b/azure/multicloud_azure/api_v2/api_definition/networks.yaml new file mode 100644 index 0000000..c00808f --- /dev/null +++ b/azure/multicloud_azure/api_v2/api_definition/networks.yaml @@ -0,0 +1,91 @@ +--- + info: + version: "1.0.0" + title: "Multi Cloud Network" + description: "Definition of Host API" + termsOfService: "http://swagger.io/terms/" + schemes: + - "http" + produces: + - "application/json" + paths: + /{vimid}/{tenantid}/networks/{networkid}: + parameters: + - type: string + name: vimid + - type: string + format: uuid + name: tenantid + - type: string + name: networkid + in: path + required: true + get: + produces: + - "application/json" + responses: + "200": + schema: + $ref: "#/definitions/network" + get_all: + produces: + - "application/json" + responses: + "200": + schema: + type: "array" + items: + $ref: "#/definitions/network" + post: + produces: + - "application/json" + responses: + "200": + schema: + $ref: "#/definitions/network" + delete: + responses: "204" + vim_path: "/network/v2.0/networks" + definitions: + network: + plural_vim_resource: "networks" + vim_resource: "network" + plural: "networks" + properties: + name: + type: string + required: true + source: network.name + id: + type: string + source: network.id + status: + type: string + source: network.status + segmentationId: + type: string + source: network.provider:segmentation_id + default: None + physicalNetwork: + type: string + source: network.provider:physical_network + default: None + networkType: + type: string + source: network.provider:network_type + default: None + tenantId: + type: string + source: network.tenant_id + shared: + type: boolean + source: network.shared + required: true + routerExternal: + type: boolean + source: network.router:external + required: true + vlanTransparent: + type: boolean + source: network.vlan_transparent + default: false |