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

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 key.

Outputs

responseBody

  • Type: object
  • Required:

GCP Function response body

Definitions

Was this page helpful?