Language

MockableChaosSubscriptionResource.GetChaosAction Method

Definition

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 Azure.Response<Azure.ResourceManager.Chaos.ChaosActionResource> GetChaosAction(Azure.Core.AzureLocation location, string actionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetChaosAction : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Chaos.ChaosActionResource>
override this.GetChaosAction : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Chaos.ChaosActionResource>
Public Overridable Function GetChaosAction (location As AzureLocation, actionName As String, Optional cancellationToken As CancellationToken = Nothing) As 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.

Applies to