Share via


ChaosExtensions.GetChaosTargets Method

Definition

Gets a collection of ChaosTargetResources in the ResourceGroupResource. MockingTo mock this method, please mock GetChaosTargets(String, String, String) instead.

public static Azure.ResourceManager.Chaos.ChaosTargetCollection GetChaosTargets (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parentProviderNamespace, string parentResourceType, string parentResourceName);
static member GetChaosTargets : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string -> Azure.ResourceManager.Chaos.ChaosTargetCollection
<Extension()>
Public Function GetChaosTargets (resourceGroupResource As ResourceGroupResource, parentProviderNamespace As String, parentResourceType As String, parentResourceName As String) As ChaosTargetCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

parentProviderNamespace
String

String that represents a resource provider namespace.

parentResourceType
String

String that represents a resource type.

parentResourceName
String

String that represents a resource name.

Returns

An object representing collection of ChaosTargetResources and their operations over a ChaosTargetResource.

Exceptions

resourceGroupResource, parentProviderNamespace, parentResourceType or parentResourceName is null.

parentProviderNamespace, parentResourceType or parentResourceName is an empty string, and was expected to be non-empty.

Applies to