1. Packages
  2. Azure Native
  3. API Docs
  4. peering
  5. ConnectionMonitorTest
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.peering.ConnectionMonitorTest

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

    The Connection Monitor Test class. Azure REST API version: 2022-10-01. Prior API version in Azure Native 1.x: 2021-06-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,
        });
    
    });
    
    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
    	})
    }
    
    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());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    connection_monitor_test = azure_native.peering.ConnectionMonitorTest("connectionMonitorTest",
        connection_monitor_test_name="connectionMonitorTestName",
        destination="Example Destination",
        destination_port=443,
        peering_service_name="peeringServiceName",
        resource_group_name="rgName",
        source_agent="Example Source Agent",
        test_frequency_in_sec=30)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const connectionMonitorTest = new azure_native.peering.ConnectionMonitorTest("connectionMonitorTest", {
        connectionMonitorTestName: "connectionMonitorTestName",
        destination: "Example Destination",
        destinationPort: 443,
        peeringServiceName: "peeringServiceName",
        resourceGroupName: "rgName",
        sourceAgent: "Example Source Agent",
        testFrequencyInSec: 30,
    });
    
    resources:
      connectionMonitorTest:
        type: azure-native:peering:ConnectionMonitorTest
        properties:
          connectionMonitorTestName: connectionMonitorTestName
          destination: Example Destination
          destinationPort: 443
          peeringServiceName: peeringServiceName
          resourceGroupName: rgName
          sourceAgent: Example Source Agent
          testFrequencyInSec: 30
    

    Create ConnectionMonitorTest Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ConnectionMonitorTest(name: string, args: ConnectionMonitorTestArgs, opts?: CustomResourceOptions);
    @overload
    def ConnectionMonitorTest(resource_name: str,
                              args: ConnectionMonitorTestArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def ConnectionMonitorTest(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              peering_service_name: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              connection_monitor_test_name: Optional[str] = None,
                              destination: Optional[str] = None,
                              destination_port: Optional[int] = None,
                              source_agent: Optional[str] = None,
                              test_frequency_in_sec: Optional[int] = None)
    func NewConnectionMonitorTest(ctx *Context, name string, args ConnectionMonitorTestArgs, opts ...ResourceOption) (*ConnectionMonitorTest, error)
    public ConnectionMonitorTest(string name, ConnectionMonitorTestArgs args, CustomResourceOptions? opts = null)
    public ConnectionMonitorTest(String name, ConnectionMonitorTestArgs args)
    public ConnectionMonitorTest(String name, ConnectionMonitorTestArgs args, CustomResourceOptions options)
    
    type: azure-native:peering:ConnectionMonitorTest
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ConnectionMonitorTestArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ConnectionMonitorTestArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ConnectionMonitorTestArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ConnectionMonitorTestArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ConnectionMonitorTestArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var connectionMonitorTestResource = new AzureNative.Peering.ConnectionMonitorTest("connectionMonitorTestResource", new()
    {
        PeeringServiceName = "string",
        ResourceGroupName = "string",
        ConnectionMonitorTestName = "string",
        Destination = "string",
        DestinationPort = 0,
        SourceAgent = "string",
        TestFrequencyInSec = 0,
    });
    
    example, err := peering.NewConnectionMonitorTest(ctx, "connectionMonitorTestResource", &peering.ConnectionMonitorTestArgs{
    PeeringServiceName: pulumi.String("string"),
    ResourceGroupName: pulumi.String("string"),
    ConnectionMonitorTestName: pulumi.String("string"),
    Destination: pulumi.String("string"),
    DestinationPort: pulumi.Int(0),
    SourceAgent: pulumi.String("string"),
    TestFrequencyInSec: pulumi.Int(0),
    })
    
    var connectionMonitorTestResource = new ConnectionMonitorTest("connectionMonitorTestResource", ConnectionMonitorTestArgs.builder()
        .peeringServiceName("string")
        .resourceGroupName("string")
        .connectionMonitorTestName("string")
        .destination("string")
        .destinationPort(0)
        .sourceAgent("string")
        .testFrequencyInSec(0)
        .build());
    
    connection_monitor_test_resource = azure_native.peering.ConnectionMonitorTest("connectionMonitorTestResource",
        peering_service_name="string",
        resource_group_name="string",
        connection_monitor_test_name="string",
        destination="string",
        destination_port=0,
        source_agent="string",
        test_frequency_in_sec=0)
    
    const connectionMonitorTestResource = new azure_native.peering.ConnectionMonitorTest("connectionMonitorTestResource", {
        peeringServiceName: "string",
        resourceGroupName: "string",
        connectionMonitorTestName: "string",
        destination: "string",
        destinationPort: 0,
        sourceAgent: "string",
        testFrequencyInSec: 0,
    });
    
    type: azure-native:peering:ConnectionMonitorTest
    properties:
        connectionMonitorTestName: string
        destination: string
        destinationPort: 0
        peeringServiceName: string
        resourceGroupName: string
        sourceAgent: string
        testFrequencyInSec: 0
    

    ConnectionMonitorTest Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ConnectionMonitorTest resource accepts the following input properties:

    PeeringServiceName string
    The name of the peering service.
    ResourceGroupName string
    The name of the resource group.
    ConnectionMonitorTestName string
    The name of the connection monitor test
    Destination string
    The Connection Monitor test destination
    DestinationPort int
    The Connection Monitor test destination port
    SourceAgent string
    The Connection Monitor test source agent
    TestFrequencyInSec int
    The Connection Monitor test frequency in seconds
    PeeringServiceName string
    The name of the peering service.
    ResourceGroupName string
    The name of the resource group.
    ConnectionMonitorTestName string
    The name of the connection monitor test
    Destination string
    The Connection Monitor test destination
    DestinationPort int
    The Connection Monitor test destination port
    SourceAgent string
    The Connection Monitor test source agent
    TestFrequencyInSec int
    The Connection Monitor test frequency in seconds
    peeringServiceName String
    The name of the peering service.
    resourceGroupName String
    The name of the resource group.
    connectionMonitorTestName String
    The name of the connection monitor test
    destination String
    The Connection Monitor test destination
    destinationPort Integer
    The Connection Monitor test destination port
    sourceAgent String
    The Connection Monitor test source agent
    testFrequencyInSec Integer
    The Connection Monitor test frequency in seconds
    peeringServiceName string
    The name of the peering service.
    resourceGroupName string
    The name of the resource group.
    connectionMonitorTestName string
    The name of the connection monitor test
    destination string
    The Connection Monitor test destination
    destinationPort number
    The Connection Monitor test destination port
    sourceAgent string
    The Connection Monitor test source agent
    testFrequencyInSec number
    The Connection Monitor test frequency in seconds
    peering_service_name str
    The name of the peering service.
    resource_group_name str
    The name of the resource group.
    connection_monitor_test_name str
    The name of the connection monitor test
    destination str
    The Connection Monitor test destination
    destination_port int
    The Connection Monitor test destination port
    source_agent str
    The Connection Monitor test source agent
    test_frequency_in_sec int
    The Connection Monitor test frequency in seconds
    peeringServiceName String
    The name of the peering service.
    resourceGroupName String
    The name of the resource group.
    connectionMonitorTestName String
    The name of the connection monitor test
    destination String
    The Connection Monitor test destination
    destinationPort Number
    The Connection Monitor test destination port
    sourceAgent String
    The Connection Monitor test source agent
    testFrequencyInSec Number
    The Connection Monitor test frequency in seconds

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ConnectionMonitorTest resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    IsTestSuccessful bool
    The flag that indicates if the Connection Monitor test is successful or not.
    Name string
    The name of the resource.
    Path List<string>
    The path representing the Connection Monitor test.
    ProvisioningState string
    The provisioning state of the resource.
    Type string
    The type of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsTestSuccessful bool
    The flag that indicates if the Connection Monitor test is successful or not.
    Name string
    The name of the resource.
    Path []string
    The path representing the Connection Monitor test.
    ProvisioningState string
    The provisioning state of the resource.
    Type string
    The type of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    isTestSuccessful Boolean
    The flag that indicates if the Connection Monitor test is successful or not.
    name String
    The name of the resource.
    path List<String>
    The path representing the Connection Monitor test.
    provisioningState String
    The provisioning state of the resource.
    type String
    The type of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    isTestSuccessful boolean
    The flag that indicates if the Connection Monitor test is successful or not.
    name string
    The name of the resource.
    path string[]
    The path representing the Connection Monitor test.
    provisioningState string
    The provisioning state of the resource.
    type string
    The type of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    is_test_successful bool
    The flag that indicates if the Connection Monitor test is successful or not.
    name str
    The name of the resource.
    path Sequence[str]
    The path representing the Connection Monitor test.
    provisioning_state str
    The provisioning state of the resource.
    type str
    The type of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    isTestSuccessful Boolean
    The flag that indicates if the Connection Monitor test is successful or not.
    name String
    The name of the resource.
    path List<String>
    The path representing the Connection Monitor test.
    provisioningState String
    The provisioning state of the resource.
    type String
    The type of the resource.

    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} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi