Вызов API-интерфейса IBM Urbancode AddVersionStatus из Powershell. Как? - PullRequest
0 голосов
/ 19 мая 2018

https://www.ibm.com/support/knowledgecenter/en/SS4GSP_6.2.7/com.ibm.udeploy.api.doc/topics/udclient_addversionstatus.html

Как сделать этот PUT-вызов с помощью Powershell, пожалуйста ?.Я использую Powershell 5.

1 Ответ

0 голосов
/ 20 мая 2018

Наверное, как-то так ...

$Hash = @{
        Component="StringValue"
        Version="StringValue"
        Status="StringValue"
        }


$Json = $Hash | ConvertTo-Json
$URL = "url-goes-here"
$Cred = Get-Credential

Invoke-RestMethod -Method "POST" -Uri $url -Credential $Cred -Body $Json
...