1. Packages
  2. Volcengine
  3. API Docs
  4. cen
  5. RouteEntry
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.cen.RouteEntry

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    Provides a resource to manage cen route entry

    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.

    Constructor 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.26 published on Friday, Sep 13, 2024 by Volcengine