Documentação das funções do Cloud Run
O Google Cloud Functions é uma solução de computação leve para desenvolvedores. Ele cria funções autônomas e de finalidade única que respondem a eventos do Cloud sem a necessidade de gerenciar um servidor ou um ambiente de execução.
Saiba mais
Comece sua prova de conceito com US $300 em crédito sem custos financeiros
-
Acessar o Gemini 2.0 Flash Thinking
-
Uso mensal gratuito de produtos conhecidos, incluindo APIs de IA e BigQuery
-
Sem cobranças automáticas, sem compromisso
Continue explorando com mais de 20 produtos sempre gratuitos
Acesse mais de 20 produtos gratuitos para casos de uso comuns, incluindo APIs de IA, VMs, data warehouses e
muito mais.
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-08-19 UTC.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-19 UTC."],[[["\u003cp\u003eCloud Run functions provide a serverless compute solution for developers to build single-purpose functions that respond to Cloud events.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the console quickstart or the gcloud functions command-line quickstart to deploy Cloud Run functions.\u003c/p\u003e\n"],["\u003cp\u003eCloud Run functions can be triggered by HTTP requests or CloudEvents, allowing flexible event handling.\u003c/p\u003e\n"],["\u003cp\u003eComprehensive documentation is available, including guides for writing and deploying functions, reference materials for APIs and commands, and essential resource links.\u003c/p\u003e\n"],["\u003cp\u003eThere are several versions of Cloud functions, including Cloud Run functions, Cloud Function V2 API and Cloud Run functions (1st gen).\u003c/p\u003e\n"]]],[],null,["# Cloud Run functions documentation\n=================================\n\n[Read product documentation](/run/docs/functions-with-run)\nCloud Run functions is a\nlightweight compute solution for developers to create single-purpose,\nstand-alone functions that respond to Cloud events without the need to\nmanage a server or runtime environment.\n[Learn more](/run/docs/functions-with-run).\n[Get started for free](https://console.cloud.google.com/freetrial) \n\n#### Start your proof of concept with $300 in free credit\n\n- Get access to Gemini 2.0 Flash Thinking\n- Free monthly usage of popular products, including AI APIs and BigQuery\n- No automatic charges, no commitment \n[View free product offers](/free/docs/free-cloud-features#free-tier) \n\n#### Keep exploring with 20+ always-free products\n\n\nAccess 20+ free products for common use cases, including AI APIs, VMs, data warehouses,\nand more.\n\nDocumentation resources\n-----------------------\n\nFind quickstarts and guides, review key references, and get help with common issues. \nformat_list_numbered\n\n### Guides\n\n-\n\n\n Get started:\n [Console quickstart](/run/docs/quickstarts/functions/deploy-functions-console)\n or\n [CLI quickstart](/run/docs/quickstarts/functions/deploy-functions-gcloud)\n\n\n-\n\n\n Write functions:\n [HTTP](/run/docs/write-http-functions)\n or\n [CloudEvents](/run/docs/write-event-driven-functions)\n\n\n-\n\n [Deploy functions](/run/docs/deploy-functions)\n\n-\n\n\n Function triggers:\n [HTTP](/run/docs/triggering/https-request)\n or\n [CloudEvents](/run/docs/triggering/trigger-with-events)\n\n\nfind_in_page\n\n### Reference\n\n-\n\n [gcloud run commands](/sdk/gcloud/reference/run)\n\n-\n\n [REST API](/run/docs/reference/rest)\n\n-\n\n [RPC API](/run/docs/reference/rpc)\n\n-\n\n [gcloud functions commands](/sdk/gcloud/reference/functions)\n\ninfo\n\n### Resources\n\n-\n\n [Pricing](/run/pricing)\n\n-\n\n [Quotas and limits](/run/quotas)\n\n-\n\n [Release notes](/run/docs/release-notes)\n\n-\n\n [Locations](/run/docs/locations)\n\n-\n\n [Runtime lifecycle](/run/docs/runtime-support)\n\n-\n\n [Support](/run/docs/support)\n\n-\n\n\n Versions:\n [Cloud Run functions](/run/docs/functions-with-run),\n\n [Cloud Functions v2 API](/functions/docs/concepts/overview),\n or\n [Cloud Run functions (1st gen)](/functions/1stgendocs/concepts/overview)"]]