Skip to content

Commit

Permalink
Add start & shutdown Hana APIs to swagger spec. (#6428)
Browse files Browse the repository at this point in the history
* Add Start & Shutdown APIs to HanaOnAzure Swagger spec.

* Add Start & Shutdown APIs to HanaOnAzure Swagger spec.

* Update the example description

* Add default response.
  • Loading branch information
vipulha authored and amarzavery committed Jun 26, 2019
1 parent 1f2d3f5 commit 0bc701c
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2017-11-03-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"hanaInstanceName": "myHanaInstance"
},
"responses": {
"200": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2017-11-03-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "myResourceGroup",
"hanaInstanceName": "myHanaInstance"
},
"responses": {
"200": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,110 @@
},
"202": {
"description": "Accepted"
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances/{hanaInstanceName}/start": {
"post": {
"tags": [
"HanaOnAzure"
],
"operationId": "HanaInstances_Start",
"x-ms-long-running-operation": true,
"description": "The operation to start a SAP HANA instance.",
"x-ms-examples": {
"Start a HANA instance": {
"$ref": "./examples/HanaInstances_Start.json"
}
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/HanaInstanceNameParameter"
}
],
"responses": {
"200": {
"description": "OK"
},
"202": {
"description": "Accepted"
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HanaOnAzure/hanaInstances/{hanaInstanceName}/shutdown": {
"post": {
"tags": [
"HanaOnAzure"
],
"operationId": "HanaInstances_Shutdown",
"x-ms-long-running-operation": true,
"description": "The operation to shutdown a SAP HANA instance.",
"x-ms-examples": {
"Shutdown a HANA instance": {
"$ref": "./examples/HanaInstances_Shutdown.json"
}
},
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"parameters": [
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
},
{
"$ref": "#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/HanaInstanceNameParameter"
}
],
"responses": {
"200": {
"description": "OK"
},
"202": {
"description": "Accepted"
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
Expand Down

0 comments on commit 0bc701c

Please sign in to comment.