Stay organized with collections Save and categorize content based on your preferences.
gcloud functions call
(NAME
: --region
=REGION
) [--cloud-event
=CLOUD_EVENT
| --data
=DATA
] [GCLOUD_WIDE_FLAG …
]
--data
flag value differently), run:
gcloud functions call helloWorld --data='{"message": "Hello World!"}'
Note that this method has a limited quota which cannot be increased. It is intended for testing and debugging and should not be used in production.
Calls to HTTP-triggered functions are sent as HTTP POST requests. To use other HTTP methods, use a dedicated HTTP request tool such as cURL or wget.
To set the project
attribute:
NAME
on the command line with a fully specified name;--project
on the command line;core/project
.This must be specified.
NAME
To set the function
attribute:
NAME
on the command line.This positional argument must be specified if any of the other arguments in this group are specified.
--region
=REGION
functions/region
property value for this command invocation.
To set the region
attribute:
NAME
on the command line with a fully specified name;--region
on the command line;functions/region
.--cloud-event
=CLOUD_EVENT
Mutually exclusive with --data flag.
Use for Cloud Functions 2nd Gen CloudEvent functions. The CloudEvent object will be sent to your function as a binary content mode message with the top-level 'data' field set as the HTTP body and all other JSON fields sent as HTTP headers.
--data
=DATA
--access-token-file
, --account
, --billing-project
, --configuration
, --flags-file
, --flatten
, --format
, --help
, --impersonate-service-account
, --log-http
, --project
, --quiet
, --trace-token
, --user-output-enabled
, --verbosity
.
Run $ gcloud help
for details.
gcloud alpha functions call
gcloud beta functions call
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4