Skip to content

Association Define

Paritech.Authority.Control Association Define <Service> <FromType> <FromCode> <ToType> <ToCode>

Defines an Association between two Assets.

Any existing context data for the Assets and the Association will be merged with whatever is supplied.

FieldDescription
ServiceThe Authority Service to connect to.
FromTypeThe type of the Asset the Association is from.
FromCodeThe unique code of the Asset the Association is from.
ToTypeThe type of the Asset the Association is to.
ToCodeThe unique code of the Asset the Association is to.
OptionDescription
-App <Code>Specifies metadata for an Application on the Association. Affects the -Meta and -ID options. Can be specified multiple times.
-FromApp <Code>Specifies metadata for an Application on the From Asset. Affects the -Meta and -ID options. Can be specified multiple times.
-ID <Name>Specifies a new ID for the current App. Can be specified multiple times.
-Meta <Key> <Value>Supplies a metadata key/value for the current App. Can be specified multiple times.
-Rename <Type> <Code>Specifies a new type and code for an existing Asset.
-ToApp <Code>Specifies metadata for an Application on the To Asset. Affects the -Meta and -ID options. Can be specified multiple times.
-Val <Key> <Value>Supplies a key/value for the current ID. Can be specified multiple times.

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

Terminal window
Paritech.Authority.Control Association Define XOSP User 1234 TradingAccount XS:0001

Utilises the /association API.