KeystoneClient
KeystoneClient class encapsulates the work with the keystone service interface
- class DIRAC.Resources.Cloud.KeystoneClient.KeystoneClient(url, parameters)
Bases:
object
- __init__(url, parameters)
- getTenants()
Get available tenants for the current token
- Returns:
S_OK((tenant, tenant_id)) or S_ERROR
- getToken(force=False)
Get the Keystone token
- Parameters:
force – flag to force getting the token if even there is one in the cache
- Returns:
S_OK(token) or S_ERROR
- initialize()
Initialize the Keystone object obtaining the corresponding token
- Returns:
S_OK/S_ERROR