MockableChaosArmClient.GetChaosCapabilityAsync Method

Definition

Get a Capability resource that extends a Target resource.

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

Parameters

scope
ResourceIdentifier

The scope of the resource collection to get.

capabilityName
String

String that represents a Capability resource name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

capabilityName is null.

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

Applies to