ExperimentsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

ChaosManagementClient's

<xref:experiments> attribute.

Inheritance
builtins.object
ExperimentsOperations

Constructor

ExperimentsOperations(*args, **kwargs)

Methods

begin_cancel

Cancel a running Experiment resource.

begin_create_or_update

Create or update a Experiment resource.

begin_delete

Delete a Experiment resource.

begin_start

Start a Experiment resource.

begin_update

The operation to update an experiment.

execution_details

Execution details of an experiment resource.

get

Get a Experiment resource.

get_execution

Get an execution of an Experiment resource.

list

Get a list of Experiment resources in a resource group.

list_all

Get a list of Experiment resources in a subscription.

list_all_executions

Get a list of executions of an Experiment resource.

begin_cancel

Cancel a running Experiment resource.

begin_cancel(resource_group_name: str, experiment_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

experiment_name
Required
str

String that represents a Experiment resource name. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

begin_create_or_update

Create or update a Experiment resource.

begin_create_or_update(resource_group_name: str, experiment_name: str, experiment: _models.Experiment, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Experiment]

Parameters

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

experiment_name
Required
str

String that represents a Experiment resource name. Required.

experiment
Required

Experiment resource to be created or updated. Is either a Experiment type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns either Experiment or the result of cls(response)

Exceptions

Type Description

begin_delete

Delete a Experiment resource.

begin_delete(resource_group_name: str, experiment_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

experiment_name
Required
str

String that represents a Experiment resource name. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

begin_start

Start a Experiment resource.

begin_start(resource_group_name: str, experiment_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

experiment_name
Required
str

String that represents a Experiment resource name. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns either None or the result of cls(response)

Exceptions

Type Description

begin_update

The operation to update an experiment.

begin_update(resource_group_name: str, experiment_name: str, experiment: _models.ExperimentUpdate, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.Experiment]

Parameters

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

experiment_name
Required
str

String that represents a Experiment resource name. Required.

experiment
Required

Parameters supplied to the Update experiment operation. Is either a ExperimentUpdate type or a IO type. Required.

Keyword-Only Parameters

Name Description
content_type
str

Body Parameter content-type. Known values are: 'application/json'. Default value is None.

cls

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy.

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

Type Description

An instance of LROPoller that returns either Experiment or the result of cls(response)

Exceptions

Type Description

execution_details

Execution details of an experiment resource.

execution_details(resource_group_name: str, experiment_name: str, execution_id: str, **kwargs: Any) -> ExperimentExecutionDetails

Parameters

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

experiment_name
Required
str

String that represents a Experiment resource name. Required.

execution_id
Required
str

GUID that represents a Experiment execution detail. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

ExperimentExecutionDetails or the result of cls(response)

Exceptions

Type Description

get

Get a Experiment resource.

get(resource_group_name: str, experiment_name: str, **kwargs: Any) -> Experiment

Parameters

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

experiment_name
Required
str

String that represents a Experiment resource name. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

Experiment or the result of cls(response)

Exceptions

Type Description

get_execution

Get an execution of an Experiment resource.

get_execution(resource_group_name: str, experiment_name: str, execution_id: str, **kwargs: Any) -> ExperimentExecution

Parameters

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

experiment_name
Required
str

String that represents a Experiment resource name. Required.

execution_id
Required
str

GUID that represents a Experiment execution detail. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

ExperimentExecution or the result of cls(response)

Exceptions

Type Description

list

Get a list of Experiment resources in a resource group.

list(resource_group_name: str, running: bool | None = None, continuation_token_parameter: str | None = None, **kwargs: Any) -> Iterable[Experiment]

Parameters

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

running
Required

Optional value that indicates whether to filter results based on if the Experiment is currently running. If null, then the results will not be filtered. Default value is None.

continuation_token_parameter
Required
str

String that sets the continuation token. Default value is None.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either Experiment or the result of cls(response)

Exceptions

Type Description

list_all

Get a list of Experiment resources in a subscription.

list_all(running: bool | None = None, continuation_token_parameter: str | None = None, **kwargs: Any) -> Iterable[Experiment]

Parameters

Name Description
running
Required

Optional value that indicates whether to filter results based on if the Experiment is currently running. If null, then the results will not be filtered. Default value is None.

continuation_token_parameter
Required
str

String that sets the continuation token. Default value is None.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either Experiment or the result of cls(response)

Exceptions

Type Description

list_all_executions

Get a list of executions of an Experiment resource.

list_all_executions(resource_group_name: str, experiment_name: str, **kwargs: Any) -> Iterable[ExperimentExecution]

Parameters

Name Description
resource_group_name
Required
str

String that represents an Azure resource group. Required.

experiment_name
Required
str

String that represents a Experiment resource name. Required.

Keyword-Only Parameters

Name Description
cls

A custom type or function that will be passed the direct response

Returns

Type Description

An iterator like instance of either ExperimentExecution or the result of cls(response)

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.chaos.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\chaos\\models\\__init__.py'>