volcengine.cen.RouteEntry
Explore with Pulumi AI
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:
- Cen
Id string - The cen ID of the cen route entry.
- Destination
Cidr stringBlock - The destination cidr block of the cen route entry.
- Instance
Id string - The instance id of the next hop of the cen route entry.
- Instance
Region stringId - The instance region id of the next hop of the cen route entry.
- Instance
Type string - The instance type of the next hop of the cen route entry.
- Cen
Id string - The cen ID of the cen route entry.
- Destination
Cidr stringBlock - The destination cidr block of the cen route entry.
- Instance
Id string - The instance id of the next hop of the cen route entry.
- Instance
Region stringId - The instance region id of the next hop of the cen route entry.
- Instance
Type string - The instance type of the next hop of the cen route entry.
- cen
Id String - The cen ID of the cen route entry.
- destination
Cidr StringBlock - The destination cidr block of the cen route entry.
- instance
Id String - The instance id of the next hop of the cen route entry.
- instance
Region StringId - The instance region id of the next hop of the cen route entry.
- instance
Type String - The instance type of the next hop of the cen route entry.
- cen
Id string - The cen ID of the cen route entry.
- destination
Cidr stringBlock - The destination cidr block of the cen route entry.
- instance
Id string - The instance id of the next hop of the cen route entry.
- instance
Region stringId - The instance region id of the next hop of the cen route entry.
- instance
Type 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_ strblock - 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_ strid - 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.
- cen
Id String - The cen ID of the cen route entry.
- destination
Cidr StringBlock - The destination cidr block of the cen route entry.
- instance
Id String - The instance id of the next hop of the cen route entry.
- instance
Region StringId - The instance region id of the next hop of the cen route entry.
- instance
Type 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:
- As
Paths List<string> - The AS path of the cen route entry.
- Id string
- The provider-assigned unique ID for this managed resource.
- Publish
Status string - The publish status of the cen route entry.
- Status string
- The status of the cen route entry.
- As
Paths []string - The AS path of the cen route entry.
- Id string
- The provider-assigned unique ID for this managed resource.
- Publish
Status string - The publish status of the cen route entry.
- Status string
- The status of the cen route entry.
- as
Paths List<String> - The AS path of the cen route entry.
- id String
- The provider-assigned unique ID for this managed resource.
- publish
Status String - The publish status of the cen route entry.
- status String
- The status of the cen route entry.
- as
Paths string[] - The AS path of the cen route entry.
- id string
- The provider-assigned unique ID for this managed resource.
- publish
Status 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.
- as
Paths List<String> - The AS path of the cen route entry.
- id String
- The provider-assigned unique ID for this managed resource.
- publish
Status 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.
- As
Paths List<string> - The AS path of the cen route entry.
- Cen
Id string - The cen ID of the cen route entry.
- Destination
Cidr stringBlock - The destination cidr block of the cen route entry.
- Instance
Id string - The instance id of the next hop of the cen route entry.
- Instance
Region stringId - The instance region id of the next hop of the cen route entry.
- Instance
Type string - The instance type of the next hop of the cen route entry.
- Publish
Status string - The publish status of the cen route entry.
- Status string
- The status of the cen route entry.
- As
Paths []string - The AS path of the cen route entry.
- Cen
Id string - The cen ID of the cen route entry.
- Destination
Cidr stringBlock - The destination cidr block of the cen route entry.
- Instance
Id string - The instance id of the next hop of the cen route entry.
- Instance
Region stringId - The instance region id of the next hop of the cen route entry.
- Instance
Type string - The instance type of the next hop of the cen route entry.
- Publish
Status string - The publish status of the cen route entry.
- Status string
- The status of the cen route entry.
- as
Paths List<String> - The AS path of the cen route entry.
- cen
Id String - The cen ID of the cen route entry.
- destination
Cidr StringBlock - The destination cidr block of the cen route entry.
- instance
Id String - The instance id of the next hop of the cen route entry.
- instance
Region StringId - The instance region id of the next hop of the cen route entry.
- instance
Type String - The instance type of the next hop of the cen route entry.
- publish
Status String - The publish status of the cen route entry.
- status String
- The status of the cen route entry.
- as
Paths string[] - The AS path of the cen route entry.
- cen
Id string - The cen ID of the cen route entry.
- destination
Cidr stringBlock - The destination cidr block of the cen route entry.
- instance
Id string - The instance id of the next hop of the cen route entry.
- instance
Region stringId - The instance region id of the next hop of the cen route entry.
- instance
Type string - The instance type of the next hop of the cen route entry.
- publish
Status 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_ strblock - 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_ strid - 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.
- as
Paths List<String> - The AS path of the cen route entry.
- cen
Id String - The cen ID of the cen route entry.
- destination
Cidr StringBlock - The destination cidr block of the cen route entry.
- instance
Id String - The instance id of the next hop of the cen route entry.
- instance
Region StringId - The instance region id of the next hop of the cen route entry.
- instance
Type String - The instance type of the next hop of the cen route entry.
- publish
Status 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.