Account Rest API

Overview

Resource

Operation

Description

Account

GET /accounts/

List all accounts.

AccountParameter

PUT /accounts/(account)

Update account information.

DELETE /accounts/(account)

Delete account information.

POST /accounts/(account)

Add account.

GET /accounts/(account)

Get account parameters.

Attributes

DELETE /accounts/(account)/attr/(key)

Delete account attribute

POST /accounts/(account)/attr/(key)

Add account attribute

GET /accounts/(account)/attr

list account attributes.

GlobalAccountLimits

GET /accounts/(account)/limits/global/(rse_expression)

Get global account limits.

GET /accounts/(account)/limits/global

GlobalUsage

GET /accounts/(account)/usage/(rse_expression)

Get global account usage.

GET /accounts/(account)/usage

Identities

DELETE /accounts/(account)/identities

Remove identity from account.

POST /accounts/(account)/identities

Add identity to account.

GET /accounts/(account)/identities

Get account idenitity mapping.

LocalAccountLimits

GET /accounts/(account)/limits/local/(rse)

Get local account limits.

GET /accounts/(account)/limits/local

LocalUsage

GET /accounts/(account)/usage/(rse)

Get local account usage.

GET /accounts/(account)/usage

Rules

GET /accounts/(account)/rules

Get rules for account.

Scope

POST /accounts/(account)/scopes/(scope)

Add to account.

Scopes

GET /accounts/(account)/scopes

List scope for account.

UsageHistory

GET /accounts/(account)/usage/history/(rse)

Get account usage history.

Details

GET /accounts/

list all rucio accounts.

Response Headers
Status Codes
Returns

A list containing all account names as dict.

GET /accounts/(account)/limits/global/(rse_expression)
GET /accounts/(account)/limits/global

get the current global limits for an account on a specific RSE expression

Parameters
  • account – The account name.

  • rse_expression – The rse expression.

Response Headers
Status Codes
Returns

JSON dict containing informations about the requested user.

GET /accounts/(account)/limits/local/(rse)
GET /accounts/(account)/limits/local

get the current local limits for an account on a specific RSE

Parameters
  • account – The account name.

  • rse – The rse name.

Response Headers
Status Codes
Returns

JSON dict containing informations about the requested user.

GET /accounts/(account)/usage/history/(rse)

Return the account usage of the account.

Parameters
  • account – The account name.

  • rse – The RSE.

Response Headers
Status Codes
Returns

Line separated list of account usages.

Return the account usage of the account.

DELETE /accounts/(account)/identities

Delete an account’s identity mapping.

Parameters
  • account – Account identifier.

Request JSON Object
  • identity (string) – The identity name.

  • authtype (string) – The authentication type.

Status Codes
POST /accounts/(account)/identities

Grant an identity access to an account.

Parameters
  • account – Account identifier.

Request JSON Object
  • identity (string) – The identity name.

  • authtype (string) – The auth type of the identity.

  • email (string) – The email address.

Status Codes
GET /accounts/(account)/identities

Get all identities mapped to an account.

Response Headers
Parameters
  • account – The account identifier.

Status Codes
Statsu 406

Not Acceptable.

Returns

Line separated dicts of identities.

POST /accounts/(account)/scopes/(scope)

create scope with given scope name.

Parameters
  • account – The account identifier.

  • scope – The scope to be added.

Status Codes
GET /accounts/(account)/scopes

list all scopes for an account.

Parameters
  • account – The account identifier.

Response Headers
Status Codes
Statsu 406

Not Acceptable

Returns

A list containing all scope names for an account.

GET /accounts/(account)/usage/(rse)
GET /accounts/(account)/usage

Return the local account usage of the account.

Parameters
  • account – The account name.

Response Headers
Status Codes
Returns

Line separated list of account usages.

GET /accounts/(account)/usage/(rse_expression)
GET /accounts/(account)/usage

Return the global account usage of the account.

Parameters
  • account – The account name.

Response Headers
Status Codes
Returns

Line separated list of account usages.

GET /accounts/(account)/rules

Return all rules of a given account.

Parameters
  • scope – The scope name.

Response Headers
Status Codes
Returns

Line separated list of rules.

DELETE /accounts/(account)/attr/(key)

Remove attribute from account.

Parameters
  • account – Account identifier.

  • key – The attribute key.

Status Codes
POST /accounts/(account)/attr/(key)

Add attributes to an account.

Parameters
  • account – Account identifier.

  • key – The attribute key.

Request JSON Object
  • key (string) – The attribute key.

  • value (string) – The attribute value.

Status Codes
GET /accounts/(account)/attr

list all attributes for an account.

Parameters
  • account – The account identifier.

Response Headers
Status Codes
Returns

JSON dict containing informations about the requested account.

PUT /accounts/(account)

update a parameter for a given account name

Parameters
  • account – The account identifier.

Status Codes
DELETE /accounts/(account)

disable account with given account name.

Parameters
  • account – The account identifier.

Status Codes
POST /accounts/(account)

create account with given account name.

Parameters
  • account – The account identifier.

Request JSON Object
  • type (string) – The account type.

  • email (string) – The account email.

Status Codes
GET /accounts/(account)

get account parameters for given account name.

Parameters
  • account – The account identifier.

Status Codes
Returns

JSON dict containing informations about the requested user.