You can add domain mappings using the CLI tool or REST API as shown below:
As the signup process takes place automatically when a single tenant application is deployed, domain mapping can be added straight after the application is deployed. However, if domain mapping is being added to a multi-tenant application, after the application is deployed, ensure to first carryout the application sign up process before adding the domain mappings.
Sample application JSON
{ "artifactRepositories": [ { "alias": "wso2as-521-worker", "privateRepo": false, "repoUrl": "https://github.com/imesh/stratos-php-applications.git", "repoUsername": "", "repoPassword": "" }, { "alias": "wso2as-521-manager", "privateRepo": false, "repoUrl": "https://github.com/imesh/stratos-tomcat-applications.git", "repoUsername": "", "repoPassword": "" } ] }