You are on the right track. The getMap() method should return the map object that should contain all the information about the map being rendered on the page. Here is a link to the documentation on that method:
http://docs.tethysplatform.org/en/latest/tethys_sdk/gizmos/map_view.html#javascript-api In the explanation of the getMap() method there is also a link to the API documentation for the ol.Map object (
http://openlayers.org/en/v3.10.1/apidoc/ol.Map.html). On the left you will see the methods that you can call on that object (e.g.: getLayers, addLayer, getOverlays). It is very important that you use the documentation for the correct version of OpenLayers (which at the time of writing was 3.10.1). If you use Google to search for solutions, be careful to specify "openlayers 3" in your search, otherwise you will get a lot of results based on the old OpenLayers 2, which is very different. I would also encourage you to peruse the examples page:
http://openlayers.org/en/v3.10.1/examples/