-
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.
ManagedDatabase get schemas,tables,columns API (#5171)
* DW deactivated error code * managed database schema api * resolve conflicts with prod * adding schema API for databases. updates for MI schema API * database schema examples * added missing ServerNameParameter * dummy commit * remove empty properties * remove empty properties * remove empty properties * remove empty properties * remove empty properties * remove empty properties * remove empty properties * remove empty properties * remove empty properties
- Loading branch information
1 parent
7a89fb6
commit dd797bb
Showing
14 changed files
with
1,548 additions
and
0 deletions.
There are no files selected for viewing
620 changes: 620 additions & 0 deletions
620
...ication/sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/DatabaseSchema.json
Large diffs are not rendered by default.
Oops, something went wrong.
622 changes: 622 additions & 0 deletions
622
.../sql/resource-manager/Microsoft.Sql/preview/2018-06-01-preview/ManagedDatabaseSchema.json
Large diffs are not rendered by default.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseColumnGet.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,24 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "serverName", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"tableName": "table1", | ||
"columnName": "column1", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo/tables/table1/columns/column1", | ||
"name": "column1", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns", | ||
"properties": { | ||
"columnType": "bit" | ||
} | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseColumnListByTable.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,35 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "serverName", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"tableName": "table1", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo/tables/table1/columns/col1", | ||
"name": "col1", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns", | ||
"properties": { | ||
"columnType": "nvarchar" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo/tables/table1/columns/col2", | ||
"name": "col2", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables/columns", | ||
"properties": { | ||
"columnType": "bit" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSchemaGet.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,19 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "serverName", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo", | ||
"name": "dbo", | ||
"type": "Microsoft.Sql/servers/databases/schemas" | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...nager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseSchemaListByDatabase.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,27 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "serverName", | ||
"databaseName": "myDatabase", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo", | ||
"name": "dbo", | ||
"type": "Microsoft.Sql/servers/databases/schemas" | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/schema2", | ||
"name": "schema2", | ||
"type": "Microsoft.Sql/servers/databases/schemas" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
.../resource-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseTableGet.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "serverName", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"tableName": "table1", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo/tables/table1", | ||
"name": "table1", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables" | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/DatabaseTableListBySchema.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,28 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"serverName": "serverName", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo/tables/table1", | ||
"name": "table1", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables" | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/servers/serverName/databases/myDatabase/schemas/dbo/tables/table2", | ||
"name": "table2", | ||
"type": "Microsoft.Sql/servers/databases/schemas/tables" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...e-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedDatabaseColumnGet.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,24 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"managedInstanceName": "myManagedInstanceName", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"tableName": "table1", | ||
"columnName": "column1", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/table1/columns/column1", | ||
"name": "column1", | ||
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables/columns", | ||
"properties": { | ||
"columnType": "bit" | ||
} | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...r/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedDatabaseColumnListByTable.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,35 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"managedInstanceName": "myManagedInstanceName", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"tableName": "table1", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/table1/columns/col1", | ||
"name": "col1", | ||
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables/columns", | ||
"properties": { | ||
"columnType": "nvarchar" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/table1/columns/col2", | ||
"name": "col2", | ||
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables/columns", | ||
"properties": { | ||
"columnType": "bit" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
...e-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedDatabaseSchemaGet.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,19 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"managedInstanceName": "myManagedInstanceName", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo", | ||
"name": "dbo", | ||
"type": "Microsoft.Sql/managedInstances/databases/schemas" | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
...icrosoft.Sql/preview/2018-06-01-preview/examples/ManagedDatabaseSchemaListByDatabase.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,27 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"managedInstanceName": "myManagedInstanceName", | ||
"databaseName": "myDatabase", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo", | ||
"name": "dbo", | ||
"type": "Microsoft.Sql/managedInstances/databases/schemas" | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/schema2", | ||
"name": "schema2", | ||
"type": "Microsoft.Sql/managedInstances/databases/schemas" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...ce-manager/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedDatabaseTableGet.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,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"managedInstanceName": "myManagedInstanceName", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"tableName": "table1", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/table1", | ||
"name": "table1", | ||
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables" | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...r/Microsoft.Sql/preview/2018-06-01-preview/examples/ManagedDatabaseTableListBySchema.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,28 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "myRG", | ||
"managedInstanceName": "myManagedInstanceName", | ||
"databaseName": "myDatabase", | ||
"schemaName": "dbo", | ||
"api-version": "2018-06-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/table1", | ||
"name": "table1", | ||
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables" | ||
}, | ||
{ | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myRG/providers/Microsoft.Sql/managedInstances/myManagedInstanceName/databases/myDatabase/schemas/dbo/tables/table2", | ||
"name": "table2", | ||
"type": "Microsoft.Sql/managedInstances/databases/schemas/tables" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |