xx_instance_type_id in list_migrations should be integer

new_instance_type_id and old_instance_type_id in response
of list_migrations should be integer, not string.

Besides, this flavor id is not a common one specified by
users, but an internal one, so this is also to add a NOTE
to avoid the confusion.

"old_instance_type_id": 5140

https://developer.openstack.org/api-ref/compute/#list-migrations

Change-Id: I43c454ac1d7f7ef413d44fe411459e989611cadb
This commit is contained in:
zhufl 2018-08-03 17:15:00 +08:00
parent 76a946b6da
commit ef7c961726

View File

@ -4416,9 +4416,13 @@ migration_new_flavor_id:
In ``resize`` case, the flavor ID for resizing the server.
In the other cases, this parameter is same as the flavor ID
of the server when the migration was started.
.. note:: This is an internal ID and is not exposed in any other API.
In particular, this is not the ID specified or automatically generated
during flavor creation or returned via the ``GET /flavors`` API.
in: body
required: true
type: string
type: integer
migration_next_links_2_59:
description: |
Links pertaining to the migration.
@ -4433,9 +4437,13 @@ migration_next_links_2_59:
migration_old_flavor_id:
description: |
The flavor ID of the server when the migration was started.
.. note:: This is an internal ID and is not exposed in any other API.
In particular, this is not the ID specified or automatically generated
during flavor creation or returned via the ``GET /flavors`` API.
in: body
required: true
type: string
type: integer
migration_type_2_23:
description: |
The type of the server migration. This is one of ``live-migration``,