From aa8ba5627dc6dd76965b2790152a442962e8d5bb Mon Sep 17 00:00:00 2001 From: Donald Date: Tue, 3 Nov 2020 10:05:38 -0800 Subject: [PATCH] Updated Examples for Provider instances --- .../examples/ProviderInstances_Create.json | 10 +++++----- .../examples/ProviderInstances_Get.json | 4 ++-- .../examples/ProviderInstances_List.json | 18 ++++++++++++++---- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Create.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Create.json index 3fcdd421d459..fc68352648d3 100644 --- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Create.json +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Create.json @@ -8,7 +8,7 @@ "providerInstanceParameter": { "properties": { "type": "hana", - "properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\",\"dbPassword\":\"PASSWORD\"}", + "properties": "{\"hostname\":\"10.0.0.6\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30013,\"dbUsername\":\"SYSTEM\",\"dbPassword\":\"PASSWORD\"}", "metadata": "{\"key\":\"value\"}" } } @@ -20,8 +20,8 @@ "name": "myProviderInstance", "type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances", "properties": { - "type": "hana", - "properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}", + "type": "SapHana", + "properties": "{\"hostname\":\"10.0.0.6\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30013,\"dbUsername\":\"SYSTEM\"}", "metadata": "{\"key\":\"value\"}", "provisioningState": "Accepted" } @@ -33,8 +33,8 @@ "name": "myProviderInstance", "type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances", "properties": { - "type": "hana", - "properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}", + "type": "SapHana", + "properties": "{\"hostname\":\"10.0.0.6\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30013,\"dbUsername\":\"SYSTEM\"}", "metadata": "{\"key\":\"value\"}", "provisioningState": "Accepted" } diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Get.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Get.json index 5193d6e9aaa8..8beb352e5c67 100644 --- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Get.json +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_Get.json @@ -13,8 +13,8 @@ "name": "myProviderInstance", "type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances", "properties": { - "type": "hana", - "properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}", + "type": "SapHana", + "properties": "{\"hostname\":\"10.0.0.6\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30013,\"dbUsername\":\"SYSTEM\"}", "metadata": "{\"key\":\"value\"}" } } diff --git a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_List.json b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_List.json index 4a01efc99c4d..7efc4dc4ea10 100644 --- a/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_List.json +++ b/specification/hanaonazure/resource-manager/Microsoft.HanaOnAzure/preview/2020-02-07-preview/examples/ProviderInstances_List.json @@ -14,8 +14,8 @@ "name": "myProviderInstance1", "type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances", "properties": { - "type": "hana", - "properties": "{\"hostname\":\"10.0.0.10\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}", + "type": "SapHana", + "properties": "{\"hostname\":\"10.0.0.6\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30013,\"dbUsername\":\"SYSTEM\"}", "metadata": "{\"key\":\"value\"}" } }, @@ -24,8 +24,18 @@ "name": "myProviderInstance2", "type": "Microsoft.HanaOnAzure/sapMonitors/providerInstances", "properties": { - "type": "hana", - "properties": "{\"hostname\":\"10.0.0.11\",\"dbName\":\"SYSTEMDB\",\"sqlPort\":30015,\"dbUsername\":\"SYSTEM\"}", + "type": "PrometheusHaCluster", + "properties": "{\"prometheusUrl\":\"http://10.0.0.21:9664/metrics\"}", + "metadata": "{\"key\":\"value\"}" + } + }, + { + "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": "MsSqlServer", + "properties": "{\"sqlHostname\":\"10.0.0.6\",\"sqlPort\":1433,\"sqlUsername\":\"sqladmin\"}", "metadata": "{\"key\":\"value\"}" } }