Share via


ConnectionsClient.GetConnectionWithSecretsAsync Method

Definition

Overloads

GetConnectionWithSecretsAsync(String, RequestContent, RequestContext)

[Protocol Method] Get the details of a single connection, including credentials (if available).

GetConnectionWithSecretsAsync(String, String, CancellationToken)

Get the details of a single connection, including credentials (if available).

GetConnectionWithSecretsAsync(String, RequestContent, RequestContext)

Source:
ConnectionsClient.cs

[Protocol Method] Get the details of a single connection, including credentials (if available).

public virtual System.Threading.Tasks.Task<Azure.Response> GetConnectionWithSecretsAsync (string connectionName, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member GetConnectionWithSecretsAsync : string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetConnectionWithSecretsAsync : string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetConnectionWithSecretsAsync (connectionName As String, content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

connectionName
String

Connection Name.

content
RequestContent

The content to send as the body of the request.

context
RequestContext

The request context, which can override default behaviors of the client pipeline on a per-call basis.

Returns

The response returned from the service.

Exceptions

connectionName or content is null.

connectionName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

GetConnectionWithSecretsAsync(String, String, CancellationToken)

Source:
ConnectionsClient.cs

Get the details of a single connection, including credentials (if available).

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.ConnectionResponse>> GetConnectionWithSecretsAsync (string connectionName, string ignored, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConnectionWithSecretsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.ConnectionResponse>>
override this.GetConnectionWithSecretsAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.AI.Projects.ConnectionResponse>>
Public Overridable Function GetConnectionWithSecretsAsync (connectionName As String, ignored As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConnectionResponse))

Parameters

connectionName
String

Connection Name.

ignored
String

The body is ignored. TODO: Can we remove this?.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

connectionName or ignored is null.

connectionName is an empty string, and was expected to be non-empty.

Applies to