How can i pause/unpause a live recording progrmatically on asterisk?

First of all i need to get a list of current live calls and then i need to pause and unpause the live recording pragmatically using asterisk ARI,AMI , anything that can achieve what i need

anyone has a clue what should i do ?

AMI provides actions which can be used to do such things and they are documented on the wiki[1].