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.
Arguments
Section titled “Arguments”Field | Description |
---|---|
Service | The Authority Service to connect to. |
FromType | The type of the Asset the Association is from. |
FromCode | The unique code of the Asset the Association is from. |
ToType | The type of the Asset the Association is to. |
ToCode | The unique code of the Asset the Association is to. |
Available Options
Section titled “Available Options”Option | Description |
---|---|
-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. |
Output
Section titled “Output”The process result will be 0 on success, and a negative value on failure.
Examples
Section titled “Examples”Paritech.Authority.Control Association Define XOSP User 1234 TradingAccount XS:0001
More Information
Section titled “More Information”Utilises the /association API.