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

volcengine.cen.ServiceRouteEntry

Explore with Pulumi AI

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

    Provides a resource to manage cen service 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.ServiceRouteEntry("foo", new()
        {
            CenId = "cen-12ar8uclj68sg17q7y20v9gil",
            Description = "test-tf",
            DestinationCidrBlock = "100.64.0.0/11",
            PublishMode = "Custom",
            PublishToInstances = new[]
            {
                new Volcengine.Cen.Inputs.ServiceRouteEntryPublishToInstanceArgs
                {
                    InstanceId = "vpc-2fepz36a5ra4g59gp67w197xo",
                    InstanceRegionId = "cn-beijing",
                    InstanceType = "VPC",
                },
                new Volcengine.Cen.Inputs.ServiceRouteEntryPublishToInstanceArgs
                {
                    InstanceId = "vpc-im67wjcikxkw8gbssx8ufpj8",
                    InstanceRegionId = "cn-beijing",
                    InstanceType = "VPC",
                },
            },
            ServiceRegionId = "cn-beijing",
            ServiceVpcId = "vpc-im67wjcikxkw8gbssx8ufpj8",
        });
    
        var foo1 = new Volcengine.Cen.ServiceRouteEntry("foo1", new()
        {
            CenId = "cen-12ar8uclj68sg17q7y20v9gil",
            Description = "test-tf",
            DestinationCidrBlock = "100.64.0.0/10",
            PublishMode = "Custom",
            PublishToInstances = new[]
            {
                new Volcengine.Cen.Inputs.ServiceRouteEntryPublishToInstanceArgs
                {
                    InstanceId = "vpc-2fepz36a5ra4g59gp67w197xo",
                    InstanceRegionId = "cn-beijing",
                    InstanceType = "VPC",
                },
                new Volcengine.Cen.Inputs.ServiceRouteEntryPublishToInstanceArgs
                {
                    InstanceId = "vpc-im67wjcikxkw8gbssx8ufpj8",
                    InstanceRegionId = "cn-beijing",
                    InstanceType = "VPC",
                },
            },
            ServiceRegionId = "cn-beijing",
            ServiceVpcId = "vpc-im67wjcikxkw8gbssx8ufpj8",
        });
    
        var foo2 = new Volcengine.Cen.ServiceRouteEntry("foo2", new()
        {
            CenId = "cen-12ar8uclj68sg17q7y20v9gil",
            Description = "test-tf",
            DestinationCidrBlock = "100.64.0.0/12",
            PublishMode = "Custom",
            PublishToInstances = new[]
            {
                new Volcengine.Cen.Inputs.ServiceRouteEntryPublishToInstanceArgs
                {
                    InstanceId = "vpc-2fepz36a5ra4g59gp67w197xo",
                    InstanceRegionId = "cn-beijing",
                    InstanceType = "VPC",
                },
                new Volcengine.Cen.Inputs.ServiceRouteEntryPublishToInstanceArgs
                {
                    InstanceId = "vpc-im67wjcikxkw8gbssx8ufpj8",
                    InstanceRegionId = "cn-beijing",
                    InstanceType = "VPC",
                },
            },
            ServiceRegionId = "cn-beijing",
            ServiceVpcId = "vpc-im67wjcikxkw8gbssx8ufpj8",
        });
    
    });
    
    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.NewServiceRouteEntry(ctx, "foo", &cen.ServiceRouteEntryArgs{
    			CenId:                pulumi.String("cen-12ar8uclj68sg17q7y20v9gil"),
    			Description:          pulumi.String("test-tf"),
    			DestinationCidrBlock: pulumi.String("100.64.0.0/11"),
    			PublishMode:          pulumi.String("Custom"),
    			PublishToInstances: cen.ServiceRouteEntryPublishToInstanceArray{
    				&cen.ServiceRouteEntryPublishToInstanceArgs{
    					InstanceId:       pulumi.String("vpc-2fepz36a5ra4g59gp67w197xo"),
    					InstanceRegionId: pulumi.String("cn-beijing"),
    					InstanceType:     pulumi.String("VPC"),
    				},
    				&cen.ServiceRouteEntryPublishToInstanceArgs{
    					InstanceId:       pulumi.String("vpc-im67wjcikxkw8gbssx8ufpj8"),
    					InstanceRegionId: pulumi.String("cn-beijing"),
    					InstanceType:     pulumi.String("VPC"),
    				},
    			},
    			ServiceRegionId: pulumi.String("cn-beijing"),
    			ServiceVpcId:    pulumi.String("vpc-im67wjcikxkw8gbssx8ufpj8"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewServiceRouteEntry(ctx, "foo1", &cen.ServiceRouteEntryArgs{
    			CenId:                pulumi.String("cen-12ar8uclj68sg17q7y20v9gil"),
    			Description:          pulumi.String("test-tf"),
    			DestinationCidrBlock: pulumi.String("100.64.0.0/10"),
    			PublishMode:          pulumi.String("Custom"),
    			PublishToInstances: cen.ServiceRouteEntryPublishToInstanceArray{
    				&cen.ServiceRouteEntryPublishToInstanceArgs{
    					InstanceId:       pulumi.String("vpc-2fepz36a5ra4g59gp67w197xo"),
    					InstanceRegionId: pulumi.String("cn-beijing"),
    					InstanceType:     pulumi.String("VPC"),
    				},
    				&cen.ServiceRouteEntryPublishToInstanceArgs{
    					InstanceId:       pulumi.String("vpc-im67wjcikxkw8gbssx8ufpj8"),
    					InstanceRegionId: pulumi.String("cn-beijing"),
    					InstanceType:     pulumi.String("VPC"),
    				},
    			},
    			ServiceRegionId: pulumi.String("cn-beijing"),
    			ServiceVpcId:    pulumi.String("vpc-im67wjcikxkw8gbssx8ufpj8"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = cen.NewServiceRouteEntry(ctx, "foo2", &cen.ServiceRouteEntryArgs{
    			CenId:                pulumi.String("cen-12ar8uclj68sg17q7y20v9gil"),
    			Description:          pulumi.String("test-tf"),
    			DestinationCidrBlock: pulumi.String("100.64.0.0/12"),
    			PublishMode:          pulumi.String("Custom"),
    			PublishToInstances: cen.ServiceRouteEntryPublishToInstanceArray{
    				&cen.ServiceRouteEntryPublishToInstanceArgs{
    					InstanceId:       pulumi.String("vpc-2fepz36a5ra4g59gp67w197xo"),
    					InstanceRegionId: pulumi.String("cn-beijing"),
    					InstanceType:     pulumi.String("VPC"),
    				},
    				&cen.ServiceRouteEntryPublishToInstanceArgs{
    					InstanceId:       pulumi.String("vpc-im67wjcikxkw8gbssx8ufpj8"),
    					InstanceRegionId: pulumi.String("cn-beijing"),
    					InstanceType:     pulumi.String("VPC"),
    				},
    			},
    			ServiceRegionId: pulumi.String("cn-beijing"),
    			ServiceVpcId:    pulumi.String("vpc-im67wjcikxkw8gbssx8ufpj8"),
    		})
    		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.ServiceRouteEntry;
    import com.pulumi.volcengine.cen.ServiceRouteEntryArgs;
    import com.pulumi.volcengine.cen.inputs.ServiceRouteEntryPublishToInstanceArgs;
    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 ServiceRouteEntry("foo", ServiceRouteEntryArgs.builder()        
                .cenId("cen-12ar8uclj68sg17q7y20v9gil")
                .description("test-tf")
                .destinationCidrBlock("100.64.0.0/11")
                .publishMode("Custom")
                .publishToInstances(            
                    ServiceRouteEntryPublishToInstanceArgs.builder()
                        .instanceId("vpc-2fepz36a5ra4g59gp67w197xo")
                        .instanceRegionId("cn-beijing")
                        .instanceType("VPC")
                        .build(),
                    ServiceRouteEntryPublishToInstanceArgs.builder()
                        .instanceId("vpc-im67wjcikxkw8gbssx8ufpj8")
                        .instanceRegionId("cn-beijing")
                        .instanceType("VPC")
                        .build())
                .serviceRegionId("cn-beijing")
                .serviceVpcId("vpc-im67wjcikxkw8gbssx8ufpj8")
                .build());
    
            var foo1 = new ServiceRouteEntry("foo1", ServiceRouteEntryArgs.builder()        
                .cenId("cen-12ar8uclj68sg17q7y20v9gil")
                .description("test-tf")
                .destinationCidrBlock("100.64.0.0/10")
                .publishMode("Custom")
                .publishToInstances(            
                    ServiceRouteEntryPublishToInstanceArgs.builder()
                        .instanceId("vpc-2fepz36a5ra4g59gp67w197xo")
                        .instanceRegionId("cn-beijing")
                        .instanceType("VPC")
                        .build(),
                    ServiceRouteEntryPublishToInstanceArgs.builder()
                        .instanceId("vpc-im67wjcikxkw8gbssx8ufpj8")
                        .instanceRegionId("cn-beijing")
                        .instanceType("VPC")
                        .build())
                .serviceRegionId("cn-beijing")
                .serviceVpcId("vpc-im67wjcikxkw8gbssx8ufpj8")
                .build());
    
            var foo2 = new ServiceRouteEntry("foo2", ServiceRouteEntryArgs.builder()        
                .cenId("cen-12ar8uclj68sg17q7y20v9gil")
                .description("test-tf")
                .destinationCidrBlock("100.64.0.0/12")
                .publishMode("Custom")
                .publishToInstances(            
                    ServiceRouteEntryPublishToInstanceArgs.builder()
                        .instanceId("vpc-2fepz36a5ra4g59gp67w197xo")
                        .instanceRegionId("cn-beijing")
                        .instanceType("VPC")
                        .build(),
                    ServiceRouteEntryPublishToInstanceArgs.builder()
                        .instanceId("vpc-im67wjcikxkw8gbssx8ufpj8")
                        .instanceRegionId("cn-beijing")
                        .instanceType("VPC")
                        .build())
                .serviceRegionId("cn-beijing")
                .serviceVpcId("vpc-im67wjcikxkw8gbssx8ufpj8")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.cen.ServiceRouteEntry("foo",
        cen_id="cen-12ar8uclj68sg17q7y20v9gil",
        description="test-tf",
        destination_cidr_block="100.64.0.0/11",
        publish_mode="Custom",
        publish_to_instances=[
            volcengine.cen.ServiceRouteEntryPublishToInstanceArgs(
                instance_id="vpc-2fepz36a5ra4g59gp67w197xo",
                instance_region_id="cn-beijing",
                instance_type="VPC",
            ),
            volcengine.cen.ServiceRouteEntryPublishToInstanceArgs(
                instance_id="vpc-im67wjcikxkw8gbssx8ufpj8",
                instance_region_id="cn-beijing",
                instance_type="VPC",
            ),
        ],
        service_region_id="cn-beijing",
        service_vpc_id="vpc-im67wjcikxkw8gbssx8ufpj8")
    foo1 = volcengine.cen.ServiceRouteEntry("foo1",
        cen_id="cen-12ar8uclj68sg17q7y20v9gil",
        description="test-tf",
        destination_cidr_block="100.64.0.0/10",
        publish_mode="Custom",
        publish_to_instances=[
            volcengine.cen.ServiceRouteEntryPublishToInstanceArgs(
                instance_id="vpc-2fepz36a5ra4g59gp67w197xo",
                instance_region_id="cn-beijing",
                instance_type="VPC",
            ),
            volcengine.cen.ServiceRouteEntryPublishToInstanceArgs(
                instance_id="vpc-im67wjcikxkw8gbssx8ufpj8",
                instance_region_id="cn-beijing",
                instance_type="VPC",
            ),
        ],
        service_region_id="cn-beijing",
        service_vpc_id="vpc-im67wjcikxkw8gbssx8ufpj8")
    foo2 = volcengine.cen.ServiceRouteEntry("foo2",
        cen_id="cen-12ar8uclj68sg17q7y20v9gil",
        description="test-tf",
        destination_cidr_block="100.64.0.0/12",
        publish_mode="Custom",
        publish_to_instances=[
            volcengine.cen.ServiceRouteEntryPublishToInstanceArgs(
                instance_id="vpc-2fepz36a5ra4g59gp67w197xo",
                instance_region_id="cn-beijing",
                instance_type="VPC",
            ),
            volcengine.cen.ServiceRouteEntryPublishToInstanceArgs(
                instance_id="vpc-im67wjcikxkw8gbssx8ufpj8",
                instance_region_id="cn-beijing",
                instance_type="VPC",
            ),
        ],
        service_region_id="cn-beijing",
        service_vpc_id="vpc-im67wjcikxkw8gbssx8ufpj8")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.cen.ServiceRouteEntry("foo", {
        cenId: "cen-12ar8uclj68sg17q7y20v9gil",
        description: "test-tf",
        destinationCidrBlock: "100.64.0.0/11",
        publishMode: "Custom",
        publishToInstances: [
            {
                instanceId: "vpc-2fepz36a5ra4g59gp67w197xo",
                instanceRegionId: "cn-beijing",
                instanceType: "VPC",
            },
            {
                instanceId: "vpc-im67wjcikxkw8gbssx8ufpj8",
                instanceRegionId: "cn-beijing",
                instanceType: "VPC",
            },
        ],
        serviceRegionId: "cn-beijing",
        serviceVpcId: "vpc-im67wjcikxkw8gbssx8ufpj8",
    });
    const foo1 = new volcengine.cen.ServiceRouteEntry("foo1", {
        cenId: "cen-12ar8uclj68sg17q7y20v9gil",
        description: "test-tf",
        destinationCidrBlock: "100.64.0.0/10",
        publishMode: "Custom",
        publishToInstances: [
            {
                instanceId: "vpc-2fepz36a5ra4g59gp67w197xo",
                instanceRegionId: "cn-beijing",
                instanceType: "VPC",
            },
            {
                instanceId: "vpc-im67wjcikxkw8gbssx8ufpj8",
                instanceRegionId: "cn-beijing",
                instanceType: "VPC",
            },
        ],
        serviceRegionId: "cn-beijing",
        serviceVpcId: "vpc-im67wjcikxkw8gbssx8ufpj8",
    });
    const foo2 = new volcengine.cen.ServiceRouteEntry("foo2", {
        cenId: "cen-12ar8uclj68sg17q7y20v9gil",
        description: "test-tf",
        destinationCidrBlock: "100.64.0.0/12",
        publishMode: "Custom",
        publishToInstances: [
            {
                instanceId: "vpc-2fepz36a5ra4g59gp67w197xo",
                instanceRegionId: "cn-beijing",
                instanceType: "VPC",
            },
            {
                instanceId: "vpc-im67wjcikxkw8gbssx8ufpj8",
                instanceRegionId: "cn-beijing",
                instanceType: "VPC",
            },
        ],
        serviceRegionId: "cn-beijing",
        serviceVpcId: "vpc-im67wjcikxkw8gbssx8ufpj8",
    });
    
    resources:
      foo:
        type: volcengine:cen:ServiceRouteEntry
        properties:
          cenId: cen-12ar8uclj68sg17q7y20v9gil
          description: test-tf
          destinationCidrBlock: 100.64.0.0/11
          publishMode: Custom
          publishToInstances:
            - instanceId: vpc-2fepz36a5ra4g59gp67w197xo
              instanceRegionId: cn-beijing
              instanceType: VPC
            - instanceId: vpc-im67wjcikxkw8gbssx8ufpj8
              instanceRegionId: cn-beijing
              instanceType: VPC
          serviceRegionId: cn-beijing
          serviceVpcId: vpc-im67wjcikxkw8gbssx8ufpj8
      foo1:
        type: volcengine:cen:ServiceRouteEntry
        properties:
          cenId: cen-12ar8uclj68sg17q7y20v9gil
          description: test-tf
          destinationCidrBlock: 100.64.0.0/10
          publishMode: Custom
          publishToInstances:
            - instanceId: vpc-2fepz36a5ra4g59gp67w197xo
              instanceRegionId: cn-beijing
              instanceType: VPC
            - instanceId: vpc-im67wjcikxkw8gbssx8ufpj8
              instanceRegionId: cn-beijing
              instanceType: VPC
          serviceRegionId: cn-beijing
          serviceVpcId: vpc-im67wjcikxkw8gbssx8ufpj8
      foo2:
        type: volcengine:cen:ServiceRouteEntry
        properties:
          cenId: cen-12ar8uclj68sg17q7y20v9gil
          description: test-tf
          destinationCidrBlock: 100.64.0.0/12
          publishMode: Custom
          publishToInstances:
            - instanceId: vpc-2fepz36a5ra4g59gp67w197xo
              instanceRegionId: cn-beijing
              instanceType: VPC
            - instanceId: vpc-im67wjcikxkw8gbssx8ufpj8
              instanceRegionId: cn-beijing
              instanceType: VPC
          serviceRegionId: cn-beijing
          serviceVpcId: vpc-im67wjcikxkw8gbssx8ufpj8
    

    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 string
    The unique name of the resource.
    args ServiceRouteEntryArgs
    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 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 string
    The unique name of the resource.
    args ServiceRouteEntryArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceRouteEntryArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceRouteEntryArgs
    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 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",
            },
        },
    });
    
    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"),
    		},
    	},
    })
    
    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());
    
    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=[volcengine.cen.ServiceRouteEntryPublishToInstanceArgs(
            instance_id="string",
            instance_region_id="string",
            instance_type="string",
        )])
    
    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",
        }],
    });
    
    type: volcengine:cen:ServiceRouteEntry
    properties:
        cenId: string
        description: string
        destinationCidrBlock: string
        publishMode: string
        publishToInstances:
            - instanceId: string
              instanceRegionId: string
              instanceType: string
        serviceRegionId: string
        serviceVpcId: string
    

    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

    The ServiceRouteEntry resource accepts the following input properties:

    CenId string
    The cen ID of the cen service route entry.
    DestinationCidrBlock string
    The destination cidr block of the cen service route entry.
    ServiceRegionId string
    The service region id of the cen service route entry.
    ServiceVpcId 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<Volcengine.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 string
    The cen ID of the cen service route entry.
    DestinationCidrBlock string
    The destination cidr block of the cen service route entry.
    ServiceRegionId string
    The service region id of the cen service route entry.
    ServiceVpcId 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 String
    The cen ID of the cen service route entry.
    destinationCidrBlock String
    The destination cidr block of the cen service route entry.
    serviceRegionId String
    The service region id of the cen service route entry.
    serviceVpcId 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 string
    The cen ID of the cen service route entry.
    destinationCidrBlock string
    The destination cidr block of the cen service route entry.
    serviceRegionId string
    The service region id of the cen service route entry.
    serviceVpcId 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 str
    The cen ID of the cen service route entry.
    destination_cidr_block str
    The destination cidr block of the cen service route entry.
    service_region_id str
    The service region id of the cen service route entry.
    service_vpc_id 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 String
    The cen ID of the cen service route entry.
    destinationCidrBlock String
    The destination cidr block of the cen service route entry.
    serviceRegionId String
    The service region id of the cen service route entry.
    serviceVpcId 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)
    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:
    CenId 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 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<Volcengine.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 string
    The service region id of the cen service route entry.
    ServiceVpcId string
    The service VPC id of the cen service route entry.
    Status string
    The status of the cen service route entry.
    CenId 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 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 string
    The service region id of the cen service route entry.
    ServiceVpcId string
    The service VPC id of the cen service route entry.
    Status string
    The status of the cen service route entry.
    cenId 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 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 String
    The service region id of the cen service route entry.
    serviceVpcId String
    The service VPC id of the cen service route entry.
    status String
    The status of the cen service route entry.
    cenId 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 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 string
    The service region id of the cen service route entry.
    serviceVpcId string
    The service VPC id of the cen service route entry.
    status string
    The status of the cen service route entry.
    cen_id 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 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 str
    The service region id of the cen service route entry.
    service_vpc_id str
    The service VPC id of the cen service route entry.
    status str
    The status of the cen service route entry.
    cenId 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 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 String
    The service region id of the cen service route entry.
    serviceVpcId 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****
    

    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