THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
!!!!WORK IN PROCESS!!!!!
Get list of
...
Views
Gets the list of all available Views (and their available versions) in Ambari.
Code Block GET /api/v1/views 200 - OK
...
The following example shows creating an instance of the FILES FILES view, version 1.0.0 view called "MyFiles".
Create the view instance.
Code Block POST /api/v1/views/FILES/versions/1.0.0/instances/MyFiles 201 - CREATED
Set view properties.
Code Block PUT /api/v1/views/FILES/versions/1.0.0/instances/MyFiles [ { "ViewInstanceInfo" : { "properties" : { "dataworker.defaultFs" : "webhdfs://your.namenode.host:50070" } } } ] 200 - OK
Restart Ambari Server to pick-up the view instance and UI resources.
Code Block ambari-server restart
Confirm the newly created view instance is available.
Code Block GET /api/v1/views/FILES/ { "href" : "http://127.0.0.1:8080/api/v1/views/FILES/versions/1.0.0", "ViewInfo" : { "archive" : "/var/lib/ambari-server/resources/views/files-0.0.1-SNAPSHOT-jar-with-dependencies.jar", "label" : "Files", "parameters" : [ { "name" : "dataworker.defaultFs", "description" : "FileSystem URI", "required" : true } ], "version" : "1.0.0", "view_name" : "FILES" }, "instances" : [ { "href" : "http://127.0.0.1:8080/api/v1/views/FILES/versions/1.0.0/instances/MyFiles", "ViewInstanceInfo" : { "instance_name" : "MyFiles", "view_name" : "FILES" } } ] }
Browse to the view instance.
Code Block http://127.0.0.1:8080/views/FILES/1.0.0/MyFiles