Skip to content

Asset Get

Paritech.Authority.Control Asset Get <Service> <Type> <Code> [...]

Retrieves the details of one or more Assets.

FieldDescription
ServiceThe Authority Service to connect to.
TypeThe type of the Asset.
CodeThe unique code of the Asset. Can be specified multiple times to retrieve multiple Assets.
OptionDescription
-Cols <Columns>A comma-separated list of column names. Defaults to type,code.
-Enc <Encoding>Output encoding. One of ASCII, UTF8 (default).
-File <FileName>Write to the given file
-Format <Format>Output data format. One of CSV (default), TSV, JSON.
-NewLine <NewLine>NewLine format. One of CR, LF, CRLF. Defaults to platform specific.
-NoHeaderThe output data does not contain a header line.
-StdoutWrite to STDOUT. Default.

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

Get Asset
Paritech.Authority.Control Asset Get XOSP User 1234 TradingAccount XS:0001 > Asset.csv
Asset.csv
Type,Code
User,1234

Utilises the /asset API.