Thanks for this info Benjamin.
I can now run:
PS C:\Users\VHASFCROACHB> Invoke-WebRequest -Uri http://localhost:8042/studies/608332e1-535e1e15-f97f323f-4560532e-be794
7f5/archive -Method POST -Body ‘{“Synchronous”:false}’
and get:
StatusCode : 200
StatusDescription : OK
Content : {
“ID” : “768698d3-fc25-4f40-a5b8-7bf3714bcb37”,
“Path” : “/jobs/768698d3-fc25-4f40-a5b8-7bf3714bcb37”
}
RawContent : HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 111
Content-Type: application/json; charset=utf-8
{
“ID” : “768698d3-fc25-4f40-a5b8-7bf3714bcb37”,
“Path” : "/jobs/768698d3-fc25-4f40…
Forms : {}
Headers : {[Connection, keep-alive], [Content-Length, 111], [Content-Type, application/json; charset=utf-8]}
Images : {}
InputFields : {}
Links : {}
ParsedHtml : System.__ComObject
RawContentLength : 111
then I can run:
PS C:\Users\VHASFCROACHB> Invoke-WebRequest -Uri http://localhost:8042/jobs/768698d3-fc25-4f40-a5b8-7bf3714bcb37
and get:
StatusCode : 200
StatusDescription : OK
Content : {
“Content” : {
“Description” : “REST API”,
“InstancesCount” : 9533,
“UncompressedSizeMB” : 2498
},
“CreationTime” : “20190520T204028.318424”,
“EffectiveRuntime” : 142.75…
RawContent : HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 504
Content-Type: application/json; charset=utf-8
{
“Content” : {
“Description” : “REST API”,
“InstancesCount” : 9533,
…
Forms : {}
Headers : {[Connection, keep-alive], [Content-Length, 504], [Content-Type, application/json; charset=utf-8]}
Images : {}
InputFields : {}
Links : {}
ParsedHtml : System.__ComObject
RawContentLength : 504
If I just plug that url into a browser, I can keep getting the full json information, which eventually lists:
{
“CompletionTime” : “20190520T205821.664025”,
“Content” : {
“Description” : “REST API”,
“InstancesCount” : 9533,
“UncompressedSizeMB” : 2498
},
“CreationTime” : “20190520T204028.318424”,
“EffectiveRuntime” : 1028.9929999999999,
“ErrorCode” : 0,
“ErrorDescription” : “Success”,
“ID” : “768698d3-fc25-4f40-a5b8-7bf3714bcb37”,
“Priority” : 0,
“Progress” : 100,
“State” : “Success”,
“Timestamp” : “20190520T214238.507178”,
“Type” : “Archive”
}
then I try:
PS C:\Users\VHASFCROACHB> Invoke-WebRequest -Uri http://localhost:8042/jobs/768698d3-fc25-4f40-a5b8-7bf3714bcb37/archive > D:.…\zipTest.zip
and this did not work - the zip file is corrupted, even though I saw a long-running dialogue in the power shell indicating that lots of bytes were being read. Have I made an obvious syntax error at this last step or in some prior step?
thanks,
Brian