mytardis storagebox

usage: mytardis storagebox [-h] {list,get} ...

Positional Arguments

command

Possible choices: list, get

available commands

Sub-commands:

list

Display a list of storage box records.

mytardis storagebox list
    [--limit LIMIT] [--offset OFFSET] [--order_by ORDER_BY] [--json]

  EXAMPLE

  $ mytardis storagebox list

  Model: StorageBox
  Query: http://mytardisdemo.erc.monash.edu.au/api/v1/storagebox/?format=json
  Total Count: 2
  Limit: 20
  Offset: 0

  +----+------------------------------------------------+-----------------+
  | ID |                      Name                      |   Description   |
  +====+================================================+=================+
  |  1 | local box at /opt/mytardis/develop/var/store   | Default Storage |
  +----+------------------------------------------------+-----------------+
  |  2 | local box at /opt/mytardis/develop/var/staging | Default Staging |
  +----+------------------------------------------------+-----------------+

Named Arguments

--limit

Maximum number of results to return.

--offset

Skip this many records from the start of the result set.

--order_by

Order by this field.

--json

Display results in JSON format.

Default: False

get

Display a single storage box record.

mytardis storagebox get [-h] [--json] storage_box_id

  EXAMPLE

  $ mytardis storagebox get 2
  +----------------------+-------------------------------------------------------------+
  |   StorageBox field   |                            Value                            |
  +======================+=============================================================+
  | ID                   | 2                                                           |
  +----------------------+-------------------------------------------------------------+
  | Name                 | local box at /opt/mytardis/develop/var/staging              |
  +----------------------+-------------------------------------------------------------+
  | Description          | Default Staging                                             |
  +----------------------+-------------------------------------------------------------+
  | Django Storage Class | tardis.tardis_portal.storage.MyTardisLocalFileSystemStorage |
  +----------------------+-------------------------------------------------------------+
  | Max Size             | 2.842e+10                                                   |
  +----------------------+-------------------------------------------------------------+
  | Status               | dirty                                                       |
  +----------------------+-------------------------------------------------------------+

  +----------------------+-----------------------------------+
  | StorageBoxOption Key |      StorageBoxOption Value       |
  +======================+===================================+
  |             location | /opt/mytardis/develop/var/staging |
  +----------------------+-----------------------------------+

  +-------------------------+--------------------------------+
  | StorageBoxAttribute Key |   StorageBoxAttribute Value    |
  +=========================+================================+
  |            scp_username | mydata                         |
  +-------------------------+--------------------------------+
  |            scp_hostname | mytardisdemo.erc.monash.edu.au |
  +-------------------------+--------------------------------+

Positional Arguments

storage_box_id

The storage box ID.

Named Arguments

--json

Display results in JSON format.

Default: False