Просмотр исходного кода

Update API documentation and Postman collection

The API documentation was updated to remove executions from replicas
list and tasks from migrations list.

The Postman collection was updated to add minion pools and metal hub
server requests. The Postman collection can now only be shared through
their API, this is why the link includes an API key for read-only
access.
Sergiu Miclea 3 лет назад
Родитель
Сommit
ac52b015e1

+ 1 - 1
README.rst

@@ -80,7 +80,7 @@ API
 ---
 
 The API is also very straightforward, here's a complete example available on
-Postman: https://www.getpostman.com/collections/734dc164d4b6b00cd8fc
+Postman: https://api.postman.com/collections/2414861-766ace3d-b46c-4510-bbaf-e1f001a8be75?access_key=PMAT-01GJTF9HV7MY7YMHZW7Q79N5V2
 
 
 Create a migration job:

+ 5 - 595
coriolis/api-refs/api_samples/migration/openstack-migration-list-detail-resp.json

@@ -28,7 +28,9 @@
         }
       },
       "type": "migration",
-      "instances": ["CI/openwrt"],
+      "instances": [
+        "CI/openwrt"
+      ],
       "reservation_id": null,
       "notes": "",
       "origin_endpoint_id": "ebe5b6cf-3236-43f7-b7b2-dce477a011a4",
@@ -60,278 +62,7 @@
       "destination_minion_pool_id": "a5e00fd3-42ac-4570-898b-5bbee0ff4acb",
       "instance_osmorphing_minion_pool_mappings": {},
       "shutdown_instances": false,
