1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. cen
  6. RouteEntry
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
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:

    CenId string
    Cloud enterprise network instance ID
    DestinationCidrBlock string
    Destination CIDR of the route entry
    InstanceId string
    Network instance ID
    InstanceRegionId string
    Region ID of the network instance
    InstanceType string
    Network instance type
    CenId string
    Cloud enterprise network instance ID
    DestinationCidrBlock string
    Destination CIDR of the route entry
    InstanceId string
    Network instance ID
    InstanceRegionId string
    Region ID of the network instance
    InstanceType string
    Network instance type
    cenId String
    Cloud enterprise network instance ID
    destinationCidrBlock String
    Destination CIDR of the route entry
    instanceId String
    Network instance ID
    instanceRegionId String
    Region ID of the network instance
    instanceType String
    Network instance type
    cenId string
    Cloud enterprise network instance ID
    destinationCidrBlock string
    Destination CIDR of the route entry
    instanceId string
    Network instance ID
    instanceRegionId string
    Region ID of the network instance
    instanceType string
    Network instance type
    cen_id str
    Cloud enterprise network instance ID
    destination_cidr_block str
    Destination CIDR of the route entry
    instance_id str
    Network instance ID
    instance_region_id str
    Region ID of the network instance
    instance_type str
    Network instance type
    cenId String
    Cloud enterprise network instance ID
    destinationCidrBlock String
    Destination CIDR of the route entry
    instanceId String
    Network instance ID
    instanceRegionId String
    Region ID of the network instance
    instanceType String
    Network instance type

    Outputs

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

    AsPaths List<string>
    AS path
    Id string
    The provider-assigned unique ID for this managed resource.
    PublishStatus string
    Publish status of the route entry
    Status string
    Effective status of the route entry
    Type string
    Route entry type
    AsPaths []string
    AS path
    Id string
    The provider-assigned unique ID for this managed resource.
    PublishStatus string
    Publish status of the route entry
    Status string
    Effective status of the route entry
    Type string
    Route entry type
    asPaths List<String>
    AS path
    id String
    The provider-assigned unique ID for this managed resource.
    publishStatus String
    Publish status of the route entry
    status String
    Effective status of the route entry
    type String
    Route entry type
    asPaths string[]
    AS path
    id string
    The provider-assigned unique ID for this managed resource.
    publishStatus 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
    asPaths List<String>
    AS path
    id String
    The provider-assigned unique ID for this managed resource.
    publishStatus 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) -> RouteEntry
    func 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.
    The following state arguments are supported:
    AsPaths List<string>
    AS path
    CenId string
    Cloud enterprise network instance ID
    DestinationCidrBlock string
    Destination CIDR of the route entry
    InstanceId string
    Network instance ID
    InstanceRegionId string
    Region ID of the network instance
    InstanceType string
    Network instance type
    PublishStatus string
    Publish status of the route entry
    Status string
    Effective status of the route entry
    Type string
    Route entry type
    AsPaths []string
    AS path
    CenId string
    Cloud enterprise network instance ID
    DestinationCidrBlock string
    Destination CIDR of the route entry
    InstanceId string
    Network instance ID
    InstanceRegionId string
    Region ID of the network instance
    InstanceType string
    Network instance type
    PublishStatus string
    Publish status of the route entry
    Status string
    Effective status of the route entry
    Type string
    Route entry type
    asPaths List<String>
    AS path
    cenId String
    Cloud enterprise network instance ID
    destinationCidrBlock String
    Destination CIDR of the route entry
    instanceId String
    Network instance ID
    instanceRegionId String
    Region ID of the network instance
    instanceType String
    Network instance type
    publishStatus String
    Publish status of the route entry
    status String
    Effective status of the route entry
    type String
    Route entry type
    asPaths string[]
    AS path
    cenId string
    Cloud enterprise network instance ID
    destinationCidrBlock string
    Destination CIDR of the route entry
    instanceId string
    Network instance ID
    instanceRegionId string
    Region ID of the network instance
    instanceType string
    Network instance type
    publishStatus 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_block str
    Destination CIDR of the route entry
    instance_id str
    Network instance ID
    instance_region_id str
    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
    asPaths List<String>
    AS path
    cenId String
    Cloud enterprise network instance ID
    destinationCidrBlock String
    Destination CIDR of the route entry
    instanceId String
    Network instance ID
    instanceRegionId String
    Region ID of the network instance
    instanceType String
    Network instance type
    publishStatus 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 volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.