ChaosExtensions.GetChaosTarget Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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: Target_Get
- Default Api Version: 2025-01-01
- Resource: ChaosTargetResource
public static Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource> GetChaosTarget(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, System.Threading.CancellationToken cancellationToken = default);
static member GetChaosTarget : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource>
<Extension()>
Public Function GetChaosTarget (resourceGroupResource As ResourceGroupResource, parentProviderNamespace As String, parentResourceType As String, parentResourceName As String, targetName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ChaosTargetResource)
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
- parentProviderNamespace
- String
The parent resource provider namespace.
- parentResourceType
- String
The parent resource type.
- parentResourceName
- String
The parent resource name.
- targetName
- String
String that represents a Target resource name.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
resourceGroupResource
, parentProviderNamespace
, parentResourceType
, parentResourceName
or targetName
is null.
parentProviderNamespace
, parentResourceType
, parentResourceName
or targetName
is an empty string, and was expected to be non-empty.