Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Localtabgroup
Localtab
activetrue
titleCLI

Getting

the

details of

the

domain mappings via the CLI

Overview
CLI commandlist-domain-mappings
DescriptionRetrieve domain mapping details of an application.
Command format
Code Block
list-domain-mappings <APPLICATION-ID>
Parameter definition
Short optionLong optionDescriptionRequiredExample value
N/AN/AID of the application.Yes
wso2am-190-application
Example

Retrieve domain mapping details of the application with the ID: wso2am-190-application.

Code Block
list-domain-mappings wso2am-190-application
Sample output
Code Block
 
Localtab
titleREST API

Getting

the

details of

the

domain mappings via the REST API

Overview
DescriptionRetrieve domain mapping details for a cluster.
Resource Path/applications/{applicationId}/domainMappings
HTTP MethodGET
Request/Response Formatapplication/json
Command format
Code Block
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
Info
  • By default, <USERNAME>:<PASSWORD> is admin:admin.
  • By default, <PRIVATE_PAAS_HOST> is localhost. However, if you are using a public IP, the respective IP address or domain needs to be specified.
  • By default, <PRIVATE_PAAS_HTTPS_PORT> has been set to 9443. However, if the port offset has been incremented by n, the default port value needs to be incremented by n.
Example

Retrieve domain mapping details of the application with the ID: wso2am-190-application.

Code Block
curl -X GET -H "Content-Type: application/json" -k -v -u admin:admin https://localhost:9443/api/applications/wso2am-190-application/domainMappings
Sample output
Code Block
 

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.

...