{"type":"api","title":"Get rules, conditions, operators, and attributes","meta":{"id":"/apps/pubhub/media/crosswork-network-controller-7-1/f445c17e25a1120e8fbde4bd413083d0fd88b2b3/7c48c18b-6630-3205-a601-ed557f355784","info":{"title":"APIs exposed by Grouping service","description":"Crosswork Grouping APIs allow the user to perform CRUD operations on grouping service.","contact":{"name":"Crosswork Team, Cisco","email":"support@cisco.com"},"license":{"name":"Cisco Software License Agreement","url":"http://www.cisco.com/public/sw-license-agreement.html"},"version":"7.1.0"},"x-parser-conf":{"overview":{"markdownPath":"reference/INFRA/GROUPING/grouping-service-overview.md"}},"openapi":"3.0.1","servers":[{"url":"http://localhost:8080/v1/grouping","description":"Generated server url"}]},"spec":{"tags":["Devices"],"summary":"Get rules, conditions, operators, and attributes.","operationId":"getRuleConditions","responses":{"200":{"description":"Successfully retrieved the device rules, conditions, supported operators, and attributes.","content":{"application/json":{"schema":{"required":["conditions"],"type":"object","properties":{"conditions":{"uniqueItems":true,"type":"array","description":"Set of rule conditions representing various criteria such as hostname, IP address, reachability, and product specifications.","items":{"required":["attributeName","operators","type"],"type":"object","properties":{"attributeName":{"type":"string","description":"Name of the attribute associated with the condition."},"type":{"type":"string","description":"Type of the rule condition, determining if it applies to strings or numbers.","enum":["STRING","NUMBER","UNKNOWN"]},"operators":{"uniqueItems":true,"type":"array","description":"Set of operators applicable to the rule condition.","items":{"required":["operatorName"],"type":"object","properties":{"operatorName":{"type":"string","description":"Name of the operator, which is required."},"preDefinedValues":{"uniqueItems":true,"type":"array","description":"Set of predefined values associated with the operator, if applicable.","items":{"type":"object","description":"Set of predefined values associated with the operator, if applicable."}}},"description":"Data Transfer Object representing an operator for rule conditions, including its name and optional predefined values.","$$ref":"#/components/schemas/RuleOperatorDTOObject"}}},"description":"Data Transfer Object representing a rule condition, including its attribute name, type, and operators.","$$ref":"#/components/schemas/RuleConditionDTOObject"}}},"description":"Data Transfer Object containing all rule conditions applicable across various criteria.","$$ref":"#/components/schemas/AllRuleConditionsDTO"},"example":{"conditions":[{"attributeName":"software_type","type":"STRING","operators":[{"operatorName":"SO_Matches"},{"operatorName":"SO_NotMatches"}]}]}}}},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}},"__originalOperationId":"getRuleConditions","method":"get","path":"/device/rule/conditions"}}