Skip to content

Commit 6152241

Browse files
joshuaz93visingl
authored andcommitted
Add Synapse Link for Azure SQL API (#18361)
* Add Synapse Link for Azure SQL API * Fix typo
1 parent 5f2b252 commit 6152241

14 files changed

+1253
-1
lines changed

custom-words.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2469,6 +2469,11 @@ schemagroups
24692469
videoanalyzer
24702470
Unsecure
24712471
Noreuse
2472+
linkconnections
2473+
edittables
2474+
detailedstatus
2475+
linktables
2476+
querytablestatus
24722477
loadtestservice
24732478
testmanager
24742479
additionalmetrics
@@ -2505,4 +2510,5 @@ Vuln
25052510
IAASVM
25062511
Quickbase
25072512
Smartsheet
2508-
Qualys
2513+
Qualys
2514+
servermetrics
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2021-12-01-preview",
6+
"linkConnection": {
7+
"properties": {
8+
"compute": {
9+
"coreCount": 8,
10+
"computeType": "General"
11+
},
12+
"sourceDatabase": {
13+
"linkedService": {
14+
"referenceName": "exampleSourceLinkedService",
15+
"type": "LinkedServiceReference"
16+
},
17+
"typeProperties": {
18+
"resourceId": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Sql/servers/testAzureSql",
19+
"principalId": "fcf4d3a4-35b5-4c02-8b57-502cd6456d0b"
20+
}
21+
},
22+
"targetDatabase": {
23+
"linkedService": {
24+
"referenceName": "exampleTargetLinkedService",
25+
"type": "LinkedServiceReference"
26+
}
27+
},
28+
"landingZone": {
29+
"linkedService": {
30+
"referenceName": "exampleLandingZoneLinkedService",
31+
"type": "LinkedServiceReference"
32+
},
33+
"fileSystem": "exampleFileSystem",
34+
"folderPath": "exampleFolderPath",
35+
"sasToken": {
36+
"type": "SecureString",
37+
"value": "exampleSasToken"
38+
}
39+
}
40+
}
41+
}
42+
},
43+
"responses": {
44+
"200": {
45+
"body": {
46+
"id": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Synapse/workspaces/testWs/linkConnections/testLinkConnection",
47+
"name": "testLinkConnection",
48+
"type": "Microsoft.Synapse/workspaces/linkConnections",
49+
"properties": {
50+
"compute": {
51+
"coreCount": 8,
52+
"computeType": "General"
53+
},
54+
"sourceDatabase": {
55+
"linkedService": {
56+
"referenceName": "exampleSourceLinkedService",
57+
"type": "LinkedServiceReference"
58+
},
59+
"typeProperties": {
60+
"resourceId": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Sql/servers/testAzureSql",
61+
"principalId": "fcf4d3a4-35b5-4c02-8b57-502cd6456d0b"
62+
}
63+
},
64+
"targetDatabase": {
65+
"linkedService": {
66+
"referenceName": "exampleTargetLinkedService",
67+
"type": "LinkedServiceReference"
68+
}
69+
}
70+
}
71+
}
72+
}
73+
}
74+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2021-12-01-preview"
6+
},
7+
"responses": {
8+
"200": {},
9+
"204": {}
10+
}
11+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2021-12-01-preview",
6+
"editTablesRequest": {
7+
"linkTables": [
8+
{
9+
"id": "33f01131-553b-4b97-83a8-0db255a66901",
10+
"source": {
11+
"tableName": "exampleSourceTable",
12+
"schemaName": "exampleSourceSchema"
13+
},
14+
"target": {
15+
"tableName": "exampleTargetTable",
16+
"schemaName": "exampleTargetSchema",
17+
"distributionOptions": {
18+
"type": "Round_RoBin"
19+
}
20+
},
21+
"operationType": "Add"
22+
}
23+
]
24+
}
25+
},
26+
"responses": {
27+
"200": {}
28+
}
29+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2021-12-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Synapse/workspaces/testWs/linkConnections/testLinkConnection",
11+
"name": "testLinkConnection",
12+
"type": "Microsoft.Synapse/workspaces/linkConnections",
13+
"properties": {
14+
"compute": {
15+
"coreCount": 8,
16+
"computeType": "General"
17+
},
18+
"sourceDatabase": {
19+
"linkedService": {
20+
"referenceName": "exampleSourceLinkedService",
21+
"type": "LinkedServiceReference"
22+
},
23+
"typeProperties": {
24+
"resourceId": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Sql/servers/testAzureSql",
25+
"principalId": "fcf4d3a4-35b5-4c02-8b57-502cd6456d0b"
26+
}
27+
},
28+
"targetDatabase": {
29+
"linkedService": {
30+
"referenceName": "exampleTargetLinkedService",
31+
"type": "LinkedServiceReference"
32+
}
33+
}
34+
}
35+
}
36+
}
37+
}
38+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2021-12-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"id": "d20e417b-b5d1-4d5c-b2d6-4a581575c5b1",
11+
"name": "testLinkConnection",
12+
"isApplyingChanges": false,
13+
"isPartiallyFailed": false,
14+
"startTime": "2021-10-28T08:09:32.2976822Z",
15+
"status": "Running",
16+
"stopTime": "2021-10-28T09:24:47.2415789Z",
17+
"continuousRunId": "23ded02c-056b-45e7-8852-a2fdb8d250dc"
18+
}
19+
}
20+
}
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2021-12-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"id": "7bbb9091983b48f59808cb322a30e1e1",
13+
"name": "testLinkConnection",
14+
"source": {
15+
"tableName": "exampleSourceTable",
16+
"schemaName": "exampleSourceSchema"
17+
},
18+
"target": {
19+
"tableName": "exampleTargetTable",
20+
"schemaName": "exampleTargetSchema"
21+
}
22+
}
23+
]
24+
}
25+
}
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2021-12-01-preview",
6+
"queryTableStatusRequest": {
7+
"maxSegmentCount": 50
8+
}
9+
},
10+
"responses": {
11+
"200": {
12+
"body": {
13+
"value": [
14+
{
15+
"id": "8bbb9091983b48f59808cb322a30e1e1",
16+
"startTime": "2021-10-28T08:09:32.2976822Z",
17+
"status": "Replicating",
18+
"stopTime": "2021-10-28T09:24:47.2415789Z",
19+
"errorMessage": "sampleErrorMessage"
20+
}
21+
],
22+
"continuationToken": null
23+
}
24+
}
25+
}
26+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2021-12-01-preview"
6+
},
7+
"responses": {
8+
"200": {}
9+
}
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2021-12-01-preview"
6+
},
7+
"responses": {
8+
"200": {}
9+
}
10+
}

0 commit comments

Comments
 (0)