1. Packages
  2. Volcengine
  3. API Docs
  4. cen
  5. RouteEntry
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

volcengine.cen.RouteEntry

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

    Provides a resource to manage cen route entry

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Volcengine.Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Cen.RouteEntry("foo", new()
        {
            CenId = "cen-12ar8uclj68sg17q7y20v9gil",
            DestinationCidrBlock = "192.168.0.0/24",
            InstanceId = "vpc-im67wjcikxkw8gbssx8ufpj8",
            InstanceRegionId = "cn-beijing",
            InstanceType = "VPC",
        });
    
        var foo1 = new Volcengine.Cen.RouteEntry("foo1", new()
        {
            CenId = "cen-12ar8uclj68sg17q7y20v9gil",
            DestinationCidrBlock = "192.168.17.0/24",
            InstanceId = "vpc-im67wjcikxkw8gbssx8ufpj8",
            InstanceRegionId = "cn-beijing",
            InstanceType = "VPC",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cen"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cen.NewRouteEntry(ctx, "foo", &cen.RouteEntryArgs{
    			CenId:                pulumi.String("cen-12ar8uclj68sg17q7y20v9gil"),
    			DestinationCidrBlock: pulumi.String("192.168.0.0/24"),
    			InstanceId:           pulumi.String("vpc-im67wjcikxkw8gbssx8ufpj8"),
    			InstanceRegionId:     pulumi.String("cn-beijing"),
    			InstanceType:         pulumi.String("VPC"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewRouteEntry(ctx, "foo1", &cen.RouteEntryArgs{
    			CenId:                pulumi.String("cen-12ar8uclj68sg17q7y20v9gil"),
    			DestinationCidrBlock: pulumi.String("192.168.17.0/24"),
    			InstanceId:           pulumi.String("vpc-im67wjcikxkw8gbssx8ufpj8"),
    			InstanceRegionId:     pulumi.String("cn-beijing"),
    			InstanceType:         pulumi.String("VPC"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.cen.RouteEntry;
    import com.pulumi.volcengine.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 foo = new RouteEntry("foo", RouteEntryArgs.builder()        
                .cenId("cen-12ar8uclj68sg17q7y20v9gil")
                .destinationCidrBlock("192.168.0.0/24")
                .instanceId("vpc-im67wjcikxkw8gbssx8ufpj8")
                .instanceRegionId("cn-beijing")
                .instanceType("VPC")
                .build());
    
            var foo1 = new RouteEntry("foo1", RouteEntryArgs.builder()        
                .cenId("cen-12ar8uclj68sg17q7y20v9gil")
                .destinationCidrBlock("192.168.17.0/24")
                .instanceId("vpc-im67wjcikxkw8gbssx8ufpj8")
                .instanceRegionId("cn-beijing")
                .instanceType("VPC")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cen.RouteEntry("foo",
        cen_id="cen-12ar8uclj68sg17q7y20v9gil",
        destination_cidr_block="192.168.0.0/24",
        instance_id="vpc-im67wjcikxkw8gbssx8ufpj8",
        instance_region_id="cn-beijing",
        instance_type="VPC")
    foo1 = volcengine.cen.RouteEntry("foo1",
        cen_id="cen-12ar8uclj68sg17q7y20v9gil",
        destination_cidr_block="192.168.17.0/24",
        instance_id="vpc-im67wjcikxkw8gbssx8ufpj8",
        instance_region_id="cn-beijing",
        instance_type="VPC")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.cen.RouteEntry("foo", {
        cenId: "cen-12ar8uclj68sg17q7y20v9gil",
        destinationCidrBlock: "192.168.0.0/24",
        instanceId: "vpc-im67wjcikxkw8gbssx8ufpj8",
        instanceRegionId: "cn-beijing",
        instanceType: "VPC",
    });
    const foo1 = new volcengine.cen.RouteEntry("foo1", {
        cenId: "cen-12ar8uclj68sg17q7y20v9gil",
        destinationCidrBlock: "192.168.17.0/24",
        instanceId: "vpc-im67wjcikxkw8gbssx8ufpj8",
        instanceRegionId: "cn-beijing",
        instanceType: "VPC",
    });
    
    resources:
      foo:
        type: volcengine:cen:RouteEntry
        properties:
          cenId: cen-12ar8uclj68sg17q7y20v9gil
          destinationCidrBlock: 192.168.0.0/24
          instanceId: vpc-im67wjcikxkw8gbssx8ufpj8
          instanceRegionId: cn-beijing
          instanceType: VPC
      foo1:
        type: volcengine:cen:RouteEntry
        properties:
          cenId: cen-12ar8uclj68sg17q7y20v9gil
          destinationCidrBlock: 192.168.17.0/24
          instanceId: vpc-im67wjcikxkw8gbssx8ufpj8
          instanceRegionId: cn-beijing
          instanceType: VPC
    

    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: volcengine: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.

    Example

    The following reference example uses placeholder values for all input properties.

    var routeEntryResource = new Volcengine.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 = volcengine.cen.RouteEntry("routeEntryResource",
        cen_id="string",
        destination_cidr_block="string",
        instance_id="string",
        instance_region_id="string",
        instance_type="string")
    
    const routeEntryResource = new volcengine.cen.RouteEntry("routeEntryResource", {
        cenId: "string",
        destinationCidrBlock: "string",
        instanceId: "string",
        instanceRegionId: "string",
        instanceType: "string",
    });
    
    type: volcengine: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

    The RouteEntry resource accepts the following input properties:

    CenId string
    The cen ID of the cen route entry.
    DestinationCidrBlock string
    The destination cidr block of the cen route entry.
    InstanceId string
    The instance id of the next hop of the cen route entry.
    InstanceRegionId string
    The instance region id of the next hop of the cen route entry.
    InstanceType string
    The instance type of the next hop of the cen route entry.
    CenId string
    The cen ID of the cen route entry.
    DestinationCidrBlock string
    The destination cidr block of the cen route entry.
    InstanceId string
    The instance id of the next hop of the cen route entry.
    InstanceRegionId string
    The instance region id of the next hop of the cen route entry.
    InstanceType string
    The instance type of the next hop of the cen route entry.
    cenId String
    The cen ID of the cen route entry.
    destinationCidrBlock String
    The destination cidr block of the cen route entry.
    instanceId String
    The instance id of the next hop of the cen route entry.
    instanceRegionId String
    The instance region id of the next hop of the cen route entry.
    instanceType String
    The instance type of the next hop of the cen route entry.
    cenId string
    The cen ID of the cen route entry.
    destinationCidrBlock string
    The destination cidr block of the cen route entry.
    instanceId string
    The instance id of the next hop of the cen route entry.
    instanceRegionId string
    The instance region id of the next hop of the cen route entry.
    instanceType string
    The instance type of the next hop of the cen route entry.
    cen_id str
    The cen ID of the cen route entry.
    destination_cidr_block str
    The destination cidr block of the cen route entry.
    instance_id str
    The instance id of the next hop of the cen route entry.
    instance_region_id str
    The instance region id of the next hop of the cen route entry.
    instance_type str
    The instance type of the next hop of the cen route entry.
    cenId String
    The cen ID of the cen route entry.
    destinationCidrBlock String
    The destination cidr block of the cen route entry.
    instanceId String
    The instance id of the next hop of the cen route entry.
    instanceRegionId String
    The instance region id of the next hop of the cen route entry.
    instanceType String
    The instance type of the next hop of the cen route entry.

    Outputs

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

    AsPaths List<string>
    The AS path of the cen route entry.
    Id string
    The provider-assigned unique ID for this managed resource.
    PublishStatus string
    The publish status of the cen route entry.
    Status string
    The status of the cen route entry.
    AsPaths []string
    The AS path of the cen route entry.
    Id string
    The provider-assigned unique ID for this managed resource.
    PublishStatus string
    The publish status of the cen route entry.
    Status string
    The status of the cen route entry.
    asPaths List<String>
    The AS path of the cen route entry.
    id String
    The provider-assigned unique ID for this managed resource.
    publishStatus String
    The publish status of the cen route entry.
    status String
    The status of the cen route entry.
    asPaths string[]
    The AS path of the cen route entry.
    id string
    The provider-assigned unique ID for this managed resource.
    publishStatus string
    The publish status of the cen route entry.
    status string
    The status of the cen route entry.
    as_paths Sequence[str]
    The AS path of the cen route entry.
    id str
    The provider-assigned unique ID for this managed resource.
    publish_status str
    The publish status of the cen route entry.
    status str
    The status of the cen route entry.
    asPaths List<String>
    The AS path of the cen route entry.
    id String
    The provider-assigned unique ID for this managed resource.
    publishStatus String
    The publish status of the cen route entry.
    status String
    The status of the cen route entry.

    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) -> 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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AsPaths List<string>
    The AS path of the cen route entry.
    CenId string
    The cen ID of the cen route entry.
    DestinationCidrBlock string
    The destination cidr block of the cen route entry.
    InstanceId string
    The instance id of the next hop of the cen route entry.
    InstanceRegionId string
    The instance region id of the next hop of the cen route entry.
    InstanceType string
    The instance type of the next hop of the cen route entry.
    PublishStatus string
    The publish status of the cen route entry.
    Status string
    The status of the cen route entry.
    AsPaths []string
    The AS path of the cen route entry.
    CenId string
    The cen ID of the cen route entry.
    DestinationCidrBlock string
    The destination cidr block of the cen route entry.
    InstanceId string
    The instance id of the next hop of the cen route entry.
    InstanceRegionId string
    The instance region id of the next hop of the cen route entry.
    InstanceType string
    The instance type of the next hop of the cen route entry.
    PublishStatus string
    The publish status of the cen route entry.
    Status string
    The status of the cen route entry.
    asPaths List<String>
    The AS path of the cen route entry.
    cenId String
    The cen ID of the cen route entry.
    destinationCidrBlock String
    The destination cidr block of the cen route entry.
    instanceId String
    The instance id of the next hop of the cen route entry.
    instanceRegionId String
    The instance region id of the next hop of the cen route entry.
    instanceType String
    The instance type of the next hop of the cen route entry.
    publishStatus String
    The publish status of the cen route entry.
    status String
    The status of the cen route entry.
    asPaths string[]
    The AS path of the cen route entry.
    cenId string
    The cen ID of the cen route entry.
    destinationCidrBlock string
    The destination cidr block of the cen route entry.
    instanceId string
    The instance id of the next hop of the cen route entry.
    instanceRegionId string
    The instance region id of the next hop of the cen route entry.
    instanceType string
    The instance type of the next hop of the cen route entry.
    publishStatus string
    The publish status of the cen route entry.
    status string
    The status of the cen route entry.
    as_paths Sequence[str]
    The AS path of the cen route entry.
    cen_id str
    The cen ID of the cen route entry.
    destination_cidr_block str
    The destination cidr block of the cen route entry.
    instance_id str
    The instance id of the next hop of the cen route entry.
    instance_region_id str
    The instance region id of the next hop of the cen route entry.
    instance_type str
    The instance type of the next hop of the cen route entry.
    publish_status str
    The publish status of the cen route entry.
    status str
    The status of the cen route entry.
    asPaths List<String>
    The AS path of the cen route entry.
    cenId String
    The cen ID of the cen route entry.
    destinationCidrBlock String
    The destination cidr block of the cen route entry.
    instanceId String
    The instance id of the next hop of the cen route entry.
    instanceRegionId String
    The instance region id of the next hop of the cen route entry.
    instanceType String
    The instance type of the next hop of the cen route entry.
    publishStatus String
    The publish status of the cen route entry.
    status String
    The status of the cen route entry.

    Import

    CenRouteEntry can be imported using the CenId:DestinationCidrBlock:InstanceId:InstanceType:InstanceRegionId, e.g.

     $ pulumi import volcengine:cen/routeEntry:RouteEntry default cen-2nim00ybaylts7trquyzt****:100.XX.XX.0/24:vpc-vtbnbb04qw3k2hgi12cv****:VPC:cn-beijing
    

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine