Share via


AIProjectDeploymentsOperations.GetDeploymentAsync Method

Definition

Overloads

Name Description
GetDeploymentAsync(String, RequestOptions)

[Protocol Method] Get a deployed model.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
GetDeploymentAsync(String, CancellationToken)

Get a deployed model.

GetDeploymentAsync(String, RequestOptions)

Source:
AIProjectDeploymentsOperations.cs
Source:
AIProjectDeploymentsOperations.cs

[Protocol Method] Get a deployed model.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> GetDeploymentAsync(string name, System.ClientModel.Primitives.RequestOptions options);
abstract member GetDeploymentAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.GetDeploymentAsync : string * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function GetDeploymentAsync (name As String, options As RequestOptions) As Task(Of ClientResult)

Parameters

name
String

Name of the deployment.

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

name is null.

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

Service returned a non-success status code.

Applies to

GetDeploymentAsync(String, CancellationToken)

Source:
AIProjectDeploymentsOperations.cs
Source:
AIProjectDeploymentsOperations.cs

Get a deployed model.

public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.AIProjectDeployment>> GetDeploymentAsync(string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDeploymentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.AIProjectDeployment>>
override this.GetDeploymentAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.AIProjectDeployment>>
Public Overridable Function GetDeploymentAsync (name As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of AIProjectDeployment))

Parameters

name
String

Name of the deployment.

cancellationToken
CancellationToken

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

Returns

Exceptions

name is null.

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

Service returned a non-success status code.

Applies to