MockableChaosSubscriptionResource.GetChaosActionAsync 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 an Action resource for a given location.
- Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{location}/actions/{actionName}.
- Operation Id. : Actions_Get.
- Default Api Version. : 2026-05-01-preview.
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Chaos.ChaosActionResource>> GetChaosActionAsync(Azure.Core.AzureLocation location, string actionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetChaosActionAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Chaos.ChaosActionResource>>
override this.GetChaosActionAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Chaos.ChaosActionResource>>
Public Overridable Function GetChaosActionAsync (location As AzureLocation, actionName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ChaosActionResource))
Parameters
- location
- AzureLocation
The location for the resource.
- actionName
- String
String that represents an Action resource name.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
actionName is null.
actionName is an empty string, and was expected to be non-empty.