
Google Cloud HttpFunction
CertifiedInvoke an authenticated Cloud Run function
Google Cloud HttpFunction
Certified
Invoke an authenticated Cloud Run function
Calls an HTTP-triggered Cloud Run service using an ID token from the provided service account and returns the response body.
yaml
type: io.kestra.plugin.gcp.function.HttpFunctionExamples
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
Rendered verb used for the request (e.g., GET, POST)
url *Requiredstring
Cloud Run URL
Fully qualified HTTPS URL of the Cloud Run service
httpBody object
Default
{}HTTP body
JSON request payload sent to the function; empty by default
impersonatedServiceAccount string
The GCP service account to impersonate
maxDuration string
Default
PT1HMax duration
Maximum wait time for the HTTP call; defaults to 60 minutes
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
projectId string
The GCP project ID
scopes array
SubTypestring
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