1. Packages
  2. Volcengine
  3. API Docs
  4. cen
  5. RouteEntry
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.cen.RouteEntry

Explore with Pulumi AI

Provides a resource to manage 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
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. RouteEntryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. RouteEntryArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RouteEntryArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
var routeEntryResource = new RouteEntry("routeEntryResource", RouteEntryArgs.builder()
    .cenId("string")
    .destinationCidrBlock("string")
    .instanceId("string")
    .instanceRegionId("string")
    .instanceType("string")
    .build());
Copy
route_entry_resource = volcengine.cen.RouteEntry("routeEntryResource",
    cen_id="string",
    destination_cidr_block="string",
    instance_id="string",
    instance_region_id="string",
    instance_type="string")
Copy
const routeEntryResource = new volcengine.cen.RouteEntry("routeEntryResource", {
    cenId: "string",
    destinationCidrBlock: "string",
    instanceId: "string",
    instanceRegionId: "string",
    instanceType: "string",
});
Copy
type: volcengine:cen:RouteEntry
properties:
    cenId: string
    destinationCidrBlock: string
    instanceId: string
    instanceRegionId: string
    instanceType: string
Copy

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
This property is required.
Changes to this property will trigger replacement.
string
The cen ID of the cen route entry.
DestinationCidrBlock
This property is required.
Changes to this property will trigger replacement.
string
The destination cidr block of the cen route entry.
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The instance id of the next hop of the cen route entry.
InstanceRegionId
This property is required.
Changes to this property will trigger replacement.
string
The instance region id of the next hop of the cen route entry.
InstanceType Changes to this property will trigger replacement. string
The instance type of the next hop of the cen route entry.
CenId
This property is required.
Changes to this property will trigger replacement.
string
The cen ID of the cen route entry.
DestinationCidrBlock
This property is required.
Changes to this property will trigger replacement.
string
The destination cidr block of the cen route entry.
InstanceId
This property is required.
Changes to this property will trigger replacement.
string
The instance id of the next hop of the cen route entry.
InstanceRegionId
This property is required.
Changes to this property will trigger replacement.
string
The instance region id of the next hop of the cen route entry.
InstanceType Changes to this property will trigger replacement. string
The instance type of the next hop of the cen route entry.
cenId
This property is required.
Changes to this property will trigger replacement.
String
The cen ID of the cen route entry.
destinationCidrBlock
This property is required.
Changes to this property will trigger replacement.
String
The destination cidr block of the cen route entry.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The instance id of the next hop of the cen route entry.
instanceRegionId
This property is required.
Changes to this property will trigger replacement.
String
The instance region id of the next hop of the cen route entry.
instanceType Changes to this property will trigger replacement. String
The instance type of the next hop of the cen route entry.
cenId
This property is required.
Changes to this property will trigger replacement.
string
The cen ID of the cen route entry.
destinationCidrBlock
This property is required.
Changes to this property will trigger replacement.
string
The destination cidr block of the cen route entry.
instanceId
This property is required.
Changes to this property will trigger replacement.
string
The instance id of the next hop of the cen route entry.
instanceRegionId
This property is required.
Changes to this property will trigger replacement.
string
The instance region id of the next hop of the cen route entry.
instanceType Changes to this property will trigger replacement. string
The instance type of the next hop of the cen route entry.
cen_id
This property is required.
Changes to this property will trigger replacement.
str
The cen ID of the cen route entry.
destination_cidr_block
This property is required.
Changes to this property will trigger replacement.
str
The destination cidr block of the cen route entry.
instance_id
This property is required.
Changes to this property will trigger replacement.
str
The instance id of the next hop of the cen route entry.
instance_region_id
This property is required.
Changes to this property will trigger replacement.
str
The instance region id of the next hop of the cen route entry.
instance_type Changes to this property will trigger replacement. str
The instance type of the next hop of the cen route entry.
cenId
This property is required.
Changes to this property will trigger replacement.
String
The cen ID of the cen route entry.
destinationCidrBlock
This property is required.
Changes to this property will trigger replacement.
String
The destination cidr block of the cen route entry.
instanceId
This property is required.
Changes to this property will trigger replacement.
String
The instance id of the next hop of the cen route entry.
instanceRegionId
This property is required.
Changes to this property will trigger replacement.
String
The instance region id of the next hop of the cen route entry.
instanceType Changes to this property will trigger replacement. 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)
resources:  _:    type: volcengine:cen:RouteEntry    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string
The cen ID of the cen route entry.
DestinationCidrBlock Changes to this property will trigger replacement. string
The destination cidr block of the cen route entry.
InstanceId Changes to this property will trigger replacement. string
The instance id of the next hop of the cen route entry.
InstanceRegionId Changes to this property will trigger replacement. string
The instance region id of the next hop of the cen route entry.
InstanceType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The cen ID of the cen route entry.
DestinationCidrBlock Changes to this property will trigger replacement. string
The destination cidr block of the cen route entry.
InstanceId Changes to this property will trigger replacement. string
The instance id of the next hop of the cen route entry.
InstanceRegionId Changes to this property will trigger replacement. string
The instance region id of the next hop of the cen route entry.
InstanceType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The cen ID of the cen route entry.
destinationCidrBlock Changes to this property will trigger replacement. String
The destination cidr block of the cen route entry.
instanceId Changes to this property will trigger replacement. String
The instance id of the next hop of the cen route entry.
instanceRegionId Changes to this property will trigger replacement. String
The instance region id of the next hop of the cen route entry.
instanceType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
The cen ID of the cen route entry.
destinationCidrBlock Changes to this property will trigger replacement. string
The destination cidr block of the cen route entry.
instanceId Changes to this property will trigger replacement. string
The instance id of the next hop of the cen route entry.
instanceRegionId Changes to this property will trigger replacement. string
The instance region id of the next hop of the cen route entry.
instanceType Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
The cen ID of the cen route entry.
destination_cidr_block Changes to this property will trigger replacement. str
The destination cidr block of the cen route entry.
instance_id Changes to this property will trigger replacement. str
The instance id of the next hop of the cen route entry.
instance_region_id Changes to this property will trigger replacement. str
The instance region id of the next hop of the cen route entry.
instance_type Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
The cen ID of the cen route entry.
destinationCidrBlock Changes to this property will trigger replacement. String
The destination cidr block of the cen route entry.
instanceId Changes to this property will trigger replacement. String
The instance id of the next hop of the cen route entry.
instanceRegionId Changes to this property will trigger replacement. String
The instance region id of the next hop of the cen route entry.
instanceType Changes to this property will trigger replacement. 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.

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.