"tags": [
"vnf Resource"
],
- "summary": "query the specified vnf info",
+ "summary": "query the single vnf info",
"description": "",
- "operationId": "query_vnf",
+ "operationId": "query_single_vnf",
"consumes": [
"application/json"
],
"200": {
"description": "successful operation",
"schema": {
- "$ref": "#/definitions/VNFInfo"
+ "$ref": "#/definitions/SingleVnfInfo"
}
},
"404": {
"tags": [
"vnfs Resource"
],
- "summary": "query the specified vnfs info",
+ "summary": "query the vnfs info",
"description": "",
- "operationId": "query_vnfs",
+ "operationId": "query_many_vnf",
"consumes": [
"application/json"
],
],
"parameters": [
{
- "name": "body",
- "in": "body",
- "description": "request param",
- "required": true,
- "schema": {
- "$ref": "#/definitions/SfcPostRequest"
- }
+ "name": "",
+ "in": "path",
+ "description": "no param",
+ "required": true
}
],
"responses": {
"200": {
"description": "successful operation",
"schema": {
- "$ref": "#/definitions/VNFSInfo"
+ "$ref": "#/definitions/VnfsInfo"
}
},
"404": {
}
}
},
- "/{instid}/vms": {
+ "/{vnfInstanceId}/vms": {
"get": {
"tags": [
"vms Resource"
],
"parameters": [
{
- "name": "instid",
+ "name": "vnfInstanceId",
"in": "path",
"description": "vnf instance id",
"required": true,
}
}
},
- "/{instid}/flavors": {
+ "/{vnfInstanceId}/flavors": {
"get": {
"tags": [
"flavors Resource"
],
"parameters": [
{
- "name": "instid",
+ "name": "vnfInstanceId",
"in": "path",
"description": "vnf instance id",
"required": true,
}
}
},
- "/{instid}/networks": {
+ "/{vnfInstanceId}/networks": {
"get": {
"tags": [
"networks Resource"
],
"parameters": [
{
- "name": "instid",
+ "name": "vnfInstanceId",
"in": "path",
"description": "vnf instance id",
"required": true,
}
}
},
- "/{instid}/subnets": {
+ "/{vnfInstanceId}/subnets": {
"get": {
"tags": [
"subnets Resource"
],
"parameters": [
{
- "name": "instid",
+ "name": "vnfInstanceId",
"in": "path",
"description": "vnf instance id",
"required": true,
}
}
},
- "/{ownerid}/cps": {
+ "/{vnfInstanceId}/cps": {
"get": {
"tags": [
"sps Resource"
],
"parameters": [
{
- "name": "ownerid",
+ "name": "vnfInstanceId",
"in": "path",
"description": "vnf instance id",
"required": true,
}
}
},
- "/{instid}/volumes": {
+ "/{vnfInstanceId}/volumes": {
"get": {
"tags": [
"sps Resource"
],
"parameters": [
{
- "name": "instid",
+ "name": "vnfInstanceId",
"in": "path",
"description": "vnf instance id",
"required": true,
}
}
}
-
+ },
+ "definitions": {
+ "SingleVnfInfo": {
+ "type": "object",
+ "properties": {
+ "vnfInstanceId": {
+ "type": "string"
+ },
+ "vnfInstanceName": {
+ "type": "string"
+ },
+ "vnfInstanceDescription": {
+ "type": "string"
+ },
+ "onboardedVnfPkgInfoId": {
+ "type": "string"
+ },
+ "vnfdId": {
+ "type": "string"
+ },
+ "vnfdVersion": {
+ "type": "string"
+ },
+ "vnfSoftwareVersion": {
+ "type": "string"
+ },
+ "vnfProvider": {
+ "type": "string"
+ },
+ "vnfProductName": {
+ "type": "string"
+ },
+ "vnfConfigurableProperties": {
+ "type": "object"
+ },
+ "instantiationState": {
+ "type": "string"
+ },
+ "instantiatedVnfInfo": {
+ "type": "object",
+ "properties": {
+ "flavourId": {
+ "type": "string"
+ },
+ "vnfState": {
+ "type": "string"
+ },
+ "scaleStatus": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ },
+ "extCpInfo": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ },
+ "extVirtualLink": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ },
+ "monitoringParameters": {
+ "type": "object"
+ },
+ "localizationLanguage": {
+ "type": "string"
+ },
+ "vimInfo": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ },
+ "vnfcResourceInfo": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ },
+ "virtualLinkResourceInfo": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ },
+ "virtualStorageResourceInfo": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ }
+ }
+ },
+ "metadata": {
+ "type": "object"
+ },
+ "extensions": {
+ "type": "object"
+ }
+ }
+ },
+ "VnfsInfo": {
+ "type": "array",
+ "items": {
+ "type": "SingleVnfInfo"
+ }
+ },
+ "VMInfo": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "vmid": {
+ "type": "string"
+ },
+ "vimid": {
+ "type": "string"
+ },
+ "resouceid": {
+ "type": "string"
+ },
+ "insttype": {
+ "type": "integer"
+ },
+ "instid": {
+ "type": "string"
+ },
+ "vmname": {
+ "type": "string"
+ },
+ "operationalstate": {
+ "type": "integer"
+ },
+ "zoneid": {
+ "type": "string"
+ },
+ "tenant": {
+ "type": "string"
+ },
+ "hostid": {
+ "type": "string"
+ },
+ "detailinfo": {
+ "type": "string"
+ },
+ "is_predefined": {
+ "type": "integer"
+ }
+ }
+ }
+ },
+ "FlavorInfo": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "flavourid": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "vcpu": {
+ "type": "string"
+ },
+ "memory": {
+ "type": "string"
+ },
+ "extraspecs": {
+ "type": "string"
+ },
+ "instid": {
+ "type": "string"
+ },
+ "tenant": {
+ "type": "string"
+ },
+ "vmid": {
+ "type": "string"
+ },
+ "create_time": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "NetworkInfo": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "networkid": {
+ "type": "string"
+ },
+ "vimid": {
+ "type": "string"
+ },
+ "resouceid": {
+ "type": "string"
+ },
+ "insttype": {
+ "type": "integer"
+ },
+ "instid": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "SubnetInfo": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "subnetworkid": {
+ "type": "string"
+ },
+ "networkid": {
+ "type": "string"
+ },
+ "vimid": {
+ "type": "string"
+ },
+ "resouceid": {
+ "type": "string"
+ },
+ "insttype": {
+ "type": "integer"
+ },
+ "instid": {
+ "type": "string"
+ },
+ "name": {
+ "type": "string"
+ },
+ "cidr": {
+ "type": "string"
+ }
+ }
+ }
+ },
+ "CpInfo": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "cpinstanceid": {
+ "type": "string"
+ },
+ "cpdid": {
+ "type": "string"
+ },
+ "cpinstancename": {
+ "type": "string"
+ },
+ "vlinstanceid": {
+ "type": "string"
+ },
+ "ownertype": {
+ "type": "integer"
+ },
+ "ownerid": {
+ "type": "string"
+ },
+ "relatedtype": {
+ "type": "integer"
+ }
+ }
+ }
+ },
+ "VolumesInfo": {
+ "type": "array",
+ "items": {
+ "type": "object",
+ "properties": {
+ "storageid": {
+ "type": "string"
+ },
+ "vimid": {
+ "type": "string"
+ },
+ "resouceid": {
+ "type": "string"
+ },
+ "insttype": {
+ "type": "integer"
+ },
+ "instid": {
+ "type": "string"
+ },
+ "storagetype": {
+ "type": "string"
+ },
+ "size": {
+ "type": "string"
+ },
+ "disktype": {
+ "type": "string"
+ }
+ }
+ }
+ }
}
}
\ No newline at end of file