From ef7c9617269403cb347fb5dcee45facdb03d8762 Mon Sep 17 00:00:00 2001 From: zhufl Date: Fri, 3 Aug 2018 17:15:00 +0800 Subject: [PATCH] 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 --- api-ref/source/parameters.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/api-ref/source/parameters.yaml b/api-ref/source/parameters.yaml index a80a6729fa..390d5a84dc 100644 --- a/api-ref/source/parameters.yaml +++ b/api-ref/source/parameters.yaml @@ -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``,