Skip to content

Lifetimeclient

LifetimeClient(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)

Lifetime client class for working with Lifetime Model exceptions

list_exceptions(exception_id=None, states=None)

List exceptions to Lifetime Model.

Parameters:

Name Type Description Default
id

The id of the exception

required
states Optional[Sequence[LifetimeExceptionsState]]

The states to filter

None

add_exception(dids, account, pattern, comments, expires_at)

Add exceptions to Lifetime Model.

Parameters:

Name Type Description Default
dids list[dict[str, Any]]

The list of dids

required
account str

The account of the requester.

required
pattern str

The account.

required
comments str

The comments associated to the exception.

required
expires_at datetime

The expiration date of the exception. returns: The id of the exception.

required