ContainerPort Class
The port exposed on the container instance.
All required parameters must be populated in order to send to Azure.
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". Default value: None
|
|
port
|
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
|
The port number exposed within the container group. Required. |