export_sla
Extracts the configuration details of an SLA into a local file. If you do not specify slaName and/or version, multiple SLA are exported to the same output file.
Format
emcli export_sla -targetName=<target_name> -targetType=<target_type> [-slaName=<SLA_name>] -output_file=<output_filename> [ ] indicates that the parameter is optional
Options
-
targetName
Name of the target.
-
targetType
Type of target.
-
slaName
Name of the SLA.
-
output_file
Output file name of the template. If the file does not exist, it is created; if it already exists, it is overwritten. (This assumes that the extract operation was successful. If the operation fails, no files are created, and any existing files remain unchanged.)
Example
This example creates an output file named 'service_sla.xml' that contains configuration details of the 'gold_sla' SLA for the target 'my_service'.
emcli export_sla -targetName='my_service' -targetType='generic_service' -slaName='gold_sla' -output_file='service_sla.xml'