update files new
This commit is contained in:
parent
7e15735a6b
commit
957481f045
2 changed files with 6 additions and 6 deletions
10
README.md
10
README.md
|
|
@ -1185,7 +1185,7 @@
|
||||||
`Get-VBRRestorePoint` \
|
`Get-VBRRestorePoint` \
|
||||||
`Get-VBRViProxy`
|
`Get-VBRViProxy`
|
||||||
|
|
||||||
# IWR
|
# REST
|
||||||
|
|
||||||
`$pars = Invoke-WebRequest -Uri $url` \
|
`$pars = Invoke-WebRequest -Uri $url` \
|
||||||
`$pars | Get-Member` \
|
`$pars | Get-Member` \
|
||||||
|
|
@ -1206,7 +1206,7 @@
|
||||||
`$count_down = (Get-Item $path\*).count` \
|
`$count_down = (Get-Item $path\*).count` \
|
||||||
`"Downloaded $count_down of $count_all files to $path"`
|
`"Downloaded $count_down of $count_all files to $path"`
|
||||||
|
|
||||||
`Methods:`
|
`Methods:` \
|
||||||
`GET - Read` \
|
`GET - Read` \
|
||||||
`POST - Create` \
|
`POST - Create` \
|
||||||
`PATCH - Partial update/modify` \
|
`PATCH - Partial update/modify` \
|
||||||
|
|
@ -1215,7 +1215,7 @@
|
||||||
|
|
||||||
`https://veeam-11:9419/swagger/ui/index.html` \
|
`https://veeam-11:9419/swagger/ui/index.html` \
|
||||||
`$Header = @{` \
|
`$Header = @{` \
|
||||||
`"x-api-version" = "1.0-rev1"` \
|
`"x-api-version" = "1.0-rev2"` \
|
||||||
`}` \
|
`}` \
|
||||||
`$Body = @{` \
|
`$Body = @{` \
|
||||||
`"grant_type" = "password"` \
|
`"grant_type" = "password"` \
|
||||||
|
|
@ -1225,13 +1225,13 @@
|
||||||
`$vpost = iwr "https://veeam-11:9419/api/oauth2/token" -Method POST -Headers $Header -Body $Body -SkipCertificateCheck` \
|
`$vpost = iwr "https://veeam-11:9419/api/oauth2/token" -Method POST -Headers $Header -Body $Body -SkipCertificateCheck` \
|
||||||
`$vtoken = (($vpost.Content) -split '"')[3]`
|
`$vtoken = (($vpost.Content) -split '"')[3]`
|
||||||
|
|
||||||
`$token = $vtoken | ConvertTo-SecureString -AsPlainText –Force \
|
`$token = $vtoken | ConvertTo-SecureString -AsPlainText –Force` \
|
||||||
`$vjob = iwr "https://veeam-11:9419/api/v1/jobs" -Method GET -Headers $Header -Authentication Bearer -Token $token -SkipCertificateCheck
|
`$vjob = iwr "https://veeam-11:9419/api/v1/jobs" -Method GET -Headers $Header -Authentication Bearer -Token $token -SkipCertificateCheck
|
||||||
|
|
||||||
`$Header = @{` \
|
`$Header = @{` \
|
||||||
`"x-api-version" = "1.0-rev1"` \
|
`"x-api-version" = "1.0-rev1"` \
|
||||||
`"Authorization" = "Bearer $vtoken"` \
|
`"Authorization" = "Bearer $vtoken"` \
|
||||||
`}`
|
`}` \
|
||||||
`$vjob = iwr "https://veeam-11:9419/api/v1/jobs" -Method GET -Headers $Header -SkipCertificateCheck` \
|
`$vjob = iwr "https://veeam-11:9419/api/v1/jobs" -Method GET -Headers $Header -SkipCertificateCheck` \
|
||||||
`$vjob = $vjob.Content | ConvertFrom-Json`
|
`$vjob = $vjob.Content | ConvertFrom-Json`
|
||||||
|
|
||||||
|
|
|
||||||
2
posh.txt
2
posh.txt
|
|
@ -1215,7 +1215,7 @@ DELETE - Remove
|
||||||
|
|
||||||
https://veeam-11:9419/swagger/ui/index.html
|
https://veeam-11:9419/swagger/ui/index.html
|
||||||
$Header = @{
|
$Header = @{
|
||||||
"x-api-version" = "1.0-rev1"
|
"x-api-version" = "1.0-rev2"
|
||||||
}
|
}
|
||||||
$Body = @{
|
$Body = @{
|
||||||
"grant_type" = "password"
|
"grant_type" = "password"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue