1. Packages
  2. Alicloud Provider
  3. API Docs
  4. cen
  5. VbrHealthCheck
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.cen.VbrHealthCheck

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    This topic describes how to configure the health check feature for a Cloud Enterprise Network (CEN) instance. After you attach a Virtual Border Router (VBR) to the CEN instance and configure the health check feature, you can monitor the network conditions of the on-premises data center connected to the VBR.

    For information about CEN VBR HealthCheck and how to use it, see Manage CEN VBR HealthCheck.

    NOTE: Available since v1.88.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    import * as random from "@pulumi/random";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const default = alicloud.getRegions({
        current: true,
    });
    const defaultGetPhysicalConnections = alicloud.expressconnect.getPhysicalConnections({
        nameRegex: "^preserved-NODELETING",
    });
    const vlanId = new random.index.Integer("vlan_id", {
        max: 2999,
        min: 1,
    });
    const example = new alicloud.expressconnect.VirtualBorderRouter("example", {
        localGatewayIp: "10.0.0.1",
        peerGatewayIp: "10.0.0.2",
        peeringSubnetMask: "255.255.255.252",
        physicalConnectionId: defaultGetPhysicalConnections.then(defaultGetPhysicalConnections => defaultGetPhysicalConnections.connections?.[0]?.id),
        virtualBorderRouterName: name,
        vlanId: vlanId.id,
        minRxInterval: 1000,
        minTxInterval: 1000,
        detectMultiplier: 10,
    });
    const exampleInstance = new alicloud.cen.Instance("example", {
        cenInstanceName: name,
        protectionLevel: "REDUCED",
    });
    const exampleInstanceAttachment = new alicloud.cen.InstanceAttachment("example", {
        instanceId: exampleInstance.id,
        childInstanceId: example.id,
        childInstanceType: "VBR",
        childInstanceRegionId: _default.then(_default => _default.regions?.[0]?.id),
    });
    const exampleVbrHealthCheck = new alicloud.cen.VbrHealthCheck("example", {
        cenId: exampleInstance.id,
        healthCheckSourceIp: "192.168.1.2",
        healthCheckTargetIp: "10.0.0.2",
        vbrInstanceId: example.id,
        vbrInstanceRegionId: exampleInstanceAttachment.childInstanceRegionId,
        healthCheckInterval: 2,
        healthyThreshold: 8,
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    import pulumi_random as random
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    default = alicloud.get_regions(current=True)
    default_get_physical_connections = alicloud.expressconnect.get_physical_connections(name_regex="^preserved-NODELETING")
    vlan_id = random.index.Integer("vlan_id",
        max=2999,
        min=1)
    example = alicloud.expressconnect.VirtualBorderRouter("example",
        local_gateway_ip="10.0.0.1",
        peer_gateway_ip="10.0.0.2",
        peering_subnet_mask="255.255.255.252",
        physical_connection_id=default_get_physical_connections.connections[0].id,
        virtual_border_router_name=name,
        vlan_id=vlan_id["id"],
        min_rx_interval=1000,
        min_tx_interval=1000,
        detect_multiplier=10)
    example_instance = alicloud.cen.Instance("example",
        cen_instance_name=name,
        protection_level="REDUCED")
    example_instance_attachment = alicloud.cen.InstanceAttachment("example",
        instance_id=example_instance.id,
        child_instance_id=example.id,
        child_instance_type="VBR",
        child_instance_region_id=default.regions[0].id)
    example_vbr_health_check = alicloud.cen.VbrHealthCheck("example",
        cen_id=example_instance.id,
        health_check_source_ip="192.168.1.2",
        health_check_target_ip="10.0.0.2",
        vbr_instance_id=example.id,
        vbr_instance_region_id=example_instance_attachment.child_instance_region_id,
        health_check_interval=2,
        healthy_threshold=8)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/expressconnect"
    	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_default, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
    			Current: pulumi.BoolRef(true),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		defaultGetPhysicalConnections, err := expressconnect.GetPhysicalConnections(ctx, &expressconnect.GetPhysicalConnectionsArgs{
    			NameRegex: pulumi.StringRef("^preserved-NODELETING"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		vlanId, err := random.NewInteger(ctx, "vlan_id", &random.IntegerArgs{
    			Max: 2999,
    			Min: 1,
    		})
    		if err != nil {
    			return err
    		}
    		example, err := expressconnect.NewVirtualBorderRouter(ctx, "example", &expressconnect.VirtualBorderRouterArgs{
    			LocalGatewayIp:          pulumi.String("10.0.0.1"),
    			PeerGatewayIp:           pulumi.String("10.0.0.2"),
    			PeeringSubnetMask:       pulumi.String("255.255.255.252"),
    			PhysicalConnectionId:    pulumi.String(defaultGetPhysicalConnections.Connections[0].Id),
    			VirtualBorderRouterName: pulumi.String(name),
    			VlanId:                  vlanId.Id,
    			MinRxInterval:           pulumi.Int(1000),
    			MinTxInterval:           pulumi.Int(1000),
    			DetectMultiplier:        pulumi.Int(10),
    		})
    		if err != nil {
    			return err
    		}
    		exampleInstance, err := cen.NewInstance(ctx, "example", &cen.InstanceArgs{
    			CenInstanceName: pulumi.String(name),
    			ProtectionLevel: pulumi.String("REDUCED"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleInstanceAttachment, err := cen.NewInstanceAttachment(ctx, "example", &cen.InstanceAttachmentArgs{
    			InstanceId:            exampleInstance.ID(),
    			ChildInstanceId:       example.ID(),
    			ChildInstanceType:     pulumi.String("VBR"),
    			ChildInstanceRegionId: pulumi.String(_default.Regions[0].Id),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewVbrHealthCheck(ctx, "example", &cen.VbrHealthCheckArgs{
    			CenId:               exampleInstance.ID(),
    			HealthCheckSourceIp: pulumi.String("192.168.1.2"),
    			HealthCheckTargetIp: pulumi.String("10.0.0.2"),
    			VbrInstanceId:       example.ID(),
    			VbrInstanceRegionId: exampleInstanceAttachment.ChildInstanceRegionId,
    			HealthCheckInterval: pulumi.Int(2),
    			HealthyThreshold:    pulumi.Int(8),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    using Random = Pulumi.Random;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var @default = AliCloud.GetRegions.Invoke(new()
        {
            Current = true,
        });
    
        var defaultGetPhysicalConnections = AliCloud.ExpressConnect.GetPhysicalConnections.Invoke(new()
        {
            NameRegex = "^preserved-NODELETING",
        });
    
        var vlanId = new Random.Index.Integer("vlan_id", new()
        {
            Max = 2999,
            Min = 1,
        });
    
        var example = new AliCloud.ExpressConnect.VirtualBorderRouter("example", new()
        {
            LocalGatewayIp = "10.0.0.1",
            PeerGatewayIp = "10.0.0.2",
            PeeringSubnetMask = "255.255.255.252",
            PhysicalConnectionId = defaultGetPhysicalConnections.Apply(getPhysicalConnectionsResult => getPhysicalConnectionsResult.Connections[0]?.Id),
            VirtualBorderRouterName = name,
            VlanId = vlanId.Id,
            MinRxInterval = 1000,
            MinTxInterval = 1000,
            DetectMultiplier = 10,
        });
    
        var exampleInstance = new AliCloud.Cen.Instance("example", new()
        {
            CenInstanceName = name,
            ProtectionLevel = "REDUCED",
        });
    
        var exampleInstanceAttachment = new AliCloud.Cen.InstanceAttachment("example", new()
        {
            InstanceId = exampleInstance.Id,
            ChildInstanceId = example.Id,
            ChildInstanceType = "VBR",
            ChildInstanceRegionId = @default.Apply(@default => @default.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id)),
        });
    
        var exampleVbrHealthCheck = new AliCloud.Cen.VbrHealthCheck("example", new()
        {
            CenId = exampleInstance.Id,
            HealthCheckSourceIp = "192.168.1.2",
            HealthCheckTargetIp = "10.0.0.2",
            VbrInstanceId = example.Id,
            VbrInstanceRegionId = exampleInstanceAttachment.ChildInstanceRegionId,
            HealthCheckInterval = 2,
            HealthyThreshold = 8,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.AlicloudFunctions;
    import com.pulumi.alicloud.inputs.GetRegionsArgs;
    import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
    import com.pulumi.alicloud.expressconnect.inputs.GetPhysicalConnectionsArgs;
    import com.pulumi.random.integer;
    import com.pulumi.random.IntegerArgs;
    import com.pulumi.alicloud.expressconnect.VirtualBorderRouter;
    import com.pulumi.alicloud.expressconnect.VirtualBorderRouterArgs;
    import com.pulumi.alicloud.cen.Instance;
    import com.pulumi.alicloud.cen.InstanceArgs;
    import com.pulumi.alicloud.cen.InstanceAttachment;
    import com.pulumi.alicloud.cen.InstanceAttachmentArgs;
    import com.pulumi.alicloud.cen.VbrHealthCheck;
    import com.pulumi.alicloud.cen.VbrHealthCheckArgs;
    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) {
            final var config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var default = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
                .current(true)
                .build());
    
            final var defaultGetPhysicalConnections = ExpressconnectFunctions.getPhysicalConnections(GetPhysicalConnectionsArgs.builder()
                .nameRegex("^preserved-NODELETING")
                .build());
    
            var vlanId = new Integer("vlanId", IntegerArgs.builder()
                .max(2999)
                .min(1)
                .build());
    
            var example = new VirtualBorderRouter("example", VirtualBorderRouterArgs.builder()
                .localGatewayIp("10.0.0.1")
                .peerGatewayIp("10.0.0.2")
                .peeringSubnetMask("255.255.255.252")
                .physicalConnectionId(defaultGetPhysicalConnections.applyValue(getPhysicalConnectionsResult -> getPhysicalConnectionsResult.connections()[0].id()))
                .virtualBorderRouterName(name)
                .vlanId(vlanId.id())
                .minRxInterval(1000)
                .minTxInterval(1000)
                .detectMultiplier(10)
                .build());
    
            var exampleInstance = new Instance("exampleInstance", InstanceArgs.builder()
                .cenInstanceName(name)
                .protectionLevel("REDUCED")
                .build());
    
            var exampleInstanceAttachment = new InstanceAttachment("exampleInstanceAttachment", InstanceAttachmentArgs.builder()
                .instanceId(exampleInstance.id())
                .childInstanceId(example.id())
                .childInstanceType("VBR")
                .childInstanceRegionId(default_.regions()[0].id())
                .build());
    
            var exampleVbrHealthCheck = new VbrHealthCheck("exampleVbrHealthCheck", VbrHealthCheckArgs.builder()
                .cenId(exampleInstance.id())
                .healthCheckSourceIp("192.168.1.2")
                .healthCheckTargetIp("10.0.0.2")
                .vbrInstanceId(example.id())
                .vbrInstanceRegionId(exampleInstanceAttachment.childInstanceRegionId())
                .healthCheckInterval(2)
                .healthyThreshold(8)
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
    resources:
      vlanId:
        type: random:integer
        name: vlan_id
        properties:
          max: 2999
          min: 1
      example:
        type: alicloud:expressconnect:VirtualBorderRouter
        properties:
          localGatewayIp: 10.0.0.1
          peerGatewayIp: 10.0.0.2
          peeringSubnetMask: 255.255.255.252
          physicalConnectionId: ${defaultGetPhysicalConnections.connections[0].id}
          virtualBorderRouterName: ${name}
          vlanId: ${vlanId.id}
          minRxInterval: 1000
          minTxInterval: 1000
          detectMultiplier: 10
      exampleInstance:
        type: alicloud:cen:Instance
        name: example
        properties:
          cenInstanceName: ${name}
          protectionLevel: REDUCED
      exampleInstanceAttachment:
        type: alicloud:cen:InstanceAttachment
        name: example
        properties:
          instanceId: ${exampleInstance.id}
          childInstanceId: ${example.id}
          childInstanceType: VBR
          childInstanceRegionId: ${default.regions[0].id}
      exampleVbrHealthCheck:
        type: alicloud:cen:VbrHealthCheck
        name: example
        properties:
          cenId: ${exampleInstance.id}
          healthCheckSourceIp: 192.168.1.2
          healthCheckTargetIp: 10.0.0.2
          vbrInstanceId: ${example.id}
          vbrInstanceRegionId: ${exampleInstanceAttachment.childInstanceRegionId}
          healthCheckInterval: 2
          healthyThreshold: 8
    variables:
      default:
        fn::invoke:
          Function: alicloud:getRegions
          Arguments:
            current: true
      defaultGetPhysicalConnections:
        fn::invoke:
          Function: alicloud:expressconnect:getPhysicalConnections
          Arguments:
            nameRegex: ^preserved-NODELETING
    

    Create VbrHealthCheck Resource

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

    Constructor syntax

    new VbrHealthCheck(name: string, args: VbrHealthCheckArgs, opts?: CustomResourceOptions);
    @overload
    def VbrHealthCheck(resource_name: str,
                       args: VbrHealthCheckArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def VbrHealthCheck(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       cen_id: Optional[str] = None,
                       health_check_target_ip: Optional[str] = None,
                       vbr_instance_id: Optional[str] = None,
                       vbr_instance_region_id: Optional[str] = None,
                       health_check_interval: Optional[int] = None,
                       health_check_source_ip: Optional[str] = None,
                       healthy_threshold: Optional[int] = None,
                       vbr_instance_owner_id: Optional[int] = None)
    func NewVbrHealthCheck(ctx *Context, name string, args VbrHealthCheckArgs, opts ...ResourceOption) (*VbrHealthCheck, error)
    public VbrHealthCheck(string name, VbrHealthCheckArgs args, CustomResourceOptions? opts = null)
    public VbrHealthCheck(String name, VbrHealthCheckArgs args)
    public VbrHealthCheck(String name, VbrHealthCheckArgs args, CustomResourceOptions options)
    
    type: alicloud:cen:VbrHealthCheck
    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 VbrHealthCheckArgs
    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 VbrHealthCheckArgs
    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 VbrHealthCheckArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VbrHealthCheckArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VbrHealthCheckArgs
    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 vbrHealthCheckResource = new AliCloud.Cen.VbrHealthCheck("vbrHealthCheckResource", new()
    {
        CenId = "string",
        HealthCheckTargetIp = "string",
        VbrInstanceId = "string",
        VbrInstanceRegionId = "string",
        HealthCheckInterval = 0,
        HealthCheckSourceIp = "string",
        HealthyThreshold = 0,
        VbrInstanceOwnerId = 0,
    });
    
    example, err := cen.NewVbrHealthCheck(ctx, "vbrHealthCheckResource", &cen.VbrHealthCheckArgs{
    	CenId:               pulumi.String("string"),
    	HealthCheckTargetIp: pulumi.String("string"),
    	VbrInstanceId:       pulumi.String("string"),
    	VbrInstanceRegionId: pulumi.String("string"),
    	HealthCheckInterval: pulumi.Int(0),
    	HealthCheckSourceIp: pulumi.String("string"),
    	HealthyThreshold:    pulumi.Int(0),
    	VbrInstanceOwnerId:  pulumi.Int(0),
    })
    
    var vbrHealthCheckResource = new VbrHealthCheck("vbrHealthCheckResource", VbrHealthCheckArgs.builder()
        .cenId("string")
        .healthCheckTargetIp("string")
        .vbrInstanceId("string")
        .vbrInstanceRegionId("string")
        .healthCheckInterval(0)
        .healthCheckSourceIp("string")
        .healthyThreshold(0)
        .vbrInstanceOwnerId(0)
        .build());
    
    vbr_health_check_resource = alicloud.cen.VbrHealthCheck("vbrHealthCheckResource",
        cen_id="string",
        health_check_target_ip="string",
        vbr_instance_id="string",
        vbr_instance_region_id="string",
        health_check_interval=0,
        health_check_source_ip="string",
        healthy_threshold=0,
        vbr_instance_owner_id=0)
    
    const vbrHealthCheckResource = new alicloud.cen.VbrHealthCheck("vbrHealthCheckResource", {
        cenId: "string",
        healthCheckTargetIp: "string",
        vbrInstanceId: "string",
        vbrInstanceRegionId: "string",
        healthCheckInterval: 0,
        healthCheckSourceIp: "string",
        healthyThreshold: 0,
        vbrInstanceOwnerId: 0,
    });
    
    type: alicloud:cen:VbrHealthCheck
    properties:
        cenId: string
        healthCheckInterval: 0
        healthCheckSourceIp: string
        healthCheckTargetIp: string
        healthyThreshold: 0
        vbrInstanceId: string
        vbrInstanceOwnerId: 0
        vbrInstanceRegionId: string
    

    VbrHealthCheck 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 VbrHealthCheck resource accepts the following input properties:

    CenId string
    The ID of the CEN instance.
    HealthCheckTargetIp string
    The destination IP address of health checks.
    VbrInstanceId string
    The ID of the VBR.
    VbrInstanceRegionId string

    The ID of the region to which the VBR belongs.

    ->NOTE: The alicloud.cen.VbrHealthCheck resource depends on the related alicloud.cen.InstanceAttachment resource.

    HealthCheckInterval int
    Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
    HealthCheckSourceIp string
    The source IP address of health checks.
    HealthyThreshold int
    Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
    VbrInstanceOwnerId int
    The ID of the account to which the VBR belongs.
    CenId string
    The ID of the CEN instance.
    HealthCheckTargetIp string
    The destination IP address of health checks.
    VbrInstanceId string
    The ID of the VBR.
    VbrInstanceRegionId string

    The ID of the region to which the VBR belongs.

    ->NOTE: The alicloud.cen.VbrHealthCheck resource depends on the related alicloud.cen.InstanceAttachment resource.

    HealthCheckInterval int
    Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
    HealthCheckSourceIp string
    The source IP address of health checks.
    HealthyThreshold int
    Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
    VbrInstanceOwnerId int
    The ID of the account to which the VBR belongs.
    cenId String
    The ID of the CEN instance.
    healthCheckTargetIp String
    The destination IP address of health checks.
    vbrInstanceId String
    The ID of the VBR.
    vbrInstanceRegionId String

    The ID of the region to which the VBR belongs.

    ->NOTE: The alicloud.cen.VbrHealthCheck resource depends on the related alicloud.cen.InstanceAttachment resource.

    healthCheckInterval Integer
    Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
    healthCheckSourceIp String
    The source IP address of health checks.
    healthyThreshold Integer
    Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
    vbrInstanceOwnerId Integer
    The ID of the account to which the VBR belongs.
    cenId string
    The ID of the CEN instance.
    healthCheckTargetIp string
    The destination IP address of health checks.
    vbrInstanceId string
    The ID of the VBR.
    vbrInstanceRegionId string

    The ID of the region to which the VBR belongs.

    ->NOTE: The alicloud.cen.VbrHealthCheck resource depends on the related alicloud.cen.InstanceAttachment resource.

    healthCheckInterval number
    Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
    healthCheckSourceIp string
    The source IP address of health checks.
    healthyThreshold number
    Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
    vbrInstanceOwnerId number
    The ID of the account to which the VBR belongs.
    cen_id str
    The ID of the CEN instance.
    health_check_target_ip str
    The destination IP address of health checks.
    vbr_instance_id str
    The ID of the VBR.
    vbr_instance_region_id str

    The ID of the region to which the VBR belongs.

    ->NOTE: The alicloud.cen.VbrHealthCheck resource depends on the related alicloud.cen.InstanceAttachment resource.

    health_check_interval int
    Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
    health_check_source_ip str
    The source IP address of health checks.
    healthy_threshold int
    Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
    vbr_instance_owner_id int
    The ID of the account to which the VBR belongs.
    cenId String
    The ID of the CEN instance.
    healthCheckTargetIp String
    The destination IP address of health checks.
    vbrInstanceId String
    The ID of the VBR.
    vbrInstanceRegionId String

    The ID of the region to which the VBR belongs.

    ->NOTE: The alicloud.cen.VbrHealthCheck resource depends on the related alicloud.cen.InstanceAttachment resource.

    healthCheckInterval Number
    Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
    healthCheckSourceIp String
    The source IP address of health checks.
    healthyThreshold Number
    Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
    vbrInstanceOwnerId Number
    The ID of the account to which the VBR belongs.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VbrHealthCheck Resource

    Get an existing VbrHealthCheck resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VbrHealthCheckState, opts?: CustomResourceOptions): VbrHealthCheck
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cen_id: Optional[str] = None,
            health_check_interval: Optional[int] = None,
            health_check_source_ip: Optional[str] = None,
            health_check_target_ip: Optional[str] = None,
            healthy_threshold: Optional[int] = None,
            vbr_instance_id: Optional[str] = None,
            vbr_instance_owner_id: Optional[int] = None,
            vbr_instance_region_id: Optional[str] = None) -> VbrHealthCheck
    func GetVbrHealthCheck(ctx *Context, name string, id IDInput, state *VbrHealthCheckState, opts ...ResourceOption) (*VbrHealthCheck, error)
    public static VbrHealthCheck Get(string name, Input<string> id, VbrHealthCheckState? state, CustomResourceOptions? opts = null)
    public static VbrHealthCheck get(String name, Output<String> id, VbrHealthCheckState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CenId string
    The ID of the CEN instance.
    HealthCheckInterval int
    Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
    HealthCheckSourceIp string
    The source IP address of health checks.
    HealthCheckTargetIp string
    The destination IP address of health checks.
    HealthyThreshold int
    Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
    VbrInstanceId string
    The ID of the VBR.
    VbrInstanceOwnerId int
    The ID of the account to which the VBR belongs.
    VbrInstanceRegionId string

    The ID of the region to which the VBR belongs.

    ->NOTE: The alicloud.cen.VbrHealthCheck resource depends on the related alicloud.cen.InstanceAttachment resource.

    CenId string
    The ID of the CEN instance.
    HealthCheckInterval int
    Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
    HealthCheckSourceIp string
    The source IP address of health checks.
    HealthCheckTargetIp string
    The destination IP address of health checks.
    HealthyThreshold int
    Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
    VbrInstanceId string
    The ID of the VBR.
    VbrInstanceOwnerId int
    The ID of the account to which the VBR belongs.
    VbrInstanceRegionId string

    The ID of the region to which the VBR belongs.

    ->NOTE: The alicloud.cen.VbrHealthCheck resource depends on the related alicloud.cen.InstanceAttachment resource.

    cenId String
    The ID of the CEN instance.
    healthCheckInterval Integer
    Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
    healthCheckSourceIp String
    The source IP address of health checks.
    healthCheckTargetIp String
    The destination IP address of health checks.
    healthyThreshold Integer
    Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
    vbrInstanceId String
    The ID of the VBR.
    vbrInstanceOwnerId Integer
    The ID of the account to which the VBR belongs.
    vbrInstanceRegionId String

    The ID of the region to which the VBR belongs.

    ->NOTE: The alicloud.cen.VbrHealthCheck resource depends on the related alicloud.cen.InstanceAttachment resource.

    cenId string
    The ID of the CEN instance.
    healthCheckInterval number
    Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
    healthCheckSourceIp string
    The source IP address of health checks.
    healthCheckTargetIp string
    The destination IP address of health checks.
    healthyThreshold number
    Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
    vbrInstanceId string
    The ID of the VBR.
    vbrInstanceOwnerId number
    The ID of the account to which the VBR belongs.
    vbrInstanceRegionId string

    The ID of the region to which the VBR belongs.

    ->NOTE: The alicloud.cen.VbrHealthCheck resource depends on the related alicloud.cen.InstanceAttachment resource.

    cen_id str
    The ID of the CEN instance.
    health_check_interval int
    Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
    health_check_source_ip str
    The source IP address of health checks.
    health_check_target_ip str
    The destination IP address of health checks.
    healthy_threshold int
    Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
    vbr_instance_id str
    The ID of the VBR.
    vbr_instance_owner_id int
    The ID of the account to which the VBR belongs.
    vbr_instance_region_id str

    The ID of the region to which the VBR belongs.

    ->NOTE: The alicloud.cen.VbrHealthCheck resource depends on the related alicloud.cen.InstanceAttachment resource.

    cenId String
    The ID of the CEN instance.
    healthCheckInterval Number
    Specifies the interval at which the health check sends continuous detection packets. Default value: 2. Value range: 2 to 3.
    healthCheckSourceIp String
    The source IP address of health checks.
    healthCheckTargetIp String
    The destination IP address of health checks.
    healthyThreshold Number
    Specifies the number of probe messages sent by the health check. Default value: 8. Value range: 3 to 8.
    vbrInstanceId String
    The ID of the VBR.
    vbrInstanceOwnerId Number
    The ID of the account to which the VBR belongs.
    vbrInstanceRegionId String

    The ID of the region to which the VBR belongs.

    ->NOTE: The alicloud.cen.VbrHealthCheck resource depends on the related alicloud.cen.InstanceAttachment resource.

    Import

    CEN VBR HealthCheck can be imported using the id, e.g.

    $ pulumi import alicloud:cen/vbrHealthCheck:VbrHealthCheck example vbr-xxxxx:cn-hangzhou
    

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

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi