Google Cloud Functions

Discover more about the Google Cloud Functions connector and how to use it on the Digibee Integration Platform.

The content of this documentation is under revision and may change. We appreciate your understanding as we work to improve it.

Google Cloud Functions allows you to get and execute Cloud Run functions from Google.

Parameters

Take a look at the configuration parameters for the connector. Parameters supported by Double Braces expressions are marked with (DB).

General tab

ParameterDescriptionDefault valueData type

Operation

The operation to perform. The options are: Call Function and Get Function.

N/A

String

Function Name (DB)

The name of the Cloud Run function at Google.

N/A

String

Account

The service account key to authenticate on the application. Supported type: Google Key.

N/A

GOOGLE-KEY

Location

The location of the Cloud Run function.

N/A

String

Project (DB)

The name of the Google Cloud project where the Cloud Run function is located.

N/A

String

Body (DB)

The body for calling the function. If you don't pass any parameters, you must at least enter empty brackets { } in this field. It is only available if the Operation is Call Function.

N/A

JSON

Fail On Error

If the option is activated, the pipeline's execution with an error will be interrupted. Otherwise, the pipeline execution proceeds, but the result will show a false value for the "success" property.

False

Boolean

Documentation tab

ParameterDescriptionDefault valueData type

Documentation

Section for documenting any necessary information about the connector configuration and business rules.

N/A

String

Google Cloud Functions in action

Call Function operation

When you select the Call Function operation, you call the function on Google using an HTTP request.

See an example of the configuration and output:

Configuration

  • Operation: Call Function

  • Function Name: helloWorld

  • Account: google-key-functions

  • Location: us-central1 (Iowa)

  • Project: teste-434118

  • Body: { }

Output

{
  "success": true,
  "headers": {
    "GoogleCloudFunctionsResponseObject": "execution_id: \"04lfg6k7y71x\"\nresult: \"Hello, World!\"\n"
  },
  "body": {
    "result": "Hello, World!"
  }
}

Get Function operation

When you select the Get Function operation, you get the Cloud Functions object.

See an example of the configuration and output:

Configuration

  • Operation: Get Function

  • Function Name: helloWorld

  • Account: google-key-functions

  • Location: us-central1 (Iowa)

  • Project: teste-434118

Output

{
  "success": true,
  "body": {
    "name": "projects/teste-434118/locations/us-central1/functions/helloWorld",
    "https_trigger": {
      "url": "https://us-central1-teste-434118.cloudfunctions.net/helloWorld"
    },
    "status": "ACTIVE",
    "entry_point": "helloWorld",
    "timeout": {
      "seconds": 60
    },
    "available_memory_mb": 256,
    "service_account_email": "teste-434118@appspot.gserviceaccount.com",
    "source_upload_url": "https://storage.googleapis.com/uploads-603950532802.us-central1.cloudfunctions.appspot.com/9185413e-2038-46aa-9ae1-4c3f0dff7088.zip",
    "runtime": "nodejs14",
    "ingress_settings": "ALLOW_ALL",
    "version_id": 1,
    "build_id": "21535f31-f44b-4748-b401-edd449bd2fcb",
    "update_time": {
      "seconds": 1725041576,
      "nanos": 902000000
    }
  }
}

Last updated