service create
POST /services/create HTTP/1.1
Content-Type: application/json
{
"Name": "http",
"Image": "nginx",
"ContainerPort": 80,
"Replicas": 2,
"Protocol": "http",
"ServicePort": 80,
"Labels": {
"app": "nginx"
}
}HTTP/1.1 201 Created
Content-Type: application/json
{
"Name": "http",
"Image": "nginx",
"WorkingDir": "",
"ContainerSize": "s4",
"SSLCert": "",
"NetMode": "",
"StopSignal": "",
"ServicePort": 80,
"ContainerPort": 80,
"Replicas": 2,
"HealthCheckInterval": 5,
"HealthCheckFall": 3,
"HealthCheckRise": 2,
"Algorithm": "roundrobin",
"Protocol": "http",
"Stdin": false,
"Tty": false,
"SessionAffinity": false,
"Entrypoint": null,
"Cmd": null,
"Env": null,
"Volumes": null,
"Labels": {
"app": "nginx"
},
"SecurityGroups": null,
"IP": "",
"Tenant": "b8dc36865f4b480683dabb25598d61c4",
"FIP": "",
"Message": "Service is created",
"Created": "2016-10-08T13:12:15.405946064Z",
"Status": "created",
"Containers": null
}Last updated