共用方式為


ServiceResource.PlacementConstraints Property

Definition

Gets or sets the placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".

[Newtonsoft.Json.JsonProperty(PropertyName="properties.placementConstraints")]
public string PlacementConstraints { get; set; }
[<Newtonsoft.Json.JsonProperty(PropertyName="properties.placementConstraints")>]
member this.PlacementConstraints : string with get, set
Public Property PlacementConstraints As String

Property Value

Attributes
Newtonsoft.Json.JsonPropertyAttribute

Applies to