AppDynamics Application Intelligence Platform
You can export your health configurations from one application to another using a special AppDynamics REST API. This capability allows you to re-use health rule configurations in different applications instead of re-configuring each application manually from the AppDynamics console.
Exports are HTTP GET operations.
produces the output in all_health_rules.
produces the output in one_health_rule.
Exports are HTTP POST operations.
After you have exported health rules you can import them to a different application passing the xml file created by the export operation as payload to the POST. You can modify the exported file before you import it. You might want to do this to add or remove one or more health rule configurations or to change their names.
Use UTF-8 URL encoding of the URI before posting; for example, do not replace a space (" ") with "%20" in the URI.
The default behavior is not to overwrite an existing health rule of the same name. If you want to overwrite an existing health rule of the same name, specify the overwrite=true parameter. since the default is false.
The syntax is the same for importing one health rule configurations or several. All the health rule configurations in the xml files are imported.
This example imports the health rule in the uploaded file, overwriting any health rules of the same name.
The next example imports the health rules without overwriting. In this case, any health rules in the destination controller that have the same names as health rules in the all_health_rules file are not overwritten.