{"type":"api","title":"Get Attribute Conditions","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":["Ports"],"operationId":"getAttributeConditions","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"required":["conditions"],"type":"object","properties":{"conditions":{"uniqueItems":true,"type":"array","description":"Adds a dynamic rule condition to the existing set of conditions.","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":"Set of rule conditions applicable to ports, including default conditions for administrative status, operational status, name, and speed.","$$ref":"#/components/schemas/AllRuleConditionsForPortsDTO"},"examples":{"Success Response Example":{"summary":"Example of a successful get response","description":"Success Response Example","value":{"conditions":[{"attributeName":"name","type":"STRING","operators":[{"operatorName":"SO_Matches"},{"operatorName":"SO_NotMatches"}]}]}}}}}},"400":{"description":"Bad Request"},"500":{"description":"Internal Server Error"}},"__originalOperationId":"getAttributeConditions","method":"get","path":"/ports/rule/conditions"}}