You can get the details of the domain mappings using the CLI tool or REST API as shown below:
Getting details of domain mappings via the CLI
Overview
CLI command | list-domain-mappings |
Description | Retrieve domain mapping details of an application. |
Command format | list-domain-mappings <APPLICATION-ID> |
Parameter definition
Short option | Long option | Description | Required | Example value |
---|---|---|---|---|
N/A | N/A | ID of the application. | Yes | wso2am-190-application |
Example
Retrieve domain mapping details of the application with the ID: wso2am-190-application.
list-domain-mappings wso2am-190-application
Sample output
Getting details of domain mappings via the REST API
Overview
Description | Retrieve domain mapping details for a cluster. |
Resource Path | /applications/{applicationId}/domainMappings |
HTTP Method | GET |
Request/Response Format | application/json |
Command format | curl -X GET -H "Content-Type: application/json" -k -v -u <USERNAME>:<PASSWORD> https://<PRIVATE_PAAS_HOST>:<PRIVATE_PAAS_HTTPS_PORT>/api/applications/{applicationId}/domainMappings
|
Example
Retrieve domain mapping details of the application with the ID: wso2am-190-application.
curl -X GET -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/wso2am-190-application/domainMappings
Sample output
You will come across the following HTTP status codes while adding an application:
HTTP status code | 200, 404, 500 See the descriptions of the HTTP status codes here. |
Overview
Content Tools
Activity