license list
Lists licenses on the cluster. Permissions required: login
. For best
results, use the -json
option when running the command.
Syntax
- CLI
-
maprcli license list [ -cluster <cluster> ]
- REST
Request Type GET Request URL http[s]://<host>:<port>/rest/license/list[?<parameters>]
Parameters
Parameter |
Description |
---|---|
cluster |
The cluster on which to run the command. |
NOTE
If you use the -json
option with this command, and you pipe the
output into another program, you may find that the result cannot be parsed by certain
JSON libraries, such as the JSON library for Python. To work around this problem, you
can replace the single-escape characters (\
) in the JSON output that
the license list
command returns, with double-escape characters
(\\
). Output
Sample Output
# maprcli license list -json
{
"timestamp":1433543033194,
"timeofday":"2015-06-05 10:23:53.194 GMT+0000",
"status":"OK",
"total":2,
"data":[
{
"id":"88aEvYonv5HqJgaFrGfsKis5puQ=",
"description":"Base MapR POSIX Client for fast secure file access",
"nfscliendnodes":"10",
"isAdditioanlFeature":true,
"deletable":false,
"grace":true,
"license":"version: \"4.0\"\ncustomerid: \"BaseLicenseUser\"\nissuer: \"MapR Technologies,
Inc.\"\nlicType: AdditionalFeaturesBase\ndescription: \"Base MapR POSIX Client for fast secure file access\"\nenforcement: HARD\ncapabilities {\n feature: NFS_CLIENT_BASE\n name: \"MapR POSIX CLIENT\"\n permission: ALLOW\n featureData {\n maxNfsClientNodes: \"10\"\n }\n}\nhash: \"88aEvYonv5HqJgaFrGfsKis5puQ=\"\n"
},
{
"id":"iSs4C9+yb9WSbE1lHJGy5KW0m3E=",
"description":"MapR Base Edition",
"maxnodes":"unlimited",
"isAdditioanlFeature":false,
"deletable":false,
"grace":true,
"license":"version: \"4.0\"\ncustomerid: \"BaseLicenseUser\"\nissuer: \"MapR Technologies,
Inc.\"\nlicType: Base\ndescription: \"MapR Base Edition\"\nenforcement: HARD\ncapabilities {\n feature: MAXNODES\n name: \"Max Nodes in Cluster\"\n permission: ALLOW\n featureData {\n maxNodes: \"unlimited\"\n }\n}\ncapabilities {\n feature: MAPR_TABLES\n name: \"MapR Tables\"\n permission: ALLOW\n}\nhash: \"iSs4C9+yb9WSbE1lHJGy5KW0m3E=\"\n"
}
]
}
Examples
- CLI
maprcli license list -json
- REST
https://abc.sj.us:8443/rest/license/list