ContainerPort Class

The port exposed on the container instance.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.containerinstance._serialization.Model
ContainerPort

Constructor

ContainerPort(*, port: int, protocol: str | _models.ContainerNetworkProtocol | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
protocol

The protocol associated with the port. Known values are: "TCP" and "UDP".

port
int

The port number exposed within the container group. Required.

Variables

Name Description
protocol

The protocol associated with the port. Known values are: "TCP" and "UDP".

port
int

The port number exposed within the container group. Required.