export_charge_plans
Exports charge plan metadata to an XML file.
Format
emcli export_charge_plans [-charge_plan="plan_name"[-entity_type = chargeback_entity_type]] [-start_date=ddmmyyyy] -file=file_name
[ ] indicates that the parameter is optional
Options
-
charge_plan
Name of the charge plan to be exported. If this option is not specified, all charge plan metadata is exported.
-
entity_type
Name of the Chargeback entity type whose charge plan is to be exported. If this option is not specified, all entity type charge rates in the charge plan are exported.
-
start_date
Start date of the report cycle whose charge plan metadata is to be exported. The start date value must be in ddmmyyyy format. If this option is not specified, the start date of the current report cycle is used.
-
file
Absolute path to which to export the metadata.
Examples
Example 1
This example exports metadata of the host entity type associated with charge plan Plan A, if active in the current report cycle, to the file /home/plans.xml:
emcli export_charge_plans -charge_plan="Plan A" -entity_type=host -file=/home/plans.xml
Example 2
This example exports metadata of charge plan Plan A, if active in the report cycle starting on 01062014, to the file /home/plans.xml:
emcli export_charge_plans -charge_plan="Plan A" -start_date=01062014 -file=/home/plans.xml