-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
dataConnectorDefinitions.json
737 lines (737 loc) · 24.2 KB
/
dataConnectorDefinitions.json
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
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
{
"swagger": "2.0",
"info": {
"title": "Security Insights",
"description": "API spec for Microsoft.SecurityInsights (Azure Security Insights) resource provider",
"version": "2023-07-01-preview"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/dataConnectorDefinitions": {
"get": {
"x-ms-examples": {
"Get all data connector definitions.": {
"$ref": "./examples/dataConnectorDefinitions/GetDataConnectorDefinitions.json"
}
},
"tags": [
"ConnectorDefinitions"
],
"description": "Gets all data connector definitions.",
"operationId": "DataConnectorDefinitions_List",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../common/2.0/types.json#/parameters/WorkspaceName"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/DataConnectorDefinitionArmCollectionWrapper"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/dataConnectorDefinitions/{dataConnectorDefinitionName}": {
"get": {
"x-ms-examples": {
"Get customize data connector definition": {
"$ref": "./examples/dataConnectorDefinitions/GetCustomizableDataConnectoeDefinitionById.json"
}
},
"tags": [
"ConnectorDefinitions"
],
"description": "Gets a data connector definition.",
"operationId": "DataConnectorDefinitions_Get",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../common/2.0/types.json#/parameters/WorkspaceName"
},
{
"$ref": "#/parameters/dataConnectorDefinitionName"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Success",
"schema": {
"$ref": "#/definitions/DataConnectorDefinition"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
},
"put": {
"x-ms-examples": {
"Create data connector definition": {
"$ref": "./examples/dataConnectorDefinitions/CreateCustomizableDataConnectorDefinition.json"
}
},
"tags": [
"ConnectorDefinitions"
],
"description": "Creates or updates the data connector definition.",
"operationId": "DataConnectorDefinitions_CreateOrUpdate",
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../common/2.0/types.json#/parameters/WorkspaceName"
},
{
"$ref": "#/parameters/dataConnectorDefinitionName"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"in": "body",
"name": "connectorDefinitionInput",
"required": true,
"schema": {
"$ref": "#/definitions/DataConnectorDefinition"
},
"description": "The data connector definition",
"x-ms-parameter-location": "method"
}
],
"responses": {
"200": {
"description": "Updated",
"schema": {
"$ref": "#/definitions/DataConnectorDefinition"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/DataConnectorDefinition"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
},
"delete": {
"x-ms-examples": {
"Delete data connector definition": {
"$ref": "./examples/dataConnectorDefinitions/DeleteDataConnectorDefinitionById.json"
}
},
"tags": [
"ConnectorDefinitions"
],
"description": "Delete the data connector definition.",
"operationId": "DataConnectorDefinitions_Delete",
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../common/2.0/types.json#/parameters/WorkspaceName"
},
{
"$ref": "#/parameters/dataConnectorDefinitionName"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "Success"
},
"204": {
"description": "No Content"
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../common/2.0/types.json#/definitions/CloudError"
}
}
}
}
}
},
"definitions": {
"ConnectorDefinitionsAvailability": {
"description": "The exposure status of the connector to the customers.",
"type": "object",
"properties": {
"status": {
"$ref": "#/definitions/AvailabilityStatus"
},
"isPreview": {
"description": "Gets or sets a value indicating whether the connector is preview.",
"type": "boolean"
}
}
},
"AvailabilityStatus": {
"description": "The exposure status of the connector to the customers. Available values are 0-4 (0=None, 1=Available, 2=FeatureFlag, 3=Internal).",
"type": "integer",
"format": "int32"
},
"ConnectivityCriterion": {
"description": "The criteria by which we determine whether the connector is connected or not.\r\nFor Example, use a KQL query to check if the expected data type is flowing).",
"required": [
"type"
],
"type": "object",
"properties": {
"type": {
"description": "Gets or sets the type of connectivity.",
"type": "string"
},
"value": {
"description": "Gets or sets the queries for checking connectivity.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"ConnectorDataType": {
"description": "The data type which is created by the connector,\r\nincluding a query indicated when was the last time that data type was received in the workspace.",
"required": [
"lastDataReceivedQuery",
"name"
],
"type": "object",
"properties": {
"name": {
"description": "Gets or sets the name of the data type to show in the graph.",
"type": "string"
},
"lastDataReceivedQuery": {
"description": "Gets or sets the query to indicate when relevant data was last received in the workspace.",
"type": "string"
}
}
},
"DataConnectorDefinition": {
"allOf": [
{
"$ref": "../../../common/2.0/types.json#/definitions/ResourceWithEtag"
}
],
"required": [
"kind"
],
"description": "An Azure resource, which encapsulate the entire info requires to display a data connector page in Azure portal,\r\nand the info required to define data connections.",
"type": "object",
"properties": {
"kind": {
"$ref": "#/definitions/DataConnectorDefinitionKind",
"description": "The data connector kind",
"type": "string"
}
},
"discriminator": "kind"
},
"DataConnectorDefinitionKind": {
"description": "The kind of the data connector definitions",
"enum": [
"Customizable"
],
"type": "string",
"x-ms-enum": {
"modelAsString": true,
"name": "DataConnectorDefinitionKind",
"values": [
{
"value": "Customizable"
}
]
}
},
"DataConnectorDefinitionArmCollectionWrapper": {
"type": "object",
"description": "Encapsulate the data connector definition object",
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/DataConnectorDefinition"
}
},
"nextLink": {
"type": "string"
}
}
},
"CustomizableConnectorDefinition": {
"description": "Connector definition for kind 'Customizable'.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/DataConnectorDefinition"
}
],
"properties": {
"properties": {
"$ref": "#/definitions/CustomizableConnectorDefinitionProperties",
"description": "Customizable properties.",
"x-ms-client-flatten": true
}
},
"x-ms-discriminator-value": "Customizable"
},
"CustomizableConnectorDefinitionProperties": {
"description": "The UiConfig for 'Customizable' connector definition kind.",
"type": "object",
"required": [
"connectorUiConfig"
],
"properties": {
"createdTimeUtc": {
"format": "date-time",
"description": "Gets or sets the connector definition created date in UTC format.",
"type": "string"
},
"lastModifiedUtc": {
"format": "date-time",
"description": "Gets or sets the connector definition last modified date in UTC format.",
"type": "string"
},
"connectorUiConfig": {
"$ref": "#/definitions/CustomizableConnectorUiConfig"
},
"connectionsConfig": {
"$ref": "#/definitions/CustomizableConnectionsConfig"
}
}
},
"CustomizableConnectionsConfig": {
"description": "The UiConfig for 'Customizable' connector definition kind.",
"required": [
"templateSpecVersion",
"templateSpecName"
],
"type": "object",
"properties": {
"templateSpecName": {
"description": "Gets or sets the template name. The template includes ARM templates that can be created by the connector, usually it will be the dataConnectors ARM templates.",
"type": "string"
},
"templateSpecVersion": {
"description": "Gets or sets the template version.",
"type": "string"
}
}
},
"CustomizableConnectorUiConfig": {
"description": "The UiConfig for 'Customizable' connector definition kind.",
"required": [
"dataTypes",
"descriptionMarkdown",
"graphQueries",
"instructionSteps",
"permissions",
"publisher",
"sampleQueries",
"title",
"connectivityCriteria"
],
"type": "object",
"properties": {
"id": {
"description": "Gets or sets custom connector id. optional field.",
"type": "string"
},
"title": {
"description": "Gets or sets the connector blade title.",
"type": "string"
},
"publisher": {
"description": "Gets or sets the connector publisher name.",
"type": "string"
},
"descriptionMarkdown": {
"description": "Gets or sets the connector description in markdown format.",
"type": "string"
},
"graphQueriesTableName": {
"description": "Gets or sets the name of the table the connector will insert the data to.\r\nThis name can be used in other queries by specifying {{graphQueriesTableName}} placeholder\r\n in Query and LastDataReceivedQuery values.",
"type": "string"
},
"graphQueries": {
"description": "Gets or sets the graph queries to show the current data volume over time.",
"type": "array",
"items": {
"$ref": "#/definitions/GraphQuery"
},
"x-ms-identifiers": []
},
"sampleQueries": {
"description": "Gets or sets the sample queries for the connector.",
"type": "array",
"items": {
"$ref": "#/definitions/SampleQuery"
},
"x-ms-identifiers": []
},
"dataTypes": {
"description": "Gets or sets the data types to check for last data received.",
"type": "array",
"items": {
"$ref": "#/definitions/ConnectorDataType"
},
"x-ms-identifiers": []
},
"connectivityCriteria": {
"description": "Gets or sets the way the connector checks whether the connector is connected.",
"type": "array",
"items": {
"$ref": "#/definitions/ConnectivityCriterion"
},
"x-ms-identifiers": []
},
"availability": {
"$ref": "#/definitions/ConnectorDefinitionsAvailability"
},
"permissions": {
"$ref": "#/definitions/ConnectorDefinitionsPermissions"
},
"instructionSteps": {
"description": "Gets or sets the instruction steps to enable the connector.",
"type": "array",
"items": {
"$ref": "#/definitions/InstructionStep"
},
"x-ms-identifiers": []
},
"logo": {
"description": "Gets or sets the connector logo to be used when displaying the connector within Azure Sentinel's connector's gallery.\r\nThe logo value should be in SVG format.",
"type": "string"
},
"isConnectivityCriteriasMatchSome": {
"description": "Gets or sets a value indicating whether to use 'OR'(SOME) or 'AND' between ConnectivityCriteria items.",
"type": "boolean"
}
}
},
"CustomPermissionDetails": {
"description": "The Custom permissions required for the connector.",
"required": [
"description",
"name"
],
"type": "object",
"properties": {
"name": {
"description": "Gets or sets the custom permissions name.",
"type": "string"
},
"description": {
"description": "Gets or sets the custom permissions description.",
"type": "string"
}
}
},
"GraphQuery": {
"description": "The graph query to show the volume of data arriving into the workspace over time.",
"required": [
"baseQuery",
"legend",
"metricName"
],
"type": "object",
"properties": {
"metricName": {
"description": "Gets or sets the metric name that the query is checking. For example: 'Total data receive'.",
"type": "string"
},
"legend": {
"description": "Gets or sets the legend for the graph.",
"type": "string"
},
"baseQuery": {
"description": "Gets or sets the base query for the graph.\r\nThe base query is wrapped by Sentinel UI infra with a KQL query, that measures the volume over time.",
"type": "string"
}
}
},
"InstructionStep": {
"description": "Instruction steps to enable the connector.",
"type": "object",
"properties": {
"title": {
"description": "Gets or sets the instruction step title.",
"type": "string"
},
"description": {
"description": "Gets or sets the instruction step description.",
"type": "string"
},
"instructions": {
"description": "Gets or sets the instruction step details.",
"type": "array",
"items": {
"$ref": "#/definitions/InstructionStepDetails"
},
"x-ms-identifiers": []
},
"innerSteps": {
"description": "Gets or sets the inner instruction steps details.\r\nFoe Example: instruction step 1 might contain inner instruction steps: [instruction step 1.1, instruction step 1.2].",
"type": "array",
"items": {
"$ref": "#/definitions/InstructionStep"
},
"x-ms-identifiers": []
}
}
},
"InstructionStepDetails": {
"description": "Instruction step details, to be displayed in the Instructions steps section in the connector's page in Sentinel Portal.",
"required": [
"parameters",
"type"
],
"type": "object",
"properties": {
"parameters": {
"description": "Gets or sets the instruction type parameters settings.",
"type": "object"
},
"type": {
"description": "Gets or sets the instruction type name.",
"type": "string"
}
}
},
"ConnectorDefinitionsPermissions": {
"description": "The required Permissions for the connector.",
"type": "object",
"properties": {
"tenant": {
"description": "Gets or sets the required tenant permissions for the connector.",
"type": "array",
"items": {
"type": "string"
}
},
"licenses": {
"description": "Gets or sets the required licenses for the user to create connections.",
"type": "array",
"items": {
"type": "string"
}
},
"resourceProvider": {
"description": "Gets or sets the resource provider permissions required for the user to create connections.",
"type": "array",
"items": {
"$ref": "#/definitions/ConnectorDefinitionsResourceProvider"
},
"x-ms-identifiers": []
},
"customs": {
"description": "Gets or sets the customs permissions required for the user to create connections.",
"type": "array",
"items": {
"$ref": "#/definitions/CustomPermissionDetails"
},
"x-ms-identifiers": []
}
}
},
"ProviderPermissionsScope": {
"description": "The scope on which the user should have permissions, in order to be able to create connections.",
"enum": [
"Subscription",
"ResourceGroup",
"Workspace"
],
"type": "string",
"example": "Subscription",
"x-ms-enum": {
"name": "ProviderPermissionsScope",
"modelAsString": true,
"values": [
{
"value": "Subscription"
},
{
"value": "ResourceGroup"
},
{
"value": "Workspace"
}
]
}
},
"ConnectorDefinitionsResourceProvider": {
"description": "The resource provider details include the required permissions for the user to create connections.\r\nThe user should have the required permissions(Read\\Write, ..) in the specified scope ProviderPermissionsScope against the specified resource provider.",
"required": [
"permissionsDisplayText",
"provider",
"providerDisplayName",
"requiredPermissions",
"scope"
],
"type": "object",
"properties": {
"provider": {
"description": "Gets or sets the provider name.",
"type": "string"
},
"permissionsDisplayText": {
"description": "Gets or sets the permissions description text.",
"type": "string"
},
"providerDisplayName": {
"description": "Gets or sets the permissions provider display name.",
"type": "string"
},
"scope": {
"$ref": "#/definitions/ProviderPermissionsScope"
},
"requiredPermissions": {
"$ref": "#/definitions/ResourceProviderRequiredPermissions"
}
}
},
"ResourceProviderRequiredPermissions": {
"description": "Required permissions for the connector resource provider that define in ResourceProviders.\r\nFor more information about the permissions see <see href=\"https://docs.microsoft.com/en-us/azure/role-based-access-control/role-definitions#actions-format\">here</see>.",
"type": "object",
"properties": {
"read": {
"description": "Gets or sets a value indicating whether the permission is read action (GET).",
"type": "boolean"
},
"write": {
"description": "Gets or sets a value indicating whether the permission is write action (PUT or PATCH).",
"type": "boolean"
},
"delete": {
"description": "Gets or sets a value indicating whether the permission is delete action (DELETE).",
"type": "boolean"
},
"action": {
"description": "Gets or sets a value indicating whether the permission is custom actions (POST).",
"type": "boolean"
}
}
},
"SampleQuery": {
"description": "The sample queries for the connector.",
"required": [
"description",
"query"
],
"type": "object",
"properties": {
"description": {
"description": "Gets or sets the sample query description.",
"type": "string"
},
"query": {
"description": "Gets or sets the KQL sample query.",
"type": "string"
}
}
}
},
"parameters": {
"dataConnectorDefinitionName": {
"in": "path",
"name": "dataConnectorDefinitionName",
"description": "The data connector definition name.",
"required": true,
"type": "string",
"pattern": "^[a-z0-9A-Z-_]*$",
"x-ms-parameter-location": "method"
}
}
}