Hi all, Our aPaaS product - App Factory uses Apache Stratos to deploy applications. Here is our requirement,
- A a developer click on deploy a PHP application. We send a PHP cartridge subscription request to Stratos. - The PHP cartridge is spawned and application is deployed. - Then we we want to show the URL to access this PHP application in the UI. So we started looking at how to get the IP from Apache Stratos in order to show in the UI. Initial idea was to use the same methods as Stratos UI does. Stratos UI gets tenants subscriptions (when the user logs in) and from that information get the Cluster ID and construct the access URL. But this cannot be done at our end because we don’t have the tenant username/password (password is hashed). So there are two options, - Introduce OAuth mechanism to access Apache Stratos REST API - Or give us a way to get the ClusterId upon subscription If we have the clusterId there are several ways to do it (polling or register a event listener and filter the correct even using the clusterId to correlate) So would it be possible to get the ClusterId from the REST end point when we send the Subscription request? thanks, dimuthu -- Dimuthu Leelarathne Architect & Product Lead of App Factory WSO2, Inc. (http://wso2.com) email: dimut...@wso2.com Mobile : 0773661935 Lean . Enterprise . Middleware