def getServicePortalProps(server, port, adminUser,  adminPass, folder, serviceNameAndType, useSSL=True, token=None):

    serviceInfo = getServiceInfo(server, port, adminUser,  adminPass, folder, serviceNameAndType, useSSL, token)
    servicePortalProps = serviceInfo.get("portalProperties")

    return servicePortalProps
Function to get the portal properties of the service
dataset/ETHPy150Open Esri/ops-server-config/SupportFiles/AGSRestFunctions.py/getServicePortalProps