---
sourceDocument: Australia IT Operations Management
sourceDocumentLink: https://www.servicenow.com/docs/r/australia/it-operations-management

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# GCP Cloud Functions

# Google Cloud Platform (GCP) Cloud Functions discovery using patterns {#ariaid-title1}

Release version: Australia  
Updated March 12, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Google Cloud Platform (GCP) Cloud Functions discovery using patterns

This pattern enables ServiceNow customers to discover Google Cloud Platform (GCP) Cloud Functions during horizontal discovery using the Discovery and Service Mapping Patterns application.
It identifies Cloud Functions and related resources within a GCP deployment, populating the Configuration Management Database (CMDB) with detailed information and relationships.
Show full answer Show less  
To utilize this functionality, customers must verify GCP discovery prerequisites and enable the Google Cloud Platform (GCP) - Cloud Functions pattern, which is disabled by default. Starting with Visibility Content version 6.28.0, enabling or disabling patterns is no longer treated as a customization and patterns reset to their latest predefined versions after upgrades while preserving their active state.

## Key Features

* **Resource Discovery:** The pattern discovers Cloud Functions along with associated resources such as Cloud Service Accounts, Availability Zones, and Google Datacenters.
* **CMDB Population:** Discovery populates key tables in the CMDB with accurate metadata, including attributes such as project IDs, region names, function versions, timestamps for last modifications, runtime languages, operational status, and more.
* **Relationship Mapping:** The system creates and visualizes relationships among discovered resources, such as which Availability Zone belongs to which Google Datacenter, and which Cloud Functions are hosted on which Datacenters and Cloud Service Accounts. These relationships are viewable in dependency maps.
* **Tag Collection:** Tags associated with Cloud Functions are collected and stored in the Key Value \[cmdbkeyvalue\] table, enabling better categorization and filtering of cloud resources.

## Key Outcomes

* Comprehensive visibility into GCP Cloud Functions and their deployment context within your organization's cloud infrastructure.
* Accurate and up-to-date CMDB entries for Cloud Functions and related resources, supporting IT service management and cloud governance.
* Enhanced dependency views that show relationships between Cloud Functions, service accounts, datacenters, and availability zones, aiding impact analysis and troubleshooting.
* Ability to manage and utilize tags on Cloud Functions for improved asset management and operational insights.  
Discovery and Service Mapping Patterns uses the Google Cloud Platform (GCP) - Cloud Functions pattern to discover Cloud Functions in a Google Cloud Platform (GCP) deployment during horizontal discovery. Discovering some of these resources might require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.

## Pattern-based discovery and mapping requirements {#gcp-cloud-functions-patterns__section_nw4_fp2_5fc}

Verify the GCP discovery prerequisites
:   For more information, see the prerequisites section in [Google Cloud Platform (GCP) Cloud discovery using Patterns](https://www.servicenow.com/docs/hH4wPjzyLr0pmFmj6Ib5TA "Discovery and Service Mapping Patterns uses patterns to discover components of the Google Cloud Platform (GCP) deployment during horizontal discovery. Discovering some of these resources might require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.").

Enable the relevant pattern
:   The pattern for this service is disabled by default. Starting with Visibility Content version 6.28.0, activating or deactivating a pattern won't be considered a customization, and it will continue to receive updates. Patterns that were previously activated or deactivated will reset to the latest predefined version after upgrading while retaining the last active field value. For more information on enabling patterns, see [Activate a disabled pattern](https://www.servicenow.com/docs/aypCYVQdO8oFebLMLEI89g "If you want to use a pattern for discovery that's disabled by default, activate it manually.").{#gcp-cloud-functions-patterns__activating-disabled-pattern-not-customization}

## Data collected by Discovery during horizontal discovery {#gcp-cloud-functions-patterns__section_xgh_jr2_5fc}

Discovery populates the data in the CMDB when running the Google Cloud Platform (GCP) - Cloud Functions pattern.  
{#gcp-cloud-functions-patterns__table_ps1_twd_wfc__entry__2}

| Field | Description |
|-|-|
| Account Id \[account_id\] | Name of the project used for the discovery. |
| Object ID \[object_id\] | Name of the project used for the discovery. |
| Datacenter Type \[datacenter_type\] | Datacenter type: Google Datacenter \[cmdb_ci_google_datacenter\]. |
[Table 1. Cloud Service Account \[cmdb_ci_cloud_service_account\]]

{#gcp-cloud-functions-patterns__table_ps1_twd_wfc} {#gcp-cloud-functions-patterns__table_mk4_2yd_wfc__entry__2}

| Field | Description |
|-|-|
| Name \[name\] | Name of the availability zone. |
| Description \[short_description\] | Description of the availability zone. |
| State \[state\] | State of the Availability Zone. Possible values are Available or Terminated. |
[Table 2. Availability Zone \[cmdb_ci_availability_zone\]]

{#gcp-cloud-functions-patterns__table_mk4_2yd_wfc} {#gcp-cloud-functions-patterns__table_vbd_1zd_wfc__entry__2}

| Field | Description |
|-|-|
| Name \[name\] | Datacenter or region name. |
| Region \[region\] | Datacenter or region name. |
| Object ID \[object_id\] | Unique identifier allocated by GCP for this resource. |
| Description \[short_description\] | Datacenter or region description. |
[Table 3. Google Datacenter \[cmdb_ci_google_datacenter\]]

{#gcp-cloud-functions-patterns__table_vbd_1zd_wfc}  
{#gcp-cloud-functions-patterns__table_fnf_dw2_5fc__entry__2}

| Field | Description |
|-|-|
| Version \[version\] | Version ID of the function, available only for Gen1 Cloud Functions. |
| Object ID \[object_id\] | Name fetched from the API response. For example: projects/automation-226410/locations/us-central1/functions/auto-labeller. |
| Name \[name\] | Name parsed from the API response. For example: auto-labeller. |
| Function Last Modified \[function_last_modified\] | Timestamp indicating the last time the function was updated. |
| CodeSha256 \[codesha256\] | SHA-256 hash algorithm of the function's code used to verify the integrity of the build. For example: `273a583f-ef1c-49c2-9bae-7d21bf3b5f7a`. |
| Language \[language\] | Runtime environment or programming language used for the function. |
| Install Status \[install_status\] | Install status of the function. Default value is Installed. |
| Operational status \[operational_status\] | Operational status of the function. Default value is Operational. |
[Table 4. Cloud Function \[cmdb_ci_cloud_function\]]

{#gcp-cloud-functions-patterns__table_fnf_dw2_5fc}

On the Dependency Views map, you can view all discovered GCP Cloud Functions resources in your organization and the relationships between them.  
Figure 1. GCP Cloud Functions dependency view

## CI relationships {#gcp-cloud-functions-patterns__section_j3b_cx2_5fc}

Discovery creates these relationships to support the GCP Cloud Functions discovery.  
{#gcp-cloud-functions-patterns__table_wbl_2x2_5fc__entry__3}

| CI | Relationship | CI |
|-|-|-|
| Google Datacenter \[cmdb_ci_google_datacenter\] | Contains::Contained by | Availability Zone \[cmdb_ci_availability_zone\] |
| Google Datacenter \[cmdb_ci_google_datacenter\] | Hosted on::Hosts | Cloud Service Account \[cmdb_ci_cloud_service_account\] |
| Cloud Function \[cmdb_ci_cloud_function\] | Hosted on::Hosts | Google Datacenter \[cmdb_ci_google_datacenter\] |
| Key Value \[cmdb_key_value\] | References | Cloud Function \[cmdb_ci_cloud_function\] |
[ ]

{#gcp-cloud-functions-patterns__table_wbl_2x2_5fc}

## Tag discovery {#gcp-cloud-functions-patterns__section_iz3_cx2_5fc}

The Google Cloud Platform (GCP) - Cloud Functions pattern collects tags and populates them in the Key Value \[cmdb_key_value\] table.  
{#gcp-cloud-functions-patterns__table_eth_jx2_5fc__entry__2}

| Field | Description |
|-|-|
| Key \[key\] | Tag name. |
| Value \[value\] | Tag value. |
| Configuration item \[configuration_item\] | References the Cloud Function \[cmdb_ci_cloud_function\] table. |
[Table 5. Key Value \[cmdb_key_value\]]

{#gcp-cloud-functions-patterns__table_eth_jx2_5fc}

