-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Swagger Files For SQL Managed Database and Managed Instance (#…
…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
1 parent
2e0bad1
commit 9666a76
Showing
21 changed files
with
2,029 additions
and
0 deletions.
There are no files selected for viewing
75 changes: 75 additions & 0 deletions
75
...e-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceCreateMax.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" : {} | ||
} | ||
} |
54 changes: 54 additions & 0 deletions
54
...e-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceCreateMin.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...urce-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" : "" | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
...esource-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...source-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
...Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceListByResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...e-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceUpdateMax.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" : {} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...e-manager/Microsoft.Sql/preview/2015-05-01-preview/examples/ManagedInstanceUpdateMin.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": {} | ||
} | ||
} |
Oops, something went wrong.