Skip to main content

GCP Service Directory Endpoint

Google Cloud Service Directory allows you to register, discover and manage services in a consistent, platform-neutral way.
A Service Directory Endpoint represents a single, addressable instance of a service and stores the information required for clients to reach that instance, such as its IP address, port, and any user-defined metadata.
Further details can be found in the official Google documentation: https://cloud.google.com/service-directory/docs/reference/rest/v1/projects.locations.namespaces.services.endpoints

Terrafrom Mappings:

  • google_service_directory_endpoint.id

Supported Methods​

  • GET: Get a gcp-service-directory-endpoint by its "locations|namespaces|services|endpoints"
  • LIST
  • SEARCH: Search for endpoints by "location|namespace_id|service_id" or "projects/project_id/locations/location/namespaces/namespace_id/services/service_id/endpoints/endpoint_id" which is supported for terraform mappings.

ip​

Each Service Directory endpoint contains an IP address (and optional port) that identifies where the service instance can be reached. This link surfaces that network address so it can be correlated with other IP-based resources and relationships.

gcp-compute-network​

The endpoint logically resides inside, and is reachable through, a specific VPC network in Google Cloud. Linking the endpoint to the corresponding gcp-compute-network enables visibility into how traffic flows to the service and what firewall or routing rules may affect it.