Skip to content

Commit

Permalink
Donaliu/20200207 sap monitor (Azure#8528)
Browse files Browse the repository at this point in the history
* Added new version 2020-02-07-preview of SapMonitor APIs

* bugs

* Fixed parameter naming

* fixed examples

* fixed more examples

* various fixed

* more fixes

* ran prettier

* renamed monitorProviders to providerInstances

* updated README

* Added 201 and 202 for create and delete provider instances

* ran prettier

* fixed path in readme

* added id field to providerInstances

* Separate SapMonitor and providerInstance APIs
Added List providerInstance API

* fixed spelling

* updated provider instance payload
  • Loading branch information
PakDLiu authored and 00Kai0 committed Oct 12, 2020
1 parent 945404b commit 04e8aea
Show file tree
Hide file tree
Showing 12 changed files with 1,101 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parameters": {
"api-version": "2020-02-07-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"sapMonitorName": "mySapMonitor",
"providerInstanceName": "myProviderInstance",
"providerInstanceParameter": {
"name": "myProviderInstance",
"properties": {
"type": "hana",
"properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\",\"dbPassword\":\"PASSWORD\"}"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor/providerInstances/myProviderInstance",
"name": "myProviderInstance",
"type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances",
"properties": {
"type": "hana",
"properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor/providerInstances/myProviderInstance",
"name": "myProviderInstance",
"type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances",
"properties": {
"type": "hana",
"properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2020-02-07-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"sapMonitorName": "mySapMonitor",
"providerInstanceName": "myProviderInstance"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2020-02-07-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"sapMonitorName": "mySapMonitor",
"providerInstanceName": "myProviderInstance"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor/providerInstances/myProviderInstance",
"name": "myProviderInstance",
"type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances",
"properties": {
"type": "hana",
"properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2020-02-07-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"sapMonitorName": "mySapMonitor"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor/providerInstances/myProviderInstance1",
"name": "myProviderInstance1",
"type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances",
"properties": {
"type": "hana",
"properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}"
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor/providerInstances/myProviderInstance2",
"name": "myProviderInstance2",
"type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances",
"properties": {
"type": "hana",
"properties": "{\"hostname\":\"10.0.0.11\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"parameters": {
"api-version": "2020-02-07-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"sapMonitorName": "mySapMonitor",
"sapMonitorParameter": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor",
"name": "mySapMonitor",
"type": "Microsoft.HanaOnAzure/sapMonitors",
"location": "westus",
"tags": {
"key": "value"
},
"properties": {
"enableCustomerAnalytics": true,
"logAnalyticsWorkspaceArmId": "",
"logAnalyticsWorkspaceId": "",
"logAnalyticsWorkspaceSharedKey": ""
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance",
"name": "myHanaInstance",
"type": "Microsoft.HanaOnAzure/hanaInstances",
"location": "westus",
"tags": {
"key": "value"
},
"properties": {
"enableCustomerAnalytics": true,
"logAnalyticsWorkspaceArmId": "",
"logAnalyticsWorkspaceId": "",
"logAnalyticsWorkspaceSharedKey": "",
"managedResourceGroupName": "",
"sapMonitorCollectorVersion": "",
"provisioningState": "Succeeded"
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/hanaInstances/myHanaInstance",
"name": "myHanaInstance",
"type": "Microsoft.HanaOnAzure/hanaInstances",
"location": "westus",
"tags": {
"key": "value"
},
"properties": {
"enableCustomerAnalytics": true,
"logAnalyticsWorkspaceArmId": "",
"logAnalyticsWorkspaceId": "",
"logAnalyticsWorkspaceSharedKey": "",
"managedResourceGroupName": "",
"sapMonitorCollectorVersion": "",
"provisioningState": "Accepted"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2020-02-07-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"sapMonitorName": "mySapMonitor"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"api-version": "2020-02-07-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"sapMonitorName": "mySapMonitor"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor",
"name": "mySapMonitor",
"type": "Microsoft.HanaOnAzure/sapMonitors",
"location": "westus",
"tags": {
"key": "value"
},
"properties": {
"enableCustomerAnalytics": true,
"logAnalyticsWorkspaceArmId": "",
"logAnalyticsWorkspaceId": "",
"logAnalyticsWorkspaceSharedKey": "",
"managedResourceGroupName": "",
"sapMonitorCollectorVersion": "",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"parameters": {
"api-version": "2020-02-07-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor1",
"name": "mySapMonitor1",
"type": "Microsoft.HanaOnAzure/sapMonitors",
"location": "westus",
"tags": {
"key": "value"
},
"properties": {
"enableCustomerAnalytics": true,
"logAnalyticsWorkspaceArmId": "",
"logAnalyticsWorkspaceId": "",
"logAnalyticsWorkspaceSharedKey": "",
"managedResourceGroupName": "",
"sapMonitorCollectorVersion": "",
"provisioningState": "Succeeded"
}
},
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor2",
"name": "mySapMonitor2",
"type": "Microsoft.HanaOnAzure/sapMonitors",
"location": "westus",
"tags": {
"key": "value"
},
"properties": {
"enableCustomerAnalytics": true,
"logAnalyticsWorkspaceArmId": "",
"logAnalyticsWorkspaceId": "",
"logAnalyticsWorkspaceSharedKey": "",
"managedResourceGroupName": "",
"sapMonitorCollectorVersion": "",
"provisioningState": "Succeeded"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"parameters": {
"api-version": "2020-02-07-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"sapMonitorName": "mySapMonitor",
"tagsParameter": {
"tags": {
"testkey": "testvalue"
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor",
"name": "mySapMonitor",
"type": "Microsoft.HanaOnAzure/sapMonitors",
"location": "westus",
"tags": {
"testkey": "testvalue"
},
"properties": {
"enableCustomerAnalytics": true,
"logAnalyticsWorkspaceArmId": "",
"logAnalyticsWorkspaceId": "",
"logAnalyticsWorkspaceSharedKey": "",
"managedResourceGroupName": "",
"sapMonitorCollectorVersion": "",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2020-02-07-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"sapMonitorName": "mySapMonitor",
"tagsParameter": {
"tags": {}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.HanaOnAzure/sapMonitors/mySapMonitor",
"name": "mySapMonitor",
"type": "Microsoft.HanaOnAzure/sapMonitors",
"location": "westus",
"tags": {},
"properties": {
"enableCustomerAnalytics": true,
"logAnalyticsWorkspaceArmId": "",
"logAnalyticsWorkspaceId": "",
"logAnalyticsWorkspaceSharedKey": "",
"managedResourceGroupName": "",
"sapMonitorCollectorVersion": "",
"provisioningState": "Succeeded"
}
}
}
}
}
Loading

0 comments on commit 04e8aea

Please sign in to comment.