API Reference
LiveData Migrator exposes a REST API for use by external clients. These API resources provide equivalent functionality to the commands described in the Command Reference except for the commands related to metadata migrations.
You can access the API documentation for LiveData Migrator directly on your host machine:
http(s)://<ldm-hostname>:<ldm-port>/ldm-api.html
http://localhost:18080/ldm-api.html
This version will reflect exactly the API exposed from your instance of LiveData Migrator.
LiveData Migrator Swagger Documentation
#
Access REST API documentation on your networkLiveData Migrator's API documentation can only be viewed from the LDM host machine. This approach minimizes the risk of unauthorized access. However, if you need to access the documentation over your network, take the following steps:
- Open
/etc/wandisco/livedata-migrator/application.properties
. - Delete or comment out the
server.address=127.0.0.0
line. - Save the file changes.
- Restart the LiveData Migrator service to apply the change:
restart livedata-migrator.service
- Check that access to the documentation is now available on your network:Example
http://LDM-hostname:18080/ldm-api.html
- (Optional) Once you have finished using the documentation, consider restoring the
server.address
entry to secure its access.
#
Metadata migrationsCommands related to metadata migrations (such as hive agent
, hive rule
, hive migration
) are serviced through a different REST API port.
Access the API documentation for metadata migrations on your host machine:
http(s)://<ldm-hostname>:<hvm-port>/docs
http://localhost:6780/docs