Unable to fetch information about user's databases
Modified on: Sat, 18 Nov 2023 5:30 AMOriginal Publishing Date:
2020-01-22
2020-01-22
Symptoms
I am trying to fetch information about databases using database types:
http://doc.apsstandard.org/spec/types/infrastructure/database/
Using code like this:
var userdbs = new Store({
apsType: 'http://parallels.com/aps/types/pa/database/mysql/1.0',
target: "/aps/2/resources/"
});
when(userdbs.query(), function(dbs) {
console.log('user db:', dbs)
});
But every time I do this, an empty Array
comes back even though user has MySQL databases on his account.
Cause
Software issue with ID: APS-16920
prevents database resources from propagating to APS bus properly.
Resolution
There is no way to provide workaround as POA API does not have method to fetch information about databases.
Note: This issue manifests for any kind of databases, not just MySQL.