Merge "Add availability_zone to api-ref"

This commit is contained in:
Zuul 2018-03-12 07:29:47 +00:00 committed by Gerrit Code Review
commit 03b039cad5
4 changed files with 30 additions and 22 deletions

View File

@ -188,6 +188,12 @@ auto_remove:
when the container's process exits.
in: body
type: boolean
availability_zone:
in: body
type: string
required: true
description: |
The availability zone of the Zun service.
binary:
in: body
type: string

View File

@ -1,11 +1,11 @@
{
"networks": [
{
"subnet_id": "ae8d7cce-859e-432f-8a33-d7d8834ccd14",
"port_id": "5be06e49-70dc-4984-94a2-1b946bb136fb",
"version": "ae8d7cce-859e-432f-8a33-d7d8834ccd14",
"ip_address": "30.30.30.10",
"net_id": "7e6b5e1b-9b44-4f55-b4e3-16a1ead98161"
}
]
"networks": [
{
"subnet_id": "ae8d7cce-859e-432f-8a33-d7d8834ccd14",
"port_id": "5be06e49-70dc-4984-94a2-1b946bb136fb",
"version": "ae8d7cce-859e-432f-8a33-d7d8834ccd14",
"ip_address": "30.30.30.10",
"net_id": "7e6b5e1b-9b44-4f55-b4e3-16a1ead98161"
}
]
}

View File

@ -1,17 +1,18 @@
{
"services":[
{
"binary":"zun-compute",
"state":"up",
"created_at":"2017-02-01 03:25:07+00:00",
"updated_at":"2017-02-01 06:13:07+00:00",
"report_count":166,
"disabled":false,
"host":"instance-1",
"forced_down":false,
"last_seen_up":"2017-02-01 06:13:07+00:00",
"disabled_reason":null,
"id": 1
}
{
"binary": "zun-compute",
"availability_zone": "nova",
"state": "up",
"created_at": "2017-02-01 03:25:07+00:00",
"updated_at": "2017-02-01 06:13:07+00:00",
"report_count": 166,
"disabled": false,
"host": "instance-1",
"forced_down": false,
"last_seen_up": "2017-02-01 06:13:07+00:00",
"disabled_reason": null,
"id": 1
}
]
}

View File

@ -34,6 +34,7 @@ Response Parameters
- X-Openstack-Request-Id: request_id
- services: services
- binary: binary
- availability_zone: availability_zone
- created_at: created_at
- state: state
- report_count: report_count