-      "replication_count": 2,
-      "tasks": [
-        {
-          "created_at": "2019-08-20T12:32:31.000000",
-          "updated_at": "2019-08-20T12:32:42.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "9699adf6-1c35-44a6-924f-acd9ebbee3cf",
-          "execution_id": "a70f2b8a-6b78-4fc1-a516-63c996cd6424",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 97,
-          "status": "COMPLETED",
-          "task_type": "VALIDATE_MIGRATION_SOURCE_INPUTS",
-          "exception_details": null,
-          "depends_on": null,
-          "on_error": false,
-          "events": [],
-          "progress_updates": [
-            {
-              "created_at": "2019-08-20T12:32:41.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "2593f886-8335-4f04-a5da-2efe061e9fd1",
-              "task_id": "9699adf6-1c35-44a6-924f-acd9ebbee3cf",
-              "current_step": 2,
-              "total_steps": null,
-              "message": "VMWare tools are not installed in VM \"openwrt\", unable to fetch the IP addresses of the VM's NICs."
-            },
-            {
-              "created_at": "2019-08-20T12:32:37.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "aa198007-d279-46bd-990d-779f96f80cf5",
-              "task_id": "9699adf6-1c35-44a6-924f-acd9ebbee3cf",
-              "current_step": 1,
-              "total_steps": null,
-              "message": "Compiling export info for VM 'CI/openwrt'"
-            }
-          ]
-        },
-        {
-          "created_at": "2019-08-20T12:32:31.000000",
-          "updated_at": "2019-08-20T12:32:47.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "9624309d-19c1-4344-b23c-a0f134081b4b",
-          "execution_id": "a70f2b8a-6b78-4fc1-a516-63c996cd6424",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 102,
-          "status": "ERROR",
-          "task_type": "VALIDATE_MIGRATION_DESTINATION_INPUTS",
-          "exception_details": "Task canceled",
-          "depends_on": ["9699adf6-1c35-44a6-924f-acd9ebbee3cf"],
-          "on_error": false,
-          "events": [],
-          "progress_updates": []
-        },
-        {
-          "created_at": "2019-08-20T12:32:31.000000",
-          "updated_at": "2019-08-20T12:32:46.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "428a7afe-c1b7-4dd4-a3a4-662ca12f350d",
-          "execution_id": "a70f2b8a-6b78-4fc1-a516-63c996cd6424",
-          "instance": "CI/openwrt",
-          "host": null,
-          "process_id": null,
-          "status": "CANCELED",
-          "task_type": "EXPORT_INSTANCE",
-          "exception_details": null,
-          "depends_on": ["9624309d-19c1-4344-b23c-a0f134081b4b"],
-          "on_error": false,
-          "events": [],
-          "progress_updates": []
-        },
-        {
-          "created_at": "2019-08-20T12:32:31.000000",
-          "updated_at": "2019-08-20T12:32:46.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "8a3f2ebb-fa10-4226-b789-1c3614b2ca3b",
-          "execution_id": "a70f2b8a-6b78-4fc1-a516-63c996cd6424",
-          "instance": "CI/openwrt",
-          "host": null,
-          "process_id": null,
-          "status": "CANCELED",
-          "task_type": "GET_OPTIMAL_FLAVOR",
-          "exception_details": null,
-          "depends_on": [
-            "428a7afe-c1b7-4dd4-a3a4-662ca12f350d"
-          ],
-          "on_error": false,
-          "events": [],
-          "progress_updates": []
-        },
-        {
-          "created_at": "2019-08-20T12:32:31.000000",
-          "updated_at": "2019-08-20T12:32:46.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "93517f7f-deba-49b1-ba12-18cea373bc28",
-          "execution_id": "a70f2b8a-6b78-4fc1-a516-63c996cd6424",
-          "instance": "CI/openwrt",
-          "host": null,
-          "process_id": null,
-          "status": "CANCELED",
-          "task_type": "IMPORT_INSTANCE",
-          "exception_details": null,
-          "depends_on": ["8a3f2ebb-fa10-4226-b789-1c3614b2ca3b"],
-          "on_error": false,
-          "events": [],
-          "progress_updates": []
-        },
-        {
-          "created_at": "2019-08-20T12:32:31.000000",
-          "updated_at": "2019-08-20T12:32:46.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "846e3c46-e3c8-4951-8763-fc69b055887a",
-          "execution_id": "a70f2b8a-6b78-4fc1-a516-63c996cd6424",
-          "instance": "CI/openwrt",
-          "host": null,
-          "process_id": null,
-          "status": "CANCELED",
-          "task_type": "DEPLOY_DISK_COPY_RESOURCES",
-          "exception_details": null,
-          "depends_on": [
-            "93517f7f-deba-49b1-ba12-18cea373bc28"
-          ],
-          "on_error": false,
-          "events": [],
-          "progress_updates": []
-        },
-        {
-          "created_at": "2019-08-20T12:32:31.000000",
-          "updated_at": "2019-08-20T12:32:46.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "9d6cfbf7-cc78-474c-bf90-13e27d56b27b",
-          "execution_id": "a70f2b8a-6b78-4fc1-a516-63c996cd6424",
-          "instance": "CI/openwrt",
-          "host": null,
-          "process_id": null,
-          "status": "CANCELED",
-          "task_type": "COPY_DISK_DATA",
-          "exception_details": null,
-          "depends_on": [
-            "846e3c46-e3c8-4951-8763-fc69b055887a"
-          ],
-          "on_error": false,
-          "events": [],
-          "progress_updates": []
-        },
-        {
-          "created_at": "2019-08-20T12:32:31.000000",
-          "updated_at": "2019-08-20T12:33:00.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "6083ac88-d663-4a73-ba3a-870221d1ca0f",
-          "execution_id": "a70f2b8a-6b78-4fc1-a516-63c996cd6424",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 107,
-          "status": "COMPLETED",
-          "task_type": "DELETE_DISK_COPY_RESOURCES",
-          "exception_details": null,
-          "depends_on": [
-            "9d6cfbf7-cc78-474c-bf90-13e27d56b27b"
-          ],
-          "on_error": true,
-          "events": [],
-          "progress_updates": []
-        },
-        {
-          "created_at": "2019-08-20T12:32:31.000000",
-          "updated_at": "2019-08-20T12:32:46.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "d9fe8480-8f36-4645-b907-5c12a42cf634",
-          "execution_id": "a70f2b8a-6b78-4fc1-a516-63c996cd6424",
-          "instance": "CI/openwrt",
-          "host": null,
-          "process_id": null,
-          "status": "CANCELED",
-          "task_type": "DEPLOY_OS_MORPHING_RESOURCES",
-          "exception_details": null,
-          "depends_on": [
-            "6083ac88-d663-4a73-ba3a-870221d1ca0f"
-          ],
-          "on_error": false,
-          "events": [],
-          "progress_updates": []
-        },
-        {
-          "created_at": "2019-08-20T12:32:31.000000",
-          "updated_at": "2019-08-20T12:32:46.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "fa0c4c3c-8099-42a6-9407-f9fb4429c6a7",
-          "execution_id": "a70f2b8a-6b78-4fc1-a516-63c996cd6424",
-          "instance": "CI/openwrt",
-          "host": null,
-          "process_id": null,
-          "status": "CANCELED",
-          "task_type": "OS_MORPHING",
-          "exception_details": null,
-          "depends_on": [
-            "d9fe8480-8f36-4645-b907-5c12a42cf634"
-          ],
-          "on_error": false,
-          "events": [],
-          "progress_updates": []
-        },
-        {
-          "created_at": "2019-08-20T12:32:31.000000",
-          "updated_at": "2019-08-20T12:33:00.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "958a205f-afe5-414a-a412-8d90107326c1",
-          "execution_id": "a70f2b8a-6b78-4fc1-a516-63c996cd6424",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 108,
-          "status": "COMPLETED",
-          "task_type": "DELETE_OS_MORPHING_RESOURCES",
-          "exception_details": null,
-          "depends_on": ["fa0c4c3c-8099-42a6-9407-f9fb4429c6a7"],
-          "on_error": true,
-          "events": [],
-          "progress_updates": []
-        },
-        {
-          "created_at": "2019-08-20T12:32:31.000000",
-          "updated_at": "2019-08-20T12:32:46.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "9632b168-0db7-4445-8c2c-728e415851a0",
-          "execution_id": "a70f2b8a-6b78-4fc1-a516-63c996cd6424",
-          "instance": "CI/openwrt",
-          "host": null,
-          "process_id": null,
-          "status": "CANCELED",
-          "task_type": "FINALIZE_IMPORT_INSTANCE",
-          "exception_details": null,
-          "depends_on": ["958a205f-afe5-414a-a412-8d90107326c1"],
-          "on_error": false,
-          "events": [],
-          "progress_updates": []
-        },
-        {
-          "created_at": "2019-08-20T12:32:31.000000",
-          "updated_at": "2019-08-20T12:33:00.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "b03ca556-12b2-4583-8111-ef9086ef5acf",
-          "execution_id": "a70f2b8a-6b78-4fc1-a516-63c996cd6424",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 109,
-          "status": "COMPLETED",
-          "task_type": "CLEANUP_FAILED_IMPORT_INSTANCE",
-          "exception_details": null,
-          "depends_on": null,
-          "on_error": true,
-          "events": [],
-          "progress_updates": []
-        }
-      ]
+      "replication_count": 2
     },
     {
       "created_at": "2019-08-22T08:29:33.000000",
@@ -437,328 +168,7 @@
       "id": "9566af98-2c89-4969-ad73-a416e8a8a5ce",
       "replica_id": "96d71f92-1cbd-48cb-98aa-06ce8cbf89cf",
       "status": "COMPLETED",
-      "replication_count": 2,
-      "tasks": [
-        {
-          "created_at": "2019-08-22T08:29:33.000000",
-          "updated_at": "2019-08-22T08:29:43.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "fb4e942a-58a6-4099-b2fc-c15206f14b08",
-          "execution_id": "aec3fb1d-6b08-4c43-af1b-74686fa3d5a7",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 131,
-          "status": "COMPLETED",
-          "task_type": "VALIDATE_REPLICA_DEPLOYMENT_INPUTS",
-          "exception_details": null,
-          "depends_on": null,
-          "on_error": false,
-          "events": [],
-          "progress_updates": [
-            {
-              "created_at": "2019-08-22T08:29:38.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "133ad810-6005-4996-9c94-25f22bb449b6",
-              "task_id": "fb4e942a-58a6-4099-b2fc-c15206f14b08",
-              "current_step": 2,
-              "total_steps": null,
-              "message": "Checking disk storage mappings."
-            },
-            {
-              "created_at": "2019-08-22T08:29:38.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "201f1abc-74cf-4e57-ba23-610ee66981ee",
-              "task_id": "fb4e942a-58a6-4099-b2fc-c15206f14b08",
-              "current_step": 6,
-              "total_steps": null,
-              "message": "Checking selected worker VM floating IP pool"
-            }
-          ]
-        },
-        {
-          "created_at": "2019-08-22T08:29:33.000000",
-          "updated_at": "2019-08-22T08:29:47.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "fda835d3-1ac8-4019-9738-5ff0f6a76e9d",
-          "execution_id": "aec3fb1d-6b08-4c43-af1b-74686fa3d5a7",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 136,
-          "status": "COMPLETED",
-          "task_type": "GET_OPTIMAL_FLAVOR",
-          "exception_details": null,
-          "depends_on": [
-            "fb4e942a-58a6-4099-b2fc-c15206f14b08"
-          ],
-          "on_error": false,
-          "events": [],
-          "progress_updates": [
-            {
-              "created_at": "2019-08-22T08:29:46.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "31491af1-c65e-4d2e-861c-e0789eac10a9",
-              "task_id": "fda835d3-1ac8-4019-9738-5ff0f6a76e9d",
-              "current_step": 1,
-              "total_steps": null,
-              "message": "Selected flavor: ds1G"
-            }
-          ]
-        },
-        {
-          "created_at": "2019-08-22T08:29:33.000000",
-          "updated_at": "2019-08-22T08:29:53.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "f86fe7f4-49ad-4e9f-8d25-41612d22b241",
-          "execution_id": "aec3fb1d-6b08-4c43-af1b-74686fa3d5a7",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 141,
-          "status": "COMPLETED",
-          "task_type": "CREATE_REPLICA_DISK_SNAPSHOTS_DURING_MIGRATION",
-          "exception_details": null,
-          "depends_on": [
-            "fb4e942a-58a6-4099-b2fc-c15206f14b08",
-            "fda835d3-1ac8-4019-9738-5ff0f6a76e9d"
-          ],
-          "on_error": false,
-          "events": [],
-          "progress_updates": [
-            {
-              "created_at": "2019-08-22T08:29:50.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "5f0f380f-fe8d-4743-88f6-394d479abb97",
-              "task_id": "f86fe7f4-49ad-4e9f-8d25-41612d22b241",
-              "current_step": 1,
-              "total_steps": null,
-              "message": "Creating replica disk snapshots"
-            }
-          ]
-        },
-        {
-          "created_at": "2019-08-22T08:29:33.000000",
-          "updated_at": "2019-08-22T08:29:57.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "db2569b8-d52d-4422-86cd-9206ce722fa5",
-          "execution_id": "aec3fb1d-6b08-4c43-af1b-74686fa3d5a7",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 146,
-          "status": "COMPLETED",
-          "task_type": "DEPLOY_REPLICA_INSTANCE",
-          "exception_details": null,
-          "depends_on": [
-            "f86fe7f4-49ad-4e9f-8d25-41612d22b241"
-          ],
-          "on_error": false,
-          "events": [],
-          "progress_updates": []
-        },
-        {
-          "created_at": "2019-08-22T08:29:33.000000",
-          "updated_at": "2019-08-22T08:34:40.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "0d36b79c-054d-4593-b963-3f6f00ac777c",
-          "execution_id": "aec3fb1d-6b08-4c43-af1b-74686fa3d5a7",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 151,
-          "status": "COMPLETED",
-          "task_type": "DEPLOY_OS_MORPHING_RESOURCES",
-          "exception_details": null,
-          "depends_on": [
-            "db2569b8-d52d-4422-86cd-9206ce722fa5"
-          ],
-          "on_error": false,
-          "events": [],
-          "progress_updates": [
-            {
-              "created_at": "2019-08-22T08:34:34.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "14292e66-aec1-4242-901a-6e9c062a6d1c",
-              "task_id": "0d36b79c-054d-4593-b963-3f6f00ac777c",
-              "current_step": 7,
-              "total_steps": null,
-              "message": "Attaching volume 6eb6f752-4ae5-450d-995f-436ecc48f400 to worker instance"
-            },
-            {
-              "created_at": "2019-08-22T08:30:01.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "2119ca78-1016-4fb8-bca6-6e420ac43c9e",
-              "task_id": "0d36b79c-054d-4593-b963-3f6f00ac777c",
-              "current_step": 1,
-              "total_steps": null,
-              "message": "Creating migration worker instance keypair"
-            }
-          ]
-        },
-        {
-          "created_at": "2019-08-22T08:29:33.000000",
-          "updated_at": "2019-08-22T08:44:43.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "dc42b8c1-4ce7-4fed-9a93-273a4ee7dc45",
-          "execution_id": "aec3fb1d-6b08-4c43-af1b-74686fa3d5a7",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 156,
-          "status": "COMPLETED",
-          "task_type": "OS_MORPHING",
-          "exception_details": null,
-          "depends_on": [
-            "0d36b79c-054d-4593-b963-3f6f00ac777c"
-          ],
-          "on_error": false,
-          "events": [],
-          "progress_updates": [
-            {
-              "created_at": "2019-08-22T08:44:23.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "3eedfa56-e7ff-45fd-801b-91e3b76f52f6",
-              "task_id": "dc42b8c1-4ce7-4fed-9a93-273a4ee7dc45",
-              "current_step": 8,
-              "total_steps": null,
-              "message": "Dismounting OS partitions"
-            },
-            {
-              "created_at": "2019-08-22T08:34:45.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "5076a39d-1c61-4ae9-a303-c81f32113f2f",
-              "task_id": "dc42b8c1-4ce7-4fed-9a93-273a4ee7dc45",
-              "current_step": 2,
-              "total_steps": null,
-              "message": "Connecting to SSH host: 22.45.0.53:22"
-            }
-          ]
-        },
-        {
-          "created_at": "2019-08-22T08:29:33.000000",
-          "updated_at": "2019-08-22T08:44:58.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "4029e5df-001f-4bfe-8a86-4dbf54379b58",
-          "execution_id": "aec3fb1d-6b08-4c43-af1b-74686fa3d5a7",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 161,
-          "status": "COMPLETED",
-          "task_type": "DELETE_OS_MORPHING_RESOURCES",
-          "exception_details": null,
-          "depends_on": [
-            "dc42b8c1-4ce7-4fed-9a93-273a4ee7dc45"
-          ],
-          "on_error": true,
-          "events": [],
-          "progress_updates": [
-            {
-              "created_at": "2019-08-22T08:44:48.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "c17fa10e-cf31-46fc-a983-30d7028757f8",
-              "task_id": "4029e5df-001f-4bfe-8a86-4dbf54379b58",
-              "current_step": 1,
-              "total_steps": null,
-              "message": "Removing worker instance resources"
-            }
-          ]
-        },
-        {
-          "created_at": "2019-08-22T08:29:33.000000",
-          "updated_at": "2019-08-22T08:45:15.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "ee78eed3-44ca-4765-8307-e8c5439d982d",
-          "execution_id": "aec3fb1d-6b08-4c43-af1b-74686fa3d5a7",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 166,
-          "status": "COMPLETED",
-          "task_type": "FINALIZE_REPLICA_INSTANCE_DEPLOYMENT",
-          "exception_details": null,
-          "depends_on": [
-            "4029e5df-001f-4bfe-8a86-4dbf54379b58"
-          ],
-          "on_error": false,
-          "events": [],
-          "progress_updates": [
-            {
-              "created_at": "2019-08-22T08:45:02.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "491291f5-1a2a-4d9d-a1d2-c0146720a365",
-              "task_id": "ee78eed3-44ca-4765-8307-e8c5439d982d",
-              "current_step": 3,
-              "total_steps": null,
-              "message": "Ensuring volumes are bootable"
-            },
-            {
-              "created_at": "2019-08-22T08:45:02.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "5bb0dc49-41ce-465f-b892-45e8952d0062",
-              "task_id": "ee78eed3-44ca-4765-8307-e8c5439d982d",
-              "current_step": 4,
-              "total_steps": null,
-              "message": "Setting appropriate os_type: linux for bootable volumes"
-            }
-          ]
-        },
-        {
-          "created_at": "2019-08-22T08:29:33.000000",
-          "updated_at": "2019-08-22T08:45:22.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "aa78e41c-361a-4e12-a405-26c8175b806b",
-          "execution_id": "aec3fb1d-6b08-4c43-af1b-74686fa3d5a7",
-          "instance": "CI/openwrt",
-          "host": "coriolis-worker",
-          "process_id": 171,
-          "status": "COMPLETED",
-          "task_type": "DELETE_REPLICA_DISK_SNAPSHOTS_DURING_MIGRATION",
-          "exception_details": null,
-          "depends_on": [
-            "ee78eed3-44ca-4765-8307-e8c5439d982d"
-          ],
-          "on_error": false,
-          "events": [],
-          "progress_updates": [
-            {
-              "created_at": "2019-08-22T08:45:19.000000",
-              "updated_at": null,
-              "deleted_at": null,
-              "deleted": "0",
-              "id": "bc2a5840-effd-4dba-a5a6-89600757f52e",
-              "task_id": "aa78e41c-361a-4e12-a405-26c8175b806b",
-              "current_step": 1,
-              "total_steps": null,
-              "message": "Removing replica disk snapshots"
-            }
-          ]
-        }
-      ]
+      "replication_count": 2
     }
   ]
 }

