Google Cloud Function

Represents a Cloud Function, a lightweight, event-driven serverless compute unit that executes user code in response to events or HTTP requests.

Event-DrivenFunctionsGoogle CloudServerless

Properties

Name Type Description
name string Output only. The resource name of the function in the format projects/{project}/locations/{location}/functions/{function}.
description string User-provided description of the function.
environment string The environment the function is hosted on.
buildConfig object Describes the build step of the function.
serviceConfig object Describes the service configuration for the function.
eventTrigger object An event trigger configuration.
state string Output only. State of the function.
updateTime string Output only. The last update timestamp of the function.
labels object Labels associated with this function.
url string Output only. The deployed URL for the function.
View JSON Schema on GitHub

JSON Schema

google-cloud-functions-function-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/google-cloud-functions/refs/heads/main/json-schema/google-cloud-functions-function-schema.json",
  "title": "Google Cloud Function",
  "description": "Represents a Cloud Function, a lightweight, event-driven serverless compute unit that executes user code in response to events or HTTP requests.",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Output only. The resource name of the function in the format projects/{project}/locations/{location}/functions/{function}."
    },
    "description": {
      "type": "string",
      "description": "User-provided description of the function."
    },
    "environment": {
      "type": "string",
      "enum": ["ENVIRONMENT_UNSPECIFIED", "GEN_1", "GEN_2"],
      "description": "The environment the function is hosted on."
    },
    "buildConfig": {
      "type": "object",
      "description": "Describes the build step of the function.",
      "properties": {
        "runtime": {
          "type": "string",
          "description": "The runtime in which to run the function."
        },
        "entryPoint": {
          "type": "string",
          "description": "The name of the function entry point."
        },
        "source": {
          "type": "object",
          "description": "Source code location.",
          "properties": {
            "storageSource": {
              "type": "object",
              "properties": {
                "bucket": { "type": "string" },
                "object": { "type": "string" },
                "generation": { "type": "string" }
              }
            },
            "repoSource": {
              "type": "object",
              "properties": {
                "projectId": { "type": "string" },
                "repoName": { "type": "string" },
                "branchName": { "type": "string" }
              }
            }
          }
        },
        "dockerRepository": { "type": "string" },
        "workerPool": { "type": "string" },
        "environmentVariables": {
          "type": "object",
          "additionalProperties": { "type": "string" }
        }
      }
    },
    "serviceConfig": {
      "type": "object",
      "description": "Describes the service configuration for the function.",
      "properties": {
        "service": { "type": "string" },
        "timeoutSeconds": { "type": "integer" },
        "availableMemory": { "type": "string" },
        "maxInstanceCount": { "type": "integer" },
        "minInstanceCount": { "type": "integer" },
        "availableCpu": { "type": "string" },
        "environmentVariables": {
          "type": "object",
          "additionalProperties": { "type": "string" }
        },
        "ingressSettings": {
          "type": "string",
          "enum": ["INGRESS_SETTINGS_UNSPECIFIED", "ALLOW_ALL", "ALLOW_INTERNAL_ONLY", "ALLOW_INTERNAL_AND_GCLB"]
        },
        "uri": {
          "type": "string",
          "format": "uri",
          "description": "Output only. URI of the deployed service."
        },
        "serviceAccountEmail": { "type": "string" }
      }
    },
    "eventTrigger": {
      "type": "object",
      "description": "An event trigger configuration.",
      "properties": {
        "eventType": { "type": "string" },
        "pubsubTopic": { "type": "string" },
        "serviceAccountEmail": { "type": "string" },
        "retryPolicy": {
          "type": "string",
          "enum": ["RETRY_POLICY_UNSPECIFIED", "RETRY_POLICY_DO_NOT_RETRY", "RETRY_POLICY_RETRY"]
        }
      }
    },
    "state": {
      "type": "string",
      "enum": ["STATE_UNSPECIFIED", "ACTIVE", "FAILED", "DEPLOYING", "DELETING", "UNKNOWN"],
      "description": "Output only. State of the function."
    },
    "updateTime": {
      "type": "string",
      "format": "date-time",
      "description": "Output only. The last update timestamp of the function."
    },
    "labels": {
      "type": "object",
      "additionalProperties": { "type": "string" },
      "description": "Labels associated with this function."
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Output only. The deployed URL for the function."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-cloud-functions-function"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.