create_assoc
Creates target association instances.
Format
Standard Mode
emcli create_assoc
-assoc_type="association type"
-source="source"
-dest="destination_target"
[-separator="separator:attribute_name:character"]
[-subseparator="subseparator:attribute_name:character"]
Interactive (Script) Mode
create_assoc(
assoc_type="association type"
,source="source"
,dest="destination_target"
[,separator="separator:attribute_name:character"]
[,subseparator="subseparator:attribute_name:character"]
)
[ ] indicates that the parameter is optional.Options
-
source_type
Source target type.
-
source
Source target.
-
dest
Destination target.
-
separator
By default, multi-value input attributes use a semicolon ( ; ) as a separator. Specifying this option overrides the default separator value.
Example:
separator="<attribute_name=sep_char>"whereattribute_nameis name of the attribute for which you want to override the separator character, andsep_charis the new separator character.Example:separator="att=#" -
subseparator
By default, multi-value input attributes use a colon ( : ) as a subseparator. Specifying this option overrides the default subseparator value.
Example:
subseparator="<attribute_name=sep_char>"whereattribute_nameis name of the attribute for which you want to override the separator character andsep_charis the new subseparator character.Example:separator="att=#"
Note:
The name and owner options must be used together.
Exit Codes
0 indicates that the verb processing was successful.
Non-zero values indicate that the verb processing was not successful.
Example
This example creates an association of type cluster_contains from target "abc_cluster:cluster" to targets "def.oracle.com:host" and "ghi.oracle.com:host":
emcli create_assoc
-assoc_type="cluster_contains"
-source="abc_cluster:cluster"
-dest="def.oracle.com:host;ghi.oracle.com:host"
For a list of allowed pairs, enter emcli list_allowed_pairs .