Skip to content

Commit 53a8dd6

Browse files
ZhichengYang-MSkayousef
authored andcommitted
[Synapse]add new apis of Pause/Resume for Synapse Link (Azure#21240)
* add pause resume apis * fix examples * simplified changes * fix version * fix linDiff * remove location info in url
1 parent c578438 commit 53a8dd6

15 files changed

+1447
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2022-12-01-preview",
6+
"linkConnection": {
7+
"description": "linkconnection description",
8+
"properties": {
9+
"compute": {
10+
"coreCount": 8,
11+
"computeType": "General",
12+
"dataProcessIntervalMinutes": 60
13+
},
14+
"sourceDatabase": {
15+
"linkedService": {
16+
"referenceName": "exampleSourceLinkedService",
17+
"type": "LinkedServiceReference"
18+
},
19+
"typeProperties": {
20+
"resourceId": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Sql/servers/testAzureSql",
21+
"principalId": "fcf4d3a4-35b5-4c02-8b57-502cd6456d0b"
22+
}
23+
},
24+
"targetDatabase": {
25+
"linkedService": {
26+
"referenceName": "exampleTargetLinkedService",
27+
"type": "LinkedServiceReference"
28+
},
29+
"typeProperties": {
30+
"crossTableTransaction": false,
31+
"dropExistingTargetTableOnStart": true
32+
}
33+
},
34+
"landingZone": {
35+
"linkedService": {
36+
"referenceName": "exampleLandingZoneLinkedService",
37+
"type": "LinkedServiceReference"
38+
},
39+
"fileSystem": "exampleFileSystem",
40+
"folderPath": "exampleFolderPath",
41+
"sasToken": {
42+
"type": "SecureString",
43+
"value": "exampleSasToken"
44+
}
45+
}
46+
}
47+
}
48+
},
49+
"responses": {
50+
"200": {
51+
"body": {
52+
"id": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Synapse/workspaces/testWs/linkConnections/testLinkConnection",
53+
"name": "testLinkConnection",
54+
"type": "Microsoft.Synapse/workspaces/linkConnections",
55+
"description": "linkconnection description",
56+
"properties": {
57+
"compute": {
58+
"coreCount": 8,
59+
"computeType": "General",
60+
"dataProcessIntervalMinutes": 60
61+
},
62+
"sourceDatabase": {
63+
"linkedService": {
64+
"referenceName": "exampleSourceLinkedService",
65+
"type": "LinkedServiceReference"
66+
},
67+
"typeProperties": {
68+
"resourceId": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Sql/servers/testAzureSql",
69+
"principalId": "fcf4d3a4-35b5-4c02-8b57-502cd6456d0b"
70+
}
71+
},
72+
"targetDatabase": {
73+
"linkedService": {
74+
"referenceName": "exampleTargetLinkedService",
75+
"type": "LinkedServiceReference"
76+
},
77+
"typeProperties": {
78+
"crossTableTransaction": false,
79+
"dropExistingTargetTableOnStart": true
80+
}
81+
}
82+
}
83+
}
84+
}
85+
}
86+
}
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": "2022-12-01-preview"
6+
},
7+
"responses": {
8+
"200": {},
9+
"204": {}
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2022-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+
"structureOptions": {
21+
"type": "Clustered_ColumnStore"
22+
}
23+
},
24+
"operationType": "Add"
25+
}
26+
]
27+
}
28+
},
29+
"responses": {
30+
"200": {}
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2022-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+
"description": "linkconnection description",
14+
"properties": {
15+
"compute": {
16+
"coreCount": 8,
17+
"computeType": "General",
18+
"dataProcessIntervalMinutes": 60
19+
},
20+
"sourceDatabase": {
21+
"linkedService": {
22+
"referenceName": "exampleSourceLinkedService",
23+
"type": "LinkedServiceReference"
24+
},
25+
"typeProperties": {
26+
"resourceId": "/subscriptions/99c6ec47-aacb-485c-863c-018be33b9000/resourceGroups/testResourceGroup/providers/Microsoft.Sql/servers/testAzureSql",
27+
"principalId": "fcf4d3a4-35b5-4c02-8b57-502cd6456d0b"
28+
}
29+
},
30+
"targetDatabase": {
31+
"linkedService": {
32+
"referenceName": "exampleTargetLinkedService",
33+
"type": "LinkedServiceReference"
34+
},
35+
"typeProperties": {
36+
"crossTableTransaction": false,
37+
"dropExistingTargetTableOnStart": true
38+
}
39+
}
40+
}
41+
}
42+
}
43+
}
44+
}
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": "2022-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+
"refreshStatus": {
19+
"refreshStatus": "Failed",
20+
"errorMessage": "sampleErrorMessage"
21+
},
22+
"landingZoneCredentialExpireTime": "2022-12-31T05:30:00.0000000Z"
23+
}
24+
}
25+
}
26+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2022-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+
"distributionOptions": {
22+
"type": "Round_RoBin"
23+
},
24+
"structureOptions": {
25+
"type": "Clustered_ColumnStore"
26+
}
27+
}
28+
}
29+
]
30+
}
31+
}
32+
}
33+
}
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": "2022-12-01-preview"
6+
},
7+
"responses": {
8+
"200": {}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"parameters": {
3+
"endpoint": "testWs.dev.azuresynapse.net",
4+
"linkConnectionName": "testLinkConnection",
5+
"api-version": "2022-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+
"linkTableId": "10c1bb52-6a70-4ece-953a-fc15df0460e2",
21+
"errorCode": "sampleErrorCode",
22+
"lastProcessedData": "2022-07-27T15:19:32.473Z",
23+
"lastTransactionCommitTime": "2022-07-27T15:19:32.473Z"
24+
}
25+
],
26+
"continuationToken": null
27+
}
28+
}
29+
}
30+
}
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": "2022-12-01-preview"
6+
},
7+
"responses": {
8+
"200": {}
9+
}
10+
}
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": "2022-12-01-preview"
6+
},
7+
"responses": {
8+
"200": {}
9+
}
10+
}

0 commit comments

Comments
 (0)