Server Connection Policies - Create Or Update
Creates or updates the server's connection policy.
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies/default?api-version=2014-04-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
connection
|
path | True |
The name of the connection policy. |
|
|
resource
|
path | True |
string |
The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal. |
|
server
|
path | True |
string |
The name of the server. |
|
subscription
|
path | True |
string |
The subscription ID that identifies an Azure subscription. |
|
api-version
|
query | True |
string |
The API version to use for the request. |
Request Body
| Name | Required | Type | Description |
|---|---|---|---|
| properties.connectionType | True |
The server connection type. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
OK |
|
| 201 Created |
Created |
Examples
Create or update a server's secure connection policy
Sample request
Sample response
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-1234/providers/Microsoft.Sql/servers/test-5678/connectionPolicies/default",
"name": "default",
"type": "Microsoft.Sql/servers/connectionPolicies",
"location": "West US",
"kind": null,
"properties": {
"connectionType": "Proxy"
}
}
{
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-1234/providers/Microsoft.Sql/servers/test-5678/connectionPolicies/default",
"name": "default",
"type": "Microsoft.Sql/servers/connectionPolicies",
"location": "West US",
"kind": null,
"properties": {
"connectionType": "Proxy"
}
}
Definitions
| Name | Description |
|---|---|
|
Connection |
The name of the connection policy. |
|
Server |
A server secure connection policy. |
|
Server |
The server connection type. |
ConnectionPolicyName
The name of the connection policy.
| Value | Description |
|---|---|
| default |
ServerConnectionPolicy
A server secure connection policy.
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource ID. |
| kind |
string |
Metadata used for the Azure portal experience. |
| location |
string |
Resource location. |
| name |
string |
Resource name. |
| properties.connectionType |
The server connection type. |
|
| type |
string |
Resource type. |
ServerConnectionType
The server connection type.
| Value | Description |
|---|---|
| Default | |
| Proxy | |
| Redirect |