Skip to content

Type Import

Paritech.Authority.Control Type Import <Service>

Defines multiple Asset Types by importing from a file or STDIN.

FieldDescription
ServiceThe Authority Service to connect to.
OptionDescription
-Cols <Columns>A comma-separated list of column names. Defaults to code.
-Enc <Encoding>Input encoding. One of ASCII, UTF8 (default).
-File <FileName>Read from the given file
-Format <Format>Input data format. One of CSV (default), TSV, JSON.
-HeaderThe input CSV data does contain a header line. With -Cols, specify to skip the header.
-NoHeaderThe input CSV data does not contain a header line.
-StdinRead from STDIN. Default.

When using the CSV format, Type and Code determine the To Asset. Subsequent columns provide context information based on the column header. Empty values are ignored.

  • M:<Key>: Adds a Metadata value to the Asset Type.

When using the JSON format, each line is interpreted as a JSON serialised AssetType.

The process result will be 0 on success, and a negative value on failure.

Types.csv
Code,Meta:Disabled
Exchange,True
Market
Bulk Import Associations
Paritech.Authority.Control Type Import XOSP < Types.csv

Utilises the /type API.