Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"parameters": {
"api-version": "2017-11-03-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": {
"hanaSubnet": "",
"hanaHostname": "",
"hanaDbName": "",
"hanaDbSqlPort": 1234,
"hanaDbUsername": "",
"provisioningState": "Succeeded"
}
}
},
"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": {
"hanaSubnet": "",
"hanaHostname": "",
"hanaDbName": "",
"hanaDbSqlPort": 1234,
"hanaDbUsername": "",
"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": {
"hanaSubnet": "",
"hanaHostname": "",
"hanaDbName": "",
"hanaDbSqlPort": 1234,
"hanaDbUsername": "",
"provisioningState": "Accepted"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"parameters": {
"api-version": "2017-11-03-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": {
"hanaSubnet": "",
"hanaHostname": "",
"hanaDbName": "",
"hanaDbSqlPort": 1234,
"hanaDbUsername": "",
"provisioningState": "Succeeded"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,103 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/sapMonitors/{sapMonitorName}": {
Comment thread
PakDLiu marked this conversation as resolved.
"get": {
"tags": [
"HanaOnAzure"
],
"operationId": "SapMonitors_Get",
"summary": "Gets properties of a SAP monitor.",
"description": "Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.",
"x-ms-examples": {
"Get properties of a SAP monitor": {
"$ref": "./examples/SapMonitors_Get.json"
}
},
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/SapMonitorNameParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/SapMonitor"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
},
"put": {
Comment thread
PakDLiu marked this conversation as resolved.
"tags": [
"HanaOnAzure"
],
"operationId": "SapMonitors_Create",
"x-ms-long-running-operation": true,
"summary": "Creates a SAP monitor.",
"description": "Creates a SAP monitor for the specified subscription, resource group, and resource name.",
"x-ms-examples": {
"Get properties of a HANA instance": {
"$ref": "./examples/SapMonitors_Create.json"
}
},
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/SapMonitorNameParameter"
},
{
"$ref": "#/parameters/SapMonitorParameter"
}
],
"responses": {
"200": {
"description": "Created SapMonitor",
"schema": {
"$ref": "#/definitions/SapMonitor"
}
},
"201": {
"description": "Creating SapMonitor",
"schema": {
"$ref": "#/definitions/SapMonitor"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -821,6 +918,69 @@
}
},
"description": "Details needed to monitor a Hana Instance"
},
"SapMonitor": {
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/SapMonitorProperties",
"description": "SAP monitor properties"
}
},
"allOf": [
{
"$ref": "#/definitions/Resource"
}
],
"description": "SAP monitor info on Azure (ARM properties and SAP monitor properties)"
},
"SapMonitorProperties": {
"properties": {
"hanaSubnet": {
"readOnly": true,
"type": "string",
"description": "Specifies the SAP monitor unique ID."
},
"hanaHostname": {
"type": "string",
"description": "Hostname of the HANA instance."
},
"hanaDbName": {
"type": "string",
"description": "Database name of the HANA instance."
},
"hanaDbSqlPort": {
"type": "integer",
"description": "Database port of the HANA instance."
},
"hanaDbUsername": {
"type": "string",
"description": "Database username of the HANA instance."
},
"hanaDbPassword": {
"type": "string",
"description": "Database password of the HANA instance."
},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this ever be returned on GET responses?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it won't.
On the GET, will not exist.

Is there a way to reuse the definition with slight changes?

"provisioningState": {
"readOnly": true,
"type": "string",
"enum": [
"Accepted",
"Creating",
"Updating",
"Failed",
"Succeeded",
"Deleting",
"Migrating"
],
"x-ms-enum": {
"name": "HanaProvisioningStatesEnum",
"modelAsString": true
},
"description": "State of provisioning of the HanaInstance"
}
},
"description": "Describes the properties of a SAP monitor."
}
},
"parameters": {
Expand All @@ -847,6 +1007,14 @@
"description": "Name of the SAP HANA on Azure instance.",
"x-ms-parameter-location": "method"
},
"SapMonitorNameParameter": {
"name": "sapMonitorName",
"in": "path",
"required": true,
"type": "string",
"description": "Name of the SAP monitor resource.",
"x-ms-parameter-location": "method"
},
"ApiVersionParameter": {
"name": "api-version",
"in": "query",
Expand Down Expand Up @@ -883,6 +1051,16 @@
},
"description": "Request body representing a HanaInstance",
"x-ms-parameter-location": "method"
},
"SapMonitorParameter": {
"name": "sapMonitorParameter",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/SapMonitor"
},
"description": "Request body representing a SAP Monitor",
"x-ms-parameter-location": "method"
}
}
}