Skip to content

Commit

Permalink
Update SQL VM Rest API (#7324)
Browse files Browse the repository at this point in the history
* generate new sqlvm.json and added example

* add one example and update sqlvm.json

* Update sqlvm.json to pass validation

* Fix spelling

* fix modal

* remove space from one example
  • Loading branch information
sam0227 authored and lirenhe committed Oct 4, 2019
1 parent caba8e5 commit f025cc9
Show file tree
Hide file tree
Showing 5 changed files with 269 additions and 6 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ lpar
LQUP
LRO's
Lucene
LUNs
Lumia
machinelearning
machinelearningcompute
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "testrg",
"sqlVirtualMachineName": "testvm",
"api-version": "2017-03-01-preview",
"parameters": {
"location": "northeurope",
"properties": {
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm",
"storageConfigurationSettings": {
"diskConfigurationType": "EXTEND",
"sqlDataSettings": {
"luns": [2]
}
}
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm",
"provisioningState": "Updating",
"sqlServerLicenseType": "PAYG",
"sqlImageSku": "Enterprise"
},
"location": "northeurope",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm",
"name": "testvm",
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines"
}
},
"201": {
"body": {
"properties": {
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm",
"provisioningState": "Provisioning",
"sqlServerLicenseType": "PAYG",
"sqlImageSku": "Unknown"
},
"location": "northeurope",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm",
"name": "testvm",
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "testrg",
"sqlVirtualMachineName": "testvm",
"api-version": "2017-03-01-preview",
"parameters": {
"location": "northeurope",
"properties": {
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm",
"storageConfigurationSettings": {
"diskConfigurationType": "NEW",
"storageWorkloadType": "OLTP",
"sqlDataSettings": {
"defaultFilePath": "F:\\folderpath\\",
"luns": [0]
},
"sqlLogSettings": {
"defaultFilePath": "G:\\folderpath\\",
"luns": [1]
},
"sqlTempDbSettings": {
"defaultFilePath": "D:\\TEMP"
}
}
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm",
"provisioningState": "Updating",
"sqlServerLicenseType": "PAYG",
"sqlImageSku": "Enterprise"
},
"location": "northeurope",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm",
"name": "testvm",
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines"
}
},
"201": {
"body": {
"properties": {
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm",
"provisioningState": "Provisioning",
"sqlServerLicenseType": "PAYG",
"sqlImageSku": "Unknown"
},
"location": "northeurope",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm",
"name": "testvm",
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"resourceGroupName": "testrg",
"sqlVirtualMachineGroupName": "testvm",
"api-version": "2017-03-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"properties": {
"virtualMachineResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.Compute/virtualMachines/testvm2",
"provisioningState": "Succeeded",
"sqlImageOffer": "SQL2014-WS2012R2",
"sqlImageSku": "Enterprise",
"sqlManagement": "LightWeight",
"sqlServerLicenseType": "PAYG",
"sqlVirtualMachineGroupResourceId": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachineGroups/testvmgroup"
},
"location": "northeurope",
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/testrg/providers/Microsoft.SqlVirtualMachine/sqlVirtualMachines/testvm2",
"name": "testvm2",
"type": "Microsoft.SqlVirtualMachine/sqlVirtualMachines"
}
]
}
}
}
}
Loading

0 comments on commit f025cc9

Please sign in to comment.