Experiment

class Experiment : KotlinCustomResource

Defines the properties of an Experiment Uses Azure REST API version 2019-11-01. In version 1.x of the Azure Native provider, it used API version 2019-11-01.

Example Usage

Creates an Experiment

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var experiment = new AzureNative.Network.Experiment("experiment", new()
{
Description = "this is my first experiment!",
EnabledState = AzureNative.Network.State.Enabled,
EndpointA = new AzureNative.Network.Inputs.ExperimentEndpointArgs
{
Endpoint = "endpointA.net",
Name = "endpoint A",
},
EndpointB = new AzureNative.Network.Inputs.ExperimentEndpointArgs
{
Endpoint = "endpointB.net",
Name = "endpoint B",
},
ExperimentName = "MyExperiment",
ProfileName = "MyProfile",
ResourceGroupName = "MyResourceGroup",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewExperiment(ctx, "experiment", &network.ExperimentArgs{
Description: pulumi.String("this is my first experiment!"),
EnabledState: pulumi.String(network.StateEnabled),
EndpointA: &network.ExperimentEndpointArgs{
Endpoint: pulumi.String("endpointA.net"),
Name: pulumi.String("endpoint A"),
},
EndpointB: &network.ExperimentEndpointArgs{
Endpoint: pulumi.String("endpointB.net"),
Name: pulumi.String("endpoint B"),
},
ExperimentName: pulumi.String("MyExperiment"),
ProfileName: pulumi.String("MyProfile"),
ResourceGroupName: pulumi.String("MyResourceGroup"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.Experiment;
import com.pulumi.azurenative.network.ExperimentArgs;
import com.pulumi.azurenative.network.inputs.ExperimentEndpointArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var experiment = new Experiment("experiment", ExperimentArgs.builder()
.description("this is my first experiment!")
.enabledState("Enabled")
.endpointA(ExperimentEndpointArgs.builder()
.endpoint("endpointA.net")
.name("endpoint A")
.build())
.endpointB(ExperimentEndpointArgs.builder()
.endpoint("endpointB.net")
.name("endpoint B")
.build())
.experimentName("MyExperiment")
.profileName("MyProfile")
.resourceGroupName("MyResourceGroup")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:Experiment MyExperiment /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}

Properties

Link copied to clipboard
val description: Output<String>?

The description of the details or intents of the Experiment

Link copied to clipboard
val enabledState: Output<String>?

The state of the Experiment

Link copied to clipboard

The endpoint A of an experiment

Link copied to clipboard

The endpoint B of an experiment

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>?

Resource location.

Link copied to clipboard
val name: Output<String>

Resource name.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val resourceState: Output<String>

Resource status.

Link copied to clipboard
val scriptFileUri: Output<String>

The uri to the Script used in the Experiment

Link copied to clipboard
val status: Output<String>

The description of Experiment status from the server side

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>