'Initializes a SnapMirror relationship (cDOT 8.2 or later only).'

def initialize_snapmirror(self, source_vserver, source_volume, destination_vserver, destination_volume, source_snapshot=None, transfer_priority=None):

    self._ensure_snapmirror_v2()
    api_args = {'source-volume': source_volume, 'source-vserver': source_vserver, 'destination-volume': destination_volume, 'destination-vserver': destination_vserver}
    if source_snapshot:
        api_args['source-snapshot'] = source_snapshot
    if transfer_priority:
        api_args['transfer-priority'] = transfer_priority
    result = self.send_request('snapmirror-initialize', api_args)
    result_info = {}
    result_info['operation-id'] = result.get_child_content('result-operation-id')
    result_info['status'] = result.get_child_content('result-status')
    result_info['jobid'] = result.get_child_content('result-jobid')
    result_info['error-code'] = result.get_child_content('result-error-code')
    result_info['error-message'] = result.get_child_content('result-error-message')
    return result_info
