Experiment Args
data class ExperimentArgs(val description: Output<String>? = null, val enabledState: Output<Either<String, State>>? = null, val endpointA: Output<ExperimentEndpointArgs>? = null, val endpointB: Output<ExperimentEndpointArgs>? = null, val experimentName: Output<String>? = null, val location: Output<String>? = null, val profileName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ExperimentArgs>
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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(description: Output<String>? = null, enabledState: Output<Either<String, State>>? = null, endpointA: Output<ExperimentEndpointArgs>? = null, endpointB: Output<ExperimentEndpointArgs>? = null, experimentName: Output<String>? = null, location: Output<String>? = null, profileName: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
The description of the details or intents of the Experiment
Link copied to clipboard
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
The Experiment identifier associated with the Experiment
Link copied to clipboard
The Profile identifier associated with the Tenant and Partner
Link copied to clipboard
Name of the Resource group within the Azure subscription.