Environment Variables
A number of environment variables can be used to configure the behavior of the library. There are also functions to configure this behavior in code. The environment variables are convenient when troubleshooting problems.
Endpoint Overrides
GOOGLE_CLOUD_CPP_ACCELERATOR_TYPES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeAcceleratorTypesConnection()
.GOOGLE_CLOUD_CPP_ADDRESSES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeAddressesConnection()
.GOOGLE_CLOUD_CPP_AUTOSCALERS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeAutoscalersConnection()
.GOOGLE_CLOUD_CPP_BACKEND_BUCKETS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeBackendBucketsConnection()
.GOOGLE_CLOUD_CPP_BACKEND_SERVICES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeBackendServicesConnection()
.GOOGLE_CLOUD_CPP_DISKS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeDisksConnection()
.GOOGLE_CLOUD_CPP_DISK_TYPES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeDiskTypesConnection()
.GOOGLE_CLOUD_CPP_EXTERNAL_VPN_GATEWAYS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeExternalVpnGatewaysConnection()
.GOOGLE_CLOUD_CPP_FIREWALLS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeFirewallsConnection()
.GOOGLE_CLOUD_CPP_FIREWALL_POLICIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeFirewallPoliciesConnection()
.GOOGLE_CLOUD_CPP_FORWARDING_RULES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeForwardingRulesConnection()
.GOOGLE_CLOUD_CPP_GLOBAL_ADDRESSES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeGlobalAddressesConnection()
.GOOGLE_CLOUD_CPP_GLOBAL_FORWARDING_RULES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeGlobalForwardingRulesConnection()
.GOOGLE_CLOUD_CPP_GLOBAL_NETWORK_ENDPOINT_GROUPS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeGlobalNetworkEndpointGroupsConnection()
.GOOGLE_CLOUD_CPP_GLOBAL_OPERATIONS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeGlobalOperationsConnection()
.GOOGLE_CLOUD_CPP_GLOBAL_ORGANIZATION_OPERATIONS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeGlobalOrganizationOperationsConnection()
.GOOGLE_CLOUD_CPP_GLOBAL_PUBLIC_DELEGATED_PREFIXES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeGlobalPublicDelegatedPrefixesConnection()
.GOOGLE_CLOUD_CPP_HEALTH_CHECKS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeHealthChecksConnection()
.GOOGLE_CLOUD_CPP_HTTPS_HEALTH_CHECKS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeHttpsHealthChecksConnection()
.GOOGLE_CLOUD_CPP_HTTP_HEALTH_CHECKS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeHttpHealthChecksConnection()
.GOOGLE_CLOUD_CPP_IMAGES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeImagesConnection()
.GOOGLE_CLOUD_CPP_IMAGE_FAMILY_VIEWS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeImageFamilyViewsConnection()
.GOOGLE_CLOUD_CPP_INSTANCES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeInstancesConnection()
.GOOGLE_CLOUD_CPP_INSTANCE_GROUPS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeInstanceGroupsConnection()
.GOOGLE_CLOUD_CPP_INSTANCE_GROUP_MANAGERS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeInstanceGroupManagersConnection()
.GOOGLE_CLOUD_CPP_INSTANCE_GROUP_MANAGER_RESIZE_REQUESTS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeInstanceGroupManagerResizeRequestsConnection()
.GOOGLE_CLOUD_CPP_INSTANCE_SETTINGS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeInstanceSettingsConnection()
.GOOGLE_CLOUD_CPP_INSTANCE_TEMPLATES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeInstanceTemplatesConnection()
.GOOGLE_CLOUD_CPP_INTERCONNECTS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeInterconnectsConnection()
.GOOGLE_CLOUD_CPP_INTERCONNECT_ATTACHMENTS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeInterconnectAttachmentsConnection()
.GOOGLE_CLOUD_CPP_INTERCONNECT_LOCATIONS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeInterconnectLocationsConnection()
.GOOGLE_CLOUD_CPP_INTERCONNECT_REMOTE_LOCATIONS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeInterconnectRemoteLocationsConnection()
.GOOGLE_CLOUD_CPP_LICENSES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeLicensesConnection()
.GOOGLE_CLOUD_CPP_LICENSE_CODES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeLicenseCodesConnection()
.GOOGLE_CLOUD_CPP_MACHINE_IMAGES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeMachineImagesConnection()
.GOOGLE_CLOUD_CPP_MACHINE_TYPES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeMachineTypesConnection()
.GOOGLE_CLOUD_CPP_NETWORKS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeNetworksConnection()
.GOOGLE_CLOUD_CPP_NETWORK_ATTACHMENTS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeNetworkAttachmentsConnection()
.GOOGLE_CLOUD_CPP_NETWORK_EDGE_SECURITY_SERVICES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeNetworkEdgeSecurityServicesConnection()
.GOOGLE_CLOUD_CPP_NETWORK_ENDPOINT_GROUPS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeNetworkEndpointGroupsConnection()
.GOOGLE_CLOUD_CPP_NETWORK_FIREWALL_POLICIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeNetworkFirewallPoliciesConnection()
.GOOGLE_CLOUD_CPP_NODE_GROUPS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeNodeGroupsConnection()
.GOOGLE_CLOUD_CPP_NODE_TEMPLATES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeNodeTemplatesConnection()
.GOOGLE_CLOUD_CPP_NODE_TYPES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeNodeTypesConnection()
.GOOGLE_CLOUD_CPP_PACKET_MIRRORINGS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakePacketMirroringsConnection()
.GOOGLE_CLOUD_CPP_PROJECTS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeProjectsConnection()
.GOOGLE_CLOUD_CPP_PUBLIC_ADVERTISED_PREFIXES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakePublicAdvertisedPrefixesConnection()
.GOOGLE_CLOUD_CPP_PUBLIC_DELEGATED_PREFIXES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakePublicDelegatedPrefixesConnection()
.GOOGLE_CLOUD_CPP_REGIONS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionsConnection()
.GOOGLE_CLOUD_CPP_REGION_AUTOSCALERS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionAutoscalersConnection()
.GOOGLE_CLOUD_CPP_REGION_BACKEND_SERVICES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionBackendServicesConnection()
.GOOGLE_CLOUD_CPP_REGION_COMMITMENTS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionCommitmentsConnection()
.GOOGLE_CLOUD_CPP_REGION_DISKS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionDisksConnection()
.GOOGLE_CLOUD_CPP_REGION_DISK_TYPES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionDiskTypesConnection()
.GOOGLE_CLOUD_CPP_REGION_HEALTH_CHECKS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionHealthChecksConnection()
.GOOGLE_CLOUD_CPP_REGION_HEALTH_CHECK_SERVICES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionHealthCheckServicesConnection()
.GOOGLE_CLOUD_CPP_REGION_INSTANCES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionInstancesConnection()
.GOOGLE_CLOUD_CPP_REGION_INSTANCE_GROUPS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionInstanceGroupsConnection()
.GOOGLE_CLOUD_CPP_REGION_INSTANCE_GROUP_MANAGERS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionInstanceGroupManagersConnection()
.GOOGLE_CLOUD_CPP_REGION_INSTANCE_TEMPLATES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionInstanceTemplatesConnection()
.GOOGLE_CLOUD_CPP_REGION_NETWORK_ENDPOINT_GROUPS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionNetworkEndpointGroupsConnection()
.GOOGLE_CLOUD_CPP_REGION_NETWORK_FIREWALL_POLICIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionNetworkFirewallPoliciesConnection()
.GOOGLE_CLOUD_CPP_REGION_NOTIFICATION_ENDPOINTS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionNotificationEndpointsConnection()
.GOOGLE_CLOUD_CPP_REGION_OPERATIONS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionOperationsConnection()
.GOOGLE_CLOUD_CPP_REGION_SECURITY_POLICIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionSecurityPoliciesConnection()
.GOOGLE_CLOUD_CPP_REGION_SSL_CERTIFICATES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionSslCertificatesConnection()
.GOOGLE_CLOUD_CPP_REGION_SSL_POLICIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionSslPoliciesConnection()
.GOOGLE_CLOUD_CPP_REGION_TARGET_HTTPS_PROXIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionTargetHttpsProxiesConnection()
.GOOGLE_CLOUD_CPP_REGION_TARGET_HTTP_PROXIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionTargetHttpProxiesConnection()
.GOOGLE_CLOUD_CPP_REGION_TARGET_TCP_PROXIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionTargetTcpProxiesConnection()
.GOOGLE_CLOUD_CPP_REGION_URL_MAPS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionUrlMapsConnection()
.GOOGLE_CLOUD_CPP_REGION_ZONES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRegionZonesConnection()
.GOOGLE_CLOUD_CPP_RESERVATIONS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeReservationsConnection()
.GOOGLE_CLOUD_CPP_RESOURCE_POLICIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeResourcePoliciesConnection()
.GOOGLE_CLOUD_CPP_ROUTERS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRoutersConnection()
.GOOGLE_CLOUD_CPP_ROUTES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeRoutesConnection()
.GOOGLE_CLOUD_CPP_SECURITY_POLICIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeSecurityPoliciesConnection()
.GOOGLE_CLOUD_CPP_SERVICE_ATTACHMENTS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeServiceAttachmentsConnection()
.GOOGLE_CLOUD_CPP_SNAPSHOTS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeSnapshotsConnection()
.GOOGLE_CLOUD_CPP_SNAPSHOT_SETTINGS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeSnapshotSettingsConnection()
.GOOGLE_CLOUD_CPP_SSL_CERTIFICATES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeSslCertificatesConnection()
.GOOGLE_CLOUD_CPP_SSL_POLICIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeSslPoliciesConnection()
.GOOGLE_CLOUD_CPP_STORAGE_POOLS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeStoragePoolsConnection()
.GOOGLE_CLOUD_CPP_STORAGE_POOL_TYPES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeStoragePoolTypesConnection()
.GOOGLE_CLOUD_CPP_SUBNETWORKS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeSubnetworksConnection()
.GOOGLE_CLOUD_CPP_TARGET_GRPC_PROXIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeTargetGrpcProxiesConnection()
.GOOGLE_CLOUD_CPP_TARGET_HTTPS_PROXIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeTargetHttpsProxiesConnection()
.GOOGLE_CLOUD_CPP_TARGET_HTTP_PROXIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeTargetHttpProxiesConnection()
.GOOGLE_CLOUD_CPP_TARGET_INSTANCES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeTargetInstancesConnection()
.GOOGLE_CLOUD_CPP_TARGET_POOLS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeTargetPoolsConnection()
.GOOGLE_CLOUD_CPP_TARGET_SSL_PROXIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeTargetSslProxiesConnection()
.GOOGLE_CLOUD_CPP_TARGET_TCP_PROXIES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeTargetTcpProxiesConnection()
.GOOGLE_CLOUD_CPP_TARGET_VPN_GATEWAYS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeTargetVpnGatewaysConnection()
.GOOGLE_CLOUD_CPP_URL_MAPS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeUrlMapsConnection()
.GOOGLE_CLOUD_CPP_VPN_GATEWAYS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeVpnGatewaysConnection()
.GOOGLE_CLOUD_CPP_VPN_TUNNELS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeVpnTunnelsConnection()
.GOOGLE_CLOUD_CPP_ZONES_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeZonesConnection()
.GOOGLE_CLOUD_CPP_ZONE_OPERATIONS_ENDPOINT=...
overrides theEndpointOption
(which defaults to "compute.googleapis.com") used byMakeZoneOperationsConnection()
.
See Also
Logging
GOOGLE_CLOUD_CPP_ENABLE_TRACING=rpc
: turns on tracing for most gRPC calls. The library injects an additional Stub decorator that prints each gRPC request and response. Unless you have configured your own logging backend, you should also set GOOGLE_CLOUD_CPP_ENABLE_CLOG
to produce any output on the program's console.
See Also
google::cloud::LoggingComponentsOption
GOOGLE_CLOUD_CPP_TRACING_OPTIONS=...
: modifies the behavior of gRPC tracing, including whether messages will be output on multiple lines, or whether string/bytes fields will be truncated.
See Also
google:☁️:TracingOptionsOptionGOOGLE_CLOUD_CPP_ENABLE_CLOG=yes
: turns on logging in the library, basically the library always "logs" but the logging infrastructure has no backend to actually print anything until the application sets a backend or they set this environment variable.
See Also
See Also
Setting the Default Project
GOOGLE_CLOUD_PROJECT=...
: is used in examples and integration tests to configure the GCP project. This has no effect in the library.