forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding back category level samples (Azure#16389)
* Adding back category level samples Adding back category level samples * Adding reference to newly added sample files Adding reference to newly added sample files * Tries to fix prettier violations * Remove location field for sub/management group level * Tries to fix prettier by converting tab to spaces
- Loading branch information
1 parent
da79918
commit 62ec790
Showing
12 changed files
with
501 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
...Insights/preview/2021-05-01-preview/examples/createOrUpdateDiagnosticSettingCategory.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"parameters": { | ||
"resourceUri": "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", | ||
"name": "mysetting", | ||
"api-version": "2021-05-01-preview", | ||
"parameters": { | ||
"properties": { | ||
"storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", | ||
"workspaceId": "", | ||
"eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", | ||
"eventHubName": "myeventhub", | ||
"marketplacePartnerId": "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", | ||
"metrics": [ | ||
{ | ||
"category": "WorkflowMetrics", | ||
"enabled": true, | ||
"retentionPolicy": { | ||
"enabled": false, | ||
"days": 0 | ||
} | ||
} | ||
], | ||
"logs": [ | ||
{ | ||
"category": "WorkflowRuntime", | ||
"enabled": true, | ||
"retentionPolicy": { | ||
"enabled": false, | ||
"days": 0 | ||
} | ||
} | ||
], | ||
"logAnalyticsDestinationType": "Dedicated" | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/mysetting", | ||
"type": "", | ||
"name": "mysetting", | ||
"properties": { | ||
"storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", | ||
"workspaceId": "", | ||
"eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", | ||
"eventHubName": "myeventhub", | ||
"marketplacePartnerId": "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", | ||
"metrics": [ | ||
{ | ||
"category": "WorkflowMetrics", | ||
"enabled": true, | ||
"retentionPolicy": { | ||
"enabled": false, | ||
"days": 0 | ||
} | ||
} | ||
], | ||
"logs": [ | ||
{ | ||
"category": "WorkflowRuntime", | ||
"enabled": true, | ||
"retentionPolicy": { | ||
"enabled": false, | ||
"days": 0 | ||
} | ||
} | ||
], | ||
"logAnalyticsDestinationType": "Dedicated" | ||
} | ||
} | ||
} | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
...w/2021-05-01-preview/examples/createOrUpdateManagementGroupDiagnosticSettingCategory.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"parameters": { | ||
"managementGroupId": "testChildMG7", | ||
"name": "setting1", | ||
"api-version": "2021-05-01-preview", | ||
"parameters": { | ||
"properties": { | ||
"storageAccountId": "/subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5", | ||
"workspaceId": "/subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace", | ||
"eventHubAuthorizationRuleId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", | ||
"eventHubName": "myeventhub", | ||
"marketplacePartnerId": "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", | ||
"logs": [ | ||
{ | ||
"category": "Administrative", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "Policy", | ||
"enabled": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "providers/Microsoft.Management/managementGroups/testChildMG7/providers/microsoft.insights/diagnosticSettings/setting1", | ||
"type": "Microsoft.Insights/diagnosticSettings", | ||
"name": "setting1", | ||
"properties": { | ||
"storageAccountId": "/subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5", | ||
"workspaceId": "/subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace", | ||
"eventHubAuthorizationRuleId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", | ||
"marketplacePartnerId": "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", | ||
"logs": [ | ||
{ | ||
"category": "Administrative", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "Policy", | ||
"enabled": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
...view/2021-05-01-preview/examples/createOrUpdateSubscriptionDiagnosticSettingCategory.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fb9f25f9-5785-4510-a38f-a62f188eb9f8", | ||
"name": "ds4", | ||
"api-version": "2021-05-01-preview", | ||
"parameters": { | ||
"properties": { | ||
"storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", | ||
"workspaceId": "", | ||
"eventHubAuthorizationRuleId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", | ||
"eventHubName": "myeventhub", | ||
"marketplacePartnerId": "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", | ||
"logs": [ | ||
{ | ||
"category": "Security", | ||
"enabled": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/providers/AzureResourceManager/diagnosticSettings/ds4", | ||
"type": null, | ||
"name": "ds4", | ||
"properties": { | ||
"storageAccountId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", | ||
"workspaceId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/apptest/providers/Microsoft.OperationalInsights/workspaces/test1", | ||
"eventHubAuthorizationRuleId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/apptest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", | ||
"marketplacePartnerId": "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", | ||
"logs": [ | ||
{ | ||
"category": "Security", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "Administrative", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "ServiceHealth", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "Alert", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "Recommendation", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "Policy", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "Autoscale", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "ResourceHealth", | ||
"enabled": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
43 changes: 43 additions & 0 deletions
43
.../Microsoft.Insights/preview/2021-05-01-preview/examples/getDiagnosticSettingCategory.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"parameters": { | ||
"resourceUri": "subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6", | ||
"name": "mysetting", | ||
"api-version": "2021-05-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/diagnosticSettings/service", | ||
"type": "", | ||
"name": "mysetting", | ||
"properties": { | ||
"storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", | ||
"workspaceId": "", | ||
"eventHubAuthorizationRuleId": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", | ||
"marketplacePartnerId": "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", | ||
"metrics": [ | ||
{ | ||
"category": "WorkflowMetrics", | ||
"enabled": true, | ||
"retentionPolicy": { | ||
"enabled": false, | ||
"days": 0 | ||
} | ||
} | ||
], | ||
"logs": [ | ||
{ | ||
"category": "WorkflowRuntime", | ||
"enabled": true, | ||
"retentionPolicy": { | ||
"enabled": false, | ||
"days": 0 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...ghts/preview/2021-05-01-preview/examples/getManagementGroupDiagnosticSettingCategory.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"parameters": { | ||
"managementGroupId": "testChildMG7", | ||
"name": "setting1", | ||
"api-version": "2021-05-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "providers/Microsoft.Management/managementGroups/testChildMG7/providers/microsoft.insights/diagnosticSettings/setting1", | ||
"type": "Microsoft.Insights/diagnosticSettings", | ||
"name": "setting1", | ||
"properties": { | ||
"storageAccountId": "/subscriptions/bfaef57f-297e-4210-bfe5-27c18cc671f7/resourceGroups/FuncAppRunners/providers/Microsoft.Storage/storageAccounts/testpersonalb6a5", | ||
"workspaceId": "/subscriptions/9cf7cc0a-0ba1-4624-bc82-97e1ee25dc45/resourceGroups/mgTest/providers/Microsoft.OperationalInsights/workspaces/mgTestWorkspace", | ||
"eventHubAuthorizationRuleId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/montest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", | ||
"marketplacePartnerId": "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", | ||
"logs": [ | ||
{ | ||
"category": "Administrative", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "Policy", | ||
"enabled": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
57 changes: 57 additions & 0 deletions
57
...nsights/preview/2021-05-01-preview/examples/getSubscriptionDiagnosticSettingCategory.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "fb9f25f9-5785-4510-a38f-a62f188eb9f8", | ||
"name": "mysetting", | ||
"api-version": "2021-05-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"headers": {}, | ||
"body": { | ||
"id": "subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/providers/AzureResourceManager/diagnosticSettings/ds4", | ||
"type": null, | ||
"name": "ds4", | ||
"properties": { | ||
"storageAccountId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1", | ||
"workspaceId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/apptest/providers/Microsoft.OperationalInsights/workspaces/test1", | ||
"eventHubAuthorizationRuleId": "/subscriptions/fb9f25f9-5785-4510-a38f-a62f188eb9f8/resourceGroups/apptest/providers/microsoft.eventhub/namespaces/mynamespace/eventhubs/myeventhub/authorizationrules/myrule", | ||
"marketplacePartnerId": "/subscriptions/abcdeabc-1234-1234-ab12-123a1234567a/resourceGroups/test-rg/providers/Microsoft.Datadog/monitors/dd1", | ||
"logs": [ | ||
{ | ||
"category": "Security", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "Administrative", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "ServiceHealth", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "Alert", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "Recommendation", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "Policy", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "Autoscale", | ||
"enabled": true | ||
}, | ||
{ | ||
"category": "ResourceHealth", | ||
"enabled": true | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.