"schema": {\r
"$ref": "#/definitions/NsCreateResponse"\r
}\r
+ },\r
+ "404": {\r
+ "description": "URL not found"\r
}\r
}\r
},\r
],\r
"summary": "ns get",\r
"description": "ns get",\r
- "operationId": "ns_get",\r
- "parameters": [],\r
+ "operationId": "ns_instantces_get",\r
+ "parameters": [\r
+ {\r
+ "required": true,\r
+ "type": "string",\r
+ "description": "job response message id",\r
+ "name": "csarId",\r
+ "in": "query"\r
+ }\r
+ ],\r
"responses": {\r
"200": {\r
"description": "successful operation",\r
"schema": {\r
- "$ref": "#/definitions/NsInfo"\r
+ "$ref": "#/definitions/NsInstancesInfo"\r
}\r
+ },\r
+ "404": {\r
+ "description": "URL not found"\r
}\r
}\r
}\r
},\r
"201": {\r
"description": "Invalid Request"\r
+ },\r
+ "404": {\r
+ "description": "URL not found"\r
}\r
}\r
}\r
},\r
"201": {\r
"description": "Invalid Request"\r
+ },\r
+ "404": {\r
+ "description": "URL not found"\r
}\r
}\r
}\r
"$ref": "#/definitions/JobInfo"\r
}\r
},\r
+ "404": {\r
+ "description": "URL not found"\r
+ },\r
"500": {\r
"description": "the url is invalid"\r
}\r
}\r
},\r
"/ns/{ns_instance_id}": {\r
+ "get": {\r
+ "tags": [\r
+ "ns"\r
+ ],\r
+ "summary": "ns get",\r
+ "description": "ns get",\r
+ "operationId": "ns_instance_get",\r
+ "parameters": [],\r
+ "responses": {\r
+ "200": {\r
+ "description": "successful operation",\r
+ "schema": {\r
+ "$ref": "#/definitions/NsInstanceInfo"\r
+ }\r
+ }\r
+ }\r
+ }, \r
"delete": {\r
"tags": [\r
"ns"\r
}\r
},\r
"/jobs/{jobId}": {\r
- "post": {\r
+ "get": {\r
"tags": [\r
"job"\r
],\r
"summary": "jobstatus",\r
"description": "",\r
- "operationId": "jobstatus",\r
+ "operationId": "get_jobstatus",\r
"parameters": [\r
{\r
"required": true,\r
"type": "string",\r
- "description": "",\r
+ "description": "job Id",\r
"name": "jobId",\r
"in": "path"\r
},\r
{\r
- "in": "body",\r
- "name": "body",\r
- "description": "request param",\r
"required": true,\r
- "schema": {\r
- "$ref": "#/definitions/JobProgressRequest"\r
- }\r
+ "type": "string",\r
+ "description": "job response message id",\r
+ "name": "responseId",\r
+ "in": "query"\r
}\r
],\r
"responses": {\r
"202": {\r
- "description": ""\r
+ "description": "",\r
+ "schema": {\r
+ "$ref": "#/definitions/JobDetailInfo"\r
+ }\r
}\r
}\r
}\r
}\r
}\r
},\r
- "JobProgressRequest": {\r
- "type": "object",\r
- "properties": {\r
- "progress": {\r
- "type": "string"\r
- },\r
- "desc": {\r
- "type": "string"\r
- },\r
- "errcode": {\r
- "type": "string"\r
- }\r
+ "NsInstancesInfo":{\r
+ "type": "array",\r
+ "items": {\r
+ "$ref": "#/definitions/NsInstanceInfo"\r
}\r
},\r
- "NsInfo": {\r
+ "NsInstanceInfo": {\r
"type": "object",\r
"properties": {\r
"nsInstanceId": {\r
"type": "string"\r
}\r
}\r
+ },\r
+ "jobResponseInfo": {\r
+ "type": "object",\r
+ "properties": {\r
+ "status": {\r
+ "type": "string"\r
+ },\r
+ "progress":{\r
+ "type": "string"\r
+ },\r
+ "statusDescription": {\r
+ "type": "string"\r
+ },\r
+ "errorCode": {\r
+ "type": "string"\r
+ },\r
+ "responseId": {\r
+ "type": "string"\r
+ }\r
+ }\r
+ },\r
+ "JobDetailInfo":{\r
+ "type": "object",\r
+ "properties": {\r
+ "jobId": {\r
+ "type": "string"\r
+ },\r
+ "responseDescriptor": \r
+ {\r
+ "type":"object",\r
+ "properties": {\r
+ "status": {\r
+ "type": "string"\r
+ },\r
+ "progress":{\r
+ "type": "string"\r
+ },\r
+ "statusDescription": {\r
+ "type": "string"\r
+ },\r
+ "errorCode": {\r
+ "type": "string"\r
+ },\r
+ "responseId": {\r
+ "type": "string"\r
+ },\r
+ "responseHistoryList": {\r
+ "type": "array",\r
+ "items": {\r
+ "$ref": "#/definitions/jobResponseInfo"\r
+ }\r
+ }\r
+ }\r
+ }\r
+ }\r
}\r
}\r
}
\ No newline at end of file