|
243 | 243 | } |
244 | 244 | } |
245 | 245 | }, |
| 246 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/createTeam": { |
| 247 | + "post": { |
| 248 | + "x-ms-examples": { |
| 249 | + "Creates incident teams group.": { |
| 250 | + "$ref": "./examples/incidents/CreateTeam.json" |
| 251 | + } |
| 252 | + }, |
| 253 | + "tags": [ |
| 254 | + "IncidentTeam" |
| 255 | + ], |
| 256 | + "description": "Creates a Microsoft team to investigate the incident by sharing information and insights between participants.", |
| 257 | + "operationId": "Incidents_CreateTeam", |
| 258 | + "parameters": [ |
| 259 | + { |
| 260 | + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" |
| 261 | + }, |
| 262 | + { |
| 263 | + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter" |
| 264 | + }, |
| 265 | + { |
| 266 | + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ResourceGroupNameParameter" |
| 267 | + }, |
| 268 | + { |
| 269 | + "$ref": "../../../common/1.0/types.json#/parameters/OperationalInsightsResourceProvider" |
| 270 | + }, |
| 271 | + { |
| 272 | + "$ref": "../../../common/1.0/types.json#/parameters/WorkspaceName" |
| 273 | + }, |
| 274 | + { |
| 275 | + "$ref": "#/parameters/IncidentId" |
| 276 | + }, |
| 277 | + { |
| 278 | + "$ref": "#/parameters/TeamProperties" |
| 279 | + } |
| 280 | + ], |
| 281 | + "responses": { |
| 282 | + "200": { |
| 283 | + "description": "OK", |
| 284 | + "schema": { |
| 285 | + "$ref": "#/definitions/TeamInformation" |
| 286 | + } |
| 287 | + }, |
| 288 | + "default": { |
| 289 | + "description": "Error response describing why the operation failed.", |
| 290 | + "schema": { |
| 291 | + "$ref": "../../../common/1.0/types.json#/definitions/CloudError" |
| 292 | + } |
| 293 | + } |
| 294 | + } |
| 295 | + } |
| 296 | + }, |
246 | 297 | "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{operationalInsightsResourceProvider}/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentId}/alerts": { |
247 | 298 | "post": { |
248 | 299 | "x-ms-examples": { |
|
254 | 305 | "IncidentAlerts" |
255 | 306 | ], |
256 | 307 | "description": "Gets all incident alerts.", |
257 | | - "operationId": "Incidents_ListOfAlerts", |
| 308 | + "operationId": "Incidents_ListAlerts", |
258 | 309 | "parameters": [ |
259 | 310 | { |
260 | 311 | "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" |
|
302 | 353 | "IncidentBookmarks" |
303 | 354 | ], |
304 | 355 | "description": "Gets all incident bookmarks.", |
305 | | - "operationId": "Incidents_ListOfBookmarks", |
| 356 | + "operationId": "Incidents_ListBookmarks", |
306 | 357 | "parameters": [ |
307 | 358 | { |
308 | 359 | "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" |
|
350 | 401 | "IncidentComments" |
351 | 402 | ], |
352 | 403 | "description": "Gets all incident comments.", |
353 | | - "operationId": "IncidentComments_ListByIncident", |
| 404 | + "operationId": "IncidentComments_List", |
354 | 405 | "parameters": [ |
355 | 406 | { |
356 | 407 | "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" |
|
414 | 465 | "IncidentComments" |
415 | 466 | ], |
416 | 467 | "description": "Gets an incident comment.", |
417 | | - "operationId": "IncidentComments_GetComment", |
| 468 | + "operationId": "IncidentComments_Get", |
418 | 469 | "parameters": [ |
419 | 470 | { |
420 | 471 | "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" |
|
463 | 514 | "IncidentComments" |
464 | 515 | ], |
465 | 516 | "description": "Creates or updates the incident comment.", |
466 | | - "operationId": "IncidentComments_CreateComment", |
| 517 | + "operationId": "IncidentComments_CreateOrUpdate", |
467 | 518 | "parameters": [ |
468 | 519 | { |
469 | 520 | "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" |
|
521 | 572 | "IncidentComments" |
522 | 573 | ], |
523 | 574 | "description": "Delete the incident comment.", |
524 | | - "operationId": "IncidentComments_DeleteComment", |
| 575 | + "operationId": "IncidentComments_Delete", |
525 | 576 | "parameters": [ |
526 | 577 | { |
527 | 578 | "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" |
|
572 | 623 | "IncidentEntities" |
573 | 624 | ], |
574 | 625 | "description": "Gets all incident related entities.", |
575 | | - "operationId": "Incidents_ListOfEntities", |
| 626 | + "operationId": "Incidents_ListEntities", |
576 | 627 | "parameters": [ |
577 | 628 | { |
578 | 629 | "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" |
|
684 | 735 | "IncidentRelations" |
685 | 736 | ], |
686 | 737 | "description": "Gets an incident relation.", |
687 | | - "operationId": "IncidentRelations_GetRelation", |
| 738 | + "operationId": "IncidentRelations_Get", |
688 | 739 | "parameters": [ |
689 | 740 | { |
690 | 741 | "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" |
|
733 | 784 | "IncidentRelations" |
734 | 785 | ], |
735 | 786 | "description": "Creates or updates the incident relation.", |
736 | | - "operationId": "IncidentRelations_CreateOrUpdateRelation", |
| 787 | + "operationId": "IncidentRelations_CreateOrUpdate", |
737 | 788 | "parameters": [ |
738 | 789 | { |
739 | 790 | "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" |
|
791 | 842 | "IncidentRelations" |
792 | 843 | ], |
793 | 844 | "description": "Delete the incident relation.", |
794 | | - "operationId": "IncidentRelations_DeleteRelation", |
| 845 | + "operationId": "IncidentRelations_Delete", |
795 | 846 | "parameters": [ |
796 | 847 | { |
797 | 848 | "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" |
|
889 | 940 | "type": "boolean" |
890 | 941 | }, |
891 | 942 | "ntDomain": { |
892 | | - "description": "The NetBIOS domain name as it appears in the alert format domain\\username. Examples: NT AUTHORITY.", |
| 943 | + "description": "The NetBIOS domain name as it appears in the alert format domain\\username. Examples: NT AUTHORITY.", |
893 | 944 | "readOnly": true, |
894 | 945 | "type": "string" |
895 | 946 | }, |
|
1244 | 1295 | "Entity": { |
1245 | 1296 | "allOf": [ |
1246 | 1297 | { |
1247 | | - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Resource" |
| 1298 | + "$ref": "../../../common/1.0/types.json#/definitions/Resource" |
1248 | 1299 | } |
1249 | 1300 | ], |
1250 | 1301 | "properties": { |
|
1865 | 1916 | }, |
1866 | 1917 | "required": [ |
1867 | 1918 | "value" |
1868 | | - ] |
| 1919 | + ], |
| 1920 | + "type": "object" |
1869 | 1921 | }, |
1870 | 1922 | "IncidentBookmarkList": { |
1871 | 1923 | "description": "List of incident bookmarks.", |
|
1880 | 1932 | }, |
1881 | 1933 | "required": [ |
1882 | 1934 | "value" |
1883 | | - ] |
| 1935 | + ], |
| 1936 | + "type": "object" |
1884 | 1937 | }, |
1885 | 1938 | "IncidentComment": { |
1886 | 1939 | "allOf": [ |
|
1916 | 1969 | }, |
1917 | 1970 | "required": [ |
1918 | 1971 | "value" |
1919 | | - ] |
| 1972 | + ], |
| 1973 | + "type": "object" |
1920 | 1974 | }, |
1921 | 1975 | "IncidentCommentProperties": { |
1922 | 1976 | "description": "Incident comment property bag.", |
|
1966 | 2020 | "$ref": "#/definitions/IncidentEntitiesResultsMetadata" |
1967 | 2021 | } |
1968 | 2022 | } |
1969 | | - } |
| 2023 | + }, |
| 2024 | + "type": "object" |
1970 | 2025 | }, |
1971 | 2026 | "IncidentEntitiesResultsMetadata": { |
1972 | 2027 | "description": "Information of a specific aggregation in the incident related entities result.", |
|
2031 | 2086 | ] |
2032 | 2087 | } |
2033 | 2088 | }, |
| 2089 | + "teamInformation": { |
| 2090 | + "$ref": "#/definitions/TeamInformation", |
| 2091 | + "description": "Describes a team for the incident", |
| 2092 | + "type": "object" |
| 2093 | + }, |
2034 | 2094 | "title": { |
2035 | 2095 | "description": "The title of the incident", |
2036 | 2096 | "type": "string" |
|
2096 | 2156 | }, |
2097 | 2157 | "required": [ |
2098 | 2158 | "value" |
2099 | | - ] |
| 2159 | + ], |
| 2160 | + "type": "object" |
2100 | 2161 | }, |
2101 | 2162 | "IncidentOwnerInfo": { |
2102 | 2163 | "description": "Information on the user an incident is assigned to", |
|
2117 | 2178 | "userPrincipalName": { |
2118 | 2179 | "description": "The user principal name of the user the incident is assigned to.", |
2119 | 2180 | "type": "string" |
| 2181 | + }, |
| 2182 | + "ownerType": { |
| 2183 | + "readOnly": true, |
| 2184 | + "description": "The type of the owner the incident is assigned to.", |
| 2185 | + "type": "string", |
| 2186 | + "enum": [ |
| 2187 | + "Unknown", |
| 2188 | + "User", |
| 2189 | + "Group" |
| 2190 | + ], |
| 2191 | + "x-ms-enum": { |
| 2192 | + "modelAsString": true, |
| 2193 | + "name": "OwnerType", |
| 2194 | + "values": [ |
| 2195 | + { |
| 2196 | + "description": "The incident owner type is unknown", |
| 2197 | + "value": "Unknown" |
| 2198 | + }, |
| 2199 | + { |
| 2200 | + "description": "The incident owner type is an AAD user", |
| 2201 | + "value": "User" |
| 2202 | + }, |
| 2203 | + { |
| 2204 | + "description": "The incident owner type is an AAD group", |
| 2205 | + "value": "Group" |
| 2206 | + } |
| 2207 | + ] |
| 2208 | + } |
2120 | 2209 | } |
2121 | 2210 | }, |
2122 | 2211 | "type": "object" |
|
3327 | 3416 | }, |
3328 | 3417 | "required": [ |
3329 | 3418 | "value" |
3330 | | - ] |
| 3419 | + ], |
| 3420 | + "type": "object" |
3331 | 3421 | }, |
3332 | 3422 | "RelationProperties": { |
3333 | 3423 | "description": "Relation property bag.", |
|
3887 | 3977 | }, |
3888 | 3978 | "type": "object" |
3889 | 3979 | }, |
| 3980 | + "TeamInformation": { |
| 3981 | + "description": "Describes team information", |
| 3982 | + "properties": { |
| 3983 | + "teamId": { |
| 3984 | + "description": "Team ID", |
| 3985 | + "readOnly": true, |
| 3986 | + "type": "string" |
| 3987 | + }, |
| 3988 | + "primaryChannelUrl": { |
| 3989 | + "description": "The primary channel URL of the team", |
| 3990 | + "readOnly": true, |
| 3991 | + "type": "string" |
| 3992 | + }, |
| 3993 | + "teamCreationTimeUtc": { |
| 3994 | + "description": "The time the team was created", |
| 3995 | + "format": "date-time", |
| 3996 | + "readOnly": true, |
| 3997 | + "type": "string" |
| 3998 | + }, |
| 3999 | + "name": { |
| 4000 | + "description": "The name of the team", |
| 4001 | + "readOnly": true, |
| 4002 | + "type": "string" |
| 4003 | + }, |
| 4004 | + "description": { |
| 4005 | + "description": "The description of the team", |
| 4006 | + "readOnly": true, |
| 4007 | + "type": "string" |
| 4008 | + } |
| 4009 | + }, |
| 4010 | + "type": "object" |
| 4011 | + }, |
| 4012 | + "TeamProperties": { |
| 4013 | + "description": "Describes team properties", |
| 4014 | + "properties": { |
| 4015 | + "teamName": { |
| 4016 | + "description": "The name of the team", |
| 4017 | + "type": "string" |
| 4018 | + }, |
| 4019 | + "teamDescription": { |
| 4020 | + "description": "The description of the team", |
| 4021 | + "type": "string" |
| 4022 | + }, |
| 4023 | + "memberIds": { |
| 4024 | + "description": "List of member IDs to add to the team", |
| 4025 | + "items": { |
| 4026 | + "description": "A single-value attribute that is the unique identifier for the user, assigned by active directory.", |
| 4027 | + "format": "uuid", |
| 4028 | + "type": "string" |
| 4029 | + }, |
| 4030 | + "type": "array" |
| 4031 | + }, |
| 4032 | + "groupIds": { |
| 4033 | + "description": "List of group IDs to add their members to the team", |
| 4034 | + "items": { |
| 4035 | + "description": "A single-value attribute that is the unique identifier for the group, assigned by active directory.", |
| 4036 | + "format": "uuid", |
| 4037 | + "type": "string" |
| 4038 | + }, |
| 4039 | + "type": "array" |
| 4040 | + } |
| 4041 | + }, |
| 4042 | + "required": [ |
| 4043 | + "teamName" |
| 4044 | + ], |
| 4045 | + "type": "object" |
| 4046 | + }, |
3890 | 4047 | "ThreatIntelligence": { |
3891 | 4048 | "description": "ThreatIntelligence property bag.", |
3892 | 4049 | "properties": { |
|
4067 | 4224 | "type": "string", |
4068 | 4225 | "description": "Relation Name", |
4069 | 4226 | "x-ms-parameter-location": "method" |
| 4227 | + }, |
| 4228 | + "TeamProperties": { |
| 4229 | + "description": "Team properties", |
| 4230 | + "in": "body", |
| 4231 | + "name": "teamProperties", |
| 4232 | + "required": true, |
| 4233 | + "schema": { |
| 4234 | + "$ref": "#/definitions/TeamProperties" |
| 4235 | + }, |
| 4236 | + "x-ms-parameter-location": "method" |
4070 | 4237 | } |
4071 | 4238 | } |
4072 | 4239 | } |
0 commit comments