We are developing or process to migrate the App Volumes environment from 2.18.10 to 2103.
I'm trying to pull information from the App Volumes Manager using the REST API, but I'm running into some issues.
The is no issue pulling information from the 2.18.10 AVM - I'm using the following:
$Credentials = @{
username = 'Domain\User'
password = 'password'
}
$Server = "av1.domain.local"
Invoke-RestMethod -Method Post -Uri "http://$Server/cv_api/sessions" -Body $Credentials -SessionVariable avsession
Invoke-RestMethod -Method Get -Uri "http://$Server/cv_api/version" -WebSession $avsession
Invoke-RestMethod -Method Get -Uri "http://$Server/cv_api/appstacks" -WebSession $avsession
When I attempt to get information from the 2103 (4.4.3.4) AVM, I can logon and pull version information, but not a list of AppStacks - returns nothing.
$Credentials = @{
username = 'Domain\User'
password = 'password'
}
$Server = "av2.domain.local"
Invoke-RestMethod -Method Post -Uri "http://$Server/cv_api/sessions" -Body $Credentials -SessionVariable avsession
Invoke-RestMethod -Method Get -Uri "http://$Server/cv_api/version" -WebSession $avsession
Invoke-RestMethod -Method Get -Uri "http://$Server/cv_api/appstacks" -WebSession $avsession
I looked at the 2203 version of the App Volumes API and tried using the new URI syntax, but that errors out.
$Credentials = @{
username = 'Domain\User'
password = 'password'
}
$Server = "av2.domain.local"
Invoke-RestMethod -Method Post -Uri "http://$Server/cv_api/sessions" -Body $Credentials -SessionVariable avsession
Invoke-RestMethod -Method Get -Uri "http://$Server/appvolumes/version" -WebSession $avsession
Invoke-RestMethod -Method Get -Uri "http://$Server/appvolumes/appstacks" -WebSession $avsession
Any ideas why this is not working?