}\r
}, \r
"/{vnfmtype}/v1/{vnfmid}/vnfs/{vnfInstanceId}/terminate": { \r
- "delete": {\r
+ "post": {\r
"tags": [\r
"VNFMDriver"\r
],\r
- "summary": "delete vnf",\r
- "description": "VNF terminate Rest API should be provided by the VNFM Driver",\r
- "operationId": "delete_vnf",\r
+ "summary": "terminate&delete vnf",\r
+ "description": "VNF terminate&delete Rest API should be provided by the VNFM Driver",\r
+ "operationId": "terminate_vnf",\r
"consumes": [\r
"application/json"\r
],\r
"$ref": "#/definitions/GrantVNFResponse"\r
}\r
},\r
+ "404": {\r
+ "description": "URL not found"\r
+ },\r
"500": {\r
"description": "the url is invalid"\r
}\r
"202": {\r
"description": ""\r
},\r
+ "404": {\r
+ "description": "URL not found"\r
+ },\r
"500": {\r
"description": "the url is invalid"\r
}\r
"$ref": "#/definitions/VnfmInfo"\r
}\r
},\r
+ "404": {\r
+ "description": "URL not found"\r
+ },\r
"500": {\r
"description": "internal error"\r
}\r
"$ref": "#/definitions/VimInfo"\r
}\r
},\r
+ "404": {\r
+ "description": "URL not found"\r
+ },\r
"500": {\r
"description": "internal error"\r
}\r
}\r
}\r
- }, \r
+ }\r
},\r
"definitions": {\r
"jobResponseInfo": {\r
}\r
}\r
},\r
+ "ResourceChange" : {\r
+ "type": "object",\r
+ "properties": {\r
+ "type": {\r
+ "type": "string",\r
+ "description": " The value should be VDU,VL,CP,Strorage."\r
+ },\r
+ "resourceDefinitionId": {\r
+ "type": "string"\r
+ },\r
+ "vdu": {\r
+ "type": "string"\r
+ }\r
+ }\r
+ },\r
"GrantVNFRequest": {\r
"type": "object",\r
"properties": {\r
"type": "string"\r
},\r
"addResource": {\r
- "type": "object",\r
- "properties": {\r
- "type": {\r
- "type": "string",\r
- "description": " The value should be VDU,VL,CP,Strorage."\r
- },\r
- "resourceDefinitionId": {\r
- "type": "string"\r
- },\r
- "vdu": {\r
- "type": "string"\r
- }\r
+ "type": "array",\r
+ "items": {\r
+ "$ref": "#/definitions/ResourceChange"\r
}\r
},\r
"removeResource": {\r
- "type": "object",\r
- "properties": {\r
- "type": {\r
- "type": "string",\r
- "description": " The value should be VDU,VL,CP,Strorage."\r
- },\r
- "resourceDefinitionId": {\r
- "type": "string"\r
- },\r
- "vdu": {\r
- "type": "string"\r
- }\r
+ "type": "array",\r
+ "items": {\r
+ "$ref": "#/definitions/ResourceChange"\r
}\r
},\r
"additionalParam": {\r
} \r
}\r
}\r
-}
\ No newline at end of file
+}\r