Skip to content

Commit

Permalink
Updated Swagger Files For SQL Managed Database and Managed Instance (#…
Browse files Browse the repository at this point in the history
…2706)

* Porting Managed Database and Managed Instance Swagger Files Into Public Rest API Repo

* Adding Correct Example Files for ManagedDatabase

* Moving files into 2015 api folder

* Moving Managed Database Spec back to 2017-03 preview

* Updating ReadMe as tests are recorded E2E

* Adding Swaggers to Two More Packages in ReadMe

* Updating readme file to add the new APIs
  • Loading branch information
ziwa-msft authored and jianghaolu committed Apr 17, 2018
1 parent 2e0bad1 commit 9666a76
Show file tree
Hide file tree
Showing 21 changed files with 2,029 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
{
"parameters" : {
"subscriptionId" : "20D7082A-0FC7-4468-82BD-542694D5042B",
"resourceGroupName" : "testrg",
"managedInstanceName" : "testinstance",
"api-version" : "2015-05-01-preview",
"parameters" : {
"tags" : {
"tagKey1" : "TagValue1"
},
"location" : "Japan East",
"sku" : {
"name" : "CLS3",
"tier" : "Standard",
"capacity" : 1
},
"properties" : {
"fullyQualifiedDomainName" : "testinstance.database.windows.net",
"administratorLogin" : "dummylogin",
"administratorLoginPassword" : "Un53cuRE!",
"subnetId" : "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1",
"vCores": 8,
"storageSizeInGB": 1024,
"licenseType": "Full"
}
}
},
"responses" : {
"200" : {
"body" : {
"tags" : {
"tagKey1" : "TagValue1"
},
"id" : "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance1",
"name" : "testinstance1",
"type" : "Microsoft.Sql/managedInstances",
"location" : "japaneast",
"sku" : {
"name" : "CLS3",
"tier" : "Standard",
"capacity" : 1
},
"properties" : {
"fullyQualifiedDomainName" : "testinstance.database.windows.net",
"administratorLogin" : "dummylogin",
"subnetId" : "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1",
"state" : "Ready"
}
}
},
"201" : {
"body" : {
"tags" : {
"tagKey1" : "TagValue1"
},
"id" : "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance2",
"name" : "testinstance2",
"type" : "Microsoft.Sql/managedInstances",
"location" : "japaneast",
"sku" : {
"name" : "CLS3",
"tier" : "Standard",
"capacity" : 1
},
"properties" : {
"fullyQualifiedDomainName" : "testinstance.database.windows.net",
"administratorLogin" : "dummylogin",
"subnetId" : "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1",
"state" : "Ready"
}
}
},
"202" : {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parameters": {
"subscriptionId" : "20D7082A-0FC7-4468-82BD-542694D5042B",
"resourceGroupName" : "testrg",
"managedInstanceName" : "testinstance",
"api-version": "2015-05-01-preview",
"parameters": {
"properties": {
"administratorLogin": "dummylogin",
"administratorLoginPassword": "Un53cuRE!"
},
"location": "Japan East"
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance",
"name": "testinstance",
"type": "Microsoft.Sql/managedInstances",
"location": "japaneast",
"sku" : {
"name" : "CLS3",
"tier" : "Standard",
"capacity" : 1
},
"properties": {
"fullyQualifiedDomainName": "testinstance.database.windows.net",
"administratorLogin": "dummylogin",
"state": "Ready"
}
}
},
"201": {
"body": {
"id": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance",
"name": "testinstance",
"type": "Microsoft.Sql/managedInstances",
"location": "japaneast",
"sku" : {
"name" : "CLS3",
"tier" : "Standard",
"capacity" : 1
},
"properties": {
"fullyQualifiedDomainName": "testinstance.database.windows.net",
"administratorLogin": "dummylogin",
"state": "Ready"
}
}
},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters" : {
"subscriptionId" : "20D7082A-0FC7-4468-82BD-542694D5042B",
"resourceGroupName" : "testrg",
"managedInstanceName" : "testinstance",
"api-version" : "2015-05-01-preview"
},
"responses" : {
"200" : {
"body" : ""
},
"202" : {},
"204" : {
"body" : ""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"parameters" : {
"subscriptionId" : "20d7082a-0fc7-4468-82bd-542694d5042b",
"resourceGroupName" : "testrg",
"managedInstanceName" : "testcl",
"api-version" : "2015-05-01-preview"
},
"responses" : {
"200" : {
"body" : {
"sku" : {
"name" : "CLS3",
"tier" : "Standard",
"capacity": 1,
"family":"Gen4"
},
"properties" : {
"fullyQualifiedDomainName" : "testcl.database.windows.net",
"administratorLogin": "cloudSA",
"state": "Ready",
"vCores": 8,
"storageSizeInGB": 1024,
"licenseType": "Full"

},
"location" : "onebox",
"id" : "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testcl",
"name" : "testcl",
"type" : "Microsoft.Sql/managedInstances"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"parameters" : {
"subscriptionId": "20D7082A-0FC7-4468-82BD-542694D5042B",
"api-version" : "2015-05-01-preview"
},
"responses" : {
"200" : {
"body" : {
"value" : [{
"location" : "onebox",
"id" : "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/Test1/providers/Microsoft.Sql/managedInstances/testcl",
"name" : "testcl",
"type": "Microsoft.Sql/managedInstances",
"sku" : {
"name" : "CLS3",
"tier" : "Standard",
"capacity" : 1
},
"properties" : {
"fullyQualifiedDomainName" : "testcl.database.windows.net",
"administratorLogin" : "cloudSA",
"state": "Ready",
"vCores": 8,
"storageSizeInGB": 1024,
"licenseType": "Full"
}
}, {
"location" : "onebox",
"id" : "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/Test1/providers/Microsoft.Sql/managedInstances/testcl2",
"name" : "testcl2",
"type": "Microsoft.Sql/managedInstances",
"sku" : {
"name" : "CLS15",
"tier" : "Standard",
"capacity" : 22
},
"properties" : {
"fullyQualifiedDomainName" : "testcl2.database.windows.net",
"administratorLogin" : "cloudSA",
"state": "Ready",
"vCores": 8,
"storageSizeInGB": 1024,
"licenseType": "Full"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"parameters" : {
"subscriptionId": "20D7082A-0FC7-4468-82BD-542694D5042B",
"resourceGroupName" : "Test1",
"api-version" : "2015-05-01-preview"
},
"responses" : {
"200" : {
"body" : {
"value" : [{
"location" : "onebox",
"id" : "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/Test1/providers/Microsoft.Sql/managedInstances/testcl",
"name" : "testcl",
"type": "Microsoft.Sql/managedInstances",
"sku" : {
"name" : "CLS3",
"tier" : "Standard",
"capacity" : 1,
"family":"Gen5"
},
"properties" : {
"fullyQualifiedDomainName" : "testcl.database.windows.net",
"administratorLogin" : "cloudSA",
"state": "Ready",
"vCores": 8,
"storageSizeInGB": 1024,
"licenseType": "Full"
}
}, {
"location" : "onebox",
"id" : "/subscriptions/20d7082a-0fc7-4468-82bd-542694d5042b/resourceGroups/Test1/providers/Microsoft.Sql/managedInstances/testcl2",
"name" : "testcl2",
"type": "Microsoft.Sql/managedInstances",
"sku" : {
"name" : "CLS15",
"tier" : "Standard",
"capacity" : 22,
"family":"Gen4"
},
"properties" : {
"fullyQualifiedDomainName" : "testcl2.database.windows.net",
"administratorLogin" : "cloudSA",
"state": "Ready",
"vCores": 8,
"storageSizeInGB": 1024,
"licenseType": "Full"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters" : {
"subscriptionId" : "20D7082A-0FC7-4468-82BD-542694D5042B",
"resourceGroupName" : "testrg",
"managedInstanceName" : "testinstance",
"api-version" : "2015-05-01-preview",
"parameters" : {
"tags" : {
"tagKey1" : "TagValue1"
},
"sku" : {
"name" : "CLS3",
"tier" : "Standard",
"capacity" : 1
},
"properties" : {
"fullyQualifiedDomainName" : "testinstance.database.windows.net",
"administratorLogin" : "dummylogin",
"administratorLoginPassword" : "Un53cuRE!",
"subnetId" : "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1"
}
}
},
"responses" : {
"200" : {
"body" : {
"tags" : {
"tagKey1" : "TagValue1"
},
"id" : "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance1",
"name" : "testinstance1",
"type" : "Microsoft.Sql/managedInstances",
"location" : "japaneast",
"sku" : {
"name" : "CLS3",
"tier" : "Standard",
"capacity" : 1
},
"properties" : {
"fullyQualifiedDomainName" : "testinstance.database.windows.net",
"administratorLogin" : "dummylogin",
"subnetId" : "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1",
"state" : "Ready"
}
}
},
"202" : {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"subscriptionId" : "20D7082A-0FC7-4468-82BD-542694D5042B",
"resourceGroupName" : "testrg",
"managedInstanceName" : "testinstance",
"api-version": "2015-05-01-preview",
"parameters": {
"tags": {
"tagKey1": "TagValue1"
}
}
},
"responses": {
"200": {
"body": {
"tags": {
"tagKey1": "TagValue1"
},
"id": "/subscriptions/20D7082A-0FC7-4468-82BD-542694D5042B/resourceGroups/testrg/providers/Microsoft.Sql/managedInstances/testinstance",
"name": "testinstance",
"type": "Microsoft.Sql/managedInstances",
"location": "japaneast",
"sku" : {
"name" : "CLS3",
"tier" : "Standard",
"capacity" : 1
},
"properties": {
"fullyQualifiedDomainName": "testinstance.database.windows.net",
"administratorLogin": "dummylogin",
"state": "Ready"
}
}
},
"202": {}
}
}
Loading

0 comments on commit 9666a76

Please sign in to comment.