Interface ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPorts<ParentT>
-
- Type Parameters:
ParentT- the stage of the parent definition to return to after attaching this definition
- All Known Subinterfaces:
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.ContainerInstanceDefinition<ParentT>,ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithOrWithoutPorts<ParentT>,ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPortsOrContainerInstanceAttach<ParentT>
- Enclosing interface:
- ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages
public static interface ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPorts<ParentT>The stage of the container instance definition allowing to specify the container ports.
-
-
Method Summary
-
-
-
Method Detail
-
withExternalTcpPorts
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPortsOrContainerInstanceAttach<ParentT> withExternalTcpPorts(int... ports)
Specifies the container's TCP ports available to external clients.A public IP address will be create to allow external clients to reach the containers within the group. To enable external clients to reach a container within the group, you must expose the port on the IP address and from the container. Because containers within the group share a port namespace, port mapping is not supported.
- Parameters:
ports- array of TCP ports to be exposed externally- Returns:
- the next stage of the definition
-
withExternalTcpPort
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPortsOrContainerInstanceAttach<ParentT> withExternalTcpPort(int port)
Specifies the container's TCP port available to external clients.A public IP address will be create to allow external clients to reach the containers within the group. To enable external clients to reach a container within the group, you must expose the port on the IP address and from the container. Because containers within the group share a port namespace, port mapping is not supported.
- Parameters:
port- TCP port to be exposed externally- Returns:
- the next stage of the definition
-
withExternalUdpPorts
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPortsOrContainerInstanceAttach<ParentT> withExternalUdpPorts(int... ports)
Specifies the container's UDP ports available to external clients.A public IP address will be create to allow external clients to reach the containers within the group. To enable external clients to reach a container within the group, you must expose the port on the IP address and from the container. Because containers within the group share a port namespace, port mapping is not supported.
- Parameters:
ports- array of UDP ports to be exposed externally- Returns:
- the next stage of the definition
-
withExternalUdpPort
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPortsOrContainerInstanceAttach<ParentT> withExternalUdpPort(int port)
Specifies the container's UDP port available to external clients.A public IP address will be create to allow external clients to reach the containers within the group. To enable external clients to reach a container within the group, you must expose the port on the IP address and from the container. Because containers within the group share a port namespace, port mapping is not supported.
- Parameters:
port- UDP port to be exposed externally- Returns:
- the next stage of the definition
-
withInternalTcpPorts
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPortsOrContainerInstanceAttach<ParentT> withInternalTcpPorts(int... ports)
Specifies the container's TCP ports are available to internal clients only (other container instances within the container group).Containers within a group can reach each other via localhost on the ports that they have exposed, even if those ports are not exposed externally on the group's IP address.
- Parameters:
ports- array of TCP ports to be exposed internally- Returns:
- the next stage of the definition
-
withInternalUdpPorts
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPortsOrContainerInstanceAttach<ParentT> withInternalUdpPorts(int... ports)
Specifies the container's Udp ports are available to internal clients only (other container instances within the container group).Containers within a group can reach each other via localhost on the ports that they have exposed, even if those ports are not exposed externally on the group's IP address.
- Parameters:
ports- array of UDP ports to be exposed internally- Returns:
- the next stage of the definition
-
withInternalTcpPort
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPortsOrContainerInstanceAttach<ParentT> withInternalTcpPort(int port)
Specifies the container's TCP port is available to internal clients only (other container instances within the container group).Containers within a group can reach each other via localhost on the ports that they have exposed, even if those ports are not exposed externally on the group's IP address.
- Parameters:
port- TCP port to be exposed internally- Returns:
- the next stage of the definition
-
withInternalUdpPort
ContainerGroup.DefinitionStages.ContainerInstanceDefinitionStages.WithPortsOrContainerInstanceAttach<ParentT> withInternalUdpPort(int port)
Specifies the container's UDP port is available to internal clients only (other container instances within the container group).Containers within a group can reach each other via localhost on the ports that they have exposed, even if those ports are not exposed externally on the group's IP address.
- Parameters:
port- UDP port to be exposed internally- Returns:
- the next stage of the definition
-
-