Accountlimitclient
Classes¶
AccountLimitClient ¶
AccountLimitClient(
rucio_host=None,
auth_host=None,
account=None,
ca_cert=None,
auth_type=None,
creds=None,
timeout=600,
user_agent="rucio-clients",
vo=None,
logger=LOG,
)
Account limit client class for working with account limits
Functions¶
set_account_limit ¶
set_account_limit(account, rse, bytes_, locality)
Sets an account limit for a given limit scope.
PARAMETER | DESCRIPTION |
---|---|
account
|
The name of the account.
TYPE:
|
rse
|
The rse name.
TYPE:
|
bytes_
|
The limit in bytes.
TYPE:
|
locality
|
The scope of the account limit.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
True if quota was created successfully, False otherwise.
|
|
delete_account_limit ¶
delete_account_limit(account, rse, locality)
Deletes an account limit for a given limit scope.
PARAMETER | DESCRIPTION |
---|---|
account
|
The name of the account.
TYPE:
|
rse
|
The rse name.
TYPE:
|
locality
|
The scope of the account limit.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
True if quota was deleted successfully, False otherwise.
|
|
set_local_account_limit ¶
set_local_account_limit(account, rse, bytes_)
Sends the request to set an account limit for an account.
PARAMETER | DESCRIPTION |
---|---|
account
|
The name of the account.
TYPE:
|
rse
|
The rse name.
TYPE:
|
bytes_
|
The limit in bytes.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
True if quota was created successfully, False otherwise.
|
|
delete_local_account_limit ¶
delete_local_account_limit(account, rse)
Sends the request to remove an account limit.
PARAMETER | DESCRIPTION |
---|---|
account
|
The name of the account.
TYPE:
|
rse
|
The rse name.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
True if quota was removed successfully, False otherwise.
|
|
RAISES | DESCRIPTION |
---|---|
AccountNotFound
|
If account doesn't exist. |
set_global_account_limit ¶
set_global_account_limit(account, rse_expression, bytes_)
Sends the request to set a global account limit for an account.
PARAMETER | DESCRIPTION |
---|---|
account
|
The name of the account.
TYPE:
|
rse_expression
|
The rse expression.
TYPE:
|
bytes_
|
The limit in bytes.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
True if quota was created successfully, False otherwise.
|
|
delete_global_account_limit ¶
delete_global_account_limit(account, rse_expression)
Sends the request to remove a global account limit.
PARAMETER | DESCRIPTION |
---|---|
account
|
The name of the account.
TYPE:
|
rse_expression
|
The rse expression.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
True if quota was removed successfully, False otherwise.
|
|
RAISES | DESCRIPTION |
---|---|
AccountNotFound
|
If account doesn't exist. |