MockableChaosArmClient.GetChaosTarget Method

Definition

Get a Target resource that extends a tracked regional resource.

public virtual Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource> GetChaosTarget(Azure.Core.ResourceIdentifier scope, string targetName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetChaosTarget : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource>
override this.GetChaosTarget : Azure.Core.ResourceIdentifier * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource>
Public Overridable Function GetChaosTarget (scope As ResourceIdentifier, targetName As String, Optional cancellationToken As CancellationToken = Nothing) As 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