You can get the details of the domain mappings using the CLI tool or REST API as shown below:
Deleting domain mappings via the CLI
Overview
CLI command | remove-domain-mappings |
Description | Remove domain mappings of an application. |
Command format | remove-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
Remove domain mappings of the application with the ID: wso2am-190-application.
remove-domain-mappings wso2am-190-application
Sample output
Deleting domain mappings via the REST API
Overview
Description | Delete domain mappings of a cluster. |
Resource Path |
|
HTTP Method | DELETE |
Request/Response Format |
|
Command format | curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://<STRATOS_HOST>:<STRATOS_HTTPS_PORT>/api/applications/{applicationId}/domainMappings/{domainName}
|
Example
Retrieve domain mapping details of the application with the ID: wso2am-190-application.
cd <PRIVATE_PAAS_CARTRIDGES>/wso2am/1.9.0/samples/applications/wso2am-190-application/artifacts/ curl -X DELETE -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/wso2am-190-application/domainMappings/abc.com
Sample output
You will come across the following HTTP status codes while deleting domain mappings:
HTTP status code | 200, 500 See the descriptions of the HTTP status codes here. |
Overview
Content Tools
Activity