Skip to content

Commit ca5d960

Browse files
authored
Release 2022 02 01 preview (#19820)
* add all swagger and example files from dev branch * update the customer words and readme.md * update custom-words.txt * Update ManagedInstanceOperations.json
1 parent b149ca5 commit ca5d960

File tree

731 files changed

+83755
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

731 files changed

+83755
-0
lines changed

custom-words.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ Cmdkey
398398
cmdlet
399399
cmdlets
400400
CMEK
401+
CMKDW
402+
CMKHS
401403
CMMI
402404
CNAME
403405
cntk
@@ -2427,6 +2429,9 @@ westindia
24272429
Westlake
24282430
westus
24292431
WGXM
2432+
whitelisted
2433+
Whitelisting
2434+
Whitelistings
24302435
whitespaces
24312436
Whois
24322437
Widevine
@@ -2628,6 +2633,9 @@ SIMIDs
26282633
ICCID
26292634
unversioned
26302635
RANs
2636+
azuresqldbkeyrotation
2637+
DBCMK
2638+
DTCs
26312639
Angika
26322640
Awadhi
26332641
Bagheli
Lines changed: 345 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,345 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"version": "2022-02-01-preview",
5+
"title": "SqlManagementClient",
6+
"description": "The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities."
7+
},
8+
"host": "management.azure.com",
9+
"schemes": [
10+
"https"
11+
],
12+
"consumes": [
13+
"application/json"
14+
],
15+
"produces": [
16+
"application/json"
17+
],
18+
"paths": {
19+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies": {
20+
"get": {
21+
"tags": [
22+
"BackupShortTermRetentionPolicies"
23+
],
24+
"description": "Gets a database's short term retention policy.",
25+
"operationId": "BackupShortTermRetentionPolicies_ListByDatabase",
26+
"parameters": [
27+
{
28+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
29+
},
30+
{
31+
"$ref": "#/parameters/ServerNameParameter"
32+
},
33+
{
34+
"$ref": "#/parameters/DatabaseNameParameter"
35+
},
36+
{
37+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
38+
},
39+
{
40+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
41+
}
42+
],
43+
"responses": {
44+
"200": {
45+
"description": "Successfully retrieved the policy.",
46+
"schema": {
47+
"$ref": "#/definitions/BackupShortTermRetentionPolicyListResult"
48+
}
49+
},
50+
"default": {
51+
"description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found."
52+
}
53+
},
54+
"x-ms-pageable": {
55+
"nextLinkName": "nextLink"
56+
},
57+
"x-ms-examples": {
58+
"Get the short term retention policy for the database.": {
59+
"$ref": "./examples/ListShortTermRetentionPoliciesByDatabase.json"
60+
}
61+
}
62+
}
63+
},
64+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}": {
65+
"get": {
66+
"tags": [
67+
"BackupShortTermRetentionPolicies"
68+
],
69+
"description": "Gets a database's short term retention policy.",
70+
"operationId": "BackupShortTermRetentionPolicies_Get",
71+
"parameters": [
72+
{
73+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
74+
},
75+
{
76+
"$ref": "#/parameters/ServerNameParameter"
77+
},
78+
{
79+
"$ref": "#/parameters/DatabaseNameParameter"
80+
},
81+
{
82+
"name": "policyName",
83+
"in": "path",
84+
"description": "The policy name. Should always be \"default\".",
85+
"required": true,
86+
"type": "string",
87+
"enum": [
88+
"default"
89+
],
90+
"x-ms-enum": {
91+
"name": "ShortTermRetentionPolicyName",
92+
"modelAsString": true
93+
}
94+
},
95+
{
96+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
97+
},
98+
{
99+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
100+
}
101+
],
102+
"responses": {
103+
"200": {
104+
"description": "Successfully retrieved the policy.",
105+
"schema": {
106+
"$ref": "#/definitions/BackupShortTermRetentionPolicy"
107+
}
108+
},
109+
"default": {
110+
"description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found."
111+
}
112+
},
113+
"x-ms-examples": {
114+
"Get the short term retention policy for the database.": {
115+
"$ref": "./examples/GetShortTermRetentionPolicy.json"
116+
}
117+
}
118+
},
119+
"put": {
120+
"tags": [
121+
"BackupShortTermRetentionPolicies"
122+
],
123+
"description": "Updates a database's short term retention policy.",
124+
"operationId": "BackupShortTermRetentionPolicies_CreateOrUpdate",
125+
"parameters": [
126+
{
127+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
128+
},
129+
{
130+
"$ref": "#/parameters/ServerNameParameter"
131+
},
132+
{
133+
"$ref": "#/parameters/DatabaseNameParameter"
134+
},
135+
{
136+
"name": "policyName",
137+
"in": "path",
138+
"description": "The policy name. Should always be \"default\".",
139+
"required": true,
140+
"type": "string",
141+
"enum": [
142+
"default"
143+
],
144+
"x-ms-enum": {
145+
"name": "ShortTermRetentionPolicyName",
146+
"modelAsString": true
147+
}
148+
},
149+
{
150+
"name": "parameters",
151+
"in": "body",
152+
"description": "The short term retention policy info.",
153+
"required": true,
154+
"schema": {
155+
"$ref": "#/definitions/BackupShortTermRetentionPolicy"
156+
}
157+
},
158+
{
159+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
160+
},
161+
{
162+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
163+
}
164+
],
165+
"responses": {
166+
"200": {
167+
"description": "Successfully updated the policy.",
168+
"schema": {
169+
"$ref": "#/definitions/BackupShortTermRetentionPolicy"
170+
}
171+
},
172+
"default": {
173+
"description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 400 InvalidBackupRetentionPeriod - The retention days of {0} is not a valid configuration. Valid backup retention in days must be between {1} and {2}\n\n * 400 InvalidDiffBackupIntervalHours - The differential backup interval hours of {0} is not a valid configuration. Valid differential backup interval must be {1} hours.\n\n * 400 FeatureDisabledOnSelectedEdition - User attempted to use a feature which is disabled on current database edition.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 409 ConflictingDatabaseOperation - There is already some operation on the database and the current operation should wait till it is done.\n\n * 409 ConflictingSystemOperationInProgress - A system maintenance operation is in progress on the database and further operations need to wait until it is completed.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout."
174+
},
175+
"202": {
176+
"description": "Accepted"
177+
}
178+
},
179+
"x-ms-long-running-operation": true,
180+
"x-ms-examples": {
181+
"Update the short term retention policy for the database.": {
182+
"$ref": "./examples/UpdateShortTermRetentionPolicy.json"
183+
}
184+
}
185+
},
186+
"patch": {
187+
"tags": [
188+
"BackupShortTermRetentionPolicies"
189+
],
190+
"description": "Updates a database's short term retention policy.",
191+
"operationId": "BackupShortTermRetentionPolicies_Update",
192+
"parameters": [
193+
{
194+
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
195+
},
196+
{
197+
"$ref": "#/parameters/ServerNameParameter"
198+
},
199+
{
200+
"$ref": "#/parameters/DatabaseNameParameter"
201+
},
202+
{
203+
"name": "policyName",
204+
"in": "path",
205+
"description": "The policy name. Should always be \"default\".",
206+
"required": true,
207+
"type": "string",
208+
"enum": [
209+
"default"
210+
],
211+
"x-ms-enum": {
212+
"name": "ShortTermRetentionPolicyName",
213+
"modelAsString": true
214+
}
215+
},
216+
{
217+
"name": "parameters",
218+
"in": "body",
219+
"description": "The short term retention policy info.",
220+
"required": true,
221+
"schema": {
222+
"$ref": "#/definitions/BackupShortTermRetentionPolicy"
223+
}
224+
},
225+
{
226+
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
227+
},
228+
{
229+
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
230+
}
231+
],
232+
"responses": {
233+
"200": {
234+
"description": "Successfully updated the policy.",
235+
"schema": {
236+
"$ref": "#/definitions/BackupShortTermRetentionPolicy"
237+
}
238+
},
239+
"default": {
240+
"description": "*** Error Responses: ***\n\n * 400 InvalidParameterValue - An invalid value was given to a parameter.\n\n * 400 InvalidBackupRetentionPeriod - The retention days of {0} is not a valid configuration. Valid backup retention in days must be between {1} and {2}\n\n * 400 InvalidDiffBackupIntervalHours - The differential backup interval hours of {0} is not a valid configuration. Valid differential backup interval must be {1} hours.\n\n * 400 FeatureDisabledOnSelectedEdition - User attempted to use a feature which is disabled on current database edition.\n\n * 404 SubscriptionDoesNotHaveServer - The requested server was not found\n\n * 404 ServerNotInSubscriptionResourceGroup - Specified server does not exist in the specified resource group and subscription.\n\n * 404 ResourceNotFound - The requested resource was not found.\n\n * 404 SourceDatabaseNotFound - The source database does not exist.\n\n * 404 CannotFindObject - Cannot find the object because it does not exist or you do not have permissions\n\n * 409 ConflictingDatabaseOperation - There is already some operation on the database and the current operation should wait till it is done.\n\n * 409 ConflictingSystemOperationInProgress - A system maintenance operation is in progress on the database and further operations need to wait until it is completed.\n\n * 429 SubscriptionTooManyCreateUpdateRequests - Requests beyond max requests that can be processed by available resources.\n\n * 429 SubscriptionTooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 503 TooManyRequests - Requests beyond max requests that can be processed by available resources.\n\n * 504 RequestTimeout - Service request exceeded the allowed timeout."
241+
},
242+
"202": {
243+
"description": "Accepted"
244+
}
245+
},
246+
"x-ms-long-running-operation": true,
247+
"x-ms-examples": {
248+
"Update the short term retention policy for the database.": {
249+
"$ref": "./examples/UpdateShortTermRetentionPolicy.json"
250+
}
251+
}
252+
}
253+
}
254+
},
255+
"definitions": {
256+
"BackupShortTermRetentionPolicy": {
257+
"description": "A short term retention policy.",
258+
"type": "object",
259+
"allOf": [
260+
{
261+
"$ref": "../../../common/v1/types.json#/definitions/ProxyResource"
262+
}
263+
],
264+
"properties": {
265+
"properties": {
266+
"$ref": "#/definitions/BackupShortTermRetentionPolicyProperties",
267+
"description": "Resource properties.",
268+
"x-ms-client-flatten": true
269+
}
270+
}
271+
},
272+
"BackupShortTermRetentionPolicyListResult": {
273+
"description": "A list of short term retention policies.",
274+
"type": "object",
275+
"properties": {
276+
"value": {
277+
"description": "Array of results.",
278+
"type": "array",
279+
"items": {
280+
"$ref": "#/definitions/BackupShortTermRetentionPolicy"
281+
},
282+
"readOnly": true
283+
},
284+
"nextLink": {
285+
"description": "Link to retrieve next page of results.",
286+
"type": "string",
287+
"readOnly": true
288+
}
289+
}
290+
},
291+
"BackupShortTermRetentionPolicyProperties": {
292+
"description": "Properties of a short term retention policy",
293+
"type": "object",
294+
"properties": {
295+
"retentionDays": {
296+
"format": "int32",
297+
"description": "The backup retention period in days. This is how many days Point-in-Time Restore will be supported.",
298+
"type": "integer"
299+
},
300+
"diffBackupIntervalInHours": {
301+
"format": "int32",
302+
"description": "The differential backup interval in hours. This is how many interval hours between each differential backup will be supported. This is only applicable to live databases but not dropped databases.",
303+
"enum": [
304+
"12",
305+
"24"
306+
],
307+
"type": "integer",
308+
"x-ms-enum": {
309+
"name": "DiffBackupIntervalInHours",
310+
"modelAsString": true
311+
}
312+
}
313+
}
314+
}
315+
},
316+
"parameters": {
317+
"DatabaseNameParameter": {
318+
"name": "databaseName",
319+
"in": "path",
320+
"description": "The name of the database.",
321+
"required": true,
322+
"type": "string",
323+
"x-ms-parameter-location": "method"
324+
},
325+
"ServerNameParameter": {
326+
"name": "serverName",
327+
"in": "path",
328+
"description": "The name of the server.",
329+
"required": true,
330+
"type": "string",
331+
"x-ms-parameter-location": "method"
332+
}
333+
},
334+
"securityDefinitions": {
335+
"azure_auth": {
336+
"type": "oauth2",
337+
"description": "Azure Active Directory OAuth2 Flow",
338+
"flow": "implicit",
339+
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
340+
"scopes": {
341+
"user_impersonation": "impersonate your user account"
342+
}
343+
}
344+
}
345+
}

0 commit comments

Comments
 (0)