Get all the rules for a rule set

get/ruleSets/{ruleSetId}/rules
Internal-Use Only

Returns the collection of rules for a specified rule set.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "collection",
6 "href": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules",
7 "uri": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules",
8 "type": "application/vnd.sas.collection",
9 "itemType": "application/vnd.sas.business.rule"
10 }
11 ],
12 "name": "rules",
13 "accept": "application/vnd.sas.business.rule",
14 "start": 0,
15 "count": 2,
16 "items": [
17 {
18 "creationTimeStamp": "2024-04-26T01:27:16.145Z",
19 "modifiedTimeStamp": "2024-04-26T01:27:16.176Z",
20 "createdBy": "sasdemo",
21 "modifiedBy": "sasdemo",
22 "version": 3,
23 "id": "7553d9d8-e60c-4a35-bac1-92e65d0005e7",
24 "name": "Default_assignment_2",
25 "description": "assignment",
26 "ruleFiredTrackingEnabled": false,
27 "conditional": "if",
28 "conditions": [],
29 "actions": [
30 {
31 "expression": "risk = 70/clage",
32 "status": "valid",
33 "id": "48a13c81-a259-4caa-aa20-b52ad192131f",
34 "type": "complex"
35 }
36 ],
37 "mappings": [],
38 "links": [
39 {
40 "method": "GET",
41 "rel": "self",
42 "href": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules/7553d9d8-e60c-4a35-bac1-92e65d0005e7",
43 "uri": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules/7553d9d8-e60c-4a35-bac1-92e65d0005e7",
44 "type": "application/vnd.sas.business.rule"
45 },
46 {
47 "method": "PUT",
48 "rel": "update",
49 "href": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules/7553d9d8-e60c-4a35-bac1-92e65d0005e7",
50 "uri": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules/7553d9d8-e60c-4a35-bac1-92e65d0005e7",
51 "type": "application/vnd.sas.business.rule",
52 "responseType": "application/vnd.sas.business.rule"
53 },
54 {
55 "method": "DELETE",
56 "rel": "delete",
57 "href": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules/7553d9d8-e60c-4a35-bac1-92e65d0005e7",
58 "uri": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules/7553d9d8-e60c-4a35-bac1-92e65d0005e7"
59 },
60 {
61 "method": "GET",
62 "rel": "parent",
63 "href": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1",
64 "uri": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1",
65 "type": "application/vnd.sas.business.rule.set"
66 },
67 {
68 "method": "GET",
69 "rel": "up",
70 "href": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules",
71 "uri": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules",
72 "type": "application/vnd.sas.collection",
73 "itemType": "application/vnd.sas.business.rule"
74 }
75 ],
76 "status": "valid"
77 },
78 {
79 "creationTimeStamp": "2024-04-26T01:27:16.163Z",
80 "modifiedTimeStamp": "2024-04-26T01:27:16.225Z",
81 "createdBy": "sasdemo",
82 "modifiedBy": "sasdemo",
83 "version": 3,
84 "id": "044bf48e-5585-4a38-a022-5fd329715f1e",
85 "name": "Default_rule_1",
86 "description": "",
87 "ruleFiredTrackingEnabled": true,
88 "conditional": "if",
89 "conditions": [
90 {
91 "expression": ">= 1.0",
92 "status": "valid",
93 "id": "6832cc6c-0f4c-4ba6-bb28-f93e146c1d31",
94 "type": "decisionTable",
95 "term": {
96 "creationTimeStamp": "2024-04-26T01:27:16.112Z",
97 "modifiedTimeStamp": "2024-04-26T01:27:16.112Z",
98 "createdBy": "sasdemo",
99 "modifiedBy": "sasdemo",
100 "id": "1959f25e-9ec2-4c93-db10-1cc32a9876c6",
101 "name": "risk",
102 "dataType": "decimal",
103 "direction": "output",
104 "description": "",
105 "generateDataGridColumns": false
106 }
107 }
108 ],
109 "actions": [
110 {
111 "expression": "1.0",
112 "status": "valid",
113 "id": "f967aade-69e3-4f97-9b31-25bb8a940b6c",
114 "type": "assignment",
115 "term": {
116 "creationTimeStamp": "2024-04-26T01:27:16.112Z",
117 "modifiedTimeStamp": "2024-04-26T01:27:16.112Z",
118 "createdBy": "sasdemo",
119 "modifiedBy": "sasdemo",
120 "id": "1959f25e-9ec2-4c93-db10-1cc32a9876c6",
121 "name": "risk",
122 "dataType": "decimal",
123 "direction": "output",
124 "description": "",
125 "generateDataGridColumns": false
126 }
127 }
128 ],
129 "mappings": [],
130 "links": [
131 {
132 "method": "GET",
133 "rel": "self",
134 "href": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules/044bf48e-5585-4a38-a022-5fd329715f1e",
135 "uri": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules/044bf48e-5585-4a38-a022-5fd329715f1e",
136 "type": "application/vnd.sas.business.rule"
137 },
138 {
139 "method": "PUT",
140 "rel": "update",
141 "href": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules/044bf48e-5585-4a38-a022-5fd329715f1e",
142 "uri": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules/044bf48e-5585-4a38-a022-5fd329715f1e",
143 "type": "application/vnd.sas.business.rule",
144 "responseType": "application/vnd.sas.business.rule"
145 },
146 {
147 "method": "DELETE",
148 "rel": "delete",
149 "href": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules/044bf48e-5585-4a38-a022-5fd329715f1e",
150 "uri": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules/044bf48e-5585-4a38-a022-5fd329715f1e"
151 },
152 {
153 "method": "GET",
154 "rel": "parent",
155 "href": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1",
156 "uri": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1",
157 "type": "application/vnd.sas.business.rule.set"
158 },
159 {
160 "method": "GET",
161 "rel": "up",
162 "href": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules",
163 "uri": "/businessRules/ruleSets/81ac6952-ac0d-408b-91ad-54717a65ebb1/rules",
164 "type": "application/vnd.sas.collection",
165 "itemType": "application/vnd.sas.business.rule"
166 }
167 ],
168 "status": "valid"
169 }
170 ],
171 "limit": 10,
172 "version": 2
173}

Path Parameters

NameTypeRequiredDescription
ruleSetId
string
true

The ID of the rule set to match.

Query Parameters

NameTypeRequiredDescription
limit
integer
false

The maximum number of items to return on this page. The actual number of returned items might be less if there are no more items in the collection. The default is 10.

start
integer
false

The starting index of the first item on a page. The index is 0-based. The default is 0.

filter
string<filter-criteria>
false

The criteria for filtering the function categories. See Filtering in REST APIs.

sortBy
string<sort-criteria>
false

The criteria for sorting the function categories. See Sorting in REST APIs.

Header Parameters

NameTypeRequiredDescription
Accept-Item
string
false

An alternative media type that the API recognizes. If the media type is not one that the API can provide, a 406 response is returned.

Responses

StatusMeaningDescription
200OKThe request succeeded.HeadersSchema
400Bad RequestThe request was invalid.Schema