CreateResConstraintGroup
HTTP Request Formats
POST api/ResourceConstraintGroup/{groupName}
To specify the schedule the command shall be sent to:
POST api/schedule/{scheduleName}/ResourceConstraintGrou/{groupName}
Description
The CreateResConstraintGroup REST API command creates a new resource constraint group for use in defining task resource requirement logical formulas. For additional information about defining and applying resource constraint groups, see the description of the task Resources Required tab.
Parameters
If neither nOf or AllOf is set the resource group will default to a default nOf value of 1.
JSON Parameters | Body Format | Description |
---|---|---|
ResourceList | "ResourceList": "Res1,Res2,Res3" | Parameter is a string of text in single quotes of a comma delimited list of resource names. |
nOf | "nOf": 1 | Optional integer of nOf value, default is 1. If this parameter is set, AllOf may not be used |
AllOf | "AllOf" : "TRUE" | Optional boolean. If set to "TRUE", all resources will be required. If this parameter is set, nOf may not be used |
Examples
Creates a 1Of resource constraint group called "ThreeOptions" including SatelliteA, SatelliteB, and SatelliteC.
POST api/ResourceConstraintGroup/ThreeOptions
Body:
{
"ResourceList" : ["SatelliteA", "SatelliteB","SatelliteC"],
"nOf" : "1"
}
Return Message
If activated, a standard response for a successful HTTP response shall appear.
Group Membership
This command belongs to the following group(s):
Version
12.3