You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/examples/connection_examples.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,13 @@ Create a connection that uses a specific gateway for secure access.
46
46
```
47
47
fab create .connections/conn.Connection -P gateway=MyVnetGateway.Gateway,connectionDetails.type=SQL,connectionDetails.parameters.server=<server>,connectionDetails.parameters.database=sales,credentialDetails.type=Basic,credentialDetails.username=<username>,credentialDetails.password=<password>
48
48
```
49
+
#### Create Connection with On-premises Gateway
50
+
51
+
Create a connection that uses a specific on-premises gateway with encrypted credentials for secure access
52
+
53
+
```
54
+
fab create .connections/conn.Connection -P gateway=MyVnetGateway.Gateway,connectionDetails.type=SQL,connectionDetails.parameters.server=<server>,connectionDetails.parameters.database=sales,credentialDetails.type=Basic,credentialDetails.values=[{"gatewayId":"<gatewayId>", "encryptedCredentials": "<encryptedCredentials>"}]
returnf"Missing connection creation method and parameters. Please indicate either one of the following creation methods: {supported_creation_methods}, or provide parameters for automatic selection"
198
+
199
+
@staticmethod
200
+
defmissing_onpremises_gateway_parameters(
201
+
missing_params: list,
202
+
) ->str:
203
+
returnf"Missing parameters for credential values in OnPremisesGateway connectivity type: {missing_params}"
204
+
205
+
@staticmethod
206
+
definvalid_onpremises_gateway_values() ->str:
207
+
return"Values must be a list of JSON objects, each containing 'gatewayId' and 'encryptedCredentials' keys"
0 commit comments