MockableChaosResourceGroupResource.GetChaosTargetAsync 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: Targets_Get
- Default Api Version: 2024-01-01
- Resource: ChaosTargetResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource>> GetChaosTargetAsync (string parentProviderNamespace, string parentResourceType, string parentResourceName, string targetName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetChaosTargetAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource>>
override this.GetChaosTargetAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Chaos.ChaosTargetResource>>
Public Overridable Function GetChaosTargetAsync (parentProviderNamespace As String, parentResourceType As String, parentResourceName As String, targetName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of 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
Azure SDK for .NET