Is there any elastic API to validate everything(indices, visualizations, rules etc...) before migration?

Hi,
We are planning to migrate to 7.2 but i am looking for APIs which provides the validate everything before migration and same API will run post migration to verify everything got migrated.

Thanks!