-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Supporting linked storage accounts new api for operationalinsights. (#…
…8568) * Supporting linked storage accounts api. * Linked storage accounts examples. * Update examples api version. * Get all linked storage accounts api will point to the correct example. * Updating linked storage accounts list by workspace example. * next link should be equal to null, more constraints on enum types. * cspell/prettier fixes. * Correcting enum values in examples. * Enum value mistmatch fix.
- Loading branch information
Showing
5 changed files
with
356 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
33 changes: 33 additions & 0 deletions
33
....OperationalInsights/preview/2019-08-01-preview/examples/LinkedStorageAccountsCreate.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": { | ||
"resourceGroupName": "mms-eus", | ||
"workspaceName": "testLinkStorageAccountsWS", | ||
"dataSourceType": "CustomLogs", | ||
"parameters": { | ||
"properties": { | ||
"storageAccountIds": [ | ||
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA", | ||
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageB" | ||
] | ||
} | ||
}, | ||
"api-version": "2019-08-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-00000000000" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"dataSourceType": "CustomLogs", | ||
"storageAccountIds": [ | ||
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA", | ||
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageB" | ||
] | ||
}, | ||
"id": "/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/CustomLogs", | ||
"name": "CustomLogs", | ||
"type": "Microsoft.OperationalInsights/workspaces/linkedStorageAccounts" | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
....OperationalInsights/preview/2019-08-01-preview/examples/LinkedStorageAccountsDelete.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,12 @@ | ||
{ | ||
"parameters": { | ||
"dataSourceType": "CustomLogs", | ||
"workspaceName": "testLinkStorageAccountsWS", | ||
"resourceGroupName": "mms-eus", | ||
"api-version": "2019-08-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-00000000000" | ||
}, | ||
"responses": { | ||
"200": {} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...oft.OperationalInsights/preview/2019-08-01-preview/examples/LinkedStorageAccountsGet.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,25 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "mms-eus", | ||
"workspaceName": "testLinkStorageAccountsWS", | ||
"dataSourceType": "CustomLogs", | ||
"api-version": "2019-08-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-00000000000" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"dataSourceType": "CustomLogs", | ||
"storageAccountIds": [ | ||
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA", | ||
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageB" | ||
] | ||
}, | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/CustomLogs", | ||
"name": "CustomLogs", | ||
"type": "Microsoft.OperationalInsights/workspaces/linkedStorageAccounts" | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...nalInsights/preview/2019-08-01-preview/examples/LinkedStorageAccountsListByWorkspace.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,40 @@ | ||
{ | ||
"parameters": { | ||
"resourceGroupName": "mms-eus", | ||
"workspaceName": "testLinkStorageAccountsWS", | ||
"api-version": "2019-08-01-preview", | ||
"subscriptionId": "00000000-0000-0000-0000-00000000000" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"properties": { | ||
"dataSourceType": "CustomLogs", | ||
"storageAccountIds": [ | ||
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA", | ||
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageB" | ||
] | ||
}, | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/CustomLogs", | ||
"name": "CustomLogs", | ||
"type": "Microsoft.OperationalInsights/workspaces/linkedStorageAccounts" | ||
}, | ||
{ | ||
"properties": { | ||
"dataSourceType": "AzureWatson", | ||
"storageAccountIds": [ | ||
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageA", | ||
"/subscriptions/00000000-0000-0000-0000-00000000000/resourceGroups/mms-eus/providers/Microsoft.Storage/storageAccounts/testStorageC" | ||
] | ||
}, | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/mms-eus/providers/microsoft.operationalinsights/workspaces/testLinkStorageAccountsWS/linkedStorageAccounts/AzureWatson", | ||
"name": "AzureWatson", | ||
"type": "Microsoft.OperationalInsights/workspaces/linkedStorageAccounts" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |