MockableChaosResourceGroupResource.GetChaosTarget Method

Definition

Get a Target resource that extends a tracked regional resource.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}
  • Operation Id: Targets_Get
  • Default Api Version: 2024-01-01
  • Resource: ChaosTargetResource
public virtual Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource> GetChaosTarget (string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetChaosTarget : string * string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource>
override this.GetChaosTarget : string * string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource>
Public Overridable Function GetChaosTarget (parentProviderNamespace As String, parentResourceType As String, parentResourceName As String, targetName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ChaosTargetResource)

Parameters

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.

targetName
String

String that represents a Target resource name.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

parentProviderNamespace, parentResourceType, parentResourceName or targetName is null.

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

Applies to