MockableChaosArmClient.GetChaosCapability Method

Definition

Get a Capability resource that extends a Target resource.

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