Share via


LoadTestAdministrationClient.GetTestProfileAsync Method

Definition

Overloads

GetTestProfileAsync(String, CancellationToken)

Get load test profile details.

GetTestProfileAsync(String, RequestContext)

[Protocol Method] Get load test profile details.

GetTestProfileAsync(String, CancellationToken)

Source:
LoadTestAdministrationClient.cs

Get load test profile details.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Developer.LoadTesting.TestProfile>> GetTestProfileAsync(string testProfileId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTestProfileAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Developer.LoadTesting.TestProfile>>
override this.GetTestProfileAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Developer.LoadTesting.TestProfile>>
Public Overridable Function GetTestProfileAsync (testProfileId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of TestProfile))

Parameters

testProfileId
String

Unique identifier for the test profile, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

testProfileId is null.

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

Remarks

Get load test profile details by test profile Id.

Applies to

GetTestProfileAsync(String, RequestContext)

Source:
LoadTestAdministrationClient.cs

[Protocol Method] Get load test profile details.

public virtual System.Threading.Tasks.Task<Azure.Response> GetTestProfileAsync(string testProfileId, Azure.RequestContext context);
abstract member GetTestProfileAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetTestProfileAsync : string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetTestProfileAsync (testProfileId As String, context As RequestContext) As Task(Of Response)

Parameters

testProfileId
String

Unique identifier for the test profile, must contain only lower-case alphabetic, numeric, underscore or hyphen characters.

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

testProfileId is null.

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

Service returned a non-success status code.

Applies to