-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
ConnectToSourceSqlServerTask.json
277 lines (277 loc) · 8.99 KB
/
ConnectToSourceSqlServerTask.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
{
"swagger": "2.0",
"info": {
"title": "Azure Database Migration Service (classic) Resource Provider",
"version": "2022-03-30-preview"
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {},
"definitions": {
"ConnectToSourceSqlServerTaskInput": {
"type": "object",
"description": "Input for the task that validates connection to SQL Server and also validates source server requirements",
"properties": {
"sourceConnectionInfo": {
"description": "Connection information for Source SQL Server",
"$ref": "./Common.json#/definitions/SqlConnectionInfo"
},
"checkPermissionsGroup": {
"$ref": "./Common.json#/definitions/ServerLevelPermissionsGroup",
"description": "Permission group for validations"
},
"collectDatabases": {
"type": "boolean",
"description": "Flag for whether to collect databases from source server.",
"default": true
},
"collectLogins": {
"type": "boolean",
"description": "Flag for whether to collect logins from source server.",
"default": false
},
"collectAgentJobs": {
"type": "boolean",
"description": "Flag for whether to collect agent jobs from source server.",
"default": false
},
"collectTdeCertificateInfo": {
"type": "boolean",
"description": "Flag for whether to collect TDE Certificate names from source server.",
"default": false
},
"validateSsisCatalogOnly": {
"type": "boolean",
"description": "Flag for whether to validate SSIS catalog is reachable on the source server.",
"default": false
},
"encryptedKeyForSecureFields": {
"type": "string",
"description": "encrypted key for secure fields"
}
},
"required": [
"sourceConnectionInfo"
]
},
"ConnectToSourceSqlServerTaskOutput": {
"type": "object",
"description": "Output for the task that validates connection to SQL Server and also validates source server requirements",
"properties": {
"id": {
"type": "string",
"description": "Result identifier",
"readOnly": true
},
"resultType": {
"description": "Type of result - database level or task level",
"type": "string"
}
},
"required": [
"resultType"
],
"discriminator": "resultType"
},
"ConnectToSourceSqlServerTaskOutputTaskLevel": {
"x-ms-discriminator-value": "TaskLevelOutput",
"type": "object",
"description": "Task level output for the task that validates connection to SQL Server and also validates source server requirements",
"properties": {
"databases": {
"type": "string",
"description": "Source databases as a map from database name to database id",
"additionalProperties": {
"type": "string"
},
"readOnly": true
},
"logins": {
"type": "string",
"description": "Source logins as a map from login name to login id.",
"additionalProperties": {
"type": "string"
},
"readOnly": true
},
"agentJobs": {
"type": "string",
"description": "Source agent jobs as a map from agent job name to id.",
"additionalProperties": {
"type": "string"
},
"readOnly": true
},
"databaseTdeCertificateMapping": {
"type": "string",
"description": "Mapping from database name to TDE certificate name, if applicable",
"additionalProperties": {
"type": "string"
},
"readOnly": true
},
"sourceServerVersion": {
"type": "string",
"description": "Source server version",
"readOnly": true
},
"sourceServerBrandVersion": {
"type": "string",
"description": "Source server brand version",
"readOnly": true
},
"validationErrors": {
"description": "Validation errors",
"type": "array",
"items": {
"$ref": "./Common.json#/definitions/ReportableException"
},
"readOnly": true
}
},
"allOf": [
{
"$ref": "#/definitions/ConnectToSourceSqlServerTaskOutput"
}
]
},
"ConnectToSourceSqlServerTaskOutputDatabaseLevel": {
"x-ms-discriminator-value": "DatabaseLevelOutput",
"type": "object",
"description": "Database level output for the task that validates connection to SQL Server and also validates source server requirements",
"properties": {
"name": {
"type": "string",
"description": "Database name",
"readOnly": true
},
"sizeMB": {
"type": "number",
"format": "double",
"description": "Size of the file in megabytes",
"readOnly": true
},
"databaseFiles": {
"type": "array",
"description": "The list of database files",
"items": {
"$ref": "./TasksCommon.json#/definitions/DatabaseFileInfo"
},
"readOnly": true
},
"compatibilityLevel": {
"$ref": "./TasksCommon.json#/definitions/DatabaseCompatLevel",
"description": "SQL Server compatibility level of database",
"readOnly": true
},
"databaseState": {
"$ref": "./TasksCommon.json#/definitions/DatabaseState",
"description": "State of the database",
"readOnly": true
}
},
"allOf": [
{
"$ref": "#/definitions/ConnectToSourceSqlServerTaskOutput"
}
]
},
"ConnectToSourceSqlServerTaskOutputLoginLevel": {
"x-ms-discriminator-value": "LoginLevelOutput",
"type": "object",
"description": "Login level output for the task that validates connection to SQL Server and also validates source server requirements",
"properties": {
"name": {
"type": "string",
"description": "Login name.",
"readOnly": true
},
"loginType": {
"$ref": "./TasksCommon.json#/definitions/LoginType",
"description": "The type of login.",
"readOnly": true
},
"defaultDatabase": {
"type": "string",
"description": "The default database for the login.",
"readOnly": true
},
"isEnabled": {
"type": "boolean",
"description": "The state of the login.",
"readOnly": true
},
"migrationEligibility": {
"$ref": "./TasksCommon.json#/definitions/MigrationEligibilityInfo",
"description": "Information about eligibility of login for migration.",
"readOnly": true
}
},
"allOf": [
{
"$ref": "#/definitions/ConnectToSourceSqlServerTaskOutput"
}
]
},
"ConnectToSourceSqlServerTaskOutputAgentJobLevel": {
"x-ms-discriminator-value": "AgentJobLevelOutput",
"type": "object",
"description": "Agent Job level output for the task that validates connection to SQL Server and also validates source server requirements",
"properties": {
"name": {
"type": "string",
"description": "Agent Job name",
"readOnly": true
},
"jobCategory": {
"type": "string",
"description": "The type of Agent Job.",
"readOnly": true
},
"isEnabled": {
"type": "boolean",
"description": "The state of the original Agent Job.",
"readOnly": true
},
"jobOwner": {
"type": "string",
"description": "The owner of the Agent Job",
"readOnly": true
},
"lastExecutedOn": {
"type": "string",
"format": "date-time",
"readOnly": true,
"description": "UTC Date and time when the Agent Job was last executed."
},
"validationErrors": {
"description": "Validation errors",
"type": "array",
"items": {
"$ref": "./Common.json#/definitions/ReportableException"
},
"readOnly": true
},
"migrationEligibility": {
"$ref": "./TasksCommon.json#/definitions/MigrationEligibilityInfo",
"description": "Information about eligibility of agent job for migration.",
"readOnly": true
}
},
"allOf": [
{
"$ref": "#/definitions/ConnectToSourceSqlServerTaskOutput"
}
]
}
}
}