Share via


ContainerV1.Ports Property

Definition

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.

Applies to