diff --git a/lib/airflow/example/task_component/honeybee_task_get_software.json b/lib/airflow/example/task_component/honeybee_task_get_software.json new file mode 100644 index 0000000..584bfd4 --- /dev/null +++ b/lib/airflow/example/task_component/honeybee_task_get_software.json @@ -0,0 +1,7 @@ +{ + "name": "honeybee_task_get_software", + "description": "Get saved software information by honeybee.", + "api_connection_id": "honeybee_api", + "swagger_yaml_endpoint": "/honeybee/api/doc.yaml", + "endpoint": "/source_group/{sgId}/software" +} diff --git a/lib/airflow/example/workflow_template/migrate_software_workflow.json b/lib/airflow/example/workflow_template/migrate_software_workflow.json index 6466e16..e64449f 100644 --- a/lib/airflow/example/workflow_template/migrate_software_workflow.json +++ b/lib/airflow/example/workflow_template/migrate_software_workflow.json @@ -15,12 +15,22 @@ "sgId": "ddcfa917-17e0-4718-a878-f1e99f97ed6d" } }, + { + "name": "get_software", + "task_component": "honeybee_task_get_software", + "path_params": { + "sgId": "ddcfa917-17e0-4718-a878-f1e99f97ed6d" + }, + "dependencies": [ + "import_software" + ] + }, { "name": "software_migration_nfs_server", "task_component": "grasshopper_task_software_migration", "request_body": "{\n \"software_ids\": [\n \"78d3664e-3eb7-4d37-bf8b-b57b7a238693\",\n \"aaf49384-1a7c-4b91-9fdc-c7c46aed0882\"\n ],\n \"source_connection_info_id\": \"829e9c15-a24c-4c39-9e1b-162fcae8f21b\",\n \"target\": {\n \"mci_id\": \"mmci01\",\n \"namespace_id\": \"mig01\",\n \"vm_id\": \"rehosted-test-cm-nfs-1\"\n }\n}", "dependencies": [ - "import_software" + "get_software" ] }, { @@ -28,7 +38,7 @@ "task_component": "grasshopper_task_software_migration", "request_body": "{\n \"software_ids\": [\n \"78d3664e-3eb7-4d37-bf8b-b57b7a238693\",\n \"aa34795f-3401-4c28-bbe9-157a5788fd75\"\n ],\n \"source_connection_info_id\": \"d0b6a2a6-4cd8-4b36-ba41-a5f9a7aeef26\",\n \"target\": {\n \"mci_id\": \"mmci01\",\n \"namespace_id\": \"mig01\",\n \"vm_id\": \"rehosted-test-cm-web-1\"\n }\n}", "dependencies": [ - "import_software" + "get_software" ] }, {