In the YARN UI, we can view the max and used application master resources, is there a way to get the data through CLI or REST API?