Share via


ConnectionsOperations.GetConnection Method

Definition

Get a connection by name.

public Azure.AI.Projects.ConnectionProperties GetConnection(string connectionName, bool includeCredentials = false, string clientRequestId = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetConnection : string * bool * string * System.Threading.CancellationToken -> Azure.AI.Projects.ConnectionProperties
Public Function GetConnection (connectionName As String, Optional includeCredentials As Boolean = false, Optional clientRequestId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As ConnectionProperties

Parameters

connectionName
String

The name of the connection. Required.

includeCredentials
Boolean

Whether to include credentials in the response. Default is false.

clientRequestId
String

An opaque, globally-unique, client-generated string identifier for the request.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

A ConnectionProperties object.

Exceptions

Thrown when the request fails.

Applies to