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

volcengine.cen.ServiceRouteEntry

Explore with Pulumi AI

Provides a resource to manage cen service route entry

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";

const fooVpc: volcengine.vpc.Vpc[] = [];
for (const range = {value: 0}; range.value < 3; range.value++) {
    fooVpc.push(new volcengine.vpc.Vpc(`fooVpc-${range.value}`, {
        vpcName: "acc-test-vpc",
        cidrBlock: "172.16.0.0/16",
    }));
}
const fooCen = new volcengine.cen.Cen("fooCen", {
    cenName: "acc-test-cen",
    description: "acc-test",
    projectName: "default",
    tags: [{
        key: "k1",
        value: "v1",
    }],
});
const fooAttachInstance: volcengine.cen.AttachInstance[] = [];
for (const range = {value: 0}; range.value < 3; range.value++) {
    fooAttachInstance.push(new volcengine.cen.AttachInstance(`fooAttachInstance-${range.value}`, {
        cenId: fooCen.id,
        instanceId: fooVpc[range.value].id,
        instanceRegionId: "cn-beijing",
        instanceType: "VPC",
    }));
}
const fooServiceRouteEntry = new volcengine.cen.ServiceRouteEntry("fooServiceRouteEntry", {
    cenId: fooCen.id,
    destinationCidrBlock: "100.64.0.0/11",
    serviceRegionId: "cn-beijing",
    serviceVpcId: fooAttachInstance[0].instanceId,
    description: "acc-test",
    publishMode: "Custom",
    publishToInstances: [
        {
            instanceRegionId: "cn-beijing",
            instanceType: "VPC",
            instanceId: fooAttachInstance[1].instanceId,
        },
        {
            instanceRegionId: "cn-beijing",
            instanceType: "VPC",
            instanceId: fooAttachInstance[2].instanceId,
        },
    ],
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo_vpc = []
for range in [{"value": i} for i in range(0, 3)]:
    foo_vpc.append(volcengine.vpc.Vpc(f"fooVpc-{range['value']}",
        vpc_name="acc-test-vpc",
        cidr_block="172.16.0.0/16"))
foo_cen = volcengine.cen.Cen("fooCen",
    cen_name="acc-test-cen",
    description="acc-test",
    project_name="default",
    tags=[volcengine.cen.CenTagArgs(
        key="k1",
        value="v1",
    )])
foo_attach_instance = []
for range in [{"value": i} for i in range(0, 3)]:
    foo_attach_instance.append(volcengine.cen.AttachInstance(f"fooAttachInstance-{range['value']}",
        cen_id=foo_cen.id,
        instance_id=foo_vpc[range["value"]].id,
        instance_region_id="cn-beijing",
        instance_type="VPC"))
foo_service_route_entry = volcengine.cen.ServiceRouteEntry("fooServiceRouteEntry",
    cen_id=foo_cen.id,
    destination_cidr_block="100.64.0.0/11",
    service_region_id="cn-beijing",
    service_vpc_id=foo_attach_instance[0].instance_id,
    description="acc-test",
    publish_mode="Custom",
    publish_to_instances=[
        volcengine.cen.ServiceRouteEntryPublishToInstanceArgs(
            instance_region_id="cn-beijing",
            instance_type="VPC",
            instance_id=foo_attach_instance[1].instance_id,
        ),
        volcengine.cen.ServiceRouteEntryPublishToInstanceArgs(
            instance_region_id="cn-beijing",
            instance_type="VPC",
            instance_id=foo_attach_instance[2].instance_id,
        ),
    ])
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cen"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		var fooVpc []*vpc.Vpc
		for index := 0; index < 3; index++ {
			key0 := index
			_ := index
			__res, err := vpc.NewVpc(ctx, fmt.Sprintf("fooVpc-%v", key0), &vpc.VpcArgs{
				VpcName:   pulumi.String("acc-test-vpc"),
				CidrBlock: pulumi.String("172.16.0.0/16"),
			})
			if err != nil {
				return err
			}
			fooVpc = append(fooVpc, __res)
		}
		fooCen, err := cen.NewCen(ctx, "fooCen", &cen.CenArgs{
			CenName:     pulumi.String("acc-test-cen"),
			Description: pulumi.String("acc-test"),
			ProjectName: pulumi.String("default"),
			Tags: cen.CenTagArray{
				&cen.CenTagArgs{
					Key:   pulumi.String("k1"),
					Value: pulumi.String("v1"),
				},
			},
		})
		if err != nil {
			return err
		}
		var fooAttachInstance []*cen.AttachInstance
		for index := 0; index < 3; index++ {
			key0 := index
			val0 := index
			__res, err := cen.NewAttachInstance(ctx, fmt.Sprintf("fooAttachInstance-%v", key0), &cen.AttachInstanceArgs{
				CenId:            fooCen.ID(),
				InstanceId:       fooVpc[val0].ID(),
				InstanceRegionId: pulumi.String("cn-beijing"),
				InstanceType:     pulumi.String("VPC"),
			})
			if err != nil {
				return err
			}
			fooAttachInstance = append(fooAttachInstance, __res)
		}
		_, err = cen.NewServiceRouteEntry(ctx, "fooServiceRouteEntry", &cen.ServiceRouteEntryArgs{
			CenId:                fooCen.ID(),
			DestinationCidrBlock: pulumi.String("100.64.0.0/11"),
			ServiceRegionId:      pulumi.String("cn-beijing"),
			ServiceVpcId:         fooAttachInstance[0].InstanceId,
			Description:          pulumi.String("acc-test"),
			PublishMode:          pulumi.String("Custom"),
			PublishToInstances: cen.ServiceRouteEntryPublishToInstanceArray{
				&cen.ServiceRouteEntryPublishToInstanceArgs{
					InstanceRegionId: pulumi.String("cn-beijing"),
					InstanceType:     pulumi.String("VPC"),
					InstanceId:       fooAttachInstance[1].InstanceId,
				},
				&cen.ServiceRouteEntryPublishToInstanceArgs{
					InstanceRegionId: pulumi.String("cn-beijing"),
					InstanceType:     pulumi.String("VPC"),
					InstanceId:       fooAttachInstance[2].InstanceId,
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var fooVpc = new List<Volcengine.Vpc.Vpc>();
    for (var rangeIndex = 0; rangeIndex < 3; rangeIndex++)
    {
        var range = new { Value = rangeIndex };
        fooVpc.Add(new Volcengine.Vpc.Vpc($"fooVpc-{range.Value}", new()
        {
            VpcName = "acc-test-vpc",
            CidrBlock = "172.16.0.0/16",
        }));
    }
    var fooCen = new Volcengine.Cen.Cen("fooCen", new()
    {
        CenName = "acc-test-cen",
        Description = "acc-test",
        ProjectName = "default",
        Tags = new[]
        {
            new Volcengine.Cen.Inputs.CenTagArgs
            {
                Key = "k1",
                Value = "v1",
            },
        },
    });

    var fooAttachInstance = new List<Volcengine.Cen.AttachInstance>();
    for (var rangeIndex = 0; rangeIndex < 3; rangeIndex++)
    {
        var range = new { Value = rangeIndex };
        fooAttachInstance.Add(new Volcengine.Cen.AttachInstance($"fooAttachInstance-{range.Value}", new()
        {
            CenId = fooCen.Id,
            InstanceId = fooVpc[range.Value].Id,
            InstanceRegionId = "cn-beijing",
            InstanceType = "VPC",
        }));
    }
    var fooServiceRouteEntry = new Volcengine.Cen.ServiceRouteEntry("fooServiceRouteEntry", new()
    {
        CenId = fooCen.Id,
        DestinationCidrBlock = "100.64.0.0/11",
        ServiceRegionId = "cn-beijing",
        ServiceVpcId = fooAttachInstance[0].InstanceId,
        Description = "acc-test",
        PublishMode = "Custom",
        PublishToInstances = new[]
        {
            new Volcengine.Cen.Inputs.ServiceRouteEntryPublishToInstanceArgs
            {
                InstanceRegionId = "cn-beijing",
                InstanceType = "VPC",
                InstanceId = fooAttachInstance[1].InstanceId,
            },
            new Volcengine.Cen.Inputs.ServiceRouteEntryPublishToInstanceArgs
            {
                InstanceRegionId = "cn-beijing",
                InstanceType = "VPC",
                InstanceId = fooAttachInstance[2].InstanceId,
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.Vpc;
import com.pulumi.volcengine.vpc.VpcArgs;
import com.pulumi.volcengine.cen.Cen;
import com.pulumi.volcengine.cen.CenArgs;
import com.pulumi.volcengine.cen.inputs.CenTagArgs;
import com.pulumi.volcengine.cen.AttachInstance;
import com.pulumi.volcengine.cen.AttachInstanceArgs;
import com.pulumi.volcengine.cen.ServiceRouteEntry;
import com.pulumi.volcengine.cen.ServiceRouteEntryArgs;
import com.pulumi.volcengine.cen.inputs.ServiceRouteEntryPublishToInstanceArgs;
import com.pulumi.codegen.internal.KeyedValue;
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) {
        for (var i = 0; i < 3; i++) {
            new Vpc("fooVpc-" + i, VpcArgs.builder()            
                .vpcName("acc-test-vpc")
                .cidrBlock("172.16.0.0/16")
                .build());

        
}
        var fooCen = new Cen("fooCen", CenArgs.builder()        
            .cenName("acc-test-cen")
            .description("acc-test")
            .projectName("default")
            .tags(CenTagArgs.builder()
                .key("k1")
                .value("v1")
                .build())
            .build());

        for (var i = 0; i < 3; i++) {
            new AttachInstance("fooAttachInstance-" + i, AttachInstanceArgs.builder()            
                .cenId(fooCen.id())
                .instanceId(fooVpc[range.value()].id())
                .instanceRegionId("cn-beijing")
                .instanceType("VPC")
                .build());

        
}
        var fooServiceRouteEntry = new ServiceRouteEntry("fooServiceRouteEntry", ServiceRouteEntryArgs.builder()        
            .cenId(fooCen.id())
            .destinationCidrBlock("100.64.0.0/11")
            .serviceRegionId("cn-beijing")
            .serviceVpcId(fooAttachInstance[0].instanceId())
            .description("acc-test")
            .publishMode("Custom")
            .publishToInstances(            
                ServiceRouteEntryPublishToInstanceArgs.builder()
                    .instanceRegionId("cn-beijing")
                    .instanceType("VPC")
                    .instanceId(fooAttachInstance[1].instanceId())
                    .build(),
                ServiceRouteEntryPublishToInstanceArgs.builder()
                    .instanceRegionId("cn-beijing")
                    .instanceType("VPC")
                    .instanceId(fooAttachInstance[2].instanceId())
                    .build())
            .build());

    }
}
Copy
Coming soon!

Create ServiceRouteEntry Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ServiceRouteEntry(name: string, args: ServiceRouteEntryArgs, opts?: CustomResourceOptions);
@overload
def ServiceRouteEntry(resource_name: str,
                      args: ServiceRouteEntryArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def ServiceRouteEntry(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      cen_id: Optional[str] = None,
                      destination_cidr_block: Optional[str] = None,
                      service_region_id: Optional[str] = None,
                      service_vpc_id: Optional[str] = None,
                      description: Optional[str] = None,
                      publish_mode: Optional[str] = None,
                      publish_to_instances: Optional[Sequence[ServiceRouteEntryPublishToInstanceArgs]] = None)
func NewServiceRouteEntry(ctx *Context, name string, args ServiceRouteEntryArgs, opts ...ResourceOption) (*ServiceRouteEntry, error)
public ServiceRouteEntry(string name, ServiceRouteEntryArgs args, CustomResourceOptions? opts = null)
public ServiceRouteEntry(String name, ServiceRouteEntryArgs args)
public ServiceRouteEntry(String name, ServiceRouteEntryArgs args, CustomResourceOptions options)
type: volcengine:cen:ServiceRouteEntry
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. ServiceRouteEntryArgs
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. ServiceRouteEntryArgs
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. ServiceRouteEntryArgs
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. ServiceRouteEntryArgs
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. ServiceRouteEntryArgs
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 serviceRouteEntryResource = new Volcengine.Cen.ServiceRouteEntry("serviceRouteEntryResource", new()
{
    CenId = "string",
    DestinationCidrBlock = "string",
    ServiceRegionId = "string",
    ServiceVpcId = "string",
    Description = "string",
    PublishMode = "string",
    PublishToInstances = new[]
    {
        new Volcengine.Cen.Inputs.ServiceRouteEntryPublishToInstanceArgs
        {
            InstanceId = "string",
            InstanceRegionId = "string",
            InstanceType = "string",
        },
    },
});
Copy
example, err := cen.NewServiceRouteEntry(ctx, "serviceRouteEntryResource", &cen.ServiceRouteEntryArgs{
	CenId:                pulumi.String("string"),
	DestinationCidrBlock: pulumi.String("string"),
	ServiceRegionId:      pulumi.String("string"),
	ServiceVpcId:         pulumi.String("string"),
	Description:          pulumi.String("string"),
	PublishMode:          pulumi.String("string"),
	PublishToInstances: cen.ServiceRouteEntryPublishToInstanceArray{
		&cen.ServiceRouteEntryPublishToInstanceArgs{
			InstanceId:       pulumi.String("string"),
			InstanceRegionId: pulumi.String("string"),
			InstanceType:     pulumi.String("string"),
		},
	},
})
Copy
var serviceRouteEntryResource = new ServiceRouteEntry("serviceRouteEntryResource", ServiceRouteEntryArgs.builder()
    .cenId("string")
    .destinationCidrBlock("string")
    .serviceRegionId("string")
    .serviceVpcId("string")
    .description("string")
    .publishMode("string")
    .publishToInstances(ServiceRouteEntryPublishToInstanceArgs.builder()
        .instanceId("string")
        .instanceRegionId("string")
        .instanceType("string")
        .build())
    .build());
Copy
service_route_entry_resource = volcengine.cen.ServiceRouteEntry("serviceRouteEntryResource",
    cen_id="string",
    destination_cidr_block="string",
    service_region_id="string",
    service_vpc_id="string",
    description="string",
    publish_mode="string",
    publish_to_instances=[{
        "instance_id": "string",
        "instance_region_id": "string",
        "instance_type": "string",
    }])
Copy
const serviceRouteEntryResource = new volcengine.cen.ServiceRouteEntry("serviceRouteEntryResource", {
    cenId: "string",
    destinationCidrBlock: "string",
    serviceRegionId: "string",
    serviceVpcId: "string",
    description: "string",
    publishMode: "string",
    publishToInstances: [{
        instanceId: "string",
        instanceRegionId: "string",
        instanceType: "string",
    }],
});
Copy
type: volcengine:cen:ServiceRouteEntry
properties:
    cenId: string
    description: string
    destinationCidrBlock: string
    publishMode: string
    publishToInstances:
        - instanceId: string
          instanceRegionId: string
          instanceType: string
    serviceRegionId: string
    serviceVpcId: string
Copy

ServiceRouteEntry 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 ServiceRouteEntry 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 service route entry.
DestinationCidrBlock
This property is required.
Changes to this property will trigger replacement.
string
The destination cidr block of the cen service route entry.
ServiceRegionId
This property is required.
Changes to this property will trigger replacement.
string
The service region id of the cen service route entry.
ServiceVpcId
This property is required.
Changes to this property will trigger replacement.
string
The service VPC id of the cen service route entry.
Description string
The description of the cen service route entry.
PublishMode string
Publishing scope of cloud service access routes. Valid values are LocalDCGW(default), Custom.
PublishToInstances List<ServiceRouteEntryPublishToInstance>
The publish instances. A maximum of 100 can be uploaded in one request. This field needs to be filled in when the publish_mode is Custom.
CenId
This property is required.
Changes to this property will trigger replacement.
string
The cen ID of the cen service route entry.
DestinationCidrBlock
This property is required.
Changes to this property will trigger replacement.
string
The destination cidr block of the cen service route entry.
ServiceRegionId
This property is required.
Changes to this property will trigger replacement.
string
The service region id of the cen service route entry.
ServiceVpcId
This property is required.
Changes to this property will trigger replacement.
string
The service VPC id of the cen service route entry.
Description string
The description of the cen service route entry.
PublishMode string
Publishing scope of cloud service access routes. Valid values are LocalDCGW(default), Custom.
PublishToInstances []ServiceRouteEntryPublishToInstanceArgs
The publish instances. A maximum of 100 can be uploaded in one request. This field needs to be filled in when the publish_mode is Custom.
cenId
This property is required.
Changes to this property will trigger replacement.
String
The cen ID of the cen service route entry.
destinationCidrBlock
This property is required.
Changes to this property will trigger replacement.
String
The destination cidr block of the cen service route entry.
serviceRegionId
This property is required.
Changes to this property will trigger replacement.
String
The service region id of the cen service route entry.
serviceVpcId
This property is required.
Changes to this property will trigger replacement.
String
The service VPC id of the cen service route entry.
description String
The description of the cen service route entry.
publishMode String
Publishing scope of cloud service access routes. Valid values are LocalDCGW(default), Custom.
publishToInstances List<ServiceRouteEntryPublishToInstance>
The publish instances. A maximum of 100 can be uploaded in one request. This field needs to be filled in when the publish_mode is Custom.
cenId
This property is required.
Changes to this property will trigger replacement.
string
The cen ID of the cen service route entry.
destinationCidrBlock
This property is required.
Changes to this property will trigger replacement.
string
The destination cidr block of the cen service route entry.
serviceRegionId
This property is required.
Changes to this property will trigger replacement.
string
The service region id of the cen service route entry.
serviceVpcId
This property is required.
Changes to this property will trigger replacement.
string
The service VPC id of the cen service route entry.
description string
The description of the cen service route entry.
publishMode string
Publishing scope of cloud service access routes. Valid values are LocalDCGW(default), Custom.
publishToInstances ServiceRouteEntryPublishToInstance[]
The publish instances. A maximum of 100 can be uploaded in one request. This field needs to be filled in when the publish_mode is Custom.
cen_id
This property is required.
Changes to this property will trigger replacement.
str
The cen ID of the cen service route entry.
destination_cidr_block
This property is required.
Changes to this property will trigger replacement.
str
The destination cidr block of the cen service route entry.
service_region_id
This property is required.
Changes to this property will trigger replacement.
str
The service region id of the cen service route entry.
service_vpc_id
This property is required.
Changes to this property will trigger replacement.
str
The service VPC id of the cen service route entry.
description str
The description of the cen service route entry.
publish_mode str
Publishing scope of cloud service access routes. Valid values are LocalDCGW(default), Custom.
publish_to_instances Sequence[ServiceRouteEntryPublishToInstanceArgs]
The publish instances. A maximum of 100 can be uploaded in one request. This field needs to be filled in when the publish_mode is Custom.
cenId
This property is required.
Changes to this property will trigger replacement.
String
The cen ID of the cen service route entry.
destinationCidrBlock
This property is required.
Changes to this property will trigger replacement.
String
The destination cidr block of the cen service route entry.
serviceRegionId
This property is required.
Changes to this property will trigger replacement.
String
The service region id of the cen service route entry.
serviceVpcId
This property is required.
Changes to this property will trigger replacement.
String
The service VPC id of the cen service route entry.
description String
The description of the cen service route entry.
publishMode String
Publishing scope of cloud service access routes. Valid values are LocalDCGW(default), Custom.
publishToInstances List<Property Map>
The publish instances. A maximum of 100 can be uploaded in one request. This field needs to be filled in when the publish_mode is Custom.

Outputs

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

CreationTime string
The create time of the cen service route entry.
Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the cen service route entry.
CreationTime string
The create time of the cen service route entry.
Id string
The provider-assigned unique ID for this managed resource.
Status string
The status of the cen service route entry.
creationTime String
The create time of the cen service route entry.
id String
The provider-assigned unique ID for this managed resource.
status String
The status of the cen service route entry.
creationTime string
The create time of the cen service route entry.
id string
The provider-assigned unique ID for this managed resource.
status string
The status of the cen service route entry.
creation_time str
The create time of the cen service route entry.
id str
The provider-assigned unique ID for this managed resource.
status str
The status of the cen service route entry.
creationTime String
The create time of the cen service route entry.
id String
The provider-assigned unique ID for this managed resource.
status String
The status of the cen service route entry.

Look up Existing ServiceRouteEntry Resource

Get an existing ServiceRouteEntry 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?: ServiceRouteEntryState, opts?: CustomResourceOptions): ServiceRouteEntry
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cen_id: Optional[str] = None,
        creation_time: Optional[str] = None,
        description: Optional[str] = None,
        destination_cidr_block: Optional[str] = None,
        publish_mode: Optional[str] = None,
        publish_to_instances: Optional[Sequence[ServiceRouteEntryPublishToInstanceArgs]] = None,
        service_region_id: Optional[str] = None,
        service_vpc_id: Optional[str] = None,
        status: Optional[str] = None) -> ServiceRouteEntry
func GetServiceRouteEntry(ctx *Context, name string, id IDInput, state *ServiceRouteEntryState, opts ...ResourceOption) (*ServiceRouteEntry, error)
public static ServiceRouteEntry Get(string name, Input<string> id, ServiceRouteEntryState? state, CustomResourceOptions? opts = null)
public static ServiceRouteEntry get(String name, Output<String> id, ServiceRouteEntryState state, CustomResourceOptions options)
resources:  _:    type: volcengine:cen:ServiceRouteEntry    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:
CenId Changes to this property will trigger replacement. string
The cen ID of the cen service route entry.
CreationTime string
The create time of the cen service route entry.
Description string
The description of the cen service route entry.
DestinationCidrBlock Changes to this property will trigger replacement. string
The destination cidr block of the cen service route entry.
PublishMode string
Publishing scope of cloud service access routes. Valid values are LocalDCGW(default), Custom.
PublishToInstances List<ServiceRouteEntryPublishToInstance>
The publish instances. A maximum of 100 can be uploaded in one request. This field needs to be filled in when the publish_mode is Custom.
ServiceRegionId Changes to this property will trigger replacement. string
The service region id of the cen service route entry.
ServiceVpcId Changes to this property will trigger replacement. string
The service VPC id of the cen service route entry.
Status string
The status of the cen service route entry.
CenId Changes to this property will trigger replacement. string
The cen ID of the cen service route entry.
CreationTime string
The create time of the cen service route entry.
Description string
The description of the cen service route entry.
DestinationCidrBlock Changes to this property will trigger replacement. string
The destination cidr block of the cen service route entry.
PublishMode string
Publishing scope of cloud service access routes. Valid values are LocalDCGW(default), Custom.
PublishToInstances []ServiceRouteEntryPublishToInstanceArgs
The publish instances. A maximum of 100 can be uploaded in one request. This field needs to be filled in when the publish_mode is Custom.
ServiceRegionId Changes to this property will trigger replacement. string
The service region id of the cen service route entry.
ServiceVpcId Changes to this property will trigger replacement. string
The service VPC id of the cen service route entry.
Status string
The status of the cen service route entry.
cenId Changes to this property will trigger replacement. String
The cen ID of the cen service route entry.
creationTime String
The create time of the cen service route entry.
description String
The description of the cen service route entry.
destinationCidrBlock Changes to this property will trigger replacement. String
The destination cidr block of the cen service route entry.
publishMode String
Publishing scope of cloud service access routes. Valid values are LocalDCGW(default), Custom.
publishToInstances List<ServiceRouteEntryPublishToInstance>
The publish instances. A maximum of 100 can be uploaded in one request. This field needs to be filled in when the publish_mode is Custom.
serviceRegionId Changes to this property will trigger replacement. String
The service region id of the cen service route entry.
serviceVpcId Changes to this property will trigger replacement. String
The service VPC id of the cen service route entry.
status String
The status of the cen service route entry.
cenId Changes to this property will trigger replacement. string
The cen ID of the cen service route entry.
creationTime string
The create time of the cen service route entry.
description string
The description of the cen service route entry.
destinationCidrBlock Changes to this property will trigger replacement. string
The destination cidr block of the cen service route entry.
publishMode string
Publishing scope of cloud service access routes. Valid values are LocalDCGW(default), Custom.
publishToInstances ServiceRouteEntryPublishToInstance[]
The publish instances. A maximum of 100 can be uploaded in one request. This field needs to be filled in when the publish_mode is Custom.
serviceRegionId Changes to this property will trigger replacement. string
The service region id of the cen service route entry.
serviceVpcId Changes to this property will trigger replacement. string
The service VPC id of the cen service route entry.
status string
The status of the cen service route entry.
cen_id Changes to this property will trigger replacement. str
The cen ID of the cen service route entry.
creation_time str
The create time of the cen service route entry.
description str
The description of the cen service route entry.
destination_cidr_block Changes to this property will trigger replacement. str
The destination cidr block of the cen service route entry.
publish_mode str
Publishing scope of cloud service access routes. Valid values are LocalDCGW(default), Custom.
publish_to_instances Sequence[ServiceRouteEntryPublishToInstanceArgs]
The publish instances. A maximum of 100 can be uploaded in one request. This field needs to be filled in when the publish_mode is Custom.
service_region_id Changes to this property will trigger replacement. str
The service region id of the cen service route entry.
service_vpc_id Changes to this property will trigger replacement. str
The service VPC id of the cen service route entry.
status str
The status of the cen service route entry.
cenId Changes to this property will trigger replacement. String
The cen ID of the cen service route entry.
creationTime String
The create time of the cen service route entry.
description String
The description of the cen service route entry.
destinationCidrBlock Changes to this property will trigger replacement. String
The destination cidr block of the cen service route entry.
publishMode String
Publishing scope of cloud service access routes. Valid values are LocalDCGW(default), Custom.
publishToInstances List<Property Map>
The publish instances. A maximum of 100 can be uploaded in one request. This field needs to be filled in when the publish_mode is Custom.
serviceRegionId Changes to this property will trigger replacement. String
The service region id of the cen service route entry.
serviceVpcId Changes to this property will trigger replacement. String
The service VPC id of the cen service route entry.
status String
The status of the cen service route entry.

Supporting Types

ServiceRouteEntryPublishToInstance
, ServiceRouteEntryPublishToInstanceArgs

InstanceId string
Cloud service access routes need to publish the network instance ID.
InstanceRegionId string
The region where the cloud service access route needs to be published.
InstanceType string
The network instance type that needs to be published for cloud service access routes. The values are as follows: VPC, DCGW.
InstanceId string
Cloud service access routes need to publish the network instance ID.
InstanceRegionId string
The region where the cloud service access route needs to be published.
InstanceType string
The network instance type that needs to be published for cloud service access routes. The values are as follows: VPC, DCGW.
instanceId String
Cloud service access routes need to publish the network instance ID.
instanceRegionId String
The region where the cloud service access route needs to be published.
instanceType String
The network instance type that needs to be published for cloud service access routes. The values are as follows: VPC, DCGW.
instanceId string
Cloud service access routes need to publish the network instance ID.
instanceRegionId string
The region where the cloud service access route needs to be published.
instanceType string
The network instance type that needs to be published for cloud service access routes. The values are as follows: VPC, DCGW.
instance_id str
Cloud service access routes need to publish the network instance ID.
instance_region_id str
The region where the cloud service access route needs to be published.
instance_type str
The network instance type that needs to be published for cloud service access routes. The values are as follows: VPC, DCGW.
instanceId String
Cloud service access routes need to publish the network instance ID.
instanceRegionId String
The region where the cloud service access route needs to be published.
instanceType String
The network instance type that needs to be published for cloud service access routes. The values are as follows: VPC, DCGW.

Import

CenServiceRouteEntry can be imported using the CenId:DestinationCidrBlock:ServiceRegionId:ServiceVpcId, e.g.

$ pulumi import volcengine:cen/serviceRouteEntry:ServiceRouteEntry default cen-2nim00ybaylts7trquyzt****:100.XX.XX.0/24:cn-beijing:vpc-3rlkeggyn6tc010exd32q****
Copy

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.