Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add playbook configurations resource REST specification #5548

Closed
wants to merge 13 commits into from
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2019-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"resourceGroupName": "myRg",
"playbookConfigurationName": "myPlaybookConfigName"
},
"responses": {
"204": {
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"api-version": "2019-01-01-preview",
"subscriptionId": "e4272367-5645-4c4e-9c67-3b74b59a6982",
"resourceGroupName": "exampleResourceGroup",
"playbookConfigurationName": "examplePlaybookConfiguration"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/e4272367-5645-4c4e-9c67-3b74b59a6982/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/playbookConfigurations/examplePlaybookConfiguration",
"name": "examplePlaybookConfiguration",
"type": "Microsoft.Security/playbookConfigurations",
"location": "Central US",
"tags": {},
"properties": {
"description": "An example of a playbook configuration that triggers two LogicApp resources (myTest1 and myTest2) on any security assessment of type customAssessment",
"isEnabled": true,
"metadata": {
"createdDateTimeUtc": "2019-03-27T08:43:54.5755094Z",
"createdBy": "2c429ed8-089f-42aa-9bb9-92312b8c9f72",
"lastUpdatedDateTimeUtc": "2019-03-28T08:43:54.5755094Z",
"lastUpdatedBy": "2c429ed8-089f-42aa-9bb9-92312b8c9f72"
},
"scopes": [
{
"description": "A description that helps to identify this scope - for example: security assessments that relate to the subscription 212f9889-769e-45ae-ab43-6da33674bd26",
"scopePath": "/subscriptions/212f9889-769e-45ae-ab43-6da33674bd26"
},
{
"description": "A description that help to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription 212f9889-769e-45ae-ab43-6da33674bd26",
"scopePath": "/subscriptions/212f9889-769e-45ae-ab43-6da33674bd26/resourceGroups/myResourceGroup"
}
],
"sources": [
{
"eventSource": "AscAssessments",
"ruleSets": [
{
"rules": [
{
"propertyJPath": "$.Entity.AssessmentType",
"propertyType": "string",
"expectedValue": "customAssessment",
"operator": "EqualsIgnoreCase"
}
]
}
]
}
],
"actions": [
{
"logicAppResourceId": "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1",
"actionType": "LogicApp",
"uri": "(This value contains a secret and will not be retrieved)"
},
{
"logicAppResourceId": "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest2",
"actionType": "LogicApp",
"uri": "(This value contains a secret and will not be retrieved)"
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"parameters": {
"api-version": "2019-01-01-preview",
"subscriptionId": "e4272367-5645-4c4e-9c67-3b74b59a6982",
"resourceGroupName": "exampleResourceGroup"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/e4272367-5645-4c4e-9c67-3b74b59a6982/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/playbookConfigurations/examplePlaybookConfiguration",
"name": "examplePlaybookConfiguration",
"type": "Microsoft.Security/playbookConfigurations",
"location": "Central US",
"tags": {},
"properties": {
"description": "An example of a playbook configuration that triggers two LogicApp resources (myTest1 and myTest2) on any security assessment of type customAssessment",
"isEnabled": true,
"metadata": {
"createdDateTimeUtc": "2019-03-27T08:43:54.5755094Z",
"createdBy": "2c429ed8-089f-42aa-9bb9-92312b8c9f72",
"lastUpdatedDateTimeUtc": "2019-03-28T08:43:54.5755094Z",
"lastUpdatedBy": "2c429ed8-089f-42aa-9bb9-92312b8c9f72"
},
"scopes": [
{
"description": "A description that helps to identify this scope - for example: security assessments that relate to the subscription 212f9889-769e-45ae-ab43-6da33674bd26",
"scopePath": "/subscriptions/212f9889-769e-45ae-ab43-6da33674bd26"
},
{
"description": "A description that help to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription 212f9889-769e-45ae-ab43-6da33674bd26",
"scopePath": "/subscriptions/212f9889-769e-45ae-ab43-6da33674bd26/resourceGroups/myResourceGroup"
}
],
"sources": [
{
"eventSource": "AscAssessments",
"ruleSets": [
{
"rules": [
{
"propertyJPath": "$.Entity.AssessmentType",
"propertyType": "string",
"expectedValue": "customAssessment",
"operator": "EqualsIgnoreCase"
}
]
}
]
}
],
"actions": [
{
"logicAppResourceId": "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1",
"actionType": "LogicApp",
"uri": "https://exampleTriggerUri1.com"
},
{
"logicAppResourceId": "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest2",
"actionType": "LogicApp",
"uri": "https://exampleTriggerUri2.com"
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"parameters": {
"api-version": "2019-01-01-preview",
"subscriptionId": "e4272367-5645-4c4e-9c67-3b74b59a6982"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/e4272367-5645-4c4e-9c67-3b74b59a6982/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/playbookConfigurations/examplePlaybookConfiguration",
"name": "examplePlaybookConfiguration",
"type": "Microsoft.Security/playbookConfigurations",
"location": "Central US",
"tags": {},
"properties": {
"description": "An example of a playbook configuration that triggers two LogicApp resources (myTest1 and myTest2) on any security assessment of type customAssessment",
"isEnabled": true,
"metadata": {
"createdDateTimeUtc": "2019-03-27T08:43:54.5755094Z",
"createdBy": "2c429ed8-089f-42aa-9bb9-92312b8c9f72",
"lastUpdatedDateTimeUtc": "2019-03-28T08:43:54.5755094Z",
"lastUpdatedBy": "2c429ed8-089f-42aa-9bb9-92312b8c9f72"
},
"scopes": [
{
"description": "A description that helps to identify this scope - for example: security assessments that relate to the subscription 212f9889-769e-45ae-ab43-6da33674bd26",
"scopePath": "/subscriptions/212f9889-769e-45ae-ab43-6da33674bd26"
},
{
"description": "A description that help to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription 212f9889-769e-45ae-ab43-6da33674bd26",
"scopePath": "/subscriptions/212f9889-769e-45ae-ab43-6da33674bd26/resourceGroups/myResourceGroup"
}
],
"sources": [
{
"eventSource": "AscAssessments",
"ruleSets": [
{
"rules": [
{
"propertyJPath": "$.Entity.AssessmentType",
"propertyType": "string",
"expectedValue": "customAssessment",
"operator": "EqualsIgnoreCase"
}
]
}
]
}
],
"actions": [
{
"logicAppResourceId": "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1",
"actionType": "LogicApp",
"uri": "https://exampleTriggerUri1.com"
},
{
"logicAppResourceId": "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest2",
"actionType": "LogicApp",
"uri": "https://exampleTriggerUri2.com"
}
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
{
"parameters": {
"api-version": "2019-01-01-preview",
"subscriptionId": "e4272367-5645-4c4e-9c67-3b74b59a6982",
"playbookConfigurationName": "examplePlaybookConfiguration",
"resourceGroupName": "exampleResourceGroup",
"PlaybookConfiguration": {
"id": "/subscriptions/e4272367-5645-4c4e-9c67-3b74b59a6982/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/playbookConfigurations/examplePlaybookConfiguration",
"name": "examplePlaybookConfiguration",
"type": "Microsoft.Security/playbookConfigurations",
"location": "Central US",
"tags": {
"ScenarioName" : "ExampleScenario"
},
"properties": {
"description": "An example of a playbook configuration that triggers two LogicApp resources (myTest1 and myTest2) on any security assessment of type customAssessment",
"isEnabled": true,
"scopes": [
{
"description": "A description that helps to identify this scope - for example: security assessments that relate to the subscription 212f9889-769e-45ae-ab43-6da33674bd26",
"scopePath": "/subscriptions/212f9889-769e-45ae-ab43-6da33674bd26"
},
{
"description": "A description that help to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription 212f9889-769e-45ae-ab43-6da33674bd26",
"scopePath": "/subscriptions/212f9889-769e-45ae-ab43-6da33674bd26/resourceGroups/myResourceGroup"
}
],
"sources": [
{
"eventSource": "AscAssessments",
"ruleSets": [
{
"rules": [
{
"propertyJPath": "$.Entity.AssessmentType",
"propertyType": "string",
"expectedValue": "customAssessment",
"operator": "EqualsIgnoreCase"
}
]
}
]
}
],
"actions": [
{
"logicAppResourceId": "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1",
"actionType": "LogicApp",
"uri": "https://exampleTriggerUri1.com"
},
{
"logicAppResourceId": "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest2",
"actionType": "LogicApp",
"uri": "https://exampleTriggerUri2.com"
}
]
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/e4272367-5645-4c4e-9c67-3b74b59a6982/resourceGroups/exampleResourceGroup/providers/Microsoft.Security/playbookConfigurations/examplePlaybookConfiguration",
"name": "examplePlaybookConfiguration",
"type": "Microsoft.Security/playbookConfigurations",
"location": "Central US",
"tags": {
"ScenarioName" : "ExampleScenario"
},
"properties": {
"description": "An example of a playbook configuration that triggers two LogicApp resources (myTest1 and myTest2) on any security assessment of type customAssessment",
"isEnabled": true,
"metadata": {
"createdDateTimeUtc": "2019-03-27T08:43:54.5755094Z",
"createdBy": "2c429ed8-089f-42aa-9bb9-92312b8c9f72",
"lastUpdatedDateTimeUtc": "2019-03-28T08:43:54.5755094Z",
"lastUpdatedBy": "2c429ed8-089f-42aa-9bb9-92312b8c9f72"
},
"scopes": [
{
"description": "A description that helps to identify this scope - for example: security assessments that relate to the subscription 212f9889-769e-45ae-ab43-6da33674bd26",
"scopePath": "/subscriptions/212f9889-769e-45ae-ab43-6da33674bd26"
},
{
"description": "A description that help to identify this scope - for example: security assessments that relate to the resource group myResourceGroup within the subscription 212f9889-769e-45ae-ab43-6da33674bd26",
"scopePath": "/subscriptions/212f9889-769e-45ae-ab43-6da33674bd26/resourceGroups/myResourceGroup"
}
],
"sources": [
{
"eventSource": "AscAssessments",
"ruleSets": [
{
"rules": [
{
"propertyJPath": "$.Entity.AssessmentType",
"propertyType": "string",
"expectedValue": "customAssessment",
"operator": "EqualsIgnoreCase"
}
]
}
]
}
],
"actions": [
{
"logicAppResourceId": "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest1",
"actionType": "LogicApp",
"uri": "(This value contains a secret and will not be retrieved)"
},
{
"logicAppResourceId": "/subscriptions/e54a4a18-5b94-4f90-9471-bd3decad8a2e/resourceGroups/sample/providers/Microsoft.Logic/workflows/MyTest2",
"actionType": "LogicApp",
"uri": "(This value contains a secret and will not be retrieved)"
}
]
}
}
}
}
}
Loading