{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":29673,"path":"it-operations-management/discovery/google-gcp-discovery-pattern.md","title":"Discovery for Google Cloud Platform","bundle":null,"doc_type":null,"release":"australia","body":"\n# Discovery for Google Cloud Platform\n\nDiscovery finds Google Cloud Platform and its components. Discovering some of these resources might require updating to the latest version of the Discovery and Service Mapping Patterns application from the ServiceNow Store.\n\n## Request new or enhanced Patterns on the ServiceNow® Store\n\nVisit the [ServiceNow Store](https://store.servicenow.com/sn_appstore_store.do#!/store/application/06a71b1367e4130051c9027e2685ef1e/1.6.0?referer=%2Fstore%2Fsearch%3Flistingtype%3Dallintegrations%25253Bancillary_app%25253Bcertified_apps%25253Bcontent%25253Bindustry_solution%25253Boem%25253Butility%25253Btemplate%26q%3DPatterns&sl=sh) to view all the available updates and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the [ServiceNow Store version history release notes](https://www.servicenow.com/docs/r/store-release-notes/sn-store-release-notes.html).\n\nData discovered for the Google Cloud Platform components offers visibility for multiple ServiceNow products, including Cloud Provisioning and Governance.\n\nDiscovery uses multiple patterns to find GCP components.\n\nYou can discover global and regional resources.\n\n|Global|Regional|\n|------|--------|\n|Global static external IP addresses|Regional static external IP addresses|\n|Global Load Balancers \\(Global Http Load Balancers\\)|Regional Load Balancers \\(Regional HTTP Load Balancers, TCP/UDP Load Balancers\\)|\n|Images|Subnets|\n|Snapshots|Regional managed instance groups|\n|Instance Templates|Regional persistent disks|\n|VPC Network| |\n|Firewalls| |\n\n## Requirements for GCP discovery\n\n-   **Verify that the applications are up to date.**\n    -   Discovery and Service Mapping Patterns starting version 1.8.0 \\(September 2023\\)\n    -   CMDB CI Class Models starting version 1.49.0 \\(September 2023\\)\n    -   Visibility Content starting version 6.13.0 \\(September 2023\\)\n-   **Verify the MID Server requirements**\n    -   Use a dedicated MID Server for cloud discovery. The MID Server must have 16 Cores, 8 GB with 4 GB Java Virtual Machine \\(JVM\\) memory allocation. For information on verifying MID Server specifications, see KB article [KB2156327](https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB2156327).\n    -   Deploy and connect the dedicated MID Server with internet access.\n    -   For more information on the MID Server configurations, see [Install and configure MID Servers to access cloud environments](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/mid-server-configuration-cloud.md).\n-   **Verify Google Cloud BigQuery and Google Cloud Bigtable requirements**\n\n    To discover Google Cloud BigQuery and Google Cloud Bigtable, navigate to **All** &gt; **Discovery** &gt; **MID Server** &gt; **Properties** and ensure that the **sn\\_itom\\_pattern.google\\_dbservice\\_table\\_collection** property is set to **True**.\n\n-   **Verify user role settings**\n\n    Set the user permission for the Google Cloud Platform member to **Viewer**:\n\n    1.  In the Google Cloud Platform console, navigate to **IAM**.\n    2.  Select the relevant member from the list and click the **Edit** icon.\n    3.  In the Edit permissions window, select `Viewer` from the **Role** list.\n    4.  Click **Save**.\n-   **Configure Google API Credentials**\n\n    For more information, see [Configure the Google API credentials for Cloud Discovery](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/itom-create-google-api-credentials.md).\n\n-   **Create a Google Cloud Platform service account**\n\n    For more information, see [Create GCP service accounts](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/create-gcp-service-accounts.md).\n\n-   **Enable collecting cloud logging events**\n\n    The Google Cloud Platform patterns can collect cloud logging events generated by the native Google Cloud APIs. [Configure the Google Cloud Logging service to auto-update the CMDB](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/gcp-stackdriver-service.md).\n\n-   **Activate the cloud-related CI relationships**\n\n    To include discovered components into service instances, enable CI relationships used in tag-based discovery by Service Mapping. These CI relationships are available from the 1.0.68 release on the ServiceNow Store. For operational steps, see [Tag-based discovery configuration]().\n\n-   **Verify that a Discovery schedule is configured**\n\n    For more information, see [Create a GCP Discovery schedule in Discovery Admin Workspace](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/create-gcp-schedule-DAW.md).\n\n-   **\\(Optional\\) Populate Service Account and Logical Datacenter fields in cloud CIs**\n\n    Starting with Discovery and Service Mapping Patterns version 1.30.2, you can improve query performance by populating Service Account and Logical Datacenter fields directly in cloud CIs. For more information, see [Improved query performance with direct field population in CI tables]().\n\n\n## Verify the REST API permissions\n\nDownload the [Cloud Discovery patterns spreadsheet](https://downloads.docs.servicenow.com/resource/enus/api/servicenow-discovery-patterns-api-details.xlsx) so you can grant user permissions required for running the Discovery patterns. In addition to permissions, the spreadsheet also includes useful information such as pattern names, types, CI Classes, and links to vendor documentation. New patterns are available quarterly, so check periodically to be sure you have the latest version of the spreadsheet.\n\n## Data collected by Service Mapping during tag-based discovery\n\nService Mapping uses tag-based discovery to create service instance maps including the Cloud components. The Service Mapping application comes with the following preconfigured CI relationships used for tag-based discovery. These CI relationships are available from the 1.0.68 release on the ServiceNow Store.\n\n|CI|Relationship|CI|\n|---|------------|---|\n|Configuration Item \\[cmdb\\_ci\\]|Hosted on::Hosts|Logical Datacenter \\[cmdb\\_ci\\_logical\\_datacenter\\]|\n|Logical Datacenter \\[cmdb\\_ci\\_logical\\_datacenter\\]|Hosted on::Hosts|Cloud Service Account \\[cmdb\\_ci\\_cloud\\_service\\_account\\]|\n\n## Useful information\n\n-   [GCP discovery solutions comparison](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery/gcp-discovery-methods.md)\n-   [Set up Google Cloud Platform service accounts](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/set-up-gcp-service-accounts.md)\n-   [Google Cloud Platform \\(GCP\\) Cloud discovery using Patterns](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/it-operations-management/discovery-and-service-mapping-patterns/gcp-cloud-discovery-patterns.md)\n\n"}}