HttpFunction
HttpFunction
yaml
type: "io.kestra.plugin.azure.function.HttpFunction"
Trigger Azure Function.
Use this task to trigger an Azure Function and collect the result if any
Examples
yaml
id: test_azure_function
namespace: com.company.test.azure
tasks:
- id: encode_string
type: io.kestra.plugin.azure.function.HttpTrigger
httpMethod: POST
url: https://service.azurewebsites.net/api/Base64Encoder?code=${{secret('AZURE_FUNCTION_CODE')}}
httpBody: {"text": "Hello, Kestra"}
Properties
httpMethod
- Type: string
- Dynamic: ✔️
- Required: ✔️
HTTP method
url
- Type: string
- Dynamic: ✔️
- Required: ✔️
Azure function URL
httpBody
- Type: object
- Dynamic: ✔️
- Required: ❌
- Default:
{}
HTTP body
JSON body of the Azure function
maxDuration
- Type: string
- Dynamic: ✔️
- Required: ❌
- Default:
3600.000000000
- Format:
duration
Max duration
The maximum duration the task should wait until the Azure Function completion.
Outputs
repsonseBody
- Type: object
- Required: ❌
Response body
Definitions
Was this page helpful?