 HttpFunction
HttpFunction
Run a Google Cloud Run function.
Use this task to trigger an Cloud Run Function and collect the result.
yaml
type: "io.kestra.plugin.gcp.function.HttpFunction"Examples
yaml
id: test_gcp_function
namespace: com.company.test.gcp
tasks:
  - id: get_hello_json
    type: io.kestra.plugin.gcp.function.HttpFunction
    httpMethod: GET
    url: https://my-function.europe-west9.run.app
Properties
httpMethod *Requiredstring
HTTP method
url *Requiredstring
GCP Function URL
httpBody object
 Default 
{}HTTP body
JSON body of the Azure function
impersonatedServiceAccount string
The GCP service account to impersonate.
maxDuration string
 Default 
PT1H Format 
durationMax duration
The maximum duration the task should wait until the Azure Function completion.
projectId string
The GCP project ID.
scopes array
 SubType string
 Default 
["https://www.googleapis.com/auth/cloud-platform"]The GCP scopes to be used.
serviceAccount string
The GCP service account.
Outputs
responseBody object
GCP Function response body
