ProxyManagerClient

ProxyManagementAPI has the functions to “talk” to the ProxyManagement service

class DIRAC.FrameworkSystem.Client.ProxyManagerClient.ProxyManagerClient

Bases: object

__init__()

x.__init__(…) initializes x; see help(type(x)) for signature

clearCaches()
deleteGeneratedProxyFile(chain)

Delete a file generated by a dump

downloadProxy(**kwargs)
downloadProxyToFile(userDN, userGroup, limited=False, requiredTimeLeft=1200, cacheTime=14400, filePath=False, proxyToConnect=False, token=False)

Get a proxy Chain from the proxy management and write it to file

downloadVOMSProxy(**kwargs)
downloadVOMSProxyToFile(userDN, userGroup, limited=False, requiredTimeLeft=1200, cacheTime=14400, requiredVOMSAttribute=False, filePath=False, proxyToConnect=False, token=False)

Download a proxy if needed, transform it into a VOMS one and write it to file

dumpProxyToFile(chain, destinationFile=False, requiredTimeLeft=600)

Dump a proxy to a file. It’s cached so multiple calls won’t generate extra files

getDBContents(condDict={})

Get the contents of the db

getPayloadProxyFromDIRACGroup(userDN, userGroup, requiredTimeLeft, token=False, proxyToConnect=False)

Download a payload proxy with VOMS extensions depending on the group

getPayloadProxyFromVOMSGroup(userDN, vomsAttr, token, requiredTimeLeft, proxyToConnect=False)

Download a payload proxy with VOMS extensions depending on the VOMS attr

getPilotProxyFromDIRACGroup(userDN, userGroup, requiredTimeLeft=43200, proxyToConnect=False)

Download a pilot proxy with VOMS extensions depending on the group

getPilotProxyFromVOMSGroup(userDN, vomsAttr, requiredTimeLeft=43200, proxyToConnect=False)

Download a pilot proxy with VOMS extensions depending on the group

getUploadedProxyLifeTime(DN, group)

Get the remaining seconds for an uploaded proxy

getUserPersistence(**kwargs)
getUserProxiesInfo()

Get the user proxies uploaded info

getVOMSAttributes(chain)

Get the voms attributes for a chain

instance = <DIRAC.FrameworkSystem.Client.ProxyManagerClient.ProxyManagerClient object>
renewProxy(proxyToBeRenewed=False, minLifeTime=3600, newProxyLifeTime=43200, proxyToConnect=False)

Renew a proxy using the ProxyManager :param proxyToBeRenewed: proxy to renew :param minLifeTime: if proxy life time is less than this, renew. Skip otherwise :param newProxyLifeTime: life time of new proxy :param proxyToConnect: proxy to use for connecting to the service

requestToken(requesterDN, requesterGroup, numUses=1)

Request a number of tokens. usesList must be a list of integers and each integer is the number of uses a token must have

setPersistency(userDN, userGroup, persistent)

Set the persistency for user/group

uploadProxy(proxy=False, diracGroup=False, chainToConnect=False, restrictLifeTime=0, rfcIfPossible=False)

Upload a proxy to the proxy management service using delegation

userHasProxy(**kwargs)