What is API Autodiscovery in MuleSoft?
Suggested answer
API Autodiscovery links a deployed Mule application to an API definition in API Manager, enabling policy enforcement and analytics. Without Autodiscovery, a running Mule flow is just an unmanaged HTTP endpoint — policies from API Manager do not apply. Configuration: add an api-gateway:autodiscovery component to the Mule application specifying the apiId (from API Manager) and the HTTP Listener flow name. The Mule runtime then registers with API Manager on startup and downloads applicable policies. Steps:
1. Create the API in API Manager.
2. Note the API ID.
3. Add the Autodiscovery element to the Mule XML.
4. Deploy the application.
5. The API is now shown as Active in API Manager and policies apply. Connected Apps or a service account must be configured in the Mule runtime for the registration to succeed.
Practice content for interview preparation; not an official vendor answer. Verify details against current product documentation.
Community comments (0)
No comments yet.
Sign in or create a free account to add a comment. Comments are moderated before they appear.