Dela via


LoadTestingExtensions.GetLoadTestingResource Method

Definition

Overloads

GetLoadTestingResource(ArmClient, ResourceIdentifier)

Gets an object representing a LoadTestingResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a LoadTestingResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetLoadTestingResource(ResourceIdentifier) instead.

GetLoadTestingResource(ResourceGroupResource, String, CancellationToken)

Get a LoadTest resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}
  • Operation Id: LoadTests_Get

GetLoadTestingResource(ArmClient, ResourceIdentifier)

Source:
LoadTestingExtensions.cs
Source:
LoadTestingExtensions.cs

Gets an object representing a LoadTestingResource along with the instance operations that can be performed on it but with no data. You can use CreateResourceIdentifier(String, String, String) to create a LoadTestingResourceResourceIdentifier from its components. MockingTo mock this method, please mock GetLoadTestingResource(ResourceIdentifier) instead.

public static Azure.ResourceManager.LoadTesting.LoadTestingResource GetLoadTestingResource (this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);
static member GetLoadTestingResource : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier -> Azure.ResourceManager.LoadTesting.LoadTestingResource
<Extension()>
Public Function GetLoadTestingResource (client As ArmClient, id As ResourceIdentifier) As LoadTestingResource

Parameters

client
ArmClient

The ArmClient instance the method will execute against.

id
ResourceIdentifier

The resource ID of the resource to get.

Returns

Returns a LoadTestingResource object.

Exceptions

client is null.

Applies to

GetLoadTestingResource(ResourceGroupResource, String, CancellationToken)

Source:
LoadTestingExtensions.cs
Source:
LoadTestingExtensions.cs

Get a LoadTest resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.LoadTestService/loadTests/{loadTestName}
  • Operation Id: LoadTests_Get
public static Azure.Response<Azure.ResourceManager.LoadTesting.LoadTestingResource> GetLoadTestingResource (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string loadTestName, System.Threading.CancellationToken cancellationToken = default);
static member GetLoadTestingResource : Azure.ResourceManager.Resources.ResourceGroupResource * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.LoadTesting.LoadTestingResource>
<Extension()>
Public Function GetLoadTestingResource (resourceGroupResource As ResourceGroupResource, loadTestName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of LoadTestingResource)

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

loadTestName
String

Load Test name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

resourceGroupResource or loadTestName is null.

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

Applies to