Share via


Placement.Constraints Property

Definition

A collection of constraints that define where tasks can be scheduled within a Swarm cluster. These constraints act as filters, ensuring that tasks are only placed on nodes that match all the specified conditions.

[YamlDotNet.Serialization.YamlMember(Alias="constraints")]
public System.Collections.Generic.List<string>? Constraints { get; set; }
[<YamlDotNet.Serialization.YamlMember(Alias="constraints")>]
member this.Constraints : System.Collections.Generic.List<string> with get, set
Public Property Constraints As List(Of String)

Property Value

Attributes
YamlDotNet.Serialization.YamlMemberAttribute

Applies to