AIProjectConnectionsOperations.GetConnection Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get a connection by name.
public Azure.AI.Projects.AIProjectConnection GetConnection(string connectionName, bool includeCredentials = false, System.Threading.CancellationToken cancellationToken = default);
member this.GetConnection : string * bool * System.Threading.CancellationToken -> Azure.AI.Projects.AIProjectConnection
Public Function GetConnection (connectionName As String, Optional includeCredentials As Boolean = false, Optional cancellationToken As CancellationToken = Nothing) As AIProjectConnection
Parameters
- connectionName
- String
The name of the connection. Required.
- includeCredentials
- Boolean
Whether to include credentials in the response. Default is false.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
A AIProjectConnection object.
Exceptions
Thrown when the request fails.