diff options
18 files changed, 308 insertions, 348 deletions
diff --git a/kilo/kilo/swagger/multivim.flavor.swagger.json b/kilo/kilo/swagger/multivim.flavor.swagger.json index 85e3321e..2053e039 100644 --- a/kilo/kilo/swagger/multivim.flavor.swagger.json +++ b/kilo/kilo/swagger/multivim.flavor.swagger.json @@ -94,13 +94,25 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim flavors request param", + "name": "name", + "in": "query", + "description": "flavor name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimFlavors" - } + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Requests a page size of items", + "required": false, + "type": "string" + }, + { + "name": "marker", + "in": "query", + "description": "image ID of the last-seen item", + "required": false, + "type": "string" } ], "responses": { @@ -281,23 +293,6 @@ } } }, - "ListVimFlavors": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "flavor name to filter flavor list" - }, - "limit": { - "type": "integer", - "description": "Requests a page size of items" - }, - "marker": { - "type": "string", - "description": "flavor ID of the last-seen item" - } - } - }, "VimFlavorsInfo": { "type": "object", "required": [ diff --git a/kilo/kilo/swagger/multivim.host.swagger.json b/kilo/kilo/swagger/multivim.host.swagger.json index 828aed4d..e04b5267 100644 --- a/kilo/kilo/swagger/multivim.host.swagger.json +++ b/kilo/kilo/swagger/multivim.host.swagger.json @@ -39,15 +39,6 @@ "description": "tenant UUID", "required": true, "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "get a list of vim hosts request param", - "required": false, - "schema": { - "$ref": "#/definitions/ListVimHosts" - } } ], "responses": { @@ -107,7 +98,7 @@ "200": { "description": "successful operation", "schema": { - "$ref": "#/definitions/VimHostInfo" + "$ref": "#/definitions/VimHostDetail" } }, "404": { @@ -178,6 +169,65 @@ "description": "tenant UUID" } } + }, + "VimHostDetail": { + "type": "object", + "required": [ + "vimId", + "tenantId", + "host" + ], + "properties": { + "host": { + "type": "array", + "description": "list of host information", + "items": { + "$ref": "#/definitions/VimHostResource" + } + }, + "vimId": { + "type": "string" + }, + "vimName": { + "type": "string" + }, + "tenantId": { + "type": "string", + "description": "tenant UUID" + } + } + }, + "VimHostResource": { + "type": "object", + "required": [ + "name", + "cpu", + "memory_mb", + "disk_gb", + "project" + ], + "properties": { + "name": { + "type": "string", + "description": "host name" + }, + "cpu": { + "type": "integer", + "description": "The cpu info on the host" + }, + "memory_mb": { + "type": "integer", + "description": "The memory info on the host (in MB)" + }, + "disk_gb": { + "type": "integer", + "description": "The disk info on the host (in GB)" + }, + "project": { + "type": "string", + "description": "The project id (or special name like total, used_now, used_max)." + } + } } } } diff --git a/kilo/kilo/swagger/multivim.image.swagger.json b/kilo/kilo/swagger/multivim.image.swagger.json index ece3c0db..6f8540d8 100644 --- a/kilo/kilo/swagger/multivim.image.swagger.json +++ b/kilo/kilo/swagger/multivim.image.swagger.json @@ -94,13 +94,25 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim images request param", + "name": "name", + "in": "query", + "description": "images name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimImages" - } + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Requests a page size of items", + "required": false, + "type": "string" + }, + { + "name": "marker", + "in": "query", + "description": "image ID of the last-seen item", + "required": false, + "type": "string" } ], "responses": { @@ -273,23 +285,6 @@ } } }, - "ListVimImages": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "image name to filter image list" - }, - "limit": { - "type": "string", - "description": "Requests a page size of items" - }, - "marker": { - "type": "string", - "description": "image ID of the last-seen item" - } - } - }, "VimImagesInfo": { "type": "object", "required": [ diff --git a/kilo/kilo/swagger/multivim.network.swagger.json b/kilo/kilo/swagger/multivim.network.swagger.json index 9d9bd323..92794d64 100644 --- a/kilo/kilo/swagger/multivim.network.swagger.json +++ b/kilo/kilo/swagger/multivim.network.swagger.json @@ -94,13 +94,11 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim networks request param", + "name": "name", + "in": "query", + "description": "network name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimNetworks" - } + "type": "string" } ], "responses": { @@ -260,15 +258,6 @@ } } }, - "ListVimNetworks": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "network name" - } - } - }, "VimNetworksInfo": { "type": "object", "required": [ diff --git a/kilo/kilo/swagger/multivim.server.swagger.json b/kilo/kilo/swagger/multivim.server.swagger.json index 27a49068..14b1d0e9 100644 --- a/kilo/kilo/swagger/multivim.server.swagger.json +++ b/kilo/kilo/swagger/multivim.server.swagger.json @@ -94,13 +94,25 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim servers request param", + "name": "name", + "in": "query", + "description": "server name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimServers" - } + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Requests a page size of items", + "required": false, + "type": "string" + }, + { + "name": "marker", + "in": "query", + "description": "image ID of the last-seen item", + "required": false, + "type": "string" } ], "responses": { @@ -350,23 +362,6 @@ } } }, - "ListVimServers": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "server name to filter server list" - }, - "limit": { - "type": "integer", - "description": "Requests a page size of items" - }, - "marker": { - "type": "string", - "description": "server ID of the last-seen item" - } - } - }, "VimServersInfo": { "type": "object", "required": [ diff --git a/kilo/kilo/swagger/multivim.subnet.swagger.json b/kilo/kilo/swagger/multivim.subnet.swagger.json index 9381cb0c..301c0fc8 100644 --- a/kilo/kilo/swagger/multivim.subnet.swagger.json +++ b/kilo/kilo/swagger/multivim.subnet.swagger.json @@ -94,13 +94,11 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim subnets request param", + "name": "name", + "in": "query", + "description": "subnet name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimSubnets" - } + "type": "string" } ], "responses": { @@ -304,15 +302,6 @@ } } }, - "ListVimSubnets": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "subnet name" - } - } - }, "VimSubnetsInfo": { "type": "object", "required": [ diff --git a/kilo/kilo/swagger/multivim.tenant.swagger.json b/kilo/kilo/swagger/multivim.tenant.swagger.json index 802285a0..0f718745 100644 --- a/kilo/kilo/swagger/multivim.tenant.swagger.json +++ b/kilo/kilo/swagger/multivim.tenant.swagger.json @@ -34,13 +34,11 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim tenants request param", + "name": "name", + "in": "query", + "description": "tenant name to filter tenant list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimTenants" - } + "type": "string" } ], "responses": { @@ -61,15 +59,6 @@ } }, "definitions": { - "ListVimTenants": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "tenant name to filter tenant list" - } - } - }, "VimTenantsInfo": { "type": "object", "required": [ @@ -106,12 +95,6 @@ "id": { "type": "string", "description": "tenant UUID" - }, - "vimId": { - "type": "string" - }, - "vimName": { - "type": "string" } } } diff --git a/kilo/kilo/swagger/multivim.volume.swagger.json b/kilo/kilo/swagger/multivim.volume.swagger.json index d22cfa49..fe210441 100644 --- a/kilo/kilo/swagger/multivim.volume.swagger.json +++ b/kilo/kilo/swagger/multivim.volume.swagger.json @@ -94,13 +94,25 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim volumes request param", + "name": "name", + "in": "query", + "description": "volumn name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimVolumes" - } + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Requests a page size of items", + "required": false, + "type": "string" + }, + { + "name": "marker", + "in": "query", + "description": "image ID of the last-seen item", + "required": false, + "type": "string" } ], "responses": { @@ -251,23 +263,6 @@ } } }, - "ListVimVolumes": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "volume name to filter volume list" - }, - "limit": { - "type": "integer", - "description": "Requests a page size of items" - }, - "marker": { - "type": "string", - "description": "volume ID of the last-seen item" - } - } - }, "VimVolumesInfo": { "type": "object", "required": [ @@ -334,6 +329,10 @@ "$ref": "#/definitions/VimVolumeAttachmentInfo" } }, + "status": { + "type": "string", + "description": "volume status" + }, "vimId": { "type": "string" }, diff --git a/kilo/kilo/swagger/multivim.vport.swagger.json b/kilo/kilo/swagger/multivim.vport.swagger.json index b78f1a1d..5a70dfbc 100644 --- a/kilo/kilo/swagger/multivim.vport.swagger.json +++ b/kilo/kilo/swagger/multivim.vport.swagger.json @@ -94,13 +94,11 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim virtual ports request param", + "name": "name", + "in": "query", + "description": "virtual port name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimPorts" - } + "type": "string" } ], "responses": { @@ -226,10 +224,7 @@ "type": "object", "required": [ "networkId", - "subnetId", - "name", - "cidr", - "ipVersion" + "name" ], "properties": { "networkId": { @@ -265,15 +260,6 @@ } } }, - "ListVimPorts": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "virtual port name" - } - } - }, "VimPortsInfo": { "type": "object", "required": [ @@ -307,8 +293,7 @@ "name", "status", "id", - "networkId", - "subnetId" + "networkId" ], "properties": { "name": { diff --git a/newton/newton/swagger/multivim.flavor.swagger.json b/newton/newton/swagger/multivim.flavor.swagger.json index 85e3321e..2053e039 100644 --- a/newton/newton/swagger/multivim.flavor.swagger.json +++ b/newton/newton/swagger/multivim.flavor.swagger.json @@ -94,13 +94,25 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim flavors request param", + "name": "name", + "in": "query", + "description": "flavor name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimFlavors" - } + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Requests a page size of items", + "required": false, + "type": "string" + }, + { + "name": "marker", + "in": "query", + "description": "image ID of the last-seen item", + "required": false, + "type": "string" } ], "responses": { @@ -281,23 +293,6 @@ } } }, - "ListVimFlavors": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "flavor name to filter flavor list" - }, - "limit": { - "type": "integer", - "description": "Requests a page size of items" - }, - "marker": { - "type": "string", - "description": "flavor ID of the last-seen item" - } - } - }, "VimFlavorsInfo": { "type": "object", "required": [ diff --git a/newton/newton/swagger/multivim.host.swagger.json b/newton/newton/swagger/multivim.host.swagger.json index 828aed4d..e04b5267 100644 --- a/newton/newton/swagger/multivim.host.swagger.json +++ b/newton/newton/swagger/multivim.host.swagger.json @@ -39,15 +39,6 @@ "description": "tenant UUID", "required": true, "type": "string" - }, - { - "in": "body", - "name": "body", - "description": "get a list of vim hosts request param", - "required": false, - "schema": { - "$ref": "#/definitions/ListVimHosts" - } } ], "responses": { @@ -107,7 +98,7 @@ "200": { "description": "successful operation", "schema": { - "$ref": "#/definitions/VimHostInfo" + "$ref": "#/definitions/VimHostDetail" } }, "404": { @@ -178,6 +169,65 @@ "description": "tenant UUID" } } + }, + "VimHostDetail": { + "type": "object", + "required": [ + "vimId", + "tenantId", + "host" + ], + "properties": { + "host": { + "type": "array", + "description": "list of host information", + "items": { + "$ref": "#/definitions/VimHostResource" + } + }, + "vimId": { + "type": "string" + }, + "vimName": { + "type": "string" + }, + "tenantId": { + "type": "string", + "description": "tenant UUID" + } + } + }, + "VimHostResource": { + "type": "object", + "required": [ + "name", + "cpu", + "memory_mb", + "disk_gb", + "project" + ], + "properties": { + "name": { + "type": "string", + "description": "host name" + }, + "cpu": { + "type": "integer", + "description": "The cpu info on the host" + }, + "memory_mb": { + "type": "integer", + "description": "The memory info on the host (in MB)" + }, + "disk_gb": { + "type": "integer", + "description": "The disk info on the host (in GB)" + }, + "project": { + "type": "string", + "description": "The project id (or special name like total, used_now, used_max)." + } + } } } } diff --git a/newton/newton/swagger/multivim.image.swagger.json b/newton/newton/swagger/multivim.image.swagger.json index ece3c0db..6f8540d8 100644 --- a/newton/newton/swagger/multivim.image.swagger.json +++ b/newton/newton/swagger/multivim.image.swagger.json @@ -94,13 +94,25 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim images request param", + "name": "name", + "in": "query", + "description": "images name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimImages" - } + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Requests a page size of items", + "required": false, + "type": "string" + }, + { + "name": "marker", + "in": "query", + "description": "image ID of the last-seen item", + "required": false, + "type": "string" } ], "responses": { @@ -273,23 +285,6 @@ } } }, - "ListVimImages": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "image name to filter image list" - }, - "limit": { - "type": "string", - "description": "Requests a page size of items" - }, - "marker": { - "type": "string", - "description": "image ID of the last-seen item" - } - } - }, "VimImagesInfo": { "type": "object", "required": [ diff --git a/newton/newton/swagger/multivim.network.swagger.json b/newton/newton/swagger/multivim.network.swagger.json index 9d9bd323..92794d64 100644 --- a/newton/newton/swagger/multivim.network.swagger.json +++ b/newton/newton/swagger/multivim.network.swagger.json @@ -94,13 +94,11 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim networks request param", + "name": "name", + "in": "query", + "description": "network name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimNetworks" - } + "type": "string" } ], "responses": { @@ -260,15 +258,6 @@ } } }, - "ListVimNetworks": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "network name" - } - } - }, "VimNetworksInfo": { "type": "object", "required": [ diff --git a/newton/newton/swagger/multivim.server.swagger.json b/newton/newton/swagger/multivim.server.swagger.json index 27a49068..14b1d0e9 100644 --- a/newton/newton/swagger/multivim.server.swagger.json +++ b/newton/newton/swagger/multivim.server.swagger.json @@ -94,13 +94,25 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim servers request param", + "name": "name", + "in": "query", + "description": "server name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimServers" - } + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Requests a page size of items", + "required": false, + "type": "string" + }, + { + "name": "marker", + "in": "query", + "description": "image ID of the last-seen item", + "required": false, + "type": "string" } ], "responses": { @@ -350,23 +362,6 @@ } } }, - "ListVimServers": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "server name to filter server list" - }, - "limit": { - "type": "integer", - "description": "Requests a page size of items" - }, - "marker": { - "type": "string", - "description": "server ID of the last-seen item" - } - } - }, "VimServersInfo": { "type": "object", "required": [ diff --git a/newton/newton/swagger/multivim.subnet.swagger.json b/newton/newton/swagger/multivim.subnet.swagger.json index 9381cb0c..301c0fc8 100644 --- a/newton/newton/swagger/multivim.subnet.swagger.json +++ b/newton/newton/swagger/multivim.subnet.swagger.json @@ -94,13 +94,11 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim subnets request param", + "name": "name", + "in": "query", + "description": "subnet name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimSubnets" - } + "type": "string" } ], "responses": { @@ -304,15 +302,6 @@ } } }, - "ListVimSubnets": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "subnet name" - } - } - }, "VimSubnetsInfo": { "type": "object", "required": [ diff --git a/newton/newton/swagger/multivim.tenant.swagger.json b/newton/newton/swagger/multivim.tenant.swagger.json index 802285a0..0f718745 100644 --- a/newton/newton/swagger/multivim.tenant.swagger.json +++ b/newton/newton/swagger/multivim.tenant.swagger.json @@ -34,13 +34,11 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim tenants request param", + "name": "name", + "in": "query", + "description": "tenant name to filter tenant list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimTenants" - } + "type": "string" } ], "responses": { @@ -61,15 +59,6 @@ } }, "definitions": { - "ListVimTenants": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "tenant name to filter tenant list" - } - } - }, "VimTenantsInfo": { "type": "object", "required": [ @@ -106,12 +95,6 @@ "id": { "type": "string", "description": "tenant UUID" - }, - "vimId": { - "type": "string" - }, - "vimName": { - "type": "string" } } } diff --git a/newton/newton/swagger/multivim.volume.swagger.json b/newton/newton/swagger/multivim.volume.swagger.json index d22cfa49..fe210441 100644 --- a/newton/newton/swagger/multivim.volume.swagger.json +++ b/newton/newton/swagger/multivim.volume.swagger.json @@ -94,13 +94,25 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim volumes request param", + "name": "name", + "in": "query", + "description": "volumn name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimVolumes" - } + "type": "string" + }, + { + "name": "limit", + "in": "query", + "description": "Requests a page size of items", + "required": false, + "type": "string" + }, + { + "name": "marker", + "in": "query", + "description": "image ID of the last-seen item", + "required": false, + "type": "string" } ], "responses": { @@ -251,23 +263,6 @@ } } }, - "ListVimVolumes": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "volume name to filter volume list" - }, - "limit": { - "type": "integer", - "description": "Requests a page size of items" - }, - "marker": { - "type": "string", - "description": "volume ID of the last-seen item" - } - } - }, "VimVolumesInfo": { "type": "object", "required": [ @@ -334,6 +329,10 @@ "$ref": "#/definitions/VimVolumeAttachmentInfo" } }, + "status": { + "type": "string", + "description": "volume status" + }, "vimId": { "type": "string" }, diff --git a/newton/newton/swagger/multivim.vport.swagger.json b/newton/newton/swagger/multivim.vport.swagger.json index b78f1a1d..5a70dfbc 100644 --- a/newton/newton/swagger/multivim.vport.swagger.json +++ b/newton/newton/swagger/multivim.vport.swagger.json @@ -94,13 +94,11 @@ "type": "string" }, { - "in": "body", - "name": "body", - "description": "get a list of vim virtual ports request param", + "name": "name", + "in": "query", + "description": "virtual port name to filter list", "required": false, - "schema": { - "$ref": "#/definitions/ListVimPorts" - } + "type": "string" } ], "responses": { @@ -226,10 +224,7 @@ "type": "object", "required": [ "networkId", - "subnetId", - "name", - "cidr", - "ipVersion" + "name" ], "properties": { "networkId": { @@ -265,15 +260,6 @@ } } }, - "ListVimPorts": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "virtual port name" - } - } - }, "VimPortsInfo": { "type": "object", "required": [ @@ -307,8 +293,7 @@ "name", "status", "id", - "networkId", - "subnetId" + "networkId" ], "properties": { "name": { |