@manyos/smileconnect-api 1.39.1 → 1.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +13 -0
- package/conf/clients.json +2 -1
- package/conf/scripts/p4.js +24 -1
- package/docs/.nojekyll +0 -0
- package/docs/README.md +1 -0
- package/docs/_coverpage.md +12 -0
- package/docs/_media/dataflow.png +0 -0
- package/docs/_media/gui_client_fields.png +0 -0
- package/docs/_media/gui_clients_scripts.png +0 -0
- package/docs/_media/gui_mapping_inc.png +0 -0
- package/docs/_media/gui_scripts_edit.png +0 -0
- package/docs/_media/gui_scripts_usage.png +0 -0
- package/docs/_media/gui_scripts_warning.png +0 -0
- package/docs/_media/logo.png +0 -0
- package/docs/_sidebar.md +25 -0
- package/docs/{configuration/adapter.md → adapter.md} +8 -16
- package/docs/architecture.md +8 -0
- package/docs/configuration/clients.md +589 -0
- package/docs/configuration/config.md +323 -0
- package/docs/{eventlog → configuration}/events.md +11 -8
- package/docs/configuration/mapping.md +60 -0
- package/docs/howto/{worklog-attachment.md → attachments.md} +8 -15
- package/docs/howto/cmdbobjects.md +11 -17
- package/docs/howto/incidents.md +16 -23
- package/docs/howto/token.md +14 -18
- package/docs/howto/{incident-worklogs.md → worklogs.md} +14 -21
- package/docs/index.html +27 -0
- package/docs/openapi.json +2054 -1354
- package/docs/quickstart.md +9 -0
- package/docs/releases.md +21 -0
- package/docs/scripts.md +272 -0
- package/package.json +1 -1
- package/docs/.gitattributes +0 -48
- package/docs/404.html +0 -13
- package/docs/Gemfile +0 -7
- package/docs/Gemfile.lock +0 -249
- package/docs/_config.yml +0 -259
- package/docs/_data/SocialNetworks.yml +0 -92
- package/docs/_data/ui-text.yml +0 -494
- package/docs/_includes/disqus.html +0 -17
- package/docs/_includes/ext-css.html +0 -7
- package/docs/_includes/ext-js.html +0 -7
- package/docs/_includes/fb-comment.html +0 -14
- package/docs/_includes/footer-minimal.html +0 -16
- package/docs/_includes/footer-scripts.html +0 -32
- package/docs/_includes/footer.html +0 -51
- package/docs/_includes/google_analytics.html +0 -14
- package/docs/_includes/gtag.html +0 -11
- package/docs/_includes/gtm_body.html +0 -6
- package/docs/_includes/gtm_head.html +0 -9
- package/docs/_includes/head.html +0 -131
- package/docs/_includes/header.html +0 -76
- package/docs/_includes/just_comments.html +0 -4
- package/docs/_includes/matomo.html +0 -17
- package/docs/_includes/nav.html +0 -57
- package/docs/_includes/social-share.html +0 -42
- package/docs/_includes/staticman-comment.html +0 -22
- package/docs/_includes/staticman-comments.html +0 -81
- package/docs/_layouts/base.html +0 -35
- package/docs/_layouts/default.html +0 -9
- package/docs/_layouts/minimal.html +0 -26
- package/docs/_layouts/page.html +0 -26
- package/docs/_layouts/post.html +0 -82
- package/docs/_posts/2015-02-28-test-markdown.md +0 -77
- package/docs/aboutme.md +0 -18
- package/docs/configuration/scripts.md +0 -207
- package/docs/css/bootstrap-social.css +0 -147
- package/docs/css/bootstrap-theme.css +0 -476
- package/docs/css/bootstrap-theme.css.map +0 -1
- package/docs/css/bootstrap-theme.min.css +0 -5
- package/docs/css/bootstrap.css +0 -6566
- package/docs/css/bootstrap.css.map +0 -1
- package/docs/css/bootstrap.min.css +0 -5
- package/docs/css/main-minimal.css +0 -13
- package/docs/css/main.css +0 -788
- package/docs/css/normalize.css +0 -427
- package/docs/css/pygment_highlights.css +0 -61
- package/docs/css/staticman.css +0 -180
- package/docs/feed.xml +0 -24
- package/docs/general/architecture.md +0 -10
- package/docs/general/config.md +0 -201
- package/docs/general/field-management.md +0 -119
- package/docs/general/release-notes.md +0 -9
- package/docs/howto/sample-config.md +0 -518
- package/docs/img/404-southpark.jpg +0 -0
- package/docs/img/avatar-icon.png +0 -0
- package/docs/img/bgimage.png +0 -0
- package/docs/img/gb-isapi.jpg +0 -0
- package/docs/img/install-steps.gif +0 -0
- package/docs/img/workflow.png +0 -0
- package/docs/js/bootstrap.js +0 -2306
- package/docs/js/bootstrap.min.js +0 -7
- package/docs/js/jquery-1.11.2.min.js +0 -4
- package/docs/js/main.js +0 -140
- package/docs/js/staticman.js +0 -54
- package/docs/staticman.yml +0 -110
- /package/docs/{img → _media}/architecture.jpeg +0 -0
- /package/docs/{img → _media}/attachment-upload.png +0 -0
- /package/docs/{getting-started.md → old/getting-started.md} +0 -0
- /package/docs/{index.md → old/index.md} +0 -0
- /package/docs/{installation.md → old/installation.md} +0 -0
- /package/docs/{postinstall.md → old/postinstall.md} +0 -0
- /package/docs/{preinstall.md → old/preinstall.md} +0 -0
- /package/docs/{tags.html → old/tags.html} +0 -0
- /package/docs/{workflow.md → old/workflow.md} +0 -0
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
# Global Application Settings
|
|
2
|
+
|
|
3
|
+
All of the following global configuration options needs to be set as Environment Variables for the different containers.
|
|
4
|
+
|
|
5
|
+
# API
|
|
6
|
+
|
|
7
|
+
## AR Server Connection
|
|
8
|
+
|
|
9
|
+
### BASEURL
|
|
10
|
+
|
|
11
|
+
Base URL of the used arrestfulapi
|
|
12
|
+
|
|
13
|
+
Sample:
|
|
14
|
+
|
|
15
|
+
*BASEURL=http://localhost:8080*
|
|
16
|
+
|
|
17
|
+
### AR_SERVER
|
|
18
|
+
|
|
19
|
+
Remedy Server to connect to.
|
|
20
|
+
|
|
21
|
+
Sample:
|
|
22
|
+
|
|
23
|
+
*AR_SERVER=pier1*
|
|
24
|
+
|
|
25
|
+
### AR_PORT
|
|
26
|
+
|
|
27
|
+
Remedy Server TCP Port.
|
|
28
|
+
|
|
29
|
+
Sample:
|
|
30
|
+
|
|
31
|
+
*AR_PORT=1234*
|
|
32
|
+
|
|
33
|
+
### AR_USER
|
|
34
|
+
|
|
35
|
+
Remedy Admin User who is used for all queries.
|
|
36
|
+
|
|
37
|
+
Sample:
|
|
38
|
+
|
|
39
|
+
*AR_USER=Demo*
|
|
40
|
+
|
|
41
|
+
### AR_PASSWORD
|
|
42
|
+
|
|
43
|
+
Remedy Admin User password.
|
|
44
|
+
|
|
45
|
+
Sample:
|
|
46
|
+
|
|
47
|
+
*AR_PASSWORD=password*
|
|
48
|
+
|
|
49
|
+
## SSO Connection
|
|
50
|
+
|
|
51
|
+
For a minimum configuration only the SSO Public Key is required.
|
|
52
|
+
|
|
53
|
+
### SSO_PUBLIC_KEY
|
|
54
|
+
|
|
55
|
+
Public Key used to validate JWT tokens.
|
|
56
|
+
|
|
57
|
+
Sample:
|
|
58
|
+
|
|
59
|
+
*SSO_PUBLIC_KEY=1635rN5xkbubgmuNQCnKKFu7OlAD3QxiDwecg1bJvFhJW9Qj5YhOwGuX54sOSCjmdTcKT1mCHL61FJ5mzxtbrct97zVwXmi4F4KDKj2PsW+qxUg0Jz/06iTVjtv2H1yBq1*
|
|
60
|
+
|
|
61
|
+
### SSO_AUDIENCE
|
|
62
|
+
|
|
63
|
+
Audience (Clients) which are allowed to use JWT tokens. This parameter is optional. If it is not set, no check against the JWT token will be performed.
|
|
64
|
+
|
|
65
|
+
Sample:
|
|
66
|
+
|
|
67
|
+
*SSO_AUDIENCE=gihub, jira*
|
|
68
|
+
|
|
69
|
+
### SSO_ISSUER
|
|
70
|
+
|
|
71
|
+
Issuer (SSO Server) of the JWT tokens.
|
|
72
|
+
|
|
73
|
+
Sample:
|
|
74
|
+
|
|
75
|
+
*SSO_ISSUER=https://sso.mydomain.io/auth/realms/itsmproxy*
|
|
76
|
+
|
|
77
|
+
### SSO_CLIENTNAME_ATTRIBUTE
|
|
78
|
+
|
|
79
|
+
The attribute that contains the client name in the token.
|
|
80
|
+
|
|
81
|
+
Default: *azp*
|
|
82
|
+
|
|
83
|
+
Set this value if you only want to use a single client in the SSO and service accounts as clients in SMILEconnect. This can be used to manage your SMILEconnect clients via a directory service like LDAP/AD. [More Info](https://datatracker.ietf.org/doc/html/rfc6749#section-1.3.3)
|
|
84
|
+
|
|
85
|
+
Sample:
|
|
86
|
+
|
|
87
|
+
*SSO_CLIENTNAME_ATTRIBUTE = "preferred_username"*
|
|
88
|
+
|
|
89
|
+
### ADMIN_USERS
|
|
90
|
+
|
|
91
|
+
List of users who are allowed to access /v1/appconfig endpoints.
|
|
92
|
+
|
|
93
|
+
Sample:
|
|
94
|
+
ADMIN_USERS=username1, username2
|
|
95
|
+
|
|
96
|
+
### MASTER_CLIENTS
|
|
97
|
+
|
|
98
|
+
List of clients that can act on behalf of other clients.
|
|
99
|
+
|
|
100
|
+
The URL Parameter *clientId* is used for this.
|
|
101
|
+
|
|
102
|
+
Sample:
|
|
103
|
+
MASTER_CLIENTS=idm,adminTool
|
|
104
|
+
|
|
105
|
+
## Cache Settings
|
|
106
|
+
|
|
107
|
+
### CACHETTL_CMDB
|
|
108
|
+
Interval in seconds in which before cached CMDB Data is deleted from the cache.
|
|
109
|
+
|
|
110
|
+
Default: *600*
|
|
111
|
+
|
|
112
|
+
Sample:
|
|
113
|
+
|
|
114
|
+
*CACHETTL_CMDB=2800*
|
|
115
|
+
|
|
116
|
+
### CACHETTL_ORGDATA
|
|
117
|
+
Interval in seconds in which before cached Org Data like People, Support Groups, Organisations are deleted from the cache.
|
|
118
|
+
|
|
119
|
+
Default: *3600*
|
|
120
|
+
|
|
121
|
+
Sample:
|
|
122
|
+
|
|
123
|
+
*CACHETTL_ORGDATA=7200*
|
|
124
|
+
|
|
125
|
+
### CACHETTL_TICKETS
|
|
126
|
+
|
|
127
|
+
Interval in seconds in which before cached Ticket Data is deleted from the cache.
|
|
128
|
+
|
|
129
|
+
Default: *1*
|
|
130
|
+
|
|
131
|
+
Sample: 600
|
|
132
|
+
|
|
133
|
+
### CACHETTL_TASK
|
|
134
|
+
|
|
135
|
+
Interval in seconds in which before cached Task Data is deleted from the cache.
|
|
136
|
+
|
|
137
|
+
Default: *1*
|
|
138
|
+
|
|
139
|
+
Sample:
|
|
140
|
+
|
|
141
|
+
*CACHETTL_TASK=600*
|
|
142
|
+
|
|
143
|
+
## Logging
|
|
144
|
+
|
|
145
|
+
### Loglevel
|
|
146
|
+
|
|
147
|
+
Loglevel of the api. Defaults to *error*
|
|
148
|
+
|
|
149
|
+
## Rate Limits
|
|
150
|
+
|
|
151
|
+
### RATE_LIMIT
|
|
152
|
+
|
|
153
|
+
Defines how many API requests from a single IP are allowed within a 15min timeframe.
|
|
154
|
+
|
|
155
|
+
Default *10000*
|
|
156
|
+
|
|
157
|
+
Sample:
|
|
158
|
+
|
|
159
|
+
*RATE_LIMIT=600*
|
|
160
|
+
|
|
161
|
+
### LIMIT_DEFAULT
|
|
162
|
+
|
|
163
|
+
Limits the resultsize of all queries against the Remedy Server. Sets a default that can be overwritten by requests. Can be used to prevent performance issues.
|
|
164
|
+
Affects also relations.
|
|
165
|
+
|
|
166
|
+
Default *unlimited*
|
|
167
|
+
|
|
168
|
+
Sample:
|
|
169
|
+
|
|
170
|
+
*LIMIT_DEFAULT=100*
|
|
171
|
+
|
|
172
|
+
### LIMIT_MAX
|
|
173
|
+
|
|
174
|
+
Limits the resultsize of all queries against the Remedy Server. Defines a global maximum that can not be overwritten by requests. Will only be overwritten by Limits defined for certains clients. Can be used to prevent performance issues.
|
|
175
|
+
Affects also relations.
|
|
176
|
+
|
|
177
|
+
Default *unlimited*
|
|
178
|
+
|
|
179
|
+
Sample:
|
|
180
|
+
|
|
181
|
+
*LIMIT_MAX=100*
|
|
182
|
+
|
|
183
|
+
### MAX_HTTP_SOCKETS
|
|
184
|
+
|
|
185
|
+
Defines how many TCP Sockets are used for outgoing connections. (Parallel connections to the Remedy REST API.)
|
|
186
|
+
|
|
187
|
+
Reduce this parameter if you see ECONNRESET or socket hang up errors.
|
|
188
|
+
|
|
189
|
+
This parameter has direct impact on performance.
|
|
190
|
+
|
|
191
|
+
Default *10*
|
|
192
|
+
|
|
193
|
+
Sample:
|
|
194
|
+
|
|
195
|
+
*MAX_HTTP_SOCKETS=15*
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
# Event Manager
|
|
199
|
+
|
|
200
|
+
## AR Server Connection
|
|
201
|
+
|
|
202
|
+
### BASEURL
|
|
203
|
+
|
|
204
|
+
Base URL of the used arrestfulapi
|
|
205
|
+
|
|
206
|
+
Sample:
|
|
207
|
+
|
|
208
|
+
*BASEURL=http://localhost:8080*
|
|
209
|
+
|
|
210
|
+
### AR_SERVER
|
|
211
|
+
|
|
212
|
+
Remedy Server to connect to.
|
|
213
|
+
|
|
214
|
+
Sample:
|
|
215
|
+
|
|
216
|
+
*AR_SERVER=pier1*
|
|
217
|
+
|
|
218
|
+
### AR_PORT
|
|
219
|
+
|
|
220
|
+
Remedy Server TCP Port.
|
|
221
|
+
|
|
222
|
+
Sample:
|
|
223
|
+
|
|
224
|
+
*AR_PORT=1234*
|
|
225
|
+
|
|
226
|
+
### AR_USER
|
|
227
|
+
|
|
228
|
+
Remedy Admin User who is used for all queries.
|
|
229
|
+
|
|
230
|
+
Sample:
|
|
231
|
+
|
|
232
|
+
*AR_USER=Demo*
|
|
233
|
+
|
|
234
|
+
### AR_PASSWORD
|
|
235
|
+
|
|
236
|
+
Remedy Admin User password.
|
|
237
|
+
|
|
238
|
+
Sample:
|
|
239
|
+
|
|
240
|
+
*AR_PASSWORD=password*
|
|
241
|
+
|
|
242
|
+
## SSO Connection
|
|
243
|
+
|
|
244
|
+
For a minimum configuration only the SSO Public Key is required.
|
|
245
|
+
|
|
246
|
+
### SSO_PUBLIC_KEY
|
|
247
|
+
|
|
248
|
+
Public Key used to validate JWT tokens.
|
|
249
|
+
|
|
250
|
+
Sample:
|
|
251
|
+
|
|
252
|
+
*SSO_PUBLIC_KEY=1635rN5xkbubgmuNQCnKKFu7OlAD3QxiDwecg1bJvFhJW9Qj5YhOwGuX54sOSCjmdTcKT1mCHL61FJ5mzxtbrct97zVwXmi4F4KDKj2PsW+qxUg0Jz/06iTVjtv2H1yBq1*
|
|
253
|
+
|
|
254
|
+
### SSO_AUDIENCE
|
|
255
|
+
|
|
256
|
+
Audience (Clients) which are allowed to use JWT tokens. This parameter is optional. If it is not set, no check against the JWT token will be performed.
|
|
257
|
+
|
|
258
|
+
Sample:
|
|
259
|
+
|
|
260
|
+
*SSO_AUDIENCE=gihub, jira*
|
|
261
|
+
|
|
262
|
+
### SSO_ISSUER
|
|
263
|
+
|
|
264
|
+
Issuer (SSO Server) of the JWT tokens.
|
|
265
|
+
|
|
266
|
+
Sample:
|
|
267
|
+
|
|
268
|
+
*SSO_ISSUER=https://sso.mydomain.io/auth/realms/itsmproxy*
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
## Logging
|
|
272
|
+
|
|
273
|
+
### Loglevel
|
|
274
|
+
|
|
275
|
+
Loglevel of the api. Defaults to *error*
|
|
276
|
+
|
|
277
|
+
# GUI
|
|
278
|
+
|
|
279
|
+
## SMILEconnect
|
|
280
|
+
|
|
281
|
+
### REACT_APP_API_URL
|
|
282
|
+
|
|
283
|
+
The URL where the api is deployed.
|
|
284
|
+
|
|
285
|
+
Sample:
|
|
286
|
+
*REACT_APP_API_URL=https://sc-api.mydomain.io/*
|
|
287
|
+
###
|
|
288
|
+
|
|
289
|
+
Sample:
|
|
290
|
+
*REACT_APP_TOKEN_REFRESHTIME=30*
|
|
291
|
+
|
|
292
|
+
### REACT_APP_EVENTMGR_URL
|
|
293
|
+
|
|
294
|
+
The URL where the eventmanager is deployed.
|
|
295
|
+
|
|
296
|
+
Sample:
|
|
297
|
+
*REACT_APP_EVENTMGR_URL=https://sc-event.mydomain.io/*
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
## SSO
|
|
301
|
+
|
|
302
|
+
### REACT_APP_SSO_URL
|
|
303
|
+
|
|
304
|
+
The URL of the OIDC Provider for user authentication
|
|
305
|
+
|
|
306
|
+
Sample:
|
|
307
|
+
*REACT_APP_SSO_URL=https://sso.mydomain.io/auth/realms/itsmproxy*
|
|
308
|
+
|
|
309
|
+
## GUI
|
|
310
|
+
|
|
311
|
+
### REACT_APP_GUI_URL
|
|
312
|
+
|
|
313
|
+
The Baseurl where the GUI is deployed.
|
|
314
|
+
|
|
315
|
+
Sample:
|
|
316
|
+
*REACT_APP_GUI_URL=https://sc-gui.mydomain.io/*
|
|
317
|
+
|
|
318
|
+
### REACT_APP_WIZZARD_URL
|
|
319
|
+
|
|
320
|
+
Url of the Midtier Appwizzard.
|
|
321
|
+
|
|
322
|
+
Sample:
|
|
323
|
+
*REACT_APP_WIZZARD_URL=https://midtier.mydomain.io/arsys/forms/arserver/MYS:SMILEconnect_NewVendor*
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
subtitle: All events created / processed by the event manager
|
|
5
|
-
use-site-title: true
|
|
6
|
-
---
|
|
1
|
+
# Events
|
|
2
|
+
|
|
3
|
+
The following events are generated by API and can be used to react on.
|
|
7
4
|
|
|
8
5
|
# Change
|
|
9
6
|
|
|
10
7
|
* CHG_Query
|
|
11
8
|
|
|
12
|
-
* CHG_Created
|
|
9
|
+
* CHG_Created
|
|
10
|
+
|
|
11
|
+
* CHG_Modified
|
|
12
|
+
|
|
13
|
+
* CHG_Worklog_Created
|
|
13
14
|
|
|
14
15
|
# Incident
|
|
15
16
|
|
|
16
|
-
*
|
|
17
|
+
* INC_Query
|
|
17
18
|
|
|
18
19
|
* INC_Created
|
|
19
20
|
|
|
20
21
|
* INC_Modified
|
|
21
22
|
|
|
23
|
+
* INC_Worklog_Created
|
|
24
|
+
|
|
22
25
|
# CMDB
|
|
23
26
|
|
|
24
27
|
* CMDB_Query
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Field Mappings
|
|
2
|
+
|
|
3
|
+
Field mappings are used to map Remedy Field names to more appropriate REST-API names. We suggest that you remove spaces and use camel case notation. E.g. The remedy field *Remedy Login ID* could be mapped to *userId*.
|
|
4
|
+
|
|
5
|
+
Field mappings used globally for all clients.
|
|
6
|
+
|
|
7
|
+
Mappings are stored in the /conf/mapping.json file. They can be managed in the GUI.
|
|
8
|
+
|
|
9
|
+
## Manage field mappings
|
|
10
|
+
|
|
11
|
+

|
|
12
|
+
|
|
13
|
+
## Sample client config
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
"cmdbobject":[
|
|
19
|
+
{"oldName":"Instance Id", "newName" : "id"},
|
|
20
|
+
{"oldName":"Tag Number", "newName" : "tagNumber"},
|
|
21
|
+
{"oldName":"Name", "newName" : "name"},
|
|
22
|
+
{"oldName":"AssetLifecycleStatus", "newName" : "assetlifecycleStatus"},
|
|
23
|
+
{"oldName":"Category", "newName" : "category"},
|
|
24
|
+
{"oldName":"Item", "newName" : "item"},
|
|
25
|
+
{"oldName":"Type", "newName" : "type"},
|
|
26
|
+
{"oldName":"Availability", "newName" : "availability"},
|
|
27
|
+
{"oldName":"Confidentiality", "newName" : "confidentiality"},
|
|
28
|
+
{"oldName":"Integrity", "newName" : "integrity"},
|
|
29
|
+
{"oldName":"Authenticity", "newName" : "authenticity"},
|
|
30
|
+
{"oldName":"Model Number", "newName" : "model"},
|
|
31
|
+
{"oldName":"Class Id", "newName" : "classId"},
|
|
32
|
+
{"oldName":"Reconciliation Identity", "newName" : "reconId"}
|
|
33
|
+
],
|
|
34
|
+
"change":[
|
|
35
|
+
{"oldName":"Infrastructure Change ID", "newName" : "id"},
|
|
36
|
+
{"oldName":"Categorization Tier 1", "newName" : "opsCat1"},
|
|
37
|
+
{"oldName":"Categorization Tier 2", "newName" : "opsCat2"},
|
|
38
|
+
{"oldName":"Categorization Tier 3", "newName" : "opsCat3"},
|
|
39
|
+
{"oldName":"Product Cat Tier 1", "newName" : "prodCat1"},
|
|
40
|
+
{"oldName":"Product Cat Tier 2", "newName" : "prodCat2"},
|
|
41
|
+
{"oldName":"Product Cat Tier 3", "newName" : "prodCat3"},
|
|
42
|
+
{"oldName":"Product Name (2)", "newName" : "productName"},
|
|
43
|
+
{"oldName":"Description", "newName" : "summary"},
|
|
44
|
+
{"oldName":"Detailed Description", "newName" : "detailedDescription"},
|
|
45
|
+
{"oldName":"Status Reason", "newName" : "statusReason"},
|
|
46
|
+
{"oldName":"Change Request Status", "newName" : "status"},
|
|
47
|
+
{"oldName":"Requested Start Date", "newName" : "requestedStartDate"},
|
|
48
|
+
{"oldName":"Requested End Date", "newName" : "requestedEndDate"},
|
|
49
|
+
{"oldName":"Scheduled Start Date", "newName" : "scheduledStartDate"},
|
|
50
|
+
{"oldName":"Scheduled End Date", "newName" : "scheduledEndDate"},
|
|
51
|
+
{"oldName":"Support Group ID", "newName" : "managerGroup"},
|
|
52
|
+
{"oldName":"Support Group ID 2", "newName" : "coordinatorGroup"},
|
|
53
|
+
{"oldName":"Customer Person ID", "newName" : "customerId"}
|
|
54
|
+
],
|
|
55
|
+
"newChange":[
|
|
56
|
+
{"oldName":"Description", "newName" : "summary"},
|
|
57
|
+
{"oldName":"TemplateID", "newName" : "template"}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
```
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
layout: page
|
|
3
|
-
title: Attachments
|
|
4
|
-
subtitle: In this guide we'll show you how to save and read attachments from worklogs.
|
|
5
|
-
use-site-title: true
|
|
6
|
-
gh-badge: [star, fork, follow]
|
|
7
|
-
gh-repo: daattali/beautiful-jekyll
|
|
8
|
-
---
|
|
1
|
+
# Attachments
|
|
9
2
|
|
|
10
3
|
In this guide we'll show you how to save and read attachments from worklogs.
|
|
11
4
|
|
|
@@ -14,7 +7,7 @@ In this guide we'll show you how to save and read attachments from worklogs.
|
|
|
14
7
|
|
|
15
8
|
To store an attachment you first need to create a worklog. The worklog contains an attachment url:
|
|
16
9
|
|
|
17
|
-
|
|
10
|
+
```json
|
|
18
11
|
{
|
|
19
12
|
"data": {
|
|
20
13
|
"summary": "Implementation update",
|
|
@@ -30,7 +23,7 @@ To store an attachment you first need to create a worklog. The worklog contains
|
|
|
30
23
|
}
|
|
31
24
|
]
|
|
32
25
|
}
|
|
33
|
-
|
|
26
|
+
```
|
|
34
27
|
|
|
35
28
|
This URL will be used to upload or download the attachment.
|
|
36
29
|
|
|
@@ -70,11 +63,11 @@ Provide the attachment as application/x-www-form-urlencoded with the key "file".
|
|
|
70
63
|
|
|
71
64
|
### Sample Response
|
|
72
65
|
|
|
73
|
-
POST:https://*api-fqdn*/v1/incidents/INC000000000217/worklogs/WLG000000001240/attachment
|
|
66
|
+
POST: https://*api-fqdn*/v1/incidents/INC000000000217/worklogs/WLG000000001240/attachment
|
|
74
67
|
|
|
75
|
-
|
|
68
|
+
```json
|
|
76
69
|
"['WLG000000001240':'success']"
|
|
77
|
-
|
|
70
|
+
```
|
|
78
71
|
|
|
79
72
|
### Postman Sample Request / Response
|
|
80
73
|

|
|
@@ -108,6 +101,6 @@ Use your [API Token](token.md)
|
|
|
108
101
|
|
|
109
102
|
### Sample Response
|
|
110
103
|
|
|
111
|
-
GET:https://*api-fqdn*/v1/incidents/INC000000000217/worklogs/WLG000000000533/attachment
|
|
104
|
+
GET: https://*api-fqdn*/v1/incidents/INC000000000217/worklogs/WLG000000000533/attachment
|
|
112
105
|
|
|
113
|
-
The file will be returned as application/octet-stream. The filename will be returned in the header Content-disposition. e.g. attachment; filename=90502081_l.jpg
|
|
106
|
+
The file will be returned as application/octet-stream. The filename will be returned in the header Content-disposition. e.g. attachment; filename=90502081_l.jpg
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
layout: page
|
|
3
|
-
title: Access CMDBObjects
|
|
4
|
-
subtitle: In this guide you will learn to do the basic operations with an CMDB Objects.
|
|
5
|
-
use-site-title: true
|
|
6
|
-
gh-badge: [star, fork, follow]
|
|
7
|
-
gh-repo: daattali/beautiful-jekyll
|
|
1
|
+
CMDBObjects
|
|
8
2
|
---
|
|
9
3
|
|
|
10
4
|
# Read a CMDBObject
|
|
@@ -31,13 +25,13 @@ To read a cmdbobject you need to do a GET request to the /v1/cmdbobjects/*id* en
|
|
|
31
25
|
|
|
32
26
|
*Type*: Bearer
|
|
33
27
|
|
|
34
|
-
Use your [API Token](token.md)
|
|
28
|
+
Use your [API Token](howto/token.md)
|
|
35
29
|
|
|
36
30
|
### Sample Response
|
|
37
31
|
|
|
38
|
-
GET:https://*api-fqdn*/v1/cmdbobjects/AGGarserver000PMIYWAPL1SMUB5AZ
|
|
32
|
+
GET: https://*api-fqdn*/v1/cmdbobjects/AGGarserver000PMIYWAPL1SMUB5AZ
|
|
39
33
|
|
|
40
|
-
|
|
34
|
+
```json
|
|
41
35
|
{
|
|
42
36
|
"data": {
|
|
43
37
|
"id": "AGGarserver000PMIYWAPL1SMUB5AZ",
|
|
@@ -265,7 +259,7 @@ GET:https://*api-fqdn*/v1/cmdbobjects/AGGarserver000PMIYWAPL1SMUB5AZ
|
|
|
265
259
|
]
|
|
266
260
|
}
|
|
267
261
|
}
|
|
268
|
-
|
|
262
|
+
```
|
|
269
263
|
|
|
270
264
|
# Search for CMDBObjects
|
|
271
265
|
|
|
@@ -289,7 +283,7 @@ To search for objects do a POST to the /v1/cmdbobjects/search endpoint of your A
|
|
|
289
283
|
|
|
290
284
|
*Type*: Bearer
|
|
291
285
|
|
|
292
|
-
Use your [API Token](token.md)
|
|
286
|
+
Use your [API Token](howto/token.md)
|
|
293
287
|
|
|
294
288
|
### Body
|
|
295
289
|
|
|
@@ -297,9 +291,9 @@ Provide the searchString you want to use
|
|
|
297
291
|
|
|
298
292
|
### Sample Request
|
|
299
293
|
|
|
300
|
-
POST:https://*api-fqdn*/v1/cmdbobjects/search
|
|
294
|
+
POST: https://*api-fqdn*/v1/cmdbobjects/search
|
|
301
295
|
|
|
302
|
-
|
|
296
|
+
```json
|
|
303
297
|
{
|
|
304
298
|
"searchString":"'name' LIKE \"Computer%\"",
|
|
305
299
|
"getRelations":true,
|
|
@@ -315,11 +309,11 @@ POST:https://*api-fqdn*/v1/cmdbobjects/search
|
|
|
315
309
|
"limit": 100,
|
|
316
310
|
"offset": 4
|
|
317
311
|
}
|
|
318
|
-
|
|
312
|
+
```
|
|
319
313
|
|
|
320
314
|
### Sample Response
|
|
321
315
|
|
|
322
|
-
|
|
316
|
+
```json
|
|
323
317
|
{
|
|
324
318
|
"data": [
|
|
325
319
|
{
|
|
@@ -336,4 +330,4 @@ POST:https://*api-fqdn*/v1/cmdbobjects/search
|
|
|
336
330
|
],
|
|
337
331
|
"included": {}
|
|
338
332
|
}
|
|
339
|
-
|
|
333
|
+
```
|
package/docs/howto/incidents.md
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
layout: page
|
|
3
|
-
title: Incident handling
|
|
4
|
-
subtitle: In this guide you will learn to do the basic operations with an incident.
|
|
5
|
-
use-site-title: true
|
|
6
|
-
gh-badge: [star, fork, follow]
|
|
7
|
-
gh-repo: daattali/beautiful-jekyll
|
|
8
|
-
---
|
|
1
|
+
# Incdent Requests
|
|
9
2
|
|
|
10
|
-
In this guide we model the full lifecylce of a simple inbound API that delivers Incidents into your system. First we'll create one. We will then read it again and later resolve it.
|
|
3
|
+
In this guide we model the full lifecylce of a simple inbound API that delivers Incidents into your system. First we'll create one. We will then read it again and later resolve it.
|
|
11
4
|
|
|
12
5
|
# Create an Incident
|
|
13
6
|
|
|
@@ -39,20 +32,20 @@ Provide all your needed incident data (see mapping -> new Incident) within the *
|
|
|
39
32
|
|
|
40
33
|
### Sample Request
|
|
41
34
|
|
|
42
|
-
POST:https://*api-fqdn*/v1/incidents
|
|
35
|
+
POST: https://*api-fqdn*/v1/incidents
|
|
43
36
|
|
|
44
|
-
|
|
37
|
+
```json
|
|
45
38
|
{
|
|
46
39
|
"data": {
|
|
47
40
|
"summary": "New Incident",
|
|
48
41
|
"detailedDescription": "Here are the details"
|
|
49
42
|
}
|
|
50
43
|
}
|
|
51
|
-
|
|
44
|
+
```
|
|
52
45
|
|
|
53
46
|
### Sample Response
|
|
54
47
|
|
|
55
|
-
|
|
48
|
+
```json
|
|
56
49
|
{
|
|
57
50
|
"data": {
|
|
58
51
|
"id": "INC000000000217",
|
|
@@ -91,7 +84,7 @@ POST:https://*api-fqdn*/v1/incidents
|
|
|
91
84
|
]
|
|
92
85
|
}
|
|
93
86
|
}
|
|
94
|
-
|
|
87
|
+
```
|
|
95
88
|
|
|
96
89
|
# Read an Incident
|
|
97
90
|
|
|
@@ -121,9 +114,9 @@ Use your [API Token](token.md)
|
|
|
121
114
|
|
|
122
115
|
### Sample Response
|
|
123
116
|
|
|
124
|
-
GET:https://*api-fqdn*/v1/incidents/INC000000000217
|
|
117
|
+
GET: https://*api-fqdn*/v1/incidents/INC000000000217
|
|
125
118
|
|
|
126
|
-
|
|
119
|
+
```
|
|
127
120
|
{
|
|
128
121
|
"data": {
|
|
129
122
|
"id": "INC000000000217",
|
|
@@ -162,7 +155,7 @@ GET:https://*api-fqdn*/v1/incidents/INC000000000217
|
|
|
162
155
|
]
|
|
163
156
|
}
|
|
164
157
|
}
|
|
165
|
-
|
|
158
|
+
```
|
|
166
159
|
|
|
167
160
|
# Update an Incident
|
|
168
161
|
|
|
@@ -196,21 +189,21 @@ Provide all the attributes you want to update.
|
|
|
196
189
|
|
|
197
190
|
### Sample Request
|
|
198
191
|
|
|
199
|
-
PUT:https://*api-fqdn*/v1/incidents/INC000000000217
|
|
192
|
+
PUT: https://*api-fqdn*/v1/incidents/INC000000000217
|
|
200
193
|
|
|
201
|
-
|
|
194
|
+
```json
|
|
202
195
|
{
|
|
203
196
|
"data": {
|
|
204
197
|
"status": "Resolved",
|
|
205
|
-
"statusReason" : "No Further Action Required",
|
|
198
|
+
"statusReason" : "No Further Action Required",
|
|
206
199
|
"resolution": "Please restart your computer."
|
|
207
200
|
}
|
|
208
201
|
}
|
|
209
|
-
|
|
202
|
+
```
|
|
210
203
|
|
|
211
204
|
### Sample Response
|
|
212
205
|
|
|
213
|
-
|
|
206
|
+
```
|
|
214
207
|
{
|
|
215
208
|
"data": {
|
|
216
209
|
"id": "INC000000000217",
|
|
@@ -241,4 +234,4 @@ PUT:https://*api-fqdn*/v1/incidents/INC000000000217
|
|
|
241
234
|
},
|
|
242
235
|
"included": {}
|
|
243
236
|
}
|
|
244
|
-
|
|
237
|
+
```
|