Skip to content

Updates the Cloudera Manager license

gdgt edited this page Sep 30, 2014 · 2 revisions
# CM API endpoints
http://cloudera.github.io/cm_api/apidocs/v6/path__cm_license.html

Method 1 - uploading contents of the license.txt

curl -u 'admin:admin' -X POST -H "Content-Type=multipart/form-data" -F license=@/tmp/license.txt 'http://cm.cloudera.com:7180/api/v6/cm/license'

Method 2 - Inline

curl -u 'admin:admin' -X POST -H "Content-Type=multipart/form-data" 'http://cm.cloudera.com:7180/api/v6/cm/license ' -F license=@- << EOL
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

{
   "expirationDate": null, 
   "name": "NAME", 
   "uuid": "00000000-000000000-0000-000000000000", 
   "version": 1
}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/xxxxx
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
/zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
00000000000=
=BEEF
-----END PGP SIGNATURE-----
EOL