HttpFunction HttpFunction

yaml
type: "io.kestra.plugin.gcp.function.HttpFunction"

Trigger Google Cloud Run Function.

Use this task to trigger an Cloud Run Function and collect the result if any

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

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

HTTP method

url

  • Type: string
  • Dynamic: ✔️
  • Required: ✔️

GCP Function URL

httpBody

  • Type: object
  • Dynamic: ✔️
  • Required:
  • Default: {}

HTTP body

JSON body of the Azure function

impersonatedServiceAccount

  • Type: string
  • Dynamic: ✔️
  • Required:

The GCP service account to impersonate.

maxDuration

  • Type: string
  • Dynamic: ✔️
  • Required:
  • Default: 3600.000000000
  • Format: duration

Max duration

The maximum duration the task should wait until the Azure Function completion.

projectId

  • Type: string
  • Dynamic: ✔️
  • Required:

The GCP project ID.

scopes

  • Type: array
  • SubType: string
  • Dynamic: ✔️
  • Required:
  • Default: [https://www.googleapis.com/auth/cloud-platform]

The GCP scopes to be used.

serviceAccount

  • Type: string
  • Dynamic: ✔️
  • Required:

The GCP service account.

Outputs

responseBody

  • Type: object
  • Required:

GCP Function response body

Was this page helpful?