def create_snapshot_body(indices, ignore_unavailable=False, include_global_state=True, partial=False):
 if (not indices):
  logger.error('No indices provided.')
  return False
 body = {'ignore_unavailable': ignore_unavailable, 'include_global_state': include_global_state, 'partial': partial}
 if (indices == '_all'):
  body['indices'] = indices
 else:
  body['indices'] = to_csv(indices)
 return body

def create_snapshot_body ( indices , ignore_unavailable = False , include_global_state = True , partial = False ) : if ( not indices ) : logger . error ( 'No indices provided.' ) return False body = { 'ignore_unavailable' : ignore_unavailable , 'include_global_state' : include_global_state , 'partial' : partial } if ( indices == '_all' ) : body [ 'indices' ] = indices else : body [ 'indices' ] = to_csv ( indices ) return body
create the request body for creating a snapshot from the provided arguments .