Share via


ArmContainerInstanceModelFactory.ContainerGroupIPAddress Method

Definition

Initializes a new instance of ContainerGroupIPAddress.

public static Azure.ResourceManager.ContainerInstance.Models.ContainerGroupIPAddress ContainerGroupIPAddress (System.Collections.Generic.IEnumerable<Azure.ResourceManager.ContainerInstance.Models.ContainerGroupPort> ports = default, Azure.ResourceManager.ContainerInstance.Models.ContainerGroupIPAddressType addressType = default, System.Net.IPAddress ip = default, string dnsNameLabel = default, Azure.ResourceManager.ContainerInstance.Models.DnsNameLabelReusePolicy? autoGeneratedDomainNameLabelScope = default, string fqdn = default);
static member ContainerGroupIPAddress : seq<Azure.ResourceManager.ContainerInstance.Models.ContainerGroupPort> * Azure.ResourceManager.ContainerInstance.Models.ContainerGroupIPAddressType * System.Net.IPAddress * string * Nullable<Azure.ResourceManager.ContainerInstance.Models.DnsNameLabelReusePolicy> * string -> Azure.ResourceManager.ContainerInstance.Models.ContainerGroupIPAddress
Public Shared Function ContainerGroupIPAddress (Optional ports As IEnumerable(Of ContainerGroupPort) = Nothing, Optional addressType As ContainerGroupIPAddressType = Nothing, Optional ip As IPAddress = Nothing, Optional dnsNameLabel As String = Nothing, Optional autoGeneratedDomainNameLabelScope As Nullable(Of DnsNameLabelReusePolicy) = Nothing, Optional fqdn As String = Nothing) As ContainerGroupIPAddress

Parameters

ports
IEnumerable<ContainerGroupPort>

The list of ports exposed on the container group.

addressType
ContainerGroupIPAddressType

Specifies if the IP is exposed to the public internet or private VNET.

ip
IPAddress

The IP exposed to the public internet.

dnsNameLabel
String

The Dns name label for the IP.

autoGeneratedDomainNameLabelScope
Nullable<DnsNameLabelReusePolicy>

The value representing the security enum. The 'Unsecure' value is the default value if not selected and means the object's domain name label is not secured against subdomain takeover. The 'TenantReuse' value is the default value if selected and means the object's domain name label can be reused within the same tenant. The 'SubscriptionReuse' value means the object's domain name label can be reused within the same subscription. The 'ResourceGroupReuse' value means the object's domain name label can be reused within the same resource group. The 'NoReuse' value means the object's domain name label cannot be reused within the same resource group, subscription, or tenant.

fqdn
String

The FQDN for the IP.

Returns

A new ContainerGroupIPAddress instance for mocking.

Applies to