Skip to content

Commit

Permalink
Hycu-VM-Archive-Y.json
Browse files Browse the repository at this point in the history
Opcon WebServices Template to run Hycu VM archive to dedicated archive target with YEAR archivingType.
Set "@vm_uuid" variable as Hycu uuid of the VM you want to backup.
  • Loading branch information
PClem-Sma authored May 13, 2020
1 parent 1d3c5d8 commit 2dd743f
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions Hycu-VM-Archive/Hycu-VM-Archive-Y.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"templateid" : "Hycu-VM-Archive-Year",
"steps" : [ {
"function" : "POST",
"url" : "[[myHycuServer]]/rest/v1.0/vms/archive",
"request" : {
"headers" : [ {
"attribute" : "Authorization",
"value" : "Basic"
} ],
"body" : "{\r\n \"archivingType\": \"YEAR\",\r\n \"vmUuid\": \"@vm_uuid\"\r\n}",
"fileName" : null
},
"response" : {
"ignoreResult" : false,
"stepCompletionCode" : 202,
"responseDataCheck" : null,
"fileName" : null,
"variables" : [ {
"name" : "@jobUuid",
"value" : "entities[0].jobUuid"
} ]
}
}, {
"function" : "GET",
"url" : "[[myHycuServer]]/rest/v1.0/jobs/@jobUuid",
"request" : {
"headers" : [ {
"attribute" : "Authorization",
"value" : "Basic"
}, {
"attribute" : "Content-Type",
"value" : "application/json"
}, {
"attribute" : "jobUuid",
"value" : "@jobUuid"
} ],
"body" : null,
"fileName" : null
},
"response" : {
"ignoreResult" : false,
"stepCompletionCode" : 200,
"responseDataCheck" : {
"goodFin" : "OK/WARNING",
"badFin" : "ERROR/FATAL/ABORTED",
"attributeToCheck" : "entities[0].status",
"poll" : true,
"pollDelay" : 10,
"pollInterval" : 20,
"pollMaxTime" : 240
},
"fileName" : null,
"variables" : [ ]
}
} ],
"variables" : [ {
"name" : "@User",
"value" : "[[HycuUser]]"
}, {
"name" : "@Password",
"value" : "[[HycuPwd]]"
}, {
"name" : "@vm_uuid",
"value" : "??????"
} ],
"properties" : [ ]
}

0 comments on commit 2dd743f

Please sign in to comment.