Create a group rule
Request
PUT https://{hostname}:{port}
/build/rest2/dynamicAgentPools/{id}
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | true | The identifier to use when looking up a dynamic agent pool. |
This command takes a JSON request string or file. Use the following template for the request:
{"group": {
"groups": "The list of group rules.",
"logic": "The logic of the group rule. This should be
'AND' or 'OR'.",
"rules": [{
"condition": "The condition of the rule. This should
be 'IS_EQUAL_TO', 'IS_NOT_EQUAL_TO', 'CONTAINS',
'DOES_NOT_CONTAIN', 'IS_GREATER_THAN', 'IS_LESS_THAN',
'IS_GREATER_THAN_OR_EQUAL_TO', 'IS_LESS_THAN_OR_EQUAL_TO',
'EXISTS' or 'DOES_NOT_EXIST'.",
"conditionValue": "The value of the condition.",
"type": "The type of the rule. This should be 'NAME',
'PROPERTY', 'THROUGHPUT', 'MAX_JOBS' or 'DESCRIPTION'."
}]
}}
