01 Sign in to your Trend Cloud One™ – Conformity account, access Approved External Load Balancers conformity rule settings and identify the list of approved load balancers defined for your Google Cloud projects.
02 Run projects list command (Windows/macOS/Linux) with custom query filters to list the IDs of all the Google Cloud Platform (GCP) projects available in your Google Cloud account:
cloud projects list
--format="table(projectId)"
03 The command output should return the requested GCP project identifiers (IDs):
PROJECT_ID
cc-project5-stack-123123
cc-bigdata-project-112233
04 Run compute url-maps list command (Windows/macOS/Linux) with the ID of the GCP project that you want to examine as the identifier parameter and custom query filters to describe the name of each load balancer (identified by an URL map) created for the selected project:
gcloud compute url-maps list
--project cc-project5-stack-123123
--format="table(name)"
05 The command output should return the name(s) of the existing load balancer(s):
NAME
cc-project5-web-load-balancer
cc-project5-cba-load-balancer
06 Run compute target-http-proxies list command (Windows/macOS/Linux) to describe the name of each target HTTP proxy and the associated load balancer (identified by the URL map), available for the selected project:
gcloud compute target-http-proxies list
--project cc-project5-stack-123123
--format="table(name,urlMap)"
07 The command output should return the requested identification information:
NAME: cc-project5-web-load-balancer-target-proxy
URL_MAP: cc-project5-web-load-balancer
NAME: cc-project5-cba-load-balancer-target-proxy
URL_MAP: cc-project5-cba-load-balancer
08 Run compute forwarding-rules list command (Windows/macOS/Linux) with custom query filters to describe the Compute Engine forwarding rules available within the selected project:
gcloud compute forwarding-rules list
--project cc-project5-stack-123123
--format="table(name,loadBalancingScheme,target)
09 The command output should return the requested information. If the LOAD_BALANCING_SCHEME attribute value for the target proxy associated with your load balancer is set to EXTERNAL_MANAGED, as shown in the example below, the selected load balancer is external:
NAME: cc-project5-web-load-balancer-forwarding-rule
LOAD_BALANCING_SCHEME: EXTERNAL_MANAGED
TARGET: https://www.googleapis.com/compute/v1/projects/cc-project5-stack-123123/global/targetHttpProxies/cc-project5-web-load-balancer-target-proxy
After you have identified the external load balancers, compare the load balancers list returned at step no. 5 with the organization-approved list identified at step no. 1. If one or more load balancers are not found in the organization-approved list, the selected GCP project contains unapproved external load balancers.
10 Repeat steps no. 4 – 9 for each project deployed in your Google Cloud Platform (GCP) account.