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.
Adding domain mappings via the CLI
|Description||Add domain mappings for the subscribed cartridge.|
The path to the JSON file that defines the domain mapping needs to be defined as the
|Short option||Long option||Description||Required||Example value|
|N/A||N/A||ID of the application.||Yes|
|Folder path where the ||Yes|
Add the domain mappings defined in the
<TEST>/domainmappings.json file to the application with the ID:
Adding domain mappings via the REST API
|Description||Add one or more domain mappings for a cluster.|
Add the domain mappings in the
<TEST_PATH>/domainmappings.json file and add this domain mapping to the application with the ID: wso2am-190-application.
You will come across the following HTTP status codes while adding an application:
|HTTP status code|
See the descriptions of the HTTP status codes here.
|Location header URL|