'Add monitoring policy ports
:param policy_id: Id of the monitoring policy
:rtype: ``str``
:param ports: List of ports
:rtype: ``dict``
\'protocol\':\'TCP\',
\'port\':\'80\',
\'alert_if\':\'RESPONDING\',
\'email_notification\':true
:return: Instance of a monitoring policy
:rtype: ``dict``'

def ex_add_monitoring_policy_ports(self, policy_id, ports):

    body = {'ports': ports}
    response = self.connection.request(action=('monitoring_policies/%s/ports' % policy_id), data=body, method='POST')
    return response.object
