@Robert Lawrie Thanks for reaching out. The standard logic app is built on top of function runtime and it uses the same function REST API. The API is not yet available for consumption and therefore it is not documented as of now. For now, the workaround would be finding the REST API calls using the browser traces or fiddler traces that are initiated from the portal. For your reference sharing the REST calls as per your requirement and you need to pass the Authorization: Bearer <bearer-token> as documented here for any azure management REST call.
Get all workflow details for a particular standard logic app name:
GET
/subscriptions/{subscription ID}/resourceGroups/{resourcegroup name}/providers/Microsoft.Web/sites/{standard logicapp name}/workflows?api-version=2018-11-01
Get details with workflow name:
GET
/subscriptions/{subscription ID}/resourceGroups/{resourcegroup name}/providers/Microsoft.Web/sites/{standard logicapp name}/workflows/{workflow name}?api-version=2018-11-01
You can refer to flowState
parameter on the above REST call to get the status of the workflow.
Get Run history for a particular workflow:
GET
/subscriptions/{subscription ID}/resourceGroups/{resourcegroup name}/providers/Microsoft.Web/sites/{standard logicapp name}/hostruntime/runtime/webhooks/workflow/api/management/workflows/{workflow name}/runs?api-version=2018-11-01
Hi @MayankBargali-MSFT thanks for the details.
Is there an API to get the request trigger callback url? I've tried to hack in listCallbackUrl from this reference for the consumption logic apps REST API:
https://learn.microsoft.com/en-us/rest/api/logic/workflows/list-callback-url?tabs=HTTP
GET
/subscriptions/{subscription ID}/resourceGroups/{resourcegroup name}/providers/Microsoft.Web/sites/{standard logicapp name}/workflows/{workflow name}/listCallbackUrl?api-version=2018-11-01
But I am not getting anything back (I get a Not Found error).
It would be great if we can get the trigger url at deployment time so we can stuff into a keyvault for other callers to use.
Kind regards,
Colin Rippey
Replying here so anyone else looking for a solution can at least use a workaround.
This github issue comment works for me:
https://github.com/Azure/logicapps/issues/301#issuecomment-854346956