Code Block | {
"links":[
{
"rel":"self",
"href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/55/virtualappliances/200/virtualmachines/1763/tasks/8812ddf4-a372-40af-81ee-5f5d1e53454c"
},
{
"rel":"parent",
"href":"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/55/virtualappliances/200/virtualmachines/1763/tasks"
},successful. Code Block |
---|
curl -X PUT 'https://nardo40.bcn.abiquo.com:443/api/cloud/virtualdatacenters/2486/virtualappliances/2990/virtualmachines/19454/state' \
-k --verbose \
-H 'Accept: application/vnd.abiquo.acceptedrequest+json; version=5.0' \
-H 'Content-Type: application/vnd.abiquo.virtualmachinestate+json; version=5.0' \
-d '{"state": "OFF", "gracefulShutdown": true}' \
-u user:password | jq . |
Code Block |
---|
{
"taskId": "d62be542-f34c-4fed-b9f8-6443f2db4cc1",
"userId": "10",
"type": "SHUTDOWN",
"ownerId": "19454",
"state": "FINISHED_SUCCESSFULLY",
"creationTimestamp": 1596040226,
"timestamp": 1596040226,
"jobs": {
"links": [],
"collection": [
{
|
rel"acknowledge "d62be542-f34c-4fed-b9f8-6443f2db4cc1.2cd94a0c-179d-4506-a71d-fabaf29a4d43", |
href"https://38testing.bcn.abiquo.com:443/api/cloud/virtualdatacenters/55/virtualappliances/200/virtualmachines/1763/tasks/8812ddf4-a372-40af-81ee-5f5d1e53454c/action/ack" "d62be542-f34c-4fed-b9f8-6443f2db4cc1",
|
}{ "description": "Shutdown task's shutdown on virtual machine with |
"title":"cloudadmin
reluser type"application/vnd.abiquo.user+json
href":"https://38testing.bcn.abiquo.com:443/api/admin/enterprises/74/users/17"creationTimestamp": 1596040226,
"timestamp": |
}{ "title":"ABQ_5e57c34d-5dcb-482b-be0f-a78931f4abd0",rel"virtualmachine",type"application/vnd.abiquo.virtualmachine+json
38testingnardo40.bcn.abiquo.com:443/api/cloud/virtualdatacenters/ |
552001763"
19454/tasks/d62be542-f34c-4fed-b9f8-6443f2db4cc1"
|
],"taskId":"8812ddf4-a372-40af-81ee-5f5d1e53454c",userId17"type":"SHUTDOWN", ownerId"1763",
"state":"FINISHED_UNSUCCESSFULLY", "https://nardo40.bcn.abiquo.com:443/api/cloud/virtualdatacenters/2486/virtualappliances/2990/virtualmachines/19454/tasks"
|
"creationTimestamp":1458647896"timestamp":1458647897,
"jobs":links[
]collection[
"application/vnd.abiquo.virtualmachine+json",
|
{ "links[
"https://nardo40.bcn.abiquo.com:443/api/cloud/virtualdatacenters/2486/virtualappliances/2990/virtualmachines/19454"
|
] id"8812ddf4-a372-40af-81ee-5f5d1e53454c.191e44d9-74fa-453a-b7e0-596237618fcf",
parentTaskId"8812ddf4-a372-40af-81ee-5f5d1e53454c "SHUTDOWN "application/vnd.abiquo.user+json",
|
"description":"Shutdown task's shutdown on virtual machine with id 1763""href": "https://nardo40.bcn.abiquo.com:443/api/admin/enterprises/336/users/10"
},
{
|
state"FAILED "ABQ_2fb11009-8157-4d61-915d-40fa45f440ac",
|
"rollbackStateROLLBACK_DONE "creationTimestamp":1458647896"type": "application/vnd.abiquo.virtualmachine+json",
|
"timestamp1458647897
"https://nardo40.bcn.abiquo.com:443/api/cloud/virtualdatacenters/2486/virtualappliances/2990/virtualmachines/19454"
|
}
} |