/
urls.go
695 lines (569 loc) · 20.2 KB
/
urls.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
/*************************************************************************
* Copyright 2021 Gravwell, Inc. All rights reserved.
* Contact: <legal@gravwell.io>
*
* This software may be modified and distributed under the terms of the
* BSD 2-clause license. See the LICENSE file for details.
**************************************************************************/
package client
import (
"fmt"
"path"
"github.com/google/uuid"
)
const (
// login field names
USER_FIELD string = "User"
PASS_FIELD string = "Pass"
// API paths
LOGIN_URL = `/api/login`
LOGOUT_URL = `/api/logout`
TEMP_TOKEN_URL = `/api/login/tmptoken`
REFRESH_TOKEN_URL = `/api/login/refreshtoken`
USER_INFO_URL = `/api/info/whoami`
DESC_URL = `/api/stats/sysDesc`
STATE_URL = `/api/stats/ping`
STATS_URL = `/api/stats/sysStats`
IDX_URL = `/api/stats/idxStats`
INGESTER_URL = `/api/stats/igstStats`
WELLS_URL = `/api/stats/wellStats`
STORAGE_URL = `/api/stats/storage/indexers`
STORAGE_INDEXER_URL = `/api/stats/storage/indexer/%s/wells`
CALENDAR_URL = `/api/stats/storage/calendar`
CALENDAR_INDEXER_URL = `/api/stats/storage/indexer/%s/calendar`
ADD_USER_URL = `/api/users`
USERS_LIST_URL = `/api/users`
USERS_INFO_URL = `/api/users/%d`
USERS_LOCK_URL = `/api/users/%d/lock`
USERS_LOCKED_URL = `/api/users/%d/locked`
USERS_DASHBOARD_URL = `/api/users/%d/dashboards`
USERS_MACROS_URL = `/api/users/%d/macros`
USERS_PREFS_URL = `/api/users/%d/preferences`
USERS_ALL_PREFS_URL = `/api/users/preferences`
USERS_ADMIN_URL = `/api/users/%d/admin`
USERS_ADMIN_SU_PATH = `/api/users/su/%d`
USER_SESSIONS_URL = `/api/users/%d/sessions`
CHANGE_PASS_URL = `/api/users/%d/pwd`
USERS_GROUP_URL = `/api/users/%d/group`
USERS_GROUP_ID_URL = `/api/users/%d/group/%d`
USERS_SEARCH_GROUP_URL = `/api/users/%d/searchgroup`
WS_STAT_URL = `/api/ws/stats`
WS_SEARCH_URL = `/api/ws/search`
WS_ATTACH_URL = `/api/ws/attach/%s`
PARSE_URL = `/api/parse`
API_VERSION_URL = `/api/version`
GROUP_ID_URL = `/api/groups/%d`
GROUP_MEMBERS_URL = `/api/groups/%d/members`
GROUP_DASHBOARD_URL = `/api/groups/%d/dashboards`
GROUP_MACROS_URL = `/api/groups/%d/macros`
GROUP_URL = `/api/groups`
SEARCH_PARS_URL = `/api/parse`
SEARCH_CTRL_LIST_URL = `/api/searchctrl`
SEARCH_CTRL_LIST_DETAILS_URL = `/api/searchctrl/details`
SEARCH_CTRL_LIST_ALL_URL = `/api/searchctrl/all`
SEARCH_PARSE_URL = `/api/parse`
SEARCH_CTRL_URL = `/api/searchctrl/%s`
SEARCH_CTRL_ATTACH_URL = `/api/searchctrl/%s/attach`
SEARCH_CTRL_DETAILS = `/api/searchctrl/%s/details`
SEARCH_CTRL_BACKGROUND_URL = `/api/searchctrl/%s/background`
SEARCH_CTRL_GROUP_URL = `/api/searchctrl/%s/group`
SEARCH_CTRL_SAVE_URL = `/api/searchctrl/%s/save`
SEARCH_CTRL_STOP_URL = `/api/searchctrl/%s/stop`
SEARCH_CTRL_DOWNLOAD_URL = `/api/searchctrl/%s/download/%s`
SEARCH_CTRL_PING_URL = `/api/searchctrl/%s/ping`
SEARCH_CTRL_DETACH_URL = `/api/searchctrl/%s/detach`
SEARCH_CTRL_STATS_URL = `/api/searchctrl/%s/stats`
SEARCH_CTRL_STATS_OVERVIEW_URL = `/api/searchctrl/%s/stats/overview`
SEARCH_CTRL_STATS_METADATA_URL = `/api/searchctrl/%s/stats/metadata`
SEARCH_CTRL_EXPLORE_URL = `/api/searchctrl/%s/renderer/%s/explore`
SEARCH_CTRL_ENTRIES_URL = `/api/searchctrl/%s/renderer/%s`
SEARCH_CTRL_IMPORT_URL = `/api/searchctrl/import`
SEARCH_CTRL_LAUNCH_URL = `/api/searchctrl/launch`
SEARCH_HISTORY_URL = `/api/searchhistory/%s/%d`
NOTIFICATIONS_URL = `/api/notifications`
NOTIFICATIONS_ID_URL = `/api/notifications/%d`
NOTIFICATIONS_SELF_TARGETED_URL = `/api/notifications/targeted/self`
LOGGING_PATH_URL = `/api/logging`
TEST_URL = `/api/test`
TEST_AUTH_URL = `/api/testauth`
DASHBOARD_URL = `/api/dashboards/%v`
DASHBOARD_MY_URL = `/api/dashboards`
DASHBOARD_ALL_URL = `/api/dashboards/all`
DASHBOARD_CLONE_URL = `/api/dashboards/%d/clone`
MACROS_URL = `/api/macros`
MACROS_ALL_URL = `/api/macros/all`
MACROS_ID_URL = `/api/macros/%d`
LICENSE_INFO_URL = `/api/license`
LICENSE_SKU_URL = `/api/license/sku`
LICENSE_SERIAL_URL = `/api/license/serial`
LICENSE_UPDATE_URL = `/api/license/update`
RESOURCES_LIST_URL = "/api/resources"
RESOURCES_GUID_URL = "/api/resources/%s"
RESOURCES_GUID_RAW_URL = "/api/resources/%s/raw"
RESOURCES_GUID_CLONE_URL = "/api/resources/%s/clone"
RESOURCES_LOOKUP_URL = "/api/resources/lookup/%s"
SCHEDULED_SEARCH_URL = "/api/scheduledsearches"
SCHEDULED_SEARCH_ALL_URL = "/api/scheduledsearches/all"
SCHEDULED_SEARCH_ID_URL = "/api/scheduledsearches/%v"
SCHEDULED_SEARCH_RESULTS_ID_URL = "/api/scheduledsearches/%d/results"
SCHEDULED_SEARCH_ERROR_ID_URL = "/api/scheduledsearches/%d/error"
SCHEDULED_SEARCH_STATE_ID_URL = "/api/scheduledsearches/%d/state"
SCHEDULED_SEARCH_CANCEL_ID_URL = "/api/scheduledsearches/%d/cancel"
SCHEDULED_SEARCH_USER_URL = "/api/scheduledsearches/user/%d"
SCHEDULED_SEARCH_CHECKIN_URL = "/api/scheduledsearches/checkin"
SCHEDULED_SEARCH_PARSE = "/api/scheduledsearches/parse"
FLOW_URL = "/api/flows"
FLOW_ID_URL = "/api/flows/%v"
FLOW_RESULTS_ID_URL = "/api/flows/%d/results"
FLOW_ERROR_ID_URL = "/api/flows/%d/error"
FLOW_STATE_ID_URL = "/api/flows/%d/state"
FLOW_CANCEL_ID_URL = "/api/flows/%d/cancel"
FLOW_USER_URL = "/api/flows/user/%d"
FLOW_PARSE_URL = "/api/flows/parse"
MAIL_URL = "/api/mail"
MAIL_CONFIGURE_URL = `/api/mail/configure`
JSON_INGEST_URL = "/api/ingest/json"
LINES_INGEST_URL = "/api/ingest/lines"
INTERNAL_INGEST_URL = "/api/ingest/internal"
TEST_INGEST_URL = "/api/ingest/test"
TAGS_URL = "/api/tags"
INDEXER_MANAGE_ADD_URL = "/api/indexer/manage/add"
KIT_URL = `/api/kits`
KIT_ID_URL = `/api/kits/%s`
KIT_BUILD_URL = `/api/kits/build`
KIT_BUILD_ID_URL = `/api/kits/build/%s`
KIT_STATUS_URL = `/api/kits/status`
KIT_STATUS_ID_URL = `/api/kits/status/%s`
KIT_REMOTE_LIST_URL = `/api/kits/remote/list`
KIT_REMOTE_LIST_ALL_URL = `/api/kits/remote/list/all`
KIT_BUILD_HISTORY_URL = `/api/kits/build/history`
KIT_BUILD_HISTORY_ID_URL = `/api/kits/build/history/%s`
EXTRACTORS_URL = `/api/autoextractors`
EXTRACTORS_UPLOAD_URL = `/api/autoextractors/upload`
EXTRACTORS_TEST_URL = `/api/autoextractors/test`
EXTRACTORS_ID_URL = `/api/autoextractors/%s`
EXTRACTORS_SYNC_URL = `/api/autoextractors/sync`
EXTRACTORS_ENGINES_URL = `/api/autoextractors/engines`
EXPLORE_GENERATE_URL = `/api/explore/generate`
TEMPLATES_URL = "/api/templates"
TEMPLATES_ID_URL = "/api/templates/%s"
TEMPLATES_ID_DETAILS_URL = "/api/templates/%s/details"
PIVOTS_URL = "/api/pivots"
PIVOTS_ID_URL = "/api/pivots/%s"
PIVOTS_ID_DETAILS_URL = "/api/pivots/%s/details"
USER_FILES_URL = "/api/files"
USER_FILES_ID_URL = "/api/files/%s"
USER_FILES_ID_DETAILS_URL = "/api/files/%s/details"
LIBRARY_URL = "/api/library"
LIBRARY_ID_URL = "/api/library/%s"
LIBS_URL = `/api/libs`
CAPABILITY_LIST_URL = `/api/info/capabilities`
CAPABILITY_TEMPLATE_LIST_URL = `/api/info/capabilities/templates`
CAPABILITY_CURRENT_USER_LIST_URL = `/api/info/capabilities/my`
CAPABILITY_CURRENT_USER_WHY_URL = `/api/info/capabilities/why`
CAPABILITY_USER_URL = `/api/users/%d/capabilities`
CAPABILITY_USER_WHY_URL = `/api/users/%d/capabilities/why`
CAPABILITY_GROUP_URL = `/api/groups/%d/capabilities`
GROUP_TAG_ACCESS_URL = `/api/groups/%d/tags`
USER_TAG_ACCESS_URL = `/api/users/%d/tags`
PLAYBOOKS_URL = `/api/playbooks`
PLAYBOOKS_ID_URL = `/api/playbooks/%s`
BACKUP_URL = `/api/backup`
DEPLOYMENT_URL = `/api/deployment`
TOKENS_URL = `/api/tokens`
TOKENS_ID_URL = `/api/tokens/%s`
TOKENS_CAPABILITIES_URL = `/api/tokens/capabilities`
SECRETS_URL = `/api/secrets`
SECRETS_ID_URL = `/api/secrets/%s`
SECRETS_ID_DETAILS_URL = `/api/secrets/%s/details`
SECRETS_ID_FULL_URL = `/api/secrets/%s/full`
SETTINGS_URL = `/api/settings`
INGESTERS_TRACKING_URL = `/api/ingesters/%s/tracking`
CBAC_DEFAULT_URL = `/api/cbac/default`
CBAC_DEFAULT_CAPABILITIES_URL = `/api/cbac/default/capabilities`
CBAC_DEFAULT_TAGS_URL = `/api/cbac/default/tags`
ALERTS_URL = `/api/alerts`
ALERTS_ID_URL = `/api/alerts/%s`
ALERTS_ID_SAMPLE_URL = `/api/alerts/%s/sample`
ALERTS_VALIDATE_DISPATCHER_URL = `/api/alerts/validate/dispatcher`
ALERTS_VALIDATE_CONSUMER_URL = `/api/alerts/validate/consumer`
// Special APIs for installing licenses
LICENSE_INIT_UPLOAD = `/license`
LICENSE_INIT_STATUS = `/license/status`
)
func lockUrl(id int32) string {
return fmt.Sprintf(USERS_LOCK_URL, id)
}
func lockedUrl(id int32) string {
return fmt.Sprintf(USERS_LOCKED_URL, id)
}
func usersAdminUrl(id int32) string {
return fmt.Sprintf(USERS_ADMIN_URL, id)
}
func usersAdminImpersonate(id int32) string {
return fmt.Sprintf(USERS_ADMIN_SU_PATH, id)
}
func usersInfoUrl(id int32) string {
return fmt.Sprintf(USERS_INFO_URL, id)
}
func usersChangePassUrl(id int32) string {
return fmt.Sprintf(CHANGE_PASS_URL, id)
}
func usersGroupUrl(uid int32) string {
return fmt.Sprintf(USERS_GROUP_URL, uid)
}
func usersGroupIdUrl(uid, gid int32) string {
return fmt.Sprintf(USERS_GROUP_ID_URL, uid, gid)
}
func usersSearchGroupUrl(uid int32) string {
return fmt.Sprintf(USERS_SEARCH_GROUP_URL, uid)
}
func searchHistoryUrl(action string, id int32) string {
return fmt.Sprintf(SEARCH_HISTORY_URL, action, id)
}
func groupUrl() string {
return GROUP_URL
}
func groupIdUrl(gid int32) string {
return fmt.Sprintf(GROUP_ID_URL, gid)
}
func groupMembersUrl(gid int32) string {
return fmt.Sprintf(GROUP_MEMBERS_URL, gid)
}
func dashboardUrl(id uint64) string {
return fmt.Sprintf(DASHBOARD_URL, id)
}
func dashboardUrlString(id string) string {
return fmt.Sprintf(DASHBOARD_URL, id)
}
func cloneDashboardUrl(id uint64) string {
return fmt.Sprintf(DASHBOARD_CLONE_URL, id)
}
func userDashboardUrl(id int32) string {
return fmt.Sprintf(USERS_DASHBOARD_URL, id)
}
func groupDashboardUrl(id int32) string {
return fmt.Sprintf(GROUP_DASHBOARD_URL, id)
}
func allDashboardUrl() string {
return DASHBOARD_ALL_URL
}
func addDashboardUrl() string {
return DASHBOARD_MY_URL
}
func myDashboardUrl() string {
return DASHBOARD_MY_URL
}
func allUsersUrl() string {
return USERS_LIST_URL
}
func searchCtrlBackgroundUrl(id string) string {
return fmt.Sprintf(SEARCH_CTRL_BACKGROUND_URL, id)
}
func searchCtrlGroupUrl(id string) string {
return fmt.Sprintf(SEARCH_CTRL_GROUP_URL, id)
}
func searchCtrlSaveUrl(id string) string {
return fmt.Sprintf(SEARCH_CTRL_SAVE_URL, id)
}
func searchCtrlDownloadUrl(id, format string) string {
return fmt.Sprintf(SEARCH_CTRL_DOWNLOAD_URL, id, format)
}
func searchCtrlStopUrl(id string) string {
return fmt.Sprintf(SEARCH_CTRL_STOP_URL, id)
}
func searchCtrlImportUrl() string {
return SEARCH_CTRL_IMPORT_URL
}
func searchCtrlListDetailsUrl() string {
return SEARCH_CTRL_LIST_DETAILS_URL
}
func searchCtrlIdUrl(id string) string {
return fmt.Sprintf(SEARCH_CTRL_URL, id)
}
func searchCtrlDetailsUrl(id string) string {
return fmt.Sprintf(SEARCH_CTRL_DETAILS, id)
}
func sessionsUrl(id int32) string {
return fmt.Sprintf(USER_SESSIONS_URL, id)
}
func preferencesUrl(id int32) string {
return fmt.Sprintf(USERS_PREFS_URL, id)
}
func allPreferencesUrl() string {
return USERS_ALL_PREFS_URL
}
func notificationsUrl(id uint64) string {
if id == 0 {
return NOTIFICATIONS_URL
} else {
return fmt.Sprintf(NOTIFICATIONS_ID_URL, id)
}
}
func notificationsSelfTargetedUrl() string {
return NOTIFICATIONS_SELF_TARGETED_URL
}
func licenseInfoUrl() string {
return LICENSE_INFO_URL
}
func licenseSKUUrl() string {
return LICENSE_SKU_URL
}
func licenseSerialUrl() string {
return LICENSE_SERIAL_URL
}
func licenseUpdateUrl() string {
return LICENSE_UPDATE_URL
}
func resourcesUrl() string {
return RESOURCES_LIST_URL
}
func resourcesGuidUrl(guid string) string {
return fmt.Sprintf(RESOURCES_GUID_URL, guid)
}
func resourcesGuidRawUrl(guid string) string {
return fmt.Sprintf(RESOURCES_GUID_RAW_URL, guid)
}
func resourcesLookupUrl(name string) string {
return fmt.Sprintf(RESOURCES_LOOKUP_URL, name)
}
func resourcesCloneUrl(guid string) string {
return fmt.Sprintf(RESOURCES_GUID_CLONE_URL, guid)
}
func scheduledSearchUrl() string {
return SCHEDULED_SEARCH_URL
}
func scheduledSearchParseUrl() string {
return SCHEDULED_SEARCH_PARSE
}
func scheduledSearchAllUrl() string {
return SCHEDULED_SEARCH_ALL_URL
}
func scheduledSearchIdUrl(id interface{}) string {
return fmt.Sprintf(SCHEDULED_SEARCH_ID_URL, id)
}
func scheduledSearchResultsIdUrl(id int32) string {
return fmt.Sprintf(SCHEDULED_SEARCH_RESULTS_ID_URL, id)
}
func scheduledSearchErrorIdUrl(id int32) string {
return fmt.Sprintf(SCHEDULED_SEARCH_ERROR_ID_URL, id)
}
func scheduledSearchStateIdUrl(id int32) string {
return fmt.Sprintf(SCHEDULED_SEARCH_STATE_ID_URL, id)
}
func scheduledSearchCancelIdUrl(id int32) string {
return fmt.Sprintf(SCHEDULED_SEARCH_CANCEL_ID_URL, id)
}
func scheduledSearchUserUrl(uid int32) string {
return fmt.Sprintf(SCHEDULED_SEARCH_USER_URL, uid)
}
func scheduledSearchCheckinUrl() string {
return SCHEDULED_SEARCH_CHECKIN_URL
}
func flowUrl() string {
return FLOW_URL
}
func flowParseUrl() string {
return FLOW_PARSE_URL
}
func flowIdUrl(id interface{}) string {
return fmt.Sprintf(FLOW_ID_URL, id)
}
func flowResultsIdUrl(id int32) string {
return fmt.Sprintf(FLOW_RESULTS_ID_URL, id)
}
func flowErrorIdUrl(id int32) string {
return fmt.Sprintf(FLOW_ERROR_ID_URL, id)
}
func flowStateIdUrl(id int32) string {
return fmt.Sprintf(FLOW_STATE_ID_URL, id)
}
func flowCancelIdUrl(id int32) string {
return fmt.Sprintf(FLOW_CANCEL_ID_URL, id)
}
func flowUserUrl(uid int32) string {
return fmt.Sprintf(FLOW_USER_URL, uid)
}
func loggingUrl() string {
return LOGGING_PATH_URL
}
func loggingAccessUrl() string {
return path.Join(LOGGING_PATH_URL, "access")
}
func loggingInfoUrl() string {
return path.Join(LOGGING_PATH_URL, "info")
}
func loggingWarnUrl() string {
return path.Join(LOGGING_PATH_URL, "warn")
}
func loggingErrorUrl() string {
return path.Join(LOGGING_PATH_URL, "error")
}
func addIndexerUrl() string {
return INDEXER_MANAGE_ADD_URL
}
func wellDataUrl() string {
return WELLS_URL
}
func userMacrosUrl(id int32) string {
return fmt.Sprintf(USERS_MACROS_URL, id)
}
func groupMacrosUrl(id int32) string {
return fmt.Sprintf(GROUP_MACROS_URL, id)
}
func macroUrl(id uint64) string {
return fmt.Sprintf(MACROS_ID_URL, id)
}
func playbookUrl(id uuid.UUID) string {
return fmt.Sprintf(PLAYBOOKS_ID_URL, id)
}
func kitUrl() string {
return KIT_URL
}
func remoteKitUrl(all bool) string {
if all {
return KIT_REMOTE_LIST_ALL_URL
}
return KIT_REMOTE_LIST_URL
}
func kitIdUrl(id string) string {
return fmt.Sprintf(KIT_ID_URL, id)
}
func kitBuildUrl() string {
return KIT_BUILD_URL
}
func kitDownloadUrl(id string) string {
return fmt.Sprintf(KIT_BUILD_ID_URL, id)
}
func kitStatusUrl() string {
return KIT_STATUS_URL
}
func kitStatusIdUrl(id string) string {
return fmt.Sprintf(KIT_STATUS_ID_URL, id)
}
func kitBuildHistoryUrl() string {
return KIT_BUILD_HISTORY_URL
}
func kitDeleteBuildHistoryUrl(id string) string {
return fmt.Sprintf(KIT_BUILD_HISTORY_ID_URL, id)
}
func extractionsUrl() string {
return EXTRACTORS_URL
}
func extractionsUploadUrl() string {
return EXTRACTORS_UPLOAD_URL
}
func extractionsTestUrl() string {
return EXTRACTORS_TEST_URL
}
func extractionIdUrl(id string) string {
return fmt.Sprintf(EXTRACTORS_ID_URL, id)
}
func extractionsSyncUrl() string {
return EXTRACTORS_SYNC_URL
}
func extractionEnginesUrl() string {
return EXTRACTORS_ENGINES_URL
}
func exploreGenerateUrl() string {
return EXPLORE_GENERATE_URL
}
func templatesUrl() string {
return TEMPLATES_URL
}
func templatesGuidUrl(guid uuid.UUID) string {
return fmt.Sprintf(TEMPLATES_ID_URL, guid)
}
func pivotsUrl() string {
return PIVOTS_URL
}
func pivotsGuidUrl(guid uuid.UUID) string {
return fmt.Sprintf(PIVOTS_ID_URL, guid)
}
func userFilesUrl() string {
return USER_FILES_URL
}
func userFilesIdUrl(id uuid.UUID) string {
return fmt.Sprintf(USER_FILES_ID_URL, id)
}
func userFilesIdDetailsUrl(id uuid.UUID) string {
return fmt.Sprintf(USER_FILES_ID_DETAILS_URL, id)
}
func searchLibUrl() string {
return LIBRARY_URL
}
func searchLibIdUrl(id uuid.UUID) string {
return fmt.Sprintf(LIBRARY_ID_URL, id.String())
}
func backupUrl() string {
return BACKUP_URL
}
func deploymentUrl() string {
return DEPLOYMENT_URL
}
func tokensUrl() string {
return TOKENS_URL
}
func tokenIdUrl(id uuid.UUID) string {
return fmt.Sprintf(TOKENS_ID_URL, id.String())
}
func tokenCapabilitiesUrl() string {
return TOKENS_CAPABILITIES_URL
}
func secretsUrl() string {
return SECRETS_URL
}
func secretIdUrl(id uuid.UUID) string {
return fmt.Sprintf(SECRETS_ID_URL, id.String())
}
func secretIdDetailsUrl(id uuid.UUID) string {
return fmt.Sprintf(SECRETS_ID_DETAILS_URL, id.String())
}
func secretIdFullUrl(id uuid.UUID) string {
return fmt.Sprintf(SECRETS_ID_FULL_URL, id.String())
}
func searchLaunchUrl() string {
return SEARCH_CTRL_LAUNCH_URL
}
func searchPingUrl(id string) string {
return fmt.Sprintf(SEARCH_CTRL_PING_URL, id)
}
func searchDetachUrl(id string) string {
return fmt.Sprintf(SEARCH_CTRL_DETACH_URL, id)
}
func searchStatsMetadataUrl(id string) string {
return fmt.Sprintf(SEARCH_CTRL_STATS_METADATA_URL, id)
}
func searchStatsOverviewUrl(id string) string {
return fmt.Sprintf(SEARCH_CTRL_STATS_OVERVIEW_URL, id)
}
func searchStatsUrl(id string) string {
return fmt.Sprintf(SEARCH_CTRL_STATS_URL, id)
}
func searchExploreUrl(id, rndr string) string {
return fmt.Sprintf(SEARCH_CTRL_EXPLORE_URL, id, rndr)
}
func searchEntriesUrl(id, rndr string) string {
return fmt.Sprintf(SEARCH_CTRL_ENTRIES_URL, id, rndr)
}
func searchParseUrl() string {
return SEARCH_PARSE_URL
}
func searchAttachUrl(id string) string {
return fmt.Sprintf(SEARCH_CTRL_ATTACH_URL, id)
}
func alertsUrl() string {
return ALERTS_URL
}
func alertsIdUrl(id uuid.UUID) string {
return fmt.Sprintf(ALERTS_ID_URL, id.String())
}
func alertsIdSampleEventUrl(id uuid.UUID) string {
return fmt.Sprintf(ALERTS_ID_SAMPLE_URL, id.String())
}
func alertsValidateDispatcherUrl() string {
return ALERTS_VALIDATE_DISPATCHER_URL
}
func alertsValidateConsumerUrl() string {
return ALERTS_VALIDATE_CONSUMER_URL
}