def getServerDirectory(server, port, adminUser, adminPass, directoryType, useSSL=True, token=None):
    
    
    serverDirectories = getServerDirectories(server, port, adminUser, adminPass, useSSL, token=None)
    
    for serverDirectory in serverDirectories["directories"]:
        if serverDirectory["directoryType"] == directoryType.upper():
            break
    
    return serverDirectory
Get specific Server Directory json dictionary based on directoryType.
dataset/ETHPy150Open Esri/ops-server-config/SupportFiles/AGSRestFunctions.py/getServerDirectory