Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Google Cloud Platform (GCP) AlloyDB for PostgreSQL discovery using patterns

Discovery and Service Mapping Patterns uses the Google Cloud Platform (GCP) - AlloyDB for PostgreSQL pattern to discover AlloyDB for PostgreSQL during horizontal discovery. Discovering some of these resources may require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.

Pattern-based discovery and mapping requirements

Verify the GCP discovery prerequisites section in Google Cloud Platform (GCP) Cloud discovery using Patterns.

Data collected by Discovery during horizontal discovery

Discovery populates the data in the CMDB when running the Google Cloud Platform (GCP) - AlloyDB for PostgreSQL pattern.

FieldDescription
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].
FieldDescription
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.
FieldDescription
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.
FieldDescription
Cluster ID \[cluster\_id\]The GCP system-generated unique identifier \(UID\) of the resource.
Name \[name\]Name of the cluster resource.
Automated Backups \[automated\_backup\]Determines whether automated backups are enabled. Possible values are Enabled or Disabled.
Install Status \[install\_status\]Install status of the cluster. Default value is Installed.
Operational status \[operational\_status\]Operational status of the cluster. Default value is Operational.
Cluster Status \[cluster\_status\]Current state of this cluster.​ For example: READY or STOPPED.
Cluster Version \[cluster\_version\]Optional field that displays the database engine's major version.
Cluster Type \[cluster\_type\]Type of cluster. Possible values are AlloyDB – Primary cluster or AlloyDB – Secondary cluster.
FieldDescription
Object ID \[object\_id\]The GCP system-generated UID of the resource.
Name \[name\]Name of the instance resource.
Install Status \[install\_status\]Install status of the database. Default value is Installed.
Operational status \[operational\_status\]Operational status of the database. Default value is Operational.
State \[state\]State of the database. Possible values are Available or Terminated.
CPU Count \[cpu\_count\]Number of central processing units \(CPUs\) in the virtual machine \(VM\) instance.
Type \[type\]Type of database: AlloyDB – PostgreSQL.
Replication Type \[replication\_type\]Type of the instance specified at creation time. For example: Primary instance, Read pool instance, or Secondary instance.
IP Address \[ip\_address\]IP address for the Instance, which is the endpoint for an end-user application.

On the Dependency Views map, you can view all discovered AlloyDB for PostgreSQL resources in your organization and the relationships between them.

Image omitted: gcp-alloydb-postgressql-instance-dependency-view.png
AlloyDB for PostgreSQL instance CIs and connections on a Dependency View map
Image omitted: gcp-alloydb-postgressql-cluster-depndency-view.png
AlloyDB for PostgreSQL Cluster CIs and connections on a Dependency View map

CI relationships

Discovery creates these relationships to support the AlloyDB for PostgreSQL discovery.

CIRelationshipCI
Availability Zone [cmdb_ci_availability_zone]Contains::Contained byCloud DataBase [cmdb_ci_cloud_database]
Cloud DataBase [cmdb_ci_cloud_database]Hosted on::HostsGoogle Datacenter [cmdb_ci_google_datacenter]
Cloud DataBase Cluster [cmdb_ci_cloud_db_cluster]Cluster of::ClusterCloud DataBase [cmdb_ci_cloud_database]
Cloud DataBase Cluster [cmdb_ci_cloud_db_cluster]Hosted on::HostsGoogle Datacenter [cmdb_ci_google_datacenter]
Cloud DataBase Cluster [cmdb_ci_cloud_db_cluster]Replicates::Replicated byCloud DataBase Cluster [cmdb_ci_cloud_db_cluster]
Key Value [cmdb_key_value]ReferencesCloud DataBase [cmdb_ci_cloud_database]
Key Value [cmdb_key_value]ReferencesCloud DataBase Cluster [cmdb_ci_cloud_db_cluster]

Tag discovery

The Google Cloud Platform (GCP) - AlloyDB for PostgreSQL pattern collects tags and populates them in two entries in the Key Value [cmdb_key_value] table. One entry references the Cloud DataBase table, the other entry references the Cloud DataBase Cluster table.

FieldDescription
Key [key]Tag key.
Value [value]Tag value.
Configuration item [configuration_item]References the Cloud DataBase [cmdb_ci_cloud_database] table
Configuration item [configuration_item]References the Cloud DataBase Cluster [cmdb_ci_cloud_db_cluster] table

Parent Topic:Google Cloud Platform (GCP) Cloud discovery using Patterns