+ 1 - 22
coriolis/api-refs/api_samples/replica/replica-list-resp.json

@@ -59,28 +59,7 @@
       "origin_minion_pool_id": null,
       "destination_minion_pool_id": null,
       "instance_osmorphing_minion_pool_mappings": {},
-      "executions": [
-        {
-          "created_at": "2019-07-23T17:01:03.000000",
-          "updated_at": "2019-07-23T17:07:09.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "84951ec8-9b0d-4d68-b1eb-b0c143213c75",
-          "action_id": "0460aa4d-6b16-4c98-bd56-27ee186e4a22",
-          "status": "COMPLETED",
-          "number": 1
-        },
-        {
-          "created_at": "2019-07-23T17:18:38.000000",
-          "updated_at": "2019-07-23T17:18:53.000000",
-          "deleted_at": null,
-          "deleted": "0",
-          "id": "9d64e152-1fcc-4ef1-8b09-60a7fabd97a9",
-          "action_id": "0460aa4d-6b16-4c98-bd56-27ee186e4a22",
-          "status": "COMPLETED",
-          "number": 2
-        }
-      ]
+      "executions": []
     }
   ]
 }

+ 1 - 2
coriolis/api-refs/source/migration.inc

@@ -10,7 +10,7 @@ Lists, creates, cancels, shows details for, and deletes Coriolis migrations.
 List Migrations
 ===============
 
