alicloud.expressconnect.RouterVbrChildInstance
Explore with Pulumi AI
Provides a Express Connect Router Express Connect Router Vbr Child Instance resource. Leased Line Gateway VBR sub-instance.
For information about Express Connect Router Express Connect Router Vbr Child Instance and how to use it, see What is Express Connect Router Vbr Child Instance.
NOTE: Available since v1.224.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "terraform-example";
const nameRegex = alicloud.expressconnect.getPhysicalConnections({
nameRegex: "^preserved-NODELETING",
});
const defaultydbbk3 = new alicloud.expressconnect.VirtualBorderRouter("defaultydbbk3", {
physicalConnectionId: nameRegex.then(nameRegex => nameRegex.connections?.[0]?.id),
vlanId: 1000,
peerGatewayIp: "192.168.254.2",
peeringSubnetMask: "255.255.255.0",
localGatewayIp: "192.168.254.1",
});
const defaultAAlhUy = new alicloud.expressconnect.RouterExpressConnectRouter("defaultAAlhUy", {alibabaSideAsn: 65532});
const current = alicloud.getAccount({});
const _default = new alicloud.expressconnect.RouterVbrChildInstance("default", {
childInstanceId: defaultydbbk3.id,
childInstanceRegionId: "cn-hangzhou",
ecrId: defaultAAlhUy.id,
childInstanceType: "VBR",
childInstanceOwnerId: current.then(current => current.id),
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "terraform-example"
name_regex = alicloud.expressconnect.get_physical_connections(name_regex="^preserved-NODELETING")
defaultydbbk3 = alicloud.expressconnect.VirtualBorderRouter("defaultydbbk3",
physical_connection_id=name_regex.connections[0].id,
vlan_id=1000,
peer_gateway_ip="192.168.254.2",
peering_subnet_mask="255.255.255.0",
local_gateway_ip="192.168.254.1")
default_a_alh_uy = alicloud.expressconnect.RouterExpressConnectRouter("defaultAAlhUy", alibaba_side_asn=65532)
current = alicloud.get_account()
default = alicloud.expressconnect.RouterVbrChildInstance("default",
child_instance_id=defaultydbbk3.id,
child_instance_region_id="cn-hangzhou",
ecr_id=default_a_alh_uy.id,
child_instance_type="VBR",
child_instance_owner_id=current.id)
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/expressconnect"
"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
}
nameRegex, err := expressconnect.GetPhysicalConnections(ctx, &expressconnect.GetPhysicalConnectionsArgs{
NameRegex: pulumi.StringRef("^preserved-NODELETING"),
}, nil)
if err != nil {
return err
}
defaultydbbk3, err := expressconnect.NewVirtualBorderRouter(ctx, "defaultydbbk3", &expressconnect.VirtualBorderRouterArgs{
PhysicalConnectionId: pulumi.String(nameRegex.Connections[0].Id),
VlanId: pulumi.Int(1000),
PeerGatewayIp: pulumi.String("192.168.254.2"),
PeeringSubnetMask: pulumi.String("255.255.255.0"),
LocalGatewayIp: pulumi.String("192.168.254.1"),
})
if err != nil {
return err
}
defaultAAlhUy, err := expressconnect.NewRouterExpressConnectRouter(ctx, "defaultAAlhUy", &expressconnect.RouterExpressConnectRouterArgs{
AlibabaSideAsn: pulumi.Int(65532),
})
if err != nil {
return err
}
current, err := alicloud.GetAccount(ctx, nil, nil)
if err != nil {
return err
}
_, err = expressconnect.NewRouterVbrChildInstance(ctx, "default", &expressconnect.RouterVbrChildInstanceArgs{
ChildInstanceId: defaultydbbk3.ID(),
ChildInstanceRegionId: pulumi.String("cn-hangzhou"),
EcrId: defaultAAlhUy.ID(),
ChildInstanceType: pulumi.String("VBR"),
ChildInstanceOwnerId: pulumi.String(current.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "terraform-example";
var nameRegex = AliCloud.ExpressConnect.GetPhysicalConnections.Invoke(new()
{
NameRegex = "^preserved-NODELETING",
});
var defaultydbbk3 = new AliCloud.ExpressConnect.VirtualBorderRouter("defaultydbbk3", new()
{
PhysicalConnectionId = nameRegex.Apply(getPhysicalConnectionsResult => getPhysicalConnectionsResult.Connections[0]?.Id),
VlanId = 1000,
PeerGatewayIp = "192.168.254.2",
PeeringSubnetMask = "255.255.255.0",
LocalGatewayIp = "192.168.254.1",
});
var defaultAAlhUy = new AliCloud.ExpressConnect.RouterExpressConnectRouter("defaultAAlhUy", new()
{
AlibabaSideAsn = 65532,
});
var current = AliCloud.GetAccount.Invoke();
var @default = new AliCloud.ExpressConnect.RouterVbrChildInstance("default", new()
{
ChildInstanceId = defaultydbbk3.Id,
ChildInstanceRegionId = "cn-hangzhou",
EcrId = defaultAAlhUy.Id,
ChildInstanceType = "VBR",
ChildInstanceOwnerId = current.Apply(getAccountResult => getAccountResult.Id),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.expressconnect.ExpressconnectFunctions;
import com.pulumi.alicloud.expressconnect.inputs.GetPhysicalConnectionsArgs;
import com.pulumi.alicloud.expressconnect.VirtualBorderRouter;
import com.pulumi.alicloud.expressconnect.VirtualBorderRouterArgs;
import com.pulumi.alicloud.expressconnect.RouterExpressConnectRouter;
import com.pulumi.alicloud.expressconnect.RouterExpressConnectRouterArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.expressconnect.RouterVbrChildInstance;
import com.pulumi.alicloud.expressconnect.RouterVbrChildInstanceArgs;
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 nameRegex = ExpressconnectFunctions.getPhysicalConnections(GetPhysicalConnectionsArgs.builder()
.nameRegex("^preserved-NODELETING")
.build());
var defaultydbbk3 = new VirtualBorderRouter("defaultydbbk3", VirtualBorderRouterArgs.builder()
.physicalConnectionId(nameRegex.applyValue(getPhysicalConnectionsResult -> getPhysicalConnectionsResult.connections()[0].id()))
.vlanId("1000")
.peerGatewayIp("192.168.254.2")
.peeringSubnetMask("255.255.255.0")
.localGatewayIp("192.168.254.1")
.build());
var defaultAAlhUy = new RouterExpressConnectRouter("defaultAAlhUy", RouterExpressConnectRouterArgs.builder()
.alibabaSideAsn("65532")
.build());
final var current = AlicloudFunctions.getAccount();
var default_ = new RouterVbrChildInstance("default", RouterVbrChildInstanceArgs.builder()
.childInstanceId(defaultydbbk3.id())
.childInstanceRegionId("cn-hangzhou")
.ecrId(defaultAAlhUy.id())
.childInstanceType("VBR")
.childInstanceOwnerId(current.applyValue(getAccountResult -> getAccountResult.id()))
.build());
}
}
configuration:
name:
type: string
default: terraform-example
resources:
defaultydbbk3:
type: alicloud:expressconnect:VirtualBorderRouter
properties:
physicalConnectionId: ${nameRegex.connections[0].id}
vlanId: '1000'
peerGatewayIp: 192.168.254.2
peeringSubnetMask: 255.255.255.0
localGatewayIp: 192.168.254.1
defaultAAlhUy:
type: alicloud:expressconnect:RouterExpressConnectRouter
properties:
alibabaSideAsn: '65532'
default:
type: alicloud:expressconnect:RouterVbrChildInstance
properties:
childInstanceId: ${defaultydbbk3.id}
childInstanceRegionId: cn-hangzhou
ecrId: ${defaultAAlhUy.id}
childInstanceType: VBR
childInstanceOwnerId: ${current.id}
variables:
nameRegex:
fn::invoke:
Function: alicloud:expressconnect:getPhysicalConnections
Arguments:
nameRegex: ^preserved-NODELETING
current:
fn::invoke:
Function: alicloud:getAccount
Arguments: {}
Create RouterVbrChildInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RouterVbrChildInstance(name: string, args: RouterVbrChildInstanceArgs, opts?: CustomResourceOptions);
@overload
def RouterVbrChildInstance(resource_name: str,
args: RouterVbrChildInstanceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RouterVbrChildInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
child_instance_id: Optional[str] = None,
child_instance_region_id: Optional[str] = None,
child_instance_type: Optional[str] = None,
ecr_id: Optional[str] = None,
child_instance_owner_id: Optional[str] = None)
func NewRouterVbrChildInstance(ctx *Context, name string, args RouterVbrChildInstanceArgs, opts ...ResourceOption) (*RouterVbrChildInstance, error)
public RouterVbrChildInstance(string name, RouterVbrChildInstanceArgs args, CustomResourceOptions? opts = null)
public RouterVbrChildInstance(String name, RouterVbrChildInstanceArgs args)
public RouterVbrChildInstance(String name, RouterVbrChildInstanceArgs args, CustomResourceOptions options)
type: alicloud:expressconnect:RouterVbrChildInstance
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 RouterVbrChildInstanceArgs
- 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 RouterVbrChildInstanceArgs
- 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 RouterVbrChildInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouterVbrChildInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouterVbrChildInstanceArgs
- 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 routerVbrChildInstanceResource = new AliCloud.ExpressConnect.RouterVbrChildInstance("routerVbrChildInstanceResource", new()
{
ChildInstanceId = "string",
ChildInstanceRegionId = "string",
ChildInstanceType = "string",
EcrId = "string",
ChildInstanceOwnerId = "string",
});
example, err := expressconnect.NewRouterVbrChildInstance(ctx, "routerVbrChildInstanceResource", &expressconnect.RouterVbrChildInstanceArgs{
ChildInstanceId: pulumi.String("string"),
ChildInstanceRegionId: pulumi.String("string"),
ChildInstanceType: pulumi.String("string"),
EcrId: pulumi.String("string"),
ChildInstanceOwnerId: pulumi.String("string"),
})
var routerVbrChildInstanceResource = new RouterVbrChildInstance("routerVbrChildInstanceResource", RouterVbrChildInstanceArgs.builder()
.childInstanceId("string")
.childInstanceRegionId("string")
.childInstanceType("string")
.ecrId("string")
.childInstanceOwnerId("string")
.build());
router_vbr_child_instance_resource = alicloud.expressconnect.RouterVbrChildInstance("routerVbrChildInstanceResource",
child_instance_id="string",
child_instance_region_id="string",
child_instance_type="string",
ecr_id="string",
child_instance_owner_id="string")
const routerVbrChildInstanceResource = new alicloud.expressconnect.RouterVbrChildInstance("routerVbrChildInstanceResource", {
childInstanceId: "string",
childInstanceRegionId: "string",
childInstanceType: "string",
ecrId: "string",
childInstanceOwnerId: "string",
});
type: alicloud:expressconnect:RouterVbrChildInstance
properties:
childInstanceId: string
childInstanceOwnerId: string
childInstanceRegionId: string
childInstanceType: string
ecrId: string
RouterVbrChildInstance 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 RouterVbrChildInstance resource accepts the following input properties:
- Child
Instance stringId - The ID of the leased line gateway subinstance.
- Child
Instance stringRegion Id - Region of the leased line gateway sub-instance.
- Child
Instance stringType - The type of leased line gateway sub-instance, Valid values:
VBR
. - Ecr
Id string - ID of the representative leased line gateway instance.
- Child
Instance stringOwner Id - The ID of the subinstance of the leased line gateway.
- Child
Instance stringId - The ID of the leased line gateway subinstance.
- Child
Instance stringRegion Id - Region of the leased line gateway sub-instance.
- Child
Instance stringType - The type of leased line gateway sub-instance, Valid values:
VBR
. - Ecr
Id string - ID of the representative leased line gateway instance.
- Child
Instance stringOwner Id - The ID of the subinstance of the leased line gateway.
- child
Instance StringId - The ID of the leased line gateway subinstance.
- child
Instance StringRegion Id - Region of the leased line gateway sub-instance.
- child
Instance StringType - The type of leased line gateway sub-instance, Valid values:
VBR
. - ecr
Id String - ID of the representative leased line gateway instance.
- child
Instance StringOwner Id - The ID of the subinstance of the leased line gateway.
- child
Instance stringId - The ID of the leased line gateway subinstance.
- child
Instance stringRegion Id - Region of the leased line gateway sub-instance.
- child
Instance stringType - The type of leased line gateway sub-instance, Valid values:
VBR
. - ecr
Id string - ID of the representative leased line gateway instance.
- child
Instance stringOwner Id - The ID of the subinstance of the leased line gateway.
- child_
instance_ strid - The ID of the leased line gateway subinstance.
- child_
instance_ strregion_ id - Region of the leased line gateway sub-instance.
- child_
instance_ strtype - The type of leased line gateway sub-instance, Valid values:
VBR
. - ecr_
id str - ID of the representative leased line gateway instance.
- child_
instance_ strowner_ id - The ID of the subinstance of the leased line gateway.
- child
Instance StringId - The ID of the leased line gateway subinstance.
- child
Instance StringRegion Id - Region of the leased line gateway sub-instance.
- child
Instance StringType - The type of leased line gateway sub-instance, Valid values:
VBR
. - ecr
Id String - ID of the representative leased line gateway instance.
- child
Instance StringOwner Id - The ID of the subinstance of the leased line gateway.
Outputs
All input properties are implicitly available as output properties. Additionally, the RouterVbrChildInstance resource produces the following output properties:
- Create
Time string - The creation time of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Binding relationship status of leased line gateway subinstances.
- Create
Time string - The creation time of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Binding relationship status of leased line gateway subinstances.
- create
Time String - The creation time of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Binding relationship status of leased line gateway subinstances.
- create
Time string - The creation time of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Binding relationship status of leased line gateway subinstances.
- create_
time str - The creation time of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Binding relationship status of leased line gateway subinstances.
- create
Time String - The creation time of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Binding relationship status of leased line gateway subinstances.
Look up Existing RouterVbrChildInstance Resource
Get an existing RouterVbrChildInstance 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?: RouterVbrChildInstanceState, opts?: CustomResourceOptions): RouterVbrChildInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
child_instance_id: Optional[str] = None,
child_instance_owner_id: Optional[str] = None,
child_instance_region_id: Optional[str] = None,
child_instance_type: Optional[str] = None,
create_time: Optional[str] = None,
ecr_id: Optional[str] = None,
status: Optional[str] = None) -> RouterVbrChildInstance
func GetRouterVbrChildInstance(ctx *Context, name string, id IDInput, state *RouterVbrChildInstanceState, opts ...ResourceOption) (*RouterVbrChildInstance, error)
public static RouterVbrChildInstance Get(string name, Input<string> id, RouterVbrChildInstanceState? state, CustomResourceOptions? opts = null)
public static RouterVbrChildInstance get(String name, Output<String> id, RouterVbrChildInstanceState 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.
- Child
Instance stringId - The ID of the leased line gateway subinstance.
- Child
Instance stringOwner Id - The ID of the subinstance of the leased line gateway.
- Child
Instance stringRegion Id - Region of the leased line gateway sub-instance.
- Child
Instance stringType - The type of leased line gateway sub-instance, Valid values:
VBR
. - Create
Time string - The creation time of the resource.
- Ecr
Id string - ID of the representative leased line gateway instance.
- Status string
- Binding relationship status of leased line gateway subinstances.
- Child
Instance stringId - The ID of the leased line gateway subinstance.
- Child
Instance stringOwner Id - The ID of the subinstance of the leased line gateway.
- Child
Instance stringRegion Id - Region of the leased line gateway sub-instance.
- Child
Instance stringType - The type of leased line gateway sub-instance, Valid values:
VBR
. - Create
Time string - The creation time of the resource.
- Ecr
Id string - ID of the representative leased line gateway instance.
- Status string
- Binding relationship status of leased line gateway subinstances.
- child
Instance StringId - The ID of the leased line gateway subinstance.
- child
Instance StringOwner Id - The ID of the subinstance of the leased line gateway.
- child
Instance StringRegion Id - Region of the leased line gateway sub-instance.
- child
Instance StringType - The type of leased line gateway sub-instance, Valid values:
VBR
. - create
Time String - The creation time of the resource.
- ecr
Id String - ID of the representative leased line gateway instance.
- status String
- Binding relationship status of leased line gateway subinstances.
- child
Instance stringId - The ID of the leased line gateway subinstance.
- child
Instance stringOwner Id - The ID of the subinstance of the leased line gateway.
- child
Instance stringRegion Id - Region of the leased line gateway sub-instance.
- child
Instance stringType - The type of leased line gateway sub-instance, Valid values:
VBR
. - create
Time string - The creation time of the resource.
- ecr
Id string - ID of the representative leased line gateway instance.
- status string
- Binding relationship status of leased line gateway subinstances.
- child_
instance_ strid - The ID of the leased line gateway subinstance.
- child_
instance_ strowner_ id - The ID of the subinstance of the leased line gateway.
- child_
instance_ strregion_ id - Region of the leased line gateway sub-instance.
- child_
instance_ strtype - The type of leased line gateway sub-instance, Valid values:
VBR
. - create_
time str - The creation time of the resource.
- ecr_
id str - ID of the representative leased line gateway instance.
- status str
- Binding relationship status of leased line gateway subinstances.
- child
Instance StringId - The ID of the leased line gateway subinstance.
- child
Instance StringOwner Id - The ID of the subinstance of the leased line gateway.
- child
Instance StringRegion Id - Region of the leased line gateway sub-instance.
- child
Instance StringType - The type of leased line gateway sub-instance, Valid values:
VBR
. - create
Time String - The creation time of the resource.
- ecr
Id String - ID of the representative leased line gateway instance.
- status String
- Binding relationship status of leased line gateway subinstances.
Import
Express Connect Router Express Connect Router Vbr Child Instance can be imported using the id, e.g.
$ pulumi import alicloud:expressconnect/routerVbrChildInstance:RouterVbrChildInstance example <ecr_id>:<child_instance_id>:<child_instance_type>
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.