Reputation: 713
I have a webhook which is sending me events at the rate of 1000 per second. Is it possible to route these events via Azure API management in place of directly sending it to Azure Event Hubs for ingestion.
Any specific link from Microsoft that confirms it.
Upvotes: 0
Views: 59
Reputation: 6487
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/loggers/{loggerId}?api-version=2024-06-01-preview
{
"properties": {
"loggerType": "azureEventHub",
"description": "Event Hub logger with system-assigned managed identity",
"credentials": {
"endpointAddress":"<EventHubsNamespace>.servicebus.windows.net",
"identityClientId":"SystemAssigned",
"name":"<EventHubName>"
}
}
}
<policies>
<inbound>
<base />
<log-to-eventhub logger-id="testlogger">
@(context.Request.Body.As<string>(preserveContent: true))
</log-to-eventhub>
</inbound>
</policies>
I am able to send events to event hub successfully via APIM.
Upvotes: 0