urls
Displays the status page URL for the specified service.
Syntax
- CLI
-
/opt/mapr/bin/maprcli urls [ -cluster <cluster name> ] [ -zkconnect <ZooKeeper Connect String: 'host:port,host:port,host:port,...'> ] -name <name of the service link is required for> [ -validate <Validate if URL is reachable or not. default: true> ]
- REST
Request Type GET Request URL http[s]://<host>:<port>/rest/urls/statuspage?<parameters>
If you submit the request without
statuspage
in the request URL, the return value contains a 404 error because the API requires a subcommand (empty or otherwise) to be present even though the subcommand is ignored.
Parameters
Parameter | Description |
---|---|
cluster |
The name of the cluster on which to save the configuration. |
name |
The name of the service for which to get the status page:
|
validate |
Enables (true ) or disables (false ) validating whether the URL is
reachable. |
zkconnect |
ZooKeeper Connect String |
Examples
Display the URL of the status page for the CLDB service:
# /opt/mapr/bin/maprcli urls -name cldb
url
https://server.sj.us:7443/cldb.jsp
curl -X GET 'https://server.sj.us:8443/rest/urls/statuspage?name=cldb' --user <username>:<password>
{"timestamp":1544561148186,"timeofday":"2018-12-11 12:45:48.186 GMT-0800 PM","status":"OK","total":1,"data":[{"url":"https://abc.sj.us:7443/cldb.jsp"}]}