MockableChaosArmClient.GetChaosTargetAsync Method

Definition

Get a Target resource that extends a tracked regional resource.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource>> GetChaosTargetAsync(Azure.Core.ResourceIdentifier scope, string targetName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetChaosTargetAsync : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource>>
override this.GetChaosTargetAsync : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource>>
Public Overridable Function GetChaosTargetAsync (scope As ResourceIdentifier, targetName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ChaosTargetResource))

Parameters

scope
ResourceIdentifier

The scope of the resource collection to get.

targetName
String

String that represents a Target resource name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

targetName is null.

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

Applies to