Description
Deploy (launch process, start a container, etc) instance of a particular service, according to the deployment descriptor.
Request JSON Schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "DeploymentDescriptor",
"description" : "Module deployment information. There are two modes: deployment managed by Okapi (with nodeId specified) and remote module (with url specified).",
"type": "object",
"additionalProperties" : false,
"properties": {
"srvcId": {
"description": "The Module ID for the instance",
"type": "string"
},
"instId": {
"description": "Instance ID (at least unique for node)",
"type": "string"
},
"nodeId": {
"description": "Node ID where module is deployed",
"type": ["string", "null"]
},
"url": {
"description": "URL where module is deployed (not managed by Okapi)",
"type": ["string", "null"]
},
"descriptor" : {
"description": "Deployment details",
"$ref": "LaunchDescriptor.json"
}
},
"required": ["srvcId"]
}
Request Example (application/json)
Responses
201 Created
Created
Response Headers
- Location string
-
URI to the descriptor of the deployed instance
- X-Okapi-Trace string
-
Okapi trace and timing
Response Example (application/json)
400 Bad Request
Bad Request
Response Example (text/plain)
404 Not Found
Not Found
Response Example (text/plain)
500 Internal Server Error
Server Error