Skip to content

Commit

Permalink
Added spec for Db2 Provider (Azure#6657)
Browse files Browse the repository at this point in the history
* Db2 Provider Properties

* aletered example

* minor

* adressed comments
  • Loading branch information
Basant2619 authored Apr 6, 2022
1 parent 4e3f3c3 commit eb6f174
Show file tree
Hide file tree
Showing 3 changed files with 148 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"parameters": {
"api-version": "2021-12-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "mySapMonitor",
"providerInstanceName": "myProviderInstance",
"providerInstanceParameter": {
"properties": {
"providerSettings": {
"providerType": "Db2",
"sapSid": "SID",
"hostname": "hostname",
"dbUsername": "username",
"dbName": "dbName",
"dbPassword": "password",
"dbPort": "dbPort"
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance",
"name": "myProviderInstance",
"type": "Microsoft.Workloads/workloads/providerInstances",
"systemData": {
"createdBy": "user@xyz.com",
"createdByType": "User",
"createdAt": "2021-08-19T15:10:46.196Z",
"lastModifiedBy": "user@xyz.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-19T15:10:46.196Z"
},
"properties": {
"provisioningState": "Succeeded",
"providerSettings": {
"providerType": "Db2",
"sapSid": "SID",
"hostname": "vmname.azure.com",
"dbUsername": "Db2OPA",
"dbName": "OPA",
"dbPort": "5912"
}
}
}
},
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance",
"name": "myProviderInstance",
"type": "Microsoft.Workloads/workloads/providerInstances",
"properties": {
"provisioningState": "Succeeded",
"providerSettings": {
"providerType": "Db2",
"sapSid": "SID",
"hostname": "vmname.azure.com",
"dbUsername": "Db2OPA",
"dbName": "OPA",
"dbPort": "5912"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"api-version": "2021-12-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"monitorName": "mySapMonitor",
"providerInstanceName": "myProviderInstance"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Workloads/workloads/mySapMonitor/providerInstances/myProviderInstance",
"name": "myProviderInstance",
"type": "Microsoft.Workloads/workloads/providerInstances",
"systemData": {
"createdBy": "user@xyz.com",
"createdByType": "User",
"createdAt": "2021-08-19T15:10:46.196Z",
"lastModifiedBy": "user@xyz.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-08-19T15:10:46.196Z"
},
"properties": {
"provisioningState": "Succeeded",
"providerSettings": {
"providerType": "Db2",
"sapSid": "SID",
"hostname": "vmname.azure.com",
"dbUsername": "Db2OPA",
"dbName": "OPA",
"dbPort": "5912"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,9 @@
},
"Get properties of a OS provider": {
"$ref": "./examples/workloadmonitor/PrometheusOSProviderInstances_Get.json"
},
"Get properties of a Db2 provider": {
"$ref": "./examples/workloadmonitor/Db2ProviderInstances_Get.json"
}
},
"produces": [
Expand Down Expand Up @@ -428,6 +431,9 @@
},
"Create a OS provider": {
"$ref": "./examples/workloadmonitor/PrometheusOSProviderInstances_Create.json"
},
"Create a Db2 provider": {
"$ref": "./examples/workloadmonitor/Db2ProviderInstances_Create.json"
}
},
"parameters": [
Expand Down Expand Up @@ -917,6 +923,43 @@
},
"x-ms-discriminator-value": "PrometheusOS"
},
"DB2ProviderInstanceProperties": {
"description": "Gets or sets the DB2 provider properties.",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/ProviderSpecificProperties"
}
],
"properties": {
"hostname": {
"description": "Gets or sets the target virtual machine name.",
"type": "string"
},
"dbName": {
"description": "Gets or sets the db2 database name.",
"type": "string"
},
"dbPort": {
"description": "Gets or sets the db2 database sql port.",
"type": "string"
},
"dbUsername": {
"description": "Gets or sets the db2 database user name.",
"type": "string"
},
"dbPassword": {
"description": "Gets or sets the db2 database password.",
"type": "string",
"x-ms-secret": true
},
"sapSid": {
"description": "Gets or sets the SAP System Identifier",
"type": "string"
}
},
"x-ms-discriminator-value": "Db2"
},
"ProviderSpecificProperties": {
"description": "Gets or sets the provider specific properties.",
"type": "object",
Expand Down

0 comments on commit eb6f174

Please sign in to comment.