Skip to content

Commit

Permalink
Adding monitoring fields to hanaonazure.json (#5466)
Browse files Browse the repository at this point in the history
  • Loading branch information
pabowers authored and dsgouda committed Mar 29, 2019
1 parent c883e0c commit 381e545
Show file tree
Hide file tree
Showing 2 changed files with 190 additions and 64 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"api-version": "2017-11-03-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"hanaInstanceName": "myHanaInstance",
"monitoringParameter": {
"hanaVnet": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/myVnet",
"hanaHostname": "hana.hostname",
"hanaInstanceNum": "04",
"dbContainer": "single",
"hanaDbUsername": "SYSTEM",
"hanaDbPassword": "passExample"
}
},
"responses": {
"200": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -195,52 +195,52 @@
}
},
"patch": {
"tags": [
"HanaOnAzure"
],
"operationId": "HanaInstances_Update",
"summary": "Patches the Tags field of a SAP HANA instance.",
"description": "Patches the Tags field of a SAP HANA instance for the specified subscription, resource group, and instance name.",
"x-ms-examples": {
"Update Tags field of a HANA instance": {
"$ref": "./examples/HanaInstances_PatchTags.json"
},
"Delete Tags field of a HANA instance": {
"$ref": "./examples/HanaInstances_PatchTags_Delete.json"
"tags": [
"HanaOnAzure"
],
"operationId": "HanaInstances_Update",
"summary": "Patches the Tags field of a SAP HANA instance.",
"description": "Patches the Tags field of a SAP HANA instance for the specified subscription, resource group, and instance name.",
"x-ms-examples": {
"Update Tags field of a HANA instance": {
"$ref": "./examples/HanaInstances_PatchTags.json"
},
"Delete Tags field of a HANA instance": {
"$ref": "./examples/HanaInstances_PatchTags_Delete.json"
}
},
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/HanaInstanceNameParameter"
},
{
"$ref": "#/parameters/TagsParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/HanaInstance"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
},
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/HanaInstanceNameParameter"
},
{
"$ref": "#/parameters/TagsParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/HanaInstance"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances/{hanaInstanceName}/restart": {
"post": {
Expand Down Expand Up @@ -284,6 +284,52 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances/{hanaInstanceName}/monitoring": {
"post": {
"tags": [
"HanaOnAzure"
],
"operationId": "Monitoring_HanaInstances",
"x-ms-long-running-operation": true,
"description": "The operation to monitor a SAP HANA instance.",
"x-ms-examples": {
"Monitor a HANA instance": {
"$ref": "./examples/HanaInstances_Monitoring.json"
}
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/HanaInstanceNameParameter"
},
{
"$ref": "#/parameters/MonitoringParameter"
}
],
"responses": {
"200": {
"description": "OK"
},
"202": {
"description": "Accepted"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -393,14 +439,14 @@
"description": "Resource power state"
},
"proximityPlacementGroup": {
"readOnly": true,
"type": "string",
"description": "Resource proximity placement group"
"readOnly": true,
"type": "string",
"description": "Resource proximity placement group"
},
"hwRevision": {
"readOnly": true,
"type": "string",
"description": "Hardware revision of a HANA instance"
"readOnly": true,
"type": "string",
"description": "Hardware revision of a HANA instance"
}
},
"description": "Describes the properties of a HANA instance."
Expand Down Expand Up @@ -610,17 +656,67 @@
}
},
"Tags": {
"type": "object",
"properties": {
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Tags field of the HANA instance."
}
},
"description": "Tags field of the HANA instance."
"type": "object",
"properties": {
"tags": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Tags field of the HANA instance."
}
},
"description": "Tags field of the HANA instance."
},
"MonitoringDetails": {
"type": "object",
"properties": {
"hanaVnet": {
"readOnly": true,
"type": "string",
"description": "ARM ID of an Azure Vnet with access to the HANA instance."
},
"hanaHostname": {
"readOnly": true,
"type": "string",
"description": "Hostname of the HANA Instance blade."
},
"hanaInstanceNum": {
"readOnly": true,
"type": "string",
"description": "A number between 00 and 99, stored as a string to maintain leading zero."
},
"dbContainer": {
"readOnly": true,
"type": "string",
"enum": [
"single",
"multiple"
],
"default": "single",
"x-ms-enum": {
"name": "HanaDatabaseContainersEnum",
"modelAsString": true
},
"description": "Either single or multiple depending on the use of MDC(Multiple Database Containers)"
},
"hanaDatabase": {
"readOnly": true,
"type": "string",
"description": "Name of the database itself. It only needs to be specified if using MDC"
},
"hanaDbUsername": {
"readOnly": true,
"type": "string",
"description": "Username for the HANA database to login to for monitoring"
},
"hanaDbPassword": {
"readOnly": true,
"type": "string",
"description": "Password for the HANA database to login for monitoring"
}
},
"description": "Details needed to monitor a Hana Instance"
}
},
"parameters": {
Expand Down Expand Up @@ -659,10 +755,20 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/Tags"
"$ref": "#/definitions/Tags"
},
"description": "Request body that only contains the new Tags field",
"x-ms-parameter-location": "method"
},
"MonitoringParameter": {
"name": "monitoringParameter",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/MonitoringDetails"
},
"description": "Request body that only contains monitoring attributes",
"x-ms-parameter-location": "method"
}
}
}
}

0 comments on commit 381e545

Please sign in to comment.