def servicegroup_server_disable(sg_name, s_name, s_port, **connection_args):
 ret = True
 server = _servicegroup_get_server(sg_name, s_name, s_port, **connection_args)
 if (server is None):
  return False
 nitro = _connect(**connection_args)
 if (nitro is None):
  return False
 try:
  NSServiceGroup.disable_server(nitro, server)
 except NSNitroError as error:
  log.debug('netscaler module error - NSServiceGroup.disable_server() failed: {0}'.format(error))
  ret = False
 _disconnect(nitro)
 return ret

def servicegroup_server_disable ( sg_name , s_name , s_port , ** connection_args ) : ret = True server = _servicegroup_get_server ( sg_name , s_name , s_port , ** connection_args ) if ( server is None ) : return False nitro = _connect ( ** connection_args ) if ( nitro is None ) : return False try : NSServiceGroup . disable_server ( nitro , server ) except NSNitroError as error : log . debug ( 'netscaler module error - NSServiceGroup.disable_server() failed: {0}' . format ( error ) ) ret = False _disconnect ( nitro ) return ret
disable a server:port member of a servicegroup cli example: .