ChaosScenarioCollection.Get(String, CancellationToken) 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 scenario.
- Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Chaos/workspaces/{workspaceName}/scenarios/{scenarioName}.
- Operation Id. : Scenarios_Get.
- Default Api Version. : 2026-05-01-preview.
public virtual Azure.Response<Azure.ResourceManager.Chaos.ChaosScenarioResource> Get(string scenarioName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Chaos.ChaosScenarioResource>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Chaos.ChaosScenarioResource>
Public Overridable Function Get (scenarioName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ChaosScenarioResource)
Parameters
- scenarioName
- String
Name of the scenario.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
scenarioName is null.
scenarioName is an empty string, and was expected to be non-empty.