def getServiceItemInfo(server, port, adminUser,  adminPass, folder, serverNameAndType, useSSL=True, token=None):    
    
    
    if token is None:    
        token = gentoken(server, port, adminUser, adminPass, useSSL)    
    
    if folder is not None:
        folderServerNameType = folder + "/" + serverNameAndType
    else:
        folderServerNameType = serverNameAndType
        
    serviceItemInfo = {}       
    URL = "{}{}{}/arcgis/admin/services/{}/iteminfo?f=pjson&token={}".format(getProtocol(useSSL), server, getPort(port), folderServerNameType, token)    

    serviceItemInfo = json.loads(urllib2.urlopen(URL).read())
    
    return serviceItemInfo
Retrieve either Rexp stored in a variable called "name" or make call
dataset/ETHPy150Open Esri/ops-server-config/SupportFiles/AGSRestFunctions.py/getServiceItemInfo--crossover with--dataset/ETHPy150Open ralhei/pyRserve/pyRserve/rconn.py/RNameSpace.__getattr__