- NAME
-
- gcloud alpha functions local call - call a locally deployed Google Cloud Function
- SYNOPSIS
-
-
gcloud alpha functions local call
NAME
[--cloud-event
=CLOUD_EVENT
|--data
=DATA
] [GCLOUD_WIDE_FLAG …
]
-
- DESCRIPTION
-
(ALPHA)
gcloud alpha functions local call
Call a locally deployed Google Cloud Function. - POSITIONAL ARGUMENTS
-
NAME
- Name of the locally deployed Google Cloud function.
- FLAGS
-
-
At most one of these can be specified:
--cloud-event
=CLOUD_EVENT
-
JSON encoded string with a CloudEvent in structured content mode.
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
- JSON string with data that will be passed to the function.
-
At most one of these can be specified:
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--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. - NOTES
- This command is currently in alpha and might change without notice. If this command fails with API permission errors despite specifying the correct project, you might be trying to access an API with an invitation-only early access allowlist.
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 2024-02-06 UTC.