-
Sub-task
-
Resolution: Done
-
Medium
-
None
-
None
-
MultiCloud Dublin M4
1, Query the workload by workload name or workload id:
Get http://
{msb IP}:{msb port}/api/multicloud/v1/{cloud-owner}/{cloud-region-id}/infra_workload?name=<workload name>Or:
Get http://{msb IP}
:
{msb port}/api/multicloud/v1/
{cloud-owner}/
{cloud-region-id}/infra_workload?id=<workload id>
The response will look like:
{
"template_type":"heat",
"workload_id": "1234567890abcd",
"workload_name": "name of workload", (optional)
"workload_status":"CREATE_COMPLETE"/"UPDATE_COMPLETE"/"NOT_FOUND "/…
“workload_status_reason”: {
"stacks": [
{
"creation_time": "2014-06-03T20:59:46Z",
"deletion_time": null,
"description": "sample stack",
"id": "3095aefc-09fb-4bc7-b1f0-f21a304e864c",
"links": [
],
"parent": null,
"stack_name": "simple_stack",
"stack_owner": null,
"stack_status": "CREATE_COMPLETE",
"stack_status_reason": "Stack CREATE completed successfully",
"stack_user_project_id": "71510cbd459a49ac989ca1055de7038b",
"tags": null,
"updated_time": null
}
]
}
}
The reason will be the response by API query to OpenStack: Get /v1/
{tenant_id}/stacks