public sealed class MasterAuthorizedNetworksConfig : IMessage<MasterAuthorizedNetworksConfig>, IEquatable<MasterAuthorizedNetworksConfig>, IDeepCloneable<MasterAuthorizedNetworksConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Kubernetes Engine v1 API class MasterAuthorizedNetworksConfig.
Configuration options for the master authorized networks feature. Enabled
master authorized networks will disallow all external traffic to access
Kubernetes master through HTTPS except traffic from the given CIDR blocks,
Google Compute Engine Public IPs and Google Prod IPs.
[[["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-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eMasterAuthorizedNetworksConfig\u003c/code\u003e class in the Google Kubernetes Engine v1 API allows configuration of authorized networks to control access to the Kubernetes master via HTTPS.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows for enabling or disabling master authorized networks, and permits the configuration of up to 50 external networks through \u003ccode\u003eCidrBlocks\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAccess to the master through Google Compute Engine Public IP addresses can be toggled using the \u003ccode\u003eGcpPublicCidrsAccessEnabled\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is version 3.33.0, and the page lists versions ranging from 3.33.0 down to 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eIt's possible to enforce authorized network restrictions on a private endpoint using the property \u003ccode\u003ePrivateEndpointEnforcementEnabled\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Kubernetes Engine v1 API - Class MasterAuthorizedNetworksConfig (3.35.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.35.0 (latest)](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.34.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.34.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.33.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.33.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.32.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.32.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.31.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.31.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.30.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.30.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.29.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.29.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.28.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.28.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.27.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.27.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.26.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.26.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.25.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.25.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.24.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.24.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.23.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.23.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.22.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.22.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.21.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.21.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.20.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.20.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.19.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.19.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.18.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.18.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.17.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.17.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.16.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.16.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.15.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.15.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.14.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.14.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.13.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.13.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.12.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.11.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.10.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.9.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.8.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.7.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.6.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.5.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.4.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.3.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.2.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.1.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Container.V1/3.0.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.7.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.6.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.5.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.4.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Container.V1/2.3.0/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig) \n\n public sealed class MasterAuthorizedNetworksConfig : IMessage\u003cMasterAuthorizedNetworksConfig\u003e, IEquatable\u003cMasterAuthorizedNetworksConfig\u003e, IDeepCloneable\u003cMasterAuthorizedNetworksConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Kubernetes Engine v1 API class MasterAuthorizedNetworksConfig.\n\nConfiguration options for the master authorized networks feature. Enabled\nmaster authorized networks will disallow all external traffic to access\nKubernetes master through HTTPS except traffic from the given CIDR blocks,\nGoogle Compute Engine Public IPs and Google Prod IPs. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MasterAuthorizedNetworksConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MasterAuthorizedNetworksConfig](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MasterAuthorizedNetworksConfig](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MasterAuthorizedNetworksConfig](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1.MasterAuthorizedNetworksConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Container.V1](/dotnet/docs/reference/Google.Cloud.Container.V1/latest/Google.Cloud.Container.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Container.V1.dll\n\nConstructors\n------------\n\n### MasterAuthorizedNetworksConfig()\n\n public MasterAuthorizedNetworksConfig()\n\n### MasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig)\n\n public MasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig other)\n\nProperties\n----------\n\n### CidrBlocks\n\n public RepeatedField\u003cMasterAuthorizedNetworksConfig.Types.CidrBlock\u003e CidrBlocks { get; }\n\ncidr_blocks define up to 50 external networks that could access\nKubernetes master through HTTPS.\n\n### Enabled\n\n public bool Enabled { get; set; }\n\nWhether or not master authorized networks is enabled.\n\n### GcpPublicCidrsAccessEnabled\n\n public bool GcpPublicCidrsAccessEnabled { get; set; }\n\nWhether master is accessible via Google Compute Engine Public IP addresses.\n\n### HasGcpPublicCidrsAccessEnabled\n\n public bool HasGcpPublicCidrsAccessEnabled { get; }\n\nGets whether the \"gcp_public_cidrs_access_enabled\" field is set\n\n### HasPrivateEndpointEnforcementEnabled\n\n public bool HasPrivateEndpointEnforcementEnabled { get; }\n\nGets whether the \"private_endpoint_enforcement_enabled\" field is set\n\n### PrivateEndpointEnforcementEnabled\n\n public bool PrivateEndpointEnforcementEnabled { get; set; }\n\nWhether master authorized networks is enforced on private endpoint or not."]]