AIProjectConnectionsOperations.GetConnectionsAsync Method

Definition

Overloads

Name Description
GetConnectionsAsync(Nullable<ConnectionType>, Nullable<Boolean>, CancellationToken)

List all connections in the project, without populating connection credentials.

GetConnectionsAsync(String, Nullable<Boolean>, RequestOptions)

[Protocol Method] List all connections in the project, without populating connection credentials

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.

GetConnectionsAsync(Nullable<ConnectionType>, Nullable<Boolean>, CancellationToken)

Source:
AIProjectConnectionsOperations.cs
Source:
AIProjectConnectionsOperations.cs

List all connections in the project, without populating connection credentials.

public virtual System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.AIProjectConnection> GetConnectionsAsync(Azure.AI.Projects.ConnectionType? connectionType = default, bool? defaultConnection = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConnectionsAsync : Nullable<Azure.AI.Projects.ConnectionType> * Nullable<bool> * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.AIProjectConnection>
override this.GetConnectionsAsync : Nullable<Azure.AI.Projects.ConnectionType> * Nullable<bool> * System.Threading.CancellationToken -> System.ClientModel.AsyncCollectionResult<Azure.AI.Projects.AIProjectConnection>
Public Overridable Function GetConnectionsAsync (Optional connectionType As Nullable(Of ConnectionType) = Nothing, Optional defaultConnection As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncCollectionResult(Of AIProjectConnection)

Parameters

connectionType
Nullable<ConnectionType>

List connections of this specific type.

defaultConnection
Nullable<Boolean>

List connections that are default connections.

cancellationToken
CancellationToken

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

Returns

Exceptions

Service returned a non-success status code.

Applies to

GetConnectionsAsync(String, Nullable<Boolean>, RequestOptions)

Source:
AIProjectConnectionsOperations.cs
Source:
AIProjectConnectionsOperations.cs

[Protocol Method] List all connections in the project, without populating connection credentials

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.Primitives.AsyncCollectionResult GetConnectionsAsync(string connectionType, bool? defaultConnection, System.ClientModel.Primitives.RequestOptions options);
abstract member GetConnectionsAsync : string * Nullable<bool> * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.Primitives.AsyncCollectionResult
override this.GetConnectionsAsync : string * Nullable<bool> * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.Primitives.AsyncCollectionResult
Public Overridable Function GetConnectionsAsync (connectionType As String, defaultConnection As Nullable(Of Boolean), options As RequestOptions) As AsyncCollectionResult

Parameters

connectionType
String

List connections of this specific type.

defaultConnection
Nullable<Boolean>

List connections that are default connections.

options
RequestOptions

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

Returns

The response returned from the service.

Exceptions

Service returned a non-success status code.

Applies to