LoadTestAdministrationClient.GetOperationStatus 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
| Name | Description |
|---|---|
| GetOperationStatus(String, RequestContext) |
[Protocol Method] Get the status of a long running operation.
|
| GetOperationStatus(String, CancellationToken) |
Get the status of a long running operation. |
GetOperationStatus(String, RequestContext)
[Protocol Method] Get the status of a long running operation.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response GetOperationStatus(string operationId, Azure.RequestContext context);
abstract member GetOperationStatus : string * Azure.RequestContext -> Azure.Response
override this.GetOperationStatus : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetOperationStatus (operationId As String, context As RequestContext) As Response
Parameters
- operationId
- String
The unique ID of the operation.
- context
- RequestContext
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
operationId is null.
operationId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetOperationStatus(String, CancellationToken)
Get the status of a long running operation.
public virtual Azure.Response<Azure.Developer.LoadTesting.OperationStatus> GetOperationStatus(string operationId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetOperationStatus : string * System.Threading.CancellationToken -> Azure.Response<Azure.Developer.LoadTesting.OperationStatus>
override this.GetOperationStatus : string * System.Threading.CancellationToken -> Azure.Response<Azure.Developer.LoadTesting.OperationStatus>
Public Overridable Function GetOperationStatus (operationId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of OperationStatus)
Parameters
- operationId
- String
The unique ID of the operation.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
operationId is null.
operationId is an empty string, and was expected to be non-empty.
Service returned a non-success status code.