mytardis facilityΒΆ
usage: mytardis facility [-h] {list,get} ...
- Sub-commands:
- list
Display a list of facility records.
usage: mytardis facility list [--limit LIMIT] [--offset OFFSET] [--order_by ORDER_BY] [--json] EXAMPLE $ mytardis facility list Model: Facility Query: http://mytardisdemo.erc.monash.edu.au/api/v1/facility/?format=json Total Count: 2 Limit: 20 Offset: 0 +----+---------------+------------------------+ | ID | Name | Manager Group | +====+===============+========================+ | 1 | Demo Facility | demo-facility-managers | +----+---------------+------------------------+ | 2 | Test Facility | test-facility-managers | +----+---------------+------------------------+
- Options:
--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=False Display results in JSON format.
- get
Display a single facility record.
usage: mytardis facility get [-h] [--json] facility_id EXAMPLE $ mytardis facility get 1 Model: Facility +----------------+------------------------+ | Facility field | Value | +================+========================+ | ID | 1 | +----------------+------------------------+ | Name | Demo Facility | +----------------+------------------------+ | Manager Group | demo-facility-managers | +----------------+------------------------+ Model: Instrument Query: http://mytardisdemo.erc.monash.edu.au/api/v1/instrument/?format=json&facility__id=1 Total Count: 3 Limit: 20 Offset: 0 +----+-------------------------+---------------+ | ID | Name | Facility | +====+=========================+===============+ | 3 | Test Instrument | Demo Facility | +----+-------------------------+---------------+ | 4 | Beamline | Demo Facility | +----+-------------------------+---------------+ | 8 | James Test Instrument | Demo Facility | +----+-------------------------+---------------+
- Positional arguments:
facility_id The facility ID. - Options:
--json=False Display results in JSON format.