Share via


ChaosExtensions.GetChaosTargetMetadataAsync Method

Definition

Get a Target Type resources for given ___location.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{___location}/targetTypes/{targetTypeName}
  • Operation Id: TargetType_Get
  • Default Api Version: 2025-01-01
  • Resource: ChaosTargetMetadataResource
<item>MockingTo mock this method, please mock GetChaosTargetMetadataAsync(AzureLocation, String, CancellationToken) instead.</item>
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetMetadataResource>> GetChaosTargetMetadataAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation ___location, string targetTypeName, System.Threading.CancellationToken cancellationToken = default);
static member GetChaosTargetMetadataAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetMetadataResource>>
<Extension()>
Public Function GetChaosTargetMetadataAsync (subscriptionResource As SubscriptionResource, ___location As AzureLocation, targetTypeName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ChaosTargetMetadataResource))

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

___location
AzureLocation

The name of the Azure region.

targetTypeName
String

String that represents a Target Type resource name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionResource or targetTypeName is null.

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

Applies to