ContainerV1.Ports Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a collection of ports exposed by the container and associated configurations.
[YamlDotNet.Serialization.YamlMember(Alias="ports")]
public System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.ContainerPortV1> Ports { get; }
[<YamlDotNet.Serialization.YamlMember(Alias="ports")>]
member this.Ports : System.Collections.Generic.List<Aspire.Hosting.Kubernetes.Resources.ContainerPortV1>
Public ReadOnly Property Ports As List(Of ContainerPortV1)
Property Value
- Attributes
-
YamlDotNet.Serialization.YamlMemberAttribute
Remarks
Each port in the collection is defined as an instance of ContainerPortV1 which contains details such as the container port number, protocol, host port number, host IP, and an optional name.