'Associate an alert policy to a clc server
:param clc: the clc-sdk instance to use
:param alias: the clc account alias
:param server_id: The clc server id
:param alert_policy_id: the alert policy id to be associated to the server
:return: none'

@staticmethod
def _add_alert_policy_to_server(clc, alias, server_id, alert_policy_id):

    try:
        clc.v2.API.Call(method='POST', url=('servers/%s/%s/alertPolicies' % (alias, server_id)), payload=json.dumps({'id': alert_policy_id}))
    except APIFailedResponse as e:
        raise CLCException('Failed    to    associate    alert    policy    to    the    server    :    {0}    with    Error    {1}'.format(server_id, str(e.response_text)))