-.. rest_method:: GET /migrations/detail
+.. rest_method:: GET /migrations
 
 Lists all migrations.
 
@@ -42,7 +42,6 @@ Response
   - replica_id : migration_replica_id
   - base_id : base_id
   - destination_endpoint_id : migration_destination_endpoint_id
-  - tasks : migration_tasks
   - network_map : network_map
   - storage_mappings : storage_map
   - last_execution_status : migration_last_execution_status

+ 6 - 0
coriolis/api-refs/source/parameters.yaml

@@ -813,6 +813,12 @@ replica_destination_environment:
   in: body
   type: string
   required: false
+replica_empty_execution_array:
+  description: |
+    An empty array. Use the ``/replicas/{replica_id}`` request to get the replica executions.
+  in: body
+  type: array
+  required: true
 replica_execution:
   description: |
     An ``execution`` object.

+ 3 - 3
coriolis/api-refs/source/replica.inc

@@ -10,9 +10,9 @@ Lists, creates, updates, shows details for, and deletes cloud replicas.
 List Replicas
 =============
 
-.. rest_method:: GET /replicas/detail
+.. rest_method:: GET /replicas
 
-List details for all replicas.
+List all replicas.
 
 Normal response codes: 200
 
@@ -28,7 +28,7 @@ Response
   - id : replica_id
   - deleted : replica_deleted
   - deleted_at : replica_deleted_at
-  - executions : replica_execution_array
+  - executions : replica_empty_execution_array
   - instances : replica_instances
   - notes : replica_notes
   - user_id : user_id