CSHelpers

CSHelpers

Module containing functions interacting with the CS and useful for the RSS modules.

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getComputingElements()

Gets all computing elements from /Resources/Sites/<>/<>/CE

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getDomainSites(*args, **kwargs)

Gets all sites from /Resources/Sites

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getFTS()

Gets all FTS endpoints

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getFileCatalogs()

Gets all storage elements from /Resources/FileCatalogs

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getGOCSites(diracSites=None)
DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getNodes(*args, **kwargs)

Gets all nodes

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getQueuesRSS()

Gets all computing elements from /Resources/Sites/<>/<>/CE/Queues

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getRegistryUsers(*args, **kwargs)

Gets all users from /Registry/Users

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getResources()

Gets all resources

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getSEHost(seName)

Get StorageElement host name

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getSEToken(seName)

Get StorageElement token

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getSiteComputingElements(siteName)

Gets all computing elements from /Resources/Sites/<>/<siteName>/CE

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getSiteElements(siteName)

Gets all the computing and storage elements for a given site

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getSiteStorageElements(siteName)

Gets all storage elements from /Resources/Sites/<>/<siteName>/SE

Used by WebApp/SiteSummaryHandler.py
DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getSites(*args, **kwargs)

Gets all sites from /Resources/Sites

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getSpaceTokenEndpoints()

Get Space Token Endpoints

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getStorageElementEndpoint(seName)

Get one endpoint of a StorageElement

Like all the rest of the methods here, they will need to adapt to an SRM free world. This is planned for a future version. See https://github.com/DIRACGrid/DIRAC/issues/3908

Parameters:seName – name of the storage element
Returns:for historical reasons, if the protocol is SRM, you get ‘httpg://host:port/WSUrl’ For other protocols, you get getEndpoint()
DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getStorageElementEndpoints(*args, **kwargs)

get the endpoints of the Storage ELements

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getStorageElements(*args, **kwargs)

Gets all storage elements from /Resources/StorageElements

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getStorageElementsHosts(seNames=None)

Get the hosts of the Storage Elements

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.warmUp()

gConfig has its own dark side, it needs some warm up phase.