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.

C#
public static Azure.ResourceManager.LoadTesting.LoadTestingResource GetLoadTestingResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id);

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

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

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
C#
public static Azure.Response<Azure.ResourceManager.LoadTesting.LoadTestingResource> GetLoadTestingResource(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string loadTestName, System.Threading.CancellationToken cancellationToken = default);

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

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview