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 Details

    • withExternalTcpPorts

      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

      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

      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

      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

      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

      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

      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

      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