list_allowed_pairs
Lists allowed association types for the specified source and destination target types.
Format
Standard Mode
emcli list_allowed_pairs -source_type="source type" -dest_type="dest type"] [-noheader] [-script] [-format="[name:<pretty|script|csv>];[column_separator: "column_sep_ string"];[row separator:"row_sep_string"]"]
Interactive (Script) Mode
list_allowed_pairs( source_type="source type" [,dest_type="dest type"] [,noheader=True/False] [,script=True/False] [,format="[name:<pretty|script|csv>];[column_separator: "column_sep_string"];[row_separator:"row_sep_string"]"] ) [ ] indicates that the parameter is optional.
Options
-
source_type
Source target type.
-
dest_type
Destination target type.
-
noheader
Displays the output in tabular output without column headers.
-
script
Prints the output in a format that can be used in scripting.
-
format
Specifies how the output is formatted. The default value is "name:pretty", which prints the output table in a readable format not intended to be parsed by scripts. Other format options include:
-
format="name:script" Sets the default column separator to a tab and the default row separator to a newline in the output. You can override the column and row separator strings with your own values.
-
format="name:script;column_separator:<column_sep_string>" Causes the verb output to be column-separated by <column_sep_string>. Rows are separated by the newline character.
-
format="name:script;row_separator:<row_sep_string>" Causes the verb output to be row-separated by <row_sep_string>.
-
format="name:script;column_separator:<column_sep_string>;row_separator:<row_sep_string>"
-
Causes the verb output to be column-separated by <column_sep_string> and row- separated by <row_sep_string>.
-
format="name:csv" Sets the default column separator to a comma and the default row separator to a newline in the output.
-
Exit Codes
0 indicates that the verb processing was successful.
Non-zero values indicate that the verb processing was not successful.
Example
This example lists allowed associations for the source target type "cluster" and the destination target type "host":
emcli list_allowed_pairs -source_target_type="cluster" -dest_target_type="host"