Skip to main content

ScopeClient

add_scope

Sends the request to add a new scope.

Arguments:

account: the name of the account to add the scope to.

scope: the name of the new scope.

Raises:

Duplicate: if scope already exists.

AccountNotFound: if account doesn't exist.

Returns:

True if scope was created successfully.

list_scopes

Sends the request to list all scopes.

Returns:

a list containing the names of all scopes.

list_scopes_for_account

Sends the request to list all scopes for a rucio account.

Arguments:

account: the rucio account to list scopes for.

Raises:

AccountNotFound: if account doesn't exist.

ScopeNotFound: if no scopes exist for account.

Returns:

a list containing the names of all scopes for a rucio account.