ManagedClusterApiServerAccessProfile Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. ManagedClusterApiServerAccessProfile
- com.
Implements
public final class ManagedClusterApiServerAccessProfile
implements JsonSerializable<ManagedClusterApiServerAccessProfile>
Access profile for managed cluster API server.
Constructor Summary
Constructor | Description |
---|---|
ManagedClusterApiServerAccessProfile() |
Creates an instance of Managed |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<String> |
authorizedIpRanges()
Get the authorized |
Boolean |
disableRunCommand()
Get the disable |
Boolean |
enablePrivateCluster()
Get the enable |
Boolean |
enablePrivateClusterPublicFqdn()
Get the enable |
static
Managed |
fromJson(JsonReader jsonReader)
Reads an instance of Managed |
String |
privateDnsZone()
Get the private |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Managed |
withAuthorizedIpRanges(List<String> authorizedIpRanges)
Set the authorized |
Managed |
withDisableRunCommand(Boolean disableRunCommand)
Set the disable |
Managed |
withEnablePrivateCluster(Boolean enablePrivateCluster)
Set the enable |
Managed |
withEnablePrivateClusterPublicFqdn(Boolean enablePrivateClusterPublicFqdn)
Set the enable |
Managed |
withPrivateDnsZone(String privateDnsZone)
Set the private |
Methods inherited from java.lang.Object
Constructor Details
ManagedClusterApiServerAccessProfile
public ManagedClusterApiServerAccessProfile()
Creates an instance of ManagedClusterApiServerAccessProfile class.
Method Details
authorizedIpRanges
public List
Get the authorizedIpRanges property: IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with clusters that use Public IP Per Node, or clusters that are using a Basic Load Balancer. For more information see [API server authorized IP ranges](https://docs.microsoft.com/azure/aks/api-server-authorized-ip-ranges).
Returns:
disableRunCommand
public Boolean disableRunCommand()
Get the disableRunCommand property: Whether to disable run command for the cluster or not.
Returns:
enablePrivateCluster
public Boolean enablePrivateCluster()
Get the enablePrivateCluster property: For more details, see [Creating a private AKS cluster](https://docs.microsoft.com/azure/aks/private-clusters).
Returns:
enablePrivateClusterPublicFqdn
public Boolean enablePrivateClusterPublicFqdn()
Get the enablePrivateClusterPublicFqdn property: Whether to create additional public FQDN for private cluster or not.
Returns:
fromJson
public static ManagedClusterApiServerAccessProfile fromJson(JsonReader jsonReader)
Reads an instance of ManagedClusterApiServerAccessProfile from the JsonReader.
Parameters:
Returns:
Throws:
privateDnsZone
public String privateDnsZone()
Get the privateDnsZone property: The default is System. For more details see [configure private DNS zone](https://docs.microsoft.com/azure/aks/private-clusters\#configure-private-dns-zone). Allowed values are 'system' and 'none'.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAuthorizedIpRanges
public ManagedClusterApiServerAccessProfile withAuthorizedIpRanges(List
Set the authorizedIpRanges property: IP ranges are specified in CIDR format, e.g. 137.117.106.88/29. This feature is not compatible with clusters that use Public IP Per Node, or clusters that are using a Basic Load Balancer. For more information see [API server authorized IP ranges](https://docs.microsoft.com/azure/aks/api-server-authorized-ip-ranges).
Parameters:
Returns:
withDisableRunCommand
public ManagedClusterApiServerAccessProfile withDisableRunCommand(Boolean disableRunCommand)
Set the disableRunCommand property: Whether to disable run command for the cluster or not.
Parameters:
Returns:
withEnablePrivateCluster
public ManagedClusterApiServerAccessProfile withEnablePrivateCluster(Boolean enablePrivateCluster)
Set the enablePrivateCluster property: For more details, see [Creating a private AKS cluster](https://docs.microsoft.com/azure/aks/private-clusters).
Parameters:
Returns:
withEnablePrivateClusterPublicFqdn
public ManagedClusterApiServerAccessProfile withEnablePrivateClusterPublicFqdn(Boolean enablePrivateClusterPublicFqdn)
Set the enablePrivateClusterPublicFqdn property: Whether to create additional public FQDN for private cluster or not.
Parameters:
Returns:
withPrivateDnsZone
public ManagedClusterApiServerAccessProfile withPrivateDnsZone(String privateDnsZone)
Set the privateDnsZone property: The default is System. For more details see [configure private DNS zone](https://docs.microsoft.com/azure/aks/private-clusters\#configure-private-dns-zone). Allowed values are 'system' and 'none'.
Parameters:
Returns:
Applies to
Azure SDK for Java