GET/stacks/:stack_id/services
List Servicespublic
Required Parameters
stack_id
stringThe stack UID
Get list of all services of a stack.
Request
GET
/stacks/:stack_id/servicescurl -X GET \
"https://app.cloud66.com/api/3/stacks/:stack_id/services" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json"
Response
{
"response": [
{
"name": "web",
"service_name": "web",
"image": "quay.io/cloud66/sample-rails",
"build_command": null,
"command": "bundle exec rackup -p 3000",
"build_root": null,
"git_url": "http://github.com/cloud66-samples/awesome-app.git",
"git_branch": "fig",
"created_at": "2015-02-10T17:41:37Z",
"updated_at": "2015-02-17T14:40:17Z"
}
],
"count": 1,
"pagination": {
"previous": null,
"next": null,
"current": 1,
"per_page": 30,
"count": 1,
"pages": 1
}
}