Reference documentation and code samples for the Google Cloud Container V1 Client class DNSEndpointConfig.
Describes the configuration of a DNS endpoint.
Generated from protobuf message google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig
Namespace
Google \ Cloud \ Container \ V1 \ ControlPlaneEndpointsConfig
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ endpoint
string
Output only. The cluster's DNS endpoint configuration. A DNS format address. This is accessible from the public internet. Ex: uid.us-central1.gke.goog. Always present, but the behavior may change according to the value of DNSEndpointConfig.allow_external_traffic.
↳ allow_external_traffic
bool
Controls whether user traffic is allowed over this endpoint. Note that GCP-managed services may still use the endpoint even if this is false.
getEndpoint
Output only. The cluster's DNS endpoint configuration.
A DNS format address. This is accessible from the public internet.
Ex: uid.us-central1.gke.goog.
Always present, but the behavior may change according to the value of
DNSEndpointConfig.allow_external_traffic.
Returns
Type
Description
string
setEndpoint
Output only. The cluster's DNS endpoint configuration.
A DNS format address. This is accessible from the public internet.
Ex: uid.us-central1.gke.goog.
Always present, but the behavior may change according to the value of
DNSEndpointConfig.allow_external_traffic.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getAllowExternalTraffic
Controls whether user traffic is allowed over this endpoint. Note that
GCP-managed services may still use the endpoint even if this is false.
Returns
Type
Description
bool
hasAllowExternalTraffic
clearAllowExternalTraffic
setAllowExternalTraffic
Controls whether user traffic is allowed over this endpoint. Note that
GCP-managed services may still use the endpoint even if this is false.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Container V1 Client - Class DNSEndpointConfig (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/php/docs/reference/cloud-container/latest/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [2.4.0](/php/docs/reference/cloud-container/2.4.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [2.3.4](/php/docs/reference/cloud-container/2.3.4/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [2.2.1](/php/docs/reference/cloud-container/2.2.1/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [2.1.0](/php/docs/reference/cloud-container/2.1.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [2.0.0](/php/docs/reference/cloud-container/2.0.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.33.0](/php/docs/reference/cloud-container/1.33.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.32.0](/php/docs/reference/cloud-container/1.32.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.31.0](/php/docs/reference/cloud-container/1.31.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.30.3](/php/docs/reference/cloud-container/1.30.3/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.24.0](/php/docs/reference/cloud-container/1.24.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.23.0](/php/docs/reference/cloud-container/1.23.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.22.0](/php/docs/reference/cloud-container/1.22.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.21.1](/php/docs/reference/cloud-container/1.21.1/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.20.0](/php/docs/reference/cloud-container/1.20.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.19.0](/php/docs/reference/cloud-container/1.19.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.18.0](/php/docs/reference/cloud-container/1.18.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.17.1](/php/docs/reference/cloud-container/1.17.1/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.16.0](/php/docs/reference/cloud-container/1.16.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.15.0](/php/docs/reference/cloud-container/1.15.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.14.0](/php/docs/reference/cloud-container/1.14.0/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.13.1](/php/docs/reference/cloud-container/1.13.1/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.12.1](/php/docs/reference/cloud-container/1.12.1/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.10.3](/php/docs/reference/cloud-container/1.10.3/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig)\n- [1.9.1](/php/docs/reference/cloud-container/1.9.1/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig) \nReference documentation and code samples for the Google Cloud Container V1 Client class DNSEndpointConfig.\n\nDescribes the configuration of a DNS endpoint.\n\nGenerated from protobuf message `google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Container \\\\ V1 \\\\ ControlPlaneEndpointsConfig\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getEndpoint\n\nOutput only. The cluster's DNS endpoint configuration.\n\nA DNS format address. This is accessible from the public internet.\nEx: uid.us-central1.gke.goog.\nAlways present, but the behavior may change according to the value of\n[DNSEndpointConfig.allow_external_traffic](/php/docs/reference/cloud-container/latest/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig#_Google_Cloud_Container_V1_ControlPlaneEndpointsConfig_DNSEndpointConfig__getAllowExternalTraffic__).\n\n### setEndpoint\n\nOutput only. The cluster's DNS endpoint configuration.\n\nA DNS format address. This is accessible from the public internet.\nEx: uid.us-central1.gke.goog.\nAlways present, but the behavior may change according to the value of\n[DNSEndpointConfig.allow_external_traffic](/php/docs/reference/cloud-container/latest/V1.ControlPlaneEndpointsConfig.DNSEndpointConfig#_Google_Cloud_Container_V1_ControlPlaneEndpointsConfig_DNSEndpointConfig__getAllowExternalTraffic__).\n\n### getAllowExternalTraffic\n\nControls whether user traffic is allowed over this endpoint. Note that\nGCP-managed services may still use the endpoint even if this is false.\n\n### hasAllowExternalTraffic\n\n### clearAllowExternalTraffic\n\n### setAllowExternalTraffic\n\nControls whether user traffic is allowed over this endpoint. Note that\nGCP-managed services may still use the endpoint even if this is false."]]