-
Notifications
You must be signed in to change notification settings - Fork 5.1k
/
connectionPolicies.json
194 lines (194 loc) · 5.57 KB
/
connectionPolicies.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
{
"swagger": "2.0",
"info": {
"title": "Azure SQL Server API spec",
"description": "The Azure SQL Server management API provides a RESTful set of web services that interact with Azure SQL Server services to manage your databases. The API enables users update server connection policy.",
"version": "2014-04-01"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies/{connectionPolicyName}": {
"put": {
"tags": [
"ConnectionPolicies"
],
"operationId": "ServerConnectionPolicies_CreateOrUpdate",
"description": "Creates or updates the server's connection policy.",
"x-ms-examples": {
"Create or update a server's secure connection policy": {
"$ref": "./examples/ServerConnectionPolicyCreateOrUpdate.json"
}
},
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"$ref": "#/parameters/ConnectionPolicyNameParameter"
},
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ServerConnectionPolicy"
},
"description": "The required parameters for updating a secure connection policy."
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ServerConnectionPolicy"
}
},
"201": {
"description": "Created",
"schema": {
"$ref": "#/definitions/ServerConnectionPolicy"
}
}
}
},
"get": {
"tags": [
"ConnectionPolicies"
],
"operationId": "ServerConnectionPolicies_Get",
"description": "Gets the server's secure connection policy.",
"x-ms-examples": {
"Get a server's secure connection policy": {
"$ref": "./examples/ServerConnectionPolicyGet.json"
}
},
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../common/v1/types.json#/parameters/ResourceGroupParameter"
},
{
"$ref": "#/parameters/ServerNameParameter"
},
{
"$ref": "#/parameters/ConnectionPolicyNameParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ServerConnectionPolicy"
}
}
}
}
}
},
"definitions": {
"ServerConnectionPolicyProperties": {
"properties": {
"connectionType": {
"type": "string",
"description": "The server connection type.",
"enum": [
"Default",
"Proxy",
"Redirect"
],
"x-ms-enum": {
"name": "ServerConnectionType"
}
}
},
"required": [
"connectionType"
],
"description": "The properties of a server secure connection policy."
},
"ServerConnectionPolicy": {
"properties": {
"kind": {
"readOnly": true,
"type": "string",
"description": "Metadata used for the Azure portal experience."
},
"location": {
"type": "string",
"description": "Resource location.",
"readOnly": true
},
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/ServerConnectionPolicyProperties",
"description": "The properties of the server secure connection policy."
}
},
"allOf": [
{
"$ref": "../../../common/v1/types.json#/definitions/ProxyResource"
}
],
"description": "A server secure connection policy."
}
},
"parameters": {
"ServerNameParameter": {
"name": "serverName",
"in": "path",
"required": true,
"type": "string",
"description": "The name of the server.",
"x-ms-parameter-location": "method"
},
"ConnectionPolicyNameParameter": {
"name": "connectionPolicyName",
"in": "path",
"required": true,
"type": "string",
"enum": [
"default"
],
"description": "The name of the connection policy.",
"x-ms-enum": {
"modelAsString": true,
"name": "ConnectionPolicyName"
},
"x-ms-parameter-location": "method"
}
},
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"description": "Azure Active Directory OAuth2 Flow",
"flow": "implicit",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
}
}