Connection Monitor Test
The Connection Monitor Test class. Uses Azure REST API version 2022-10-01. In version 2.x of the Azure Native provider, it used API version 2022-10-01.
Example Usage
Create or Update Connection Monitor Test
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var connectionMonitorTest = new AzureNative.Peering.ConnectionMonitorTest("connectionMonitorTest", new()
{
ConnectionMonitorTestName = "connectionMonitorTestName",
Destination = "Example Destination",
DestinationPort = 443,
PeeringServiceName = "peeringServiceName",
ResourceGroupName = "rgName",
SourceAgent = "Example Source Agent",
TestFrequencyInSec = 30,
});
});
Content copied to clipboard
package main
import (
peering "github.com/pulumi/pulumi-azure-native-sdk/peering/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := peering.NewConnectionMonitorTest(ctx, "connectionMonitorTest", &peering.ConnectionMonitorTestArgs{
ConnectionMonitorTestName: pulumi.String("connectionMonitorTestName"),
Destination: pulumi.String("Example Destination"),
DestinationPort: pulumi.Int(443),
PeeringServiceName: pulumi.String("peeringServiceName"),
ResourceGroupName: pulumi.String("rgName"),
SourceAgent: pulumi.String("Example Source Agent"),
TestFrequencyInSec: pulumi.Int(30),
})
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.peering.ConnectionMonitorTest;
import com.pulumi.azurenative.peering.ConnectionMonitorTestArgs;
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 connectionMonitorTest = new ConnectionMonitorTest("connectionMonitorTest", ConnectionMonitorTestArgs.builder()
.connectionMonitorTestName("connectionMonitorTestName")
.destination("Example Destination")
.destinationPort(443)
.peeringServiceName("peeringServiceName")
.resourceGroupName("rgName")
.sourceAgent("Example Source Agent")
.testFrequencyInSec(30)
.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:peering:ConnectionMonitorTest connectionMonitorTestName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Peering/peeringServices/{peeringServiceName}/connectionMonitorTests/{connectionMonitorTestName}
Content copied to clipboard
Properties
Link copied to clipboard
The Azure API version of the resource.
Link copied to clipboard
The Connection Monitor test destination
Link copied to clipboard
The Connection Monitor test destination port
Link copied to clipboard
The flag that indicates if the Connection Monitor test is successful or not.
Link copied to clipboard
The provisioning state of the resource.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The Connection Monitor test source agent
Link copied to clipboard
The Connection Monitor test frequency in seconds