Skip to main content

experiments

Creates, updates, deletes, gets or lists an experiments resource.

Overview

Nameexperiments
TypeResource
Idazure.front_door.experiments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
descriptionstringThe description of the details or intents of the Experiment.
enabledStatestringThe state of the Experiment. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
endpointAobjectThe endpoint A of an experiment.
endpointBobjectThe endpoint B of an experiment.
locationstringResource location.
resourceStatestringResource status. Known values are: "Creating", "Enabling", "Enabled", "Disabling", "Disabled", and "Deleting". (Creating, Enabling, Enabled, Disabling, Disabled, Deleting)
scriptFileUristringThe uri to the Script used in the Experiment.
statusstringThe description of Experiment status from the server side.
tagsobjectResource tags.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, profile_name, experiment_name, subscription_idGets an Experiment by ExperimentName. Gets an Experiment by ExperimentName.
list_by_profileselectresource_group_name, profile_name, subscription_idGets a list of Experiments. Gets a list of Experiments.
create_or_updateinsertresource_group_name, profile_name, experiment_name, subscription_idCreates or updates an Experiment. Creates or updates an Experiment.
updateupdateresource_group_name, profile_name, experiment_name, subscription_idUpdates an Experiment by Experiment id. Updates an Experiment.
create_or_updatereplaceresource_group_name, profile_name, experiment_name, subscription_idCreates or updates an Experiment. Creates or updates an Experiment.
deletedeleteresource_group_name, profile_name, experiment_name, subscription_idDeletes an Experiment. Deletes an Experiment.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
experiment_namestringThe Experiment identifier associated with the Experiment. Required.
profile_namestringThe Profile identifier associated with the Tenant and Partner. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets an Experiment by ExperimentName. Gets an Experiment by ExperimentName.

SELECT
id,
name,
description,
enabledState,
endpointA,
endpointB,
location,
resourceState,
scriptFileUri,
status,
tags,
type
FROM azure.front_door.experiments
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND profile_name = '{{ profile_name }}' -- required
AND experiment_name = '{{ experiment_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates an Experiment. Creates or updates an Experiment.

INSERT INTO azure.front_door.experiments (
location,
tags,
properties,
resource_group_name,
profile_name,
experiment_name,
subscription_id
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ profile_name }}',
'{{ experiment_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

UPDATE examples

Updates an Experiment by Experiment id. Updates an Experiment.

UPDATE azure.front_door.experiments
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND experiment_name = '{{ experiment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

REPLACE examples

Creates or updates an Experiment. Creates or updates an Experiment.

REPLACE azure.front_door.experiments
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND experiment_name = '{{ experiment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

DELETE examples

Deletes an Experiment. Deletes an Experiment.

DELETE FROM azure.front_door.experiments
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND experiment_name = '{{ experiment_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;