ContainerPort Class

The port exposed on the container instance.

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

Inheritance
ContainerPort

Constructor

ContainerPort(*, port: int, protocol: Optional[Union[str, azure.mgmt.containerinstance.models._container_instance_management_client_enums.ContainerNetworkProtocol]] = None, **kwargs)

Variables

protocol
str or ContainerNetworkProtocol

The protocol associated with the port. Possible values include: "TCP", "UDP".

port
int

Required. The port number exposed within the container group.