published on Thursday, Apr 23, 2026 by Volcengine
published on Thursday, Apr 23, 2026 by Volcengine
Cloud enterprise network route entry, used to publish the route entry of a network instance to the cloud enterprise network
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcenginecc from "@volcengine/pulumi-volcenginecc";
const cENRouteEntryDemo = new volcenginecc.cen.RouteEntry("CENRouteEntryDemo", {
instanceType: "VPC",
instanceRegionId: "cn-beijing",
instanceId: "vpc-iirjlwem73eo74o8ctxxxxx",
destinationCidrBlock: "192.x.0.0/24",
cenId: "cen-2v73nw1h8a03k6x7e8xxxxx",
});
import pulumi
import pulumi_volcenginecc as volcenginecc
c_en_route_entry_demo = volcenginecc.cen.RouteEntry("CENRouteEntryDemo",
instance_type="VPC",
instance_region_id="cn-beijing",
instance_id="vpc-iirjlwem73eo74o8ctxxxxx",
destination_cidr_block="192.x.0.0/24",
cen_id="cen-2v73nw1h8a03k6x7e8xxxxx")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcenginecc/sdk/go/volcenginecc/cen"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cen.NewRouteEntry(ctx, "CENRouteEntryDemo", &cen.RouteEntryArgs{
InstanceType: pulumi.String("VPC"),
InstanceRegionId: pulumi.String("cn-beijing"),
InstanceId: pulumi.String("vpc-iirjlwem73eo74o8ctxxxxx"),
DestinationCidrBlock: pulumi.String("192.x.0.0/24"),
CenId: pulumi.String("cen-2v73nw1h8a03k6x7e8xxxxx"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcenginecc = Volcengine.Pulumi.Volcenginecc;
return await Deployment.RunAsync(() =>
{
var cENRouteEntryDemo = new Volcenginecc.Cen.RouteEntry("CENRouteEntryDemo", new()
{
InstanceType = "VPC",
InstanceRegionId = "cn-beijing",
InstanceId = "vpc-iirjlwem73eo74o8ctxxxxx",
DestinationCidrBlock = "192.x.0.0/24",
CenId = "cen-2v73nw1h8a03k6x7e8xxxxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.volcengine.volcenginecc.cen.RouteEntry;
import com.volcengine.volcenginecc.cen.RouteEntryArgs;
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 cENRouteEntryDemo = new RouteEntry("cENRouteEntryDemo", RouteEntryArgs.builder()
.instanceType("VPC")
.instanceRegionId("cn-beijing")
.instanceId("vpc-iirjlwem73eo74o8ctxxxxx")
.destinationCidrBlock("192.x.0.0/24")
.cenId("cen-2v73nw1h8a03k6x7e8xxxxx")
.build());
}
}
resources:
cENRouteEntryDemo:
type: volcenginecc:cen:RouteEntry
name: CENRouteEntryDemo
properties:
instanceType: VPC
instanceRegionId: cn-beijing
instanceId: vpc-iirjlwem73eo74o8ctxxxxx
destinationCidrBlock: 192.x.0.0/24
cenId: cen-2v73nw1h8a03k6x7e8xxxxx
Create RouteEntry Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RouteEntry(name: string, args: RouteEntryArgs, opts?: CustomResourceOptions);@overload
def RouteEntry(resource_name: str,
args: RouteEntryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RouteEntry(resource_name: str,
opts: Optional[ResourceOptions] = None,
cen_id: Optional[str] = None,
destination_cidr_block: Optional[str] = None,
instance_id: Optional[str] = None,
instance_region_id: Optional[str] = None,
instance_type: Optional[str] = None)func NewRouteEntry(ctx *Context, name string, args RouteEntryArgs, opts ...ResourceOption) (*RouteEntry, error)public RouteEntry(string name, RouteEntryArgs args, CustomResourceOptions? opts = null)
public RouteEntry(String name, RouteEntryArgs args)
public RouteEntry(String name, RouteEntryArgs args, CustomResourceOptions options)
type: volcenginecc:cen:RouteEntry
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 RouteEntryArgs
- 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 RouteEntryArgs
- 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 RouteEntryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RouteEntryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RouteEntryArgs
- 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 routeEntryResource = new Volcenginecc.Cen.RouteEntry("routeEntryResource", new()
{
CenId = "string",
DestinationCidrBlock = "string",
InstanceId = "string",
InstanceRegionId = "string",
InstanceType = "string",
});
example, err := cen.NewRouteEntry(ctx, "routeEntryResource", &cen.RouteEntryArgs{
CenId: pulumi.String("string"),
DestinationCidrBlock: pulumi.String("string"),
InstanceId: pulumi.String("string"),
InstanceRegionId: pulumi.String("string"),
InstanceType: pulumi.String("string"),
})
var routeEntryResource = new RouteEntry("routeEntryResource", RouteEntryArgs.builder()
.cenId("string")
.destinationCidrBlock("string")
.instanceId("string")
.instanceRegionId("string")
.instanceType("string")
.build());
route_entry_resource = volcenginecc.cen.RouteEntry("routeEntryResource",
cen_id="string",
destination_cidr_block="string",
instance_id="string",
instance_region_id="string",
instance_type="string")
const routeEntryResource = new volcenginecc.cen.RouteEntry("routeEntryResource", {
cenId: "string",
destinationCidrBlock: "string",
instanceId: "string",
instanceRegionId: "string",
instanceType: "string",
});
type: volcenginecc:cen:RouteEntry
properties:
cenId: string
destinationCidrBlock: string
instanceId: string
instanceRegionId: string
instanceType: string
RouteEntry Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The RouteEntry resource accepts the following input properties:
- Cen
Id string - Cloud enterprise network instance ID
- Destination
Cidr stringBlock - Destination CIDR of the route entry
- Instance
Id string - Network instance ID
- Instance
Region stringId - Region ID of the network instance
- Instance
Type string - Network instance type
- Cen
Id string - Cloud enterprise network instance ID
- Destination
Cidr stringBlock - Destination CIDR of the route entry
- Instance
Id string - Network instance ID
- Instance
Region stringId - Region ID of the network instance
- Instance
Type string - Network instance type
- cen
Id String - Cloud enterprise network instance ID
- destination
Cidr StringBlock - Destination CIDR of the route entry
- instance
Id String - Network instance ID
- instance
Region StringId - Region ID of the network instance
- instance
Type String - Network instance type
- cen
Id string - Cloud enterprise network instance ID
- destination
Cidr stringBlock - Destination CIDR of the route entry
- instance
Id string - Network instance ID
- instance
Region stringId - Region ID of the network instance
- instance
Type string - Network instance type
- cen_
id str - Cloud enterprise network instance ID
- destination_
cidr_ strblock - Destination CIDR of the route entry
- instance_
id str - Network instance ID
- instance_
region_ strid - Region ID of the network instance
- instance_
type str - Network instance type
- cen
Id String - Cloud enterprise network instance ID
- destination
Cidr StringBlock - Destination CIDR of the route entry
- instance
Id String - Network instance ID
- instance
Region StringId - Region ID of the network instance
- instance
Type String - Network instance type
Outputs
All input properties are implicitly available as output properties. Additionally, the RouteEntry resource produces the following output properties:
- As
Paths List<string> - AS path
- Id string
- The provider-assigned unique ID for this managed resource.
- Publish
Status string - Publish status of the route entry
- Status string
- Effective status of the route entry
- Type string
- Route entry type
- As
Paths []string - AS path
- Id string
- The provider-assigned unique ID for this managed resource.
- Publish
Status string - Publish status of the route entry
- Status string
- Effective status of the route entry
- Type string
- Route entry type
- as
Paths List<String> - AS path
- id String
- The provider-assigned unique ID for this managed resource.
- publish
Status String - Publish status of the route entry
- status String
- Effective status of the route entry
- type String
- Route entry type
- as
Paths string[] - AS path
- id string
- The provider-assigned unique ID for this managed resource.
- publish
Status string - Publish status of the route entry
- status string
- Effective status of the route entry
- type string
- Route entry type
- as_
paths Sequence[str] - AS path
- id str
- The provider-assigned unique ID for this managed resource.
- publish_
status str - Publish status of the route entry
- status str
- Effective status of the route entry
- type str
- Route entry type
- as
Paths List<String> - AS path
- id String
- The provider-assigned unique ID for this managed resource.
- publish
Status String - Publish status of the route entry
- status String
- Effective status of the route entry
- type String
- Route entry type
Look up Existing RouteEntry Resource
Get an existing RouteEntry 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?: RouteEntryState, opts?: CustomResourceOptions): RouteEntry@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
as_paths: Optional[Sequence[str]] = None,
cen_id: Optional[str] = None,
destination_cidr_block: Optional[str] = None,
instance_id: Optional[str] = None,
instance_region_id: Optional[str] = None,
instance_type: Optional[str] = None,
publish_status: Optional[str] = None,
status: Optional[str] = None,
type: Optional[str] = None) -> RouteEntryfunc GetRouteEntry(ctx *Context, name string, id IDInput, state *RouteEntryState, opts ...ResourceOption) (*RouteEntry, error)public static RouteEntry Get(string name, Input<string> id, RouteEntryState? state, CustomResourceOptions? opts = null)public static RouteEntry get(String name, Output<String> id, RouteEntryState state, CustomResourceOptions options)resources: _: type: volcenginecc:cen:RouteEntry get: id: ${id}- 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.
- As
Paths List<string> - AS path
- Cen
Id string - Cloud enterprise network instance ID
- Destination
Cidr stringBlock - Destination CIDR of the route entry
- Instance
Id string - Network instance ID
- Instance
Region stringId - Region ID of the network instance
- Instance
Type string - Network instance type
- Publish
Status string - Publish status of the route entry
- Status string
- Effective status of the route entry
- Type string
- Route entry type
- As
Paths []string - AS path
- Cen
Id string - Cloud enterprise network instance ID
- Destination
Cidr stringBlock - Destination CIDR of the route entry
- Instance
Id string - Network instance ID
- Instance
Region stringId - Region ID of the network instance
- Instance
Type string - Network instance type
- Publish
Status string - Publish status of the route entry
- Status string
- Effective status of the route entry
- Type string
- Route entry type
- as
Paths List<String> - AS path
- cen
Id String - Cloud enterprise network instance ID
- destination
Cidr StringBlock - Destination CIDR of the route entry
- instance
Id String - Network instance ID
- instance
Region StringId - Region ID of the network instance
- instance
Type String - Network instance type
- publish
Status String - Publish status of the route entry
- status String
- Effective status of the route entry
- type String
- Route entry type
- as
Paths string[] - AS path
- cen
Id string - Cloud enterprise network instance ID
- destination
Cidr stringBlock - Destination CIDR of the route entry
- instance
Id string - Network instance ID
- instance
Region stringId - Region ID of the network instance
- instance
Type string - Network instance type
- publish
Status string - Publish status of the route entry
- status string
- Effective status of the route entry
- type string
- Route entry type
- as_
paths Sequence[str] - AS path
- cen_
id str - Cloud enterprise network instance ID
- destination_
cidr_ strblock - Destination CIDR of the route entry
- instance_
id str - Network instance ID
- instance_
region_ strid - Region ID of the network instance
- instance_
type str - Network instance type
- publish_
status str - Publish status of the route entry
- status str
- Effective status of the route entry
- type str
- Route entry type
- as
Paths List<String> - AS path
- cen
Id String - Cloud enterprise network instance ID
- destination
Cidr StringBlock - Destination CIDR of the route entry
- instance
Id String - Network instance ID
- instance
Region StringId - Region ID of the network instance
- instance
Type String - Network instance type
- publish
Status String - Publish status of the route entry
- status String
- Effective status of the route entry
- type String
- Route entry type
Import
$ pulumi import volcenginecc:cen/routeEntry:RouteEntry example "cen_id|destination_cidr_block|instance_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
published on Thursday, Apr 23, 2026 by Volcengine
