alicloud.vpc.RouterInterface
Explore with Pulumi AI
Provides a VPC router interface resource aim to build a connection between two VPCs.
DEPRECATED: This resource has been deprecated from version
1.199.0
. Please use new resource alicloud_express_connect_router_interface.
NOTE: Only one pair of connected router interfaces can exist between two routers. Up to 5 router interfaces can be created for each router and each account.
NOTE: The router interface is not connected when it is created. It can be connected by means of resource alicloud_router_interface_connection.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const foo = new alicloud.vpc.Network("foo", {
vpcName: "tf_test_foo12345",
cidrBlock: "172.16.0.0/12",
});
const _interface = new alicloud.vpc.RouterInterface("interface", {
oppositeRegion: "cn-beijing",
routerType: "VRouter",
routerId: foo.routerId,
role: "InitiatingSide",
specification: "Large.2",
name: "test1",
description: "test1",
});
import pulumi
import pulumi_alicloud as alicloud
foo = alicloud.vpc.Network("foo",
vpc_name="tf_test_foo12345",
cidr_block="172.16.0.0/12")
interface = alicloud.vpc.RouterInterface("interface",
opposite_region="cn-beijing",
router_type="VRouter",
router_id=foo.router_id,
role="InitiatingSide",
specification="Large.2",
name="test1",
description="test1")
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
foo, err := vpc.NewNetwork(ctx, "foo", &vpc.NetworkArgs{
VpcName: pulumi.String("tf_test_foo12345"),
CidrBlock: pulumi.String("172.16.0.0/12"),
})
if err != nil {
return err
}
_, err = vpc.NewRouterInterface(ctx, "interface", &vpc.RouterInterfaceArgs{
OppositeRegion: pulumi.String("cn-beijing"),
RouterType: pulumi.String("VRouter"),
RouterId: foo.RouterId,
Role: pulumi.String("InitiatingSide"),
Specification: pulumi.String("Large.2"),
Name: pulumi.String("test1"),
Description: pulumi.String("test1"),
})
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 foo = new AliCloud.Vpc.Network("foo", new()
{
VpcName = "tf_test_foo12345",
CidrBlock = "172.16.0.0/12",
});
var @interface = new AliCloud.Vpc.RouterInterface("interface", new()
{
OppositeRegion = "cn-beijing",
RouterType = "VRouter",
RouterId = foo.RouterId,
Role = "InitiatingSide",
Specification = "Large.2",
Name = "test1",
Description = "test1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.RouterInterface;
import com.pulumi.alicloud.vpc.RouterInterfaceArgs;
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 foo = new Network("foo", NetworkArgs.builder()
.vpcName("tf_test_foo12345")
.cidrBlock("172.16.0.0/12")
.build());
var interface_ = new RouterInterface("interface", RouterInterfaceArgs.builder()
.oppositeRegion("cn-beijing")
.routerType("VRouter")
.routerId(foo.routerId())
.role("InitiatingSide")
.specification("Large.2")
.name("test1")
.description("test1")
.build());
}
}
resources:
foo:
type: alicloud:vpc:Network
properties:
vpcName: tf_test_foo12345
cidrBlock: 172.16.0.0/12
interface:
type: alicloud:vpc:RouterInterface
properties:
oppositeRegion: cn-beijing
routerType: VRouter
routerId: ${foo.routerId}
role: InitiatingSide
specification: Large.2
name: test1
description: test1
Create RouterInterface Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RouterInterface(name: string, args: RouterInterfaceArgs, opts?: CustomResourceOptions);
@overload
def RouterInterface(resource_name: str,
args: RouterInterfaceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RouterInterface(resource_name: str,
opts: Optional[ResourceOptions] = None,
opposite_region: Optional[str] = None,
role: Optional[str] = None,
router_id: Optional[str] = None,
router_type: Optional[str] = None,
description: Optional[str] = None,
health_check_source_ip: Optional[str] = None,
health_check_target_ip: Optional[str] = None,
instance_charge_type: Optional[str] = None,
name: Optional[str] = None,
opposite_access_point_id: Optional[str] = None,
period: Optional[int] = None,
specification: Optional[str] = None)
func NewRouterInterface(ctx *Context, name string, args RouterInterfaceArgs, opts ...ResourceOption) (*RouterInterface, error)
public RouterInterface(string name, RouterInterfaceArgs args, CustomResourceOptions? opts = null)
public RouterInterface(String name, RouterInterfaceArgs args)
public RouterInterface(String name, RouterInterfaceArgs args, CustomResourceOptions options)
type: alicloud:vpc:RouterInterface
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 RouterInterfaceArgs
- 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 RouterInterfaceArgs
- 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 RouterInterfaceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouterInterfaceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouterInterfaceArgs
- 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 alicloudRouterInterfaceResource = new AliCloud.Vpc.RouterInterface("alicloudRouterInterfaceResource", new()
{
OppositeRegion = "string",
Role = "string",
RouterId = "string",
RouterType = "string",
Description = "string",
HealthCheckSourceIp = "string",
HealthCheckTargetIp = "string",
InstanceChargeType = "string",
Name = "string",
Period = 0,
Specification = "string",
});
example, err := vpc.NewRouterInterface(ctx, "alicloudRouterInterfaceResource", &vpc.RouterInterfaceArgs{
OppositeRegion: pulumi.String("string"),
Role: pulumi.String("string"),
RouterId: pulumi.String("string"),
RouterType: pulumi.String("string"),
Description: pulumi.String("string"),
HealthCheckSourceIp: pulumi.String("string"),
HealthCheckTargetIp: pulumi.String("string"),
InstanceChargeType: pulumi.String("string"),
Name: pulumi.String("string"),
Period: pulumi.Int(0),
Specification: pulumi.String("string"),
})
var alicloudRouterInterfaceResource = new RouterInterface("alicloudRouterInterfaceResource", RouterInterfaceArgs.builder()
.oppositeRegion("string")
.role("string")
.routerId("string")
.routerType("string")
.description("string")
.healthCheckSourceIp("string")
.healthCheckTargetIp("string")
.instanceChargeType("string")
.name("string")
.period(0)
.specification("string")
.build());
alicloud_router_interface_resource = alicloud.vpc.RouterInterface("alicloudRouterInterfaceResource",
opposite_region="string",
role="string",
router_id="string",
router_type="string",
description="string",
health_check_source_ip="string",
health_check_target_ip="string",
instance_charge_type="string",
name="string",
period=0,
specification="string")
const alicloudRouterInterfaceResource = new alicloud.vpc.RouterInterface("alicloudRouterInterfaceResource", {
oppositeRegion: "string",
role: "string",
routerId: "string",
routerType: "string",
description: "string",
healthCheckSourceIp: "string",
healthCheckTargetIp: "string",
instanceChargeType: "string",
name: "string",
period: 0,
specification: "string",
});
type: alicloud:vpc:RouterInterface
properties:
description: string
healthCheckSourceIp: string
healthCheckTargetIp: string
instanceChargeType: string
name: string
oppositeRegion: string
period: 0
role: string
routerId: string
routerType: string
specification: string
RouterInterface 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 RouterInterface resource accepts the following input properties:
- Opposite
Region string - The Region of peer side.
- Role string
- The role the router interface plays. Optional value:
InitiatingSide
,AcceptingSide
. - Router
Id string - The Router ID.
- Router
Type string - Router Type. Optional value: VRouter, VBR. Accepting side router interface type only be VRouter.
- Description string
- Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.
- Health
Check stringSource Ip - Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_target_ip
must be specified at the same time. - Health
Check stringTarget Ip - Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_source_ip
must be specified at the same time. - Instance
Charge stringType - The billing method of the router interface. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". Router Interface doesn't support "PrePaid" when region and opposite_region are the same.
- Name string
- Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.
- Opposite
Access stringPoint Id - It has been deprecated from version 1.11.0.
- Period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- Specification string
- Specification of router interfaces. It is valid when
role
isInitiatingSide
. Accepting side's role is default to set as 'Negative'. For more about the specification, refer to Router interface specification.
- Opposite
Region string - The Region of peer side.
- Role string
- The role the router interface plays. Optional value:
InitiatingSide
,AcceptingSide
. - Router
Id string - The Router ID.
- Router
Type string - Router Type. Optional value: VRouter, VBR. Accepting side router interface type only be VRouter.
- Description string
- Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.
- Health
Check stringSource Ip - Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_target_ip
must be specified at the same time. - Health
Check stringTarget Ip - Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_source_ip
must be specified at the same time. - Instance
Charge stringType - The billing method of the router interface. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". Router Interface doesn't support "PrePaid" when region and opposite_region are the same.
- Name string
- Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.
- Opposite
Access stringPoint Id - It has been deprecated from version 1.11.0.
- Period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- Specification string
- Specification of router interfaces. It is valid when
role
isInitiatingSide
. Accepting side's role is default to set as 'Negative'. For more about the specification, refer to Router interface specification.
- opposite
Region String - The Region of peer side.
- role String
- The role the router interface plays. Optional value:
InitiatingSide
,AcceptingSide
. - router
Id String - The Router ID.
- router
Type String - Router Type. Optional value: VRouter, VBR. Accepting side router interface type only be VRouter.
- description String
- Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.
- health
Check StringSource Ip - Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_target_ip
must be specified at the same time. - health
Check StringTarget Ip - Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_source_ip
must be specified at the same time. - instance
Charge StringType - The billing method of the router interface. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". Router Interface doesn't support "PrePaid" when region and opposite_region are the same.
- name String
- Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.
- opposite
Access StringPoint Id - It has been deprecated from version 1.11.0.
- period Integer
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- specification String
- Specification of router interfaces. It is valid when
role
isInitiatingSide
. Accepting side's role is default to set as 'Negative'. For more about the specification, refer to Router interface specification.
- opposite
Region string - The Region of peer side.
- role string
- The role the router interface plays. Optional value:
InitiatingSide
,AcceptingSide
. - router
Id string - The Router ID.
- router
Type string - Router Type. Optional value: VRouter, VBR. Accepting side router interface type only be VRouter.
- description string
- Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.
- health
Check stringSource Ip - Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_target_ip
must be specified at the same time. - health
Check stringTarget Ip - Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_source_ip
must be specified at the same time. - instance
Charge stringType - The billing method of the router interface. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". Router Interface doesn't support "PrePaid" when region and opposite_region are the same.
- name string
- Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.
- opposite
Access stringPoint Id - It has been deprecated from version 1.11.0.
- period number
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- specification string
- Specification of router interfaces. It is valid when
role
isInitiatingSide
. Accepting side's role is default to set as 'Negative'. For more about the specification, refer to Router interface specification.
- opposite_
region str - The Region of peer side.
- role str
- The role the router interface plays. Optional value:
InitiatingSide
,AcceptingSide
. - router_
id str - The Router ID.
- router_
type str - Router Type. Optional value: VRouter, VBR. Accepting side router interface type only be VRouter.
- description str
- Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.
- health_
check_ strsource_ ip - Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_target_ip
must be specified at the same time. - health_
check_ strtarget_ ip - Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_source_ip
must be specified at the same time. - instance_
charge_ strtype - The billing method of the router interface. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". Router Interface doesn't support "PrePaid" when region and opposite_region are the same.
- name str
- Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.
- opposite_
access_ strpoint_ id - It has been deprecated from version 1.11.0.
- period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- specification str
- Specification of router interfaces. It is valid when
role
isInitiatingSide
. Accepting side's role is default to set as 'Negative'. For more about the specification, refer to Router interface specification.
- opposite
Region String - The Region of peer side.
- role String
- The role the router interface plays. Optional value:
InitiatingSide
,AcceptingSide
. - router
Id String - The Router ID.
- router
Type String - Router Type. Optional value: VRouter, VBR. Accepting side router interface type only be VRouter.
- description String
- Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.
- health
Check StringSource Ip - Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_target_ip
must be specified at the same time. - health
Check StringTarget Ip - Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_source_ip
must be specified at the same time. - instance
Charge StringType - The billing method of the router interface. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". Router Interface doesn't support "PrePaid" when region and opposite_region are the same.
- name String
- Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.
- opposite
Access StringPoint Id - It has been deprecated from version 1.11.0.
- period Number
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- specification String
- Specification of router interfaces. It is valid when
role
isInitiatingSide
. Accepting side's role is default to set as 'Negative'. For more about the specification, refer to Router interface specification.
Outputs
All input properties are implicitly available as output properties. Additionally, the RouterInterface resource produces the following output properties:
- Access
Point stringId - It has been deprecated from version 1.11.0.
- Id string
- The provider-assigned unique ID for this managed resource.
- Opposite
Interface stringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- Opposite
Interface stringOwner Id - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_interface_id' instead.
- Opposite
Router stringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- Opposite
Router stringType - It has been deprecated from version 1.11.0. resource alicloud_router_interface_connection's 'opposite_router_type' instead.
- Access
Point stringId - It has been deprecated from version 1.11.0.
- Id string
- The provider-assigned unique ID for this managed resource.
- Opposite
Interface stringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- Opposite
Interface stringOwner Id - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_interface_id' instead.
- Opposite
Router stringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- Opposite
Router stringType - It has been deprecated from version 1.11.0. resource alicloud_router_interface_connection's 'opposite_router_type' instead.
- access
Point StringId - It has been deprecated from version 1.11.0.
- id String
- The provider-assigned unique ID for this managed resource.
- opposite
Interface StringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite
Interface StringOwner Id - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_interface_id' instead.
- opposite
Router StringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite
Router StringType - It has been deprecated from version 1.11.0. resource alicloud_router_interface_connection's 'opposite_router_type' instead.
- access
Point stringId - It has been deprecated from version 1.11.0.
- id string
- The provider-assigned unique ID for this managed resource.
- opposite
Interface stringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite
Interface stringOwner Id - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_interface_id' instead.
- opposite
Router stringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite
Router stringType - It has been deprecated from version 1.11.0. resource alicloud_router_interface_connection's 'opposite_router_type' instead.
- access_
point_ strid - It has been deprecated from version 1.11.0.
- id str
- The provider-assigned unique ID for this managed resource.
- opposite_
interface_ strid - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite_
interface_ strowner_ id - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_interface_id' instead.
- opposite_
router_ strid - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite_
router_ strtype - It has been deprecated from version 1.11.0. resource alicloud_router_interface_connection's 'opposite_router_type' instead.
- access
Point StringId - It has been deprecated from version 1.11.0.
- id String
- The provider-assigned unique ID for this managed resource.
- opposite
Interface StringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite
Interface StringOwner Id - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_interface_id' instead.
- opposite
Router StringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite
Router StringType - It has been deprecated from version 1.11.0. resource alicloud_router_interface_connection's 'opposite_router_type' instead.
Look up Existing RouterInterface Resource
Get an existing RouterInterface 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?: RouterInterfaceState, opts?: CustomResourceOptions): RouterInterface
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_point_id: Optional[str] = None,
description: Optional[str] = None,
health_check_source_ip: Optional[str] = None,
health_check_target_ip: Optional[str] = None,
instance_charge_type: Optional[str] = None,
name: Optional[str] = None,
opposite_access_point_id: Optional[str] = None,
opposite_interface_id: Optional[str] = None,
opposite_interface_owner_id: Optional[str] = None,
opposite_region: Optional[str] = None,
opposite_router_id: Optional[str] = None,
opposite_router_type: Optional[str] = None,
period: Optional[int] = None,
role: Optional[str] = None,
router_id: Optional[str] = None,
router_type: Optional[str] = None,
specification: Optional[str] = None) -> RouterInterface
func GetRouterInterface(ctx *Context, name string, id IDInput, state *RouterInterfaceState, opts ...ResourceOption) (*RouterInterface, error)
public static RouterInterface Get(string name, Input<string> id, RouterInterfaceState? state, CustomResourceOptions? opts = null)
public static RouterInterface get(String name, Output<String> id, RouterInterfaceState 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.
- Access
Point stringId - It has been deprecated from version 1.11.0.
- Description string
- Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.
- Health
Check stringSource Ip - Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_target_ip
must be specified at the same time. - Health
Check stringTarget Ip - Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_source_ip
must be specified at the same time. - Instance
Charge stringType - The billing method of the router interface. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". Router Interface doesn't support "PrePaid" when region and opposite_region are the same.
- Name string
- Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.
- Opposite
Access stringPoint Id - It has been deprecated from version 1.11.0.
- Opposite
Interface stringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- Opposite
Interface stringOwner Id - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_interface_id' instead.
- Opposite
Region string - The Region of peer side.
- Opposite
Router stringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- Opposite
Router stringType - It has been deprecated from version 1.11.0. resource alicloud_router_interface_connection's 'opposite_router_type' instead.
- Period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- Role string
- The role the router interface plays. Optional value:
InitiatingSide
,AcceptingSide
. - Router
Id string - The Router ID.
- Router
Type string - Router Type. Optional value: VRouter, VBR. Accepting side router interface type only be VRouter.
- Specification string
- Specification of router interfaces. It is valid when
role
isInitiatingSide
. Accepting side's role is default to set as 'Negative'. For more about the specification, refer to Router interface specification.
- Access
Point stringId - It has been deprecated from version 1.11.0.
- Description string
- Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.
- Health
Check stringSource Ip - Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_target_ip
must be specified at the same time. - Health
Check stringTarget Ip - Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_source_ip
must be specified at the same time. - Instance
Charge stringType - The billing method of the router interface. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". Router Interface doesn't support "PrePaid" when region and opposite_region are the same.
- Name string
- Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.
- Opposite
Access stringPoint Id - It has been deprecated from version 1.11.0.
- Opposite
Interface stringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- Opposite
Interface stringOwner Id - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_interface_id' instead.
- Opposite
Region string - The Region of peer side.
- Opposite
Router stringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- Opposite
Router stringType - It has been deprecated from version 1.11.0. resource alicloud_router_interface_connection's 'opposite_router_type' instead.
- Period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- Role string
- The role the router interface plays. Optional value:
InitiatingSide
,AcceptingSide
. - Router
Id string - The Router ID.
- Router
Type string - Router Type. Optional value: VRouter, VBR. Accepting side router interface type only be VRouter.
- Specification string
- Specification of router interfaces. It is valid when
role
isInitiatingSide
. Accepting side's role is default to set as 'Negative'. For more about the specification, refer to Router interface specification.
- access
Point StringId - It has been deprecated from version 1.11.0.
- description String
- Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.
- health
Check StringSource Ip - Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_target_ip
must be specified at the same time. - health
Check StringTarget Ip - Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_source_ip
must be specified at the same time. - instance
Charge StringType - The billing method of the router interface. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". Router Interface doesn't support "PrePaid" when region and opposite_region are the same.
- name String
- Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.
- opposite
Access StringPoint Id - It has been deprecated from version 1.11.0.
- opposite
Interface StringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite
Interface StringOwner Id - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_interface_id' instead.
- opposite
Region String - The Region of peer side.
- opposite
Router StringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite
Router StringType - It has been deprecated from version 1.11.0. resource alicloud_router_interface_connection's 'opposite_router_type' instead.
- period Integer
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- role String
- The role the router interface plays. Optional value:
InitiatingSide
,AcceptingSide
. - router
Id String - The Router ID.
- router
Type String - Router Type. Optional value: VRouter, VBR. Accepting side router interface type only be VRouter.
- specification String
- Specification of router interfaces. It is valid when
role
isInitiatingSide
. Accepting side's role is default to set as 'Negative'. For more about the specification, refer to Router interface specification.
- access
Point stringId - It has been deprecated from version 1.11.0.
- description string
- Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.
- health
Check stringSource Ip - Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_target_ip
must be specified at the same time. - health
Check stringTarget Ip - Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_source_ip
must be specified at the same time. - instance
Charge stringType - The billing method of the router interface. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". Router Interface doesn't support "PrePaid" when region and opposite_region are the same.
- name string
- Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.
- opposite
Access stringPoint Id - It has been deprecated from version 1.11.0.
- opposite
Interface stringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite
Interface stringOwner Id - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_interface_id' instead.
- opposite
Region string - The Region of peer side.
- opposite
Router stringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite
Router stringType - It has been deprecated from version 1.11.0. resource alicloud_router_interface_connection's 'opposite_router_type' instead.
- period number
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- role string
- The role the router interface plays. Optional value:
InitiatingSide
,AcceptingSide
. - router
Id string - The Router ID.
- router
Type string - Router Type. Optional value: VRouter, VBR. Accepting side router interface type only be VRouter.
- specification string
- Specification of router interfaces. It is valid when
role
isInitiatingSide
. Accepting side's role is default to set as 'Negative'. For more about the specification, refer to Router interface specification.
- access_
point_ strid - It has been deprecated from version 1.11.0.
- description str
- Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.
- health_
check_ strsource_ ip - Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_target_ip
must be specified at the same time. - health_
check_ strtarget_ ip - Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_source_ip
must be specified at the same time. - instance_
charge_ strtype - The billing method of the router interface. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". Router Interface doesn't support "PrePaid" when region and opposite_region are the same.
- name str
- Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.
- opposite_
access_ strpoint_ id - It has been deprecated from version 1.11.0.
- opposite_
interface_ strid - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite_
interface_ strowner_ id - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_interface_id' instead.
- opposite_
region str - The Region of peer side.
- opposite_
router_ strid - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite_
router_ strtype - It has been deprecated from version 1.11.0. resource alicloud_router_interface_connection's 'opposite_router_type' instead.
- period int
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- role str
- The role the router interface plays. Optional value:
InitiatingSide
,AcceptingSide
. - router_
id str - The Router ID.
- router_
type str - Router Type. Optional value: VRouter, VBR. Accepting side router interface type only be VRouter.
- specification str
- Specification of router interfaces. It is valid when
role
isInitiatingSide
. Accepting side's role is default to set as 'Negative'. For more about the specification, refer to Router interface specification.
- access
Point StringId - It has been deprecated from version 1.11.0.
- description String
- Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.
- health
Check StringSource Ip - Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_target_ip
must be specified at the same time. - health
Check StringTarget Ip - Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid when
router_type
isVBR
. The IP must be an unused IP in the local VPC. It andhealth_check_source_ip
must be specified at the same time. - instance
Charge StringType - The billing method of the router interface. Valid values are "PrePaid" and "PostPaid". Default to "PostPaid". Router Interface doesn't support "PrePaid" when region and opposite_region are the same.
- name String
- Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.
- opposite
Access StringPoint Id - It has been deprecated from version 1.11.0.
- opposite
Interface StringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite
Interface StringOwner Id - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_interface_id' instead.
- opposite
Region String - The Region of peer side.
- opposite
Router StringId - It has been deprecated from version 1.11.0. Use resource alicloud_router_interface_connection's 'opposite_router_id' instead.
- opposite
Router StringType - It has been deprecated from version 1.11.0. resource alicloud_router_interface_connection's 'opposite_router_type' instead.
- period Number
The duration that you will buy the resource, in month. It is valid when
instance_charge_type
isPrePaid
. Valid values: [1-9, 12, 24, 36]. At present, the provider does not support modify "period" and you can do that via web console.NOTE: The attribute
period
is only used to create Subscription instance or modify the PayAsYouGo instance to Subscription. Once effect, it will not be modified that means runningpulumi up
will not effect the resource.- role String
- The role the router interface plays. Optional value:
InitiatingSide
,AcceptingSide
. - router
Id String - The Router ID.
- router
Type String - Router Type. Optional value: VRouter, VBR. Accepting side router interface type only be VRouter.
- specification String
- Specification of router interfaces. It is valid when
role
isInitiatingSide
. Accepting side's role is default to set as 'Negative'. For more about the specification, refer to Router interface specification.
Import
The router interface can be imported using the id, e.g.
$ pulumi import alicloud:vpc/routerInterface:RouterInterface interface ri-abc123456
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.