Service Registry 3.1 管理指南

add association

關聯 (Association) 物件增加至登錄 (Registry)。

提要

add association -type association-type sourceURN targetURN

說明

add association 指令會將指定類型的關聯 (Association) 物件增加至登錄 (Registry)。

您可以使用以下任何類型︰

選項

-type

關聯 (Association) 物件的類型。

運算元

sourceURN

來源物件的 URN。

targetURN

目標物件的 URN。

範例

以下指令 (全部位於同一行) 會在具有指定的兩個 URN 的物件之間建立 RelatedTo 關係。


admin> add association -type RelatedTo 
urn:uuid:ab80d8f7-3bea-4467-ad26-d04a40045446 
urn:uuid:7a54bbca-2131-4a49-8ecc-e7b4ac86c4fd