set_key_beacons_tests
Defines key beacons and tests of the service.
Format
emcli set_key_beacons_tests -name=<target_name> -type=<target_type> [-beacons=<beacon_names>]+ [-tests='test1:type1;test2:type2;...']+ [-removeKey] [ ] indicates that the parameter is optional
Options
-
name
Service target name.
-
type
Service target type.
-
beacons
Names of beacons to set as key (or non-key).
-
tests
Names and types of tests to set as key (or non-key).
-
removeKey
If specified, the mode is (remove key); that is, the specified tests and beacons will be set as non-key.
If not specified, the mode is (add key); that is, the specified tests and beacons will be set as key.
Examples
Example 1
This example sets MyTest/HTTP
, MyTest2/FTP
and MyBeacon
as non-key elements of service MyTarget/generic_service
.
emcli set_key_beacons_tests -name='MyTarget' -type='generic_service' -tests='MyTest:HTTP;MyTest2:FTP' -beacons='MyBeacon' -removeKey
Example 2
This example sets MyBeacon
and MyBeacon2
as key beacons of service MyTarget/generic_service
.
emcli set_key_beacons_tests -name='MyTarget' -type='generic_service' -beacons='MyBeacon;MyBeacon2'