|
217 | 217 | } |
218 | 218 | } |
219 | 219 | }, |
| 220 | + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/entities/{entityIdentifier}/runPlaybook": { |
| 221 | + "post": { |
| 222 | + "tags": [ |
| 223 | + "manualTrigger" |
| 224 | + ], |
| 225 | + "description": "Triggers playbook on a specific entity.", |
| 226 | + "operationId": "Entities_RunPlaybook", |
| 227 | + "consumes": [ |
| 228 | + "application/json" |
| 229 | + ], |
| 230 | + "produces": [ |
| 231 | + "application/json" |
| 232 | + ], |
| 233 | + "parameters": [ |
| 234 | + { |
| 235 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter" |
| 236 | + }, |
| 237 | + { |
| 238 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter" |
| 239 | + }, |
| 240 | + { |
| 241 | + "$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter" |
| 242 | + }, |
| 243 | + { |
| 244 | + "$ref": "../../../common/2.0/types.json#/parameters/WorkspaceName" |
| 245 | + }, |
| 246 | + { |
| 247 | + "in": "path", |
| 248 | + "name": "entityIdentifier", |
| 249 | + "description": "Entity identifier.", |
| 250 | + "required": true, |
| 251 | + "type": "string" |
| 252 | + }, |
| 253 | + { |
| 254 | + "in": "body", |
| 255 | + "name": "requestBody", |
| 256 | + "description": "Describes the request body for triggering a playbook on an entity.", |
| 257 | + "schema": { |
| 258 | + "$ref": "#/definitions/EntityManualTriggerRequestBody" |
| 259 | + } |
| 260 | + } |
| 261 | + ], |
| 262 | + "responses": { |
| 263 | + "204": { |
| 264 | + "description": "No Content" |
| 265 | + }, |
| 266 | + "default": { |
| 267 | + "description": "Error response describing why the operation failed.", |
| 268 | + "schema": { |
| 269 | + "$ref": "../../../common/2.0/types.json#/definitions/CloudError" |
| 270 | + } |
| 271 | + } |
| 272 | + }, |
| 273 | + "x-ms-examples": { |
| 274 | + "Entities_RunPlaybook": { |
| 275 | + "$ref": "./examples/manualTrigger/Entities_RunPlaybook.json" |
| 276 | + } |
| 277 | + } |
| 278 | + } |
| 279 | + }, |
220 | 280 | "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents/{incidentIdentifier}/runPlaybook": { |
221 | 281 | "post": { |
222 | 282 | "tags": [ |
|
1183 | 1243 | ] |
1184 | 1244 | } |
1185 | 1245 | }, |
| 1246 | + "EntityManualTriggerRequestBody": { |
| 1247 | + "type": "object", |
| 1248 | + "description": "Describes the request body for triggering a playbook on an entity.", |
| 1249 | + "required": [ |
| 1250 | + "logicAppsResourceId" |
| 1251 | + ], |
| 1252 | + "properties": { |
| 1253 | + "incidentArmId": { |
| 1254 | + "type": "string", |
| 1255 | + "description": "Incident ARM id." |
| 1256 | + }, |
| 1257 | + "tenantId": { |
| 1258 | + "format": "uuid", |
| 1259 | + "type": "string", |
| 1260 | + "description": "The tenant id of the playbook resource." |
| 1261 | + }, |
| 1262 | + "logicAppsResourceId": { |
| 1263 | + "type": "string", |
| 1264 | + "description": "The resource id of the playbook resource." |
| 1265 | + } |
| 1266 | + } |
| 1267 | + }, |
1186 | 1268 | "IncidentPropertiesAction": { |
1187 | 1269 | "type": "object", |
1188 | 1270 | "properties": { |
|
1234 | 1316 | }, |
1235 | 1317 | "PlaybookActionProperties": { |
1236 | 1318 | "type": "object", |
| 1319 | + "required": [ |
| 1320 | + "logicAppResourceId" |
| 1321 | + ], |
1237 | 1322 | "properties": { |
1238 | 1323 | "logicAppResourceId": { |
1239 | 1324 | "description": "The resource id of the playbook resource.", |
|
0 commit comments