Invoke Cloud Function
Invoke Google Cloud Functions using an HTTP request.
The Invoke Cloud Function card can only invoke 1st gen Google Cloud Functions. It can't invoke 2nd gen or Cloud Run Service functions.
There are several ways to create 1st gen Google Cloud Functions, including the following:
-
Google Cloud Function UI.
-
Google Cloud Function UI console.
-
Google Cloud Function SDK.
-
Google Cloud Function API.
-
Google CLI.
-
Terraform.
Refer to the following:
Options
Field | Definition | Type | Required |
---|---|---|---|
Region |
Choose the assigned region for your project. The names of the cloud functions in each region are unique, but you can have the same named function in two different regions. The default option is us-central1. |
Dropdown | TRUE |
Function Name |
Name of the function. |
Dropdown | TRUE |
Request Type |
One of five supported HTTP request methods in custom API calls:
|
Dropdown | TRUE |
Input
Field | Definition | Type | Required |
---|---|---|---|
Query |
JSON object that determines the action taken at the URL. For example: {"name":"something-urgent"} |
Object or Text |
FALSE |
Headers |
JSON object that determines the content type of the request. For example: {"Content-type":"application/json"} |
Object | FALSE |
Body |
JSON object that is passed in the content of the request. For example: {"id":10} |
Object | FALSE |
Output
Field | Definition | Type |
---|---|---|
Status Code |
Result of the operation. The connector returns an HTTP status code that indicates whether the action taken by the card succeeded or failed. For example:
For a full list of possible status codes, see HTTP status codes. |
Number |
Headers |
A detailed context for the status code, unrelated to the output body. Response headers depend on your selected HTTP request option. Not all headers are response headers. |
Object |
Body |
Data returned from your selected HTTP request, for example, the data from a GET request. |
Object |