ConnectionsClient.GetConnectionWithSecrets 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.
Overloads
GetConnectionWithSecrets(String, RequestContent, RequestContext) |
[Protocol Method] Get the details of a single connection, including credentials (if available).
|
GetConnectionWithSecrets(String, String, CancellationToken) |
Get the details of a single connection, including credentials (if available). |
GetConnectionWithSecrets(String, RequestContent, RequestContext)
- Source:
- ConnectionsClient.cs
[Protocol Method] Get the details of a single connection, including credentials (if available).
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler GetConnectionWithSecrets(String, String, CancellationToken) convenience overload with strongly typed models first.
public virtual Azure.Response GetConnectionWithSecrets (string connectionName, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member GetConnectionWithSecrets : string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
override this.GetConnectionWithSecrets : string * Azure.Core.RequestContent * Azure.RequestContext -> Azure.Response
Public Overridable Function GetConnectionWithSecrets (connectionName As String, content As RequestContent, Optional context As RequestContext = Nothing) As 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
GetConnectionWithSecrets(String, String, CancellationToken)
- Source:
- ConnectionsClient.cs
Get the details of a single connection, including credentials (if available).
public virtual Azure.Response<Azure.AI.Projects.ConnectionResponse> GetConnectionWithSecrets (string connectionName, string ignored, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConnectionWithSecrets : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.ConnectionResponse>
override this.GetConnectionWithSecrets : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Projects.ConnectionResponse>
Public Overridable Function GetConnectionWithSecrets (connectionName As String, ignored As String, Optional cancellationToken As CancellationToken = Nothing) As 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
Azure SDK for .NET