1. Packages
  2. Packages
  3. Volcenginecc Provider
  4. API Docs
  5. cen
  6. ServiceRouteEntry
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine
volcenginecc logo
Viewing docs for volcenginecc v0.0.32
published on Thursday, Apr 23, 2026 by Volcengine

    Cloud service access.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      cENServiceRouteEntryDemo:
        type: volcenginecc:cen:ServiceRouteEntry
        name: CENServiceRouteEntryDemo
        properties:
          cenId: cen-2v73nw1h8a03k6x7exxxxxx
          destinationCidrBlock: 100.x.0.0/11
          serviceVpcId: vpc-iirjlwem73eo74o8cxxxxx
          description: ccapi-test
          publishMode: Custom
          publishToInstances:
            - instance_region_id: cn-hongkong
              instance_type: VPC
              instance_id: vpc-2uzvkdpoof7cw17q7y2xxxxx
            - instance_region_id: cn-shanghai
              instance_type: VPC
              instance_id: vpc-33glll2z1gem86k70bxxxxx
    

    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_vpc_id: Optional[str] = None,
                          creation_time: 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: volcenginecc: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.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var serviceRouteEntryResource = new Volcenginecc.Cen.ServiceRouteEntry("serviceRouteEntryResource", new()
    {
        CenId = "string",
        DestinationCidrBlock = "string",
        ServiceVpcId = "string",
        CreationTime = "string",
        Description = "string",
        PublishMode = "string",
        PublishToInstances = new[]
        {
            new Volcenginecc.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"),
    	ServiceVpcId:         pulumi.String("string"),
    	CreationTime:         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")
        .serviceVpcId("string")
        .creationTime("string")
        .description("string")
        .publishMode("string")
        .publishToInstances(ServiceRouteEntryPublishToInstanceArgs.builder()
            .instanceId("string")
            .instanceRegionId("string")
            .instanceType("string")
            .build())
        .build());
    
    service_route_entry_resource = volcenginecc.cen.ServiceRouteEntry("serviceRouteEntryResource",
        cen_id="string",
        destination_cidr_block="string",
        service_vpc_id="string",
        creation_time="string",
        description="string",
        publish_mode="string",
        publish_to_instances=[{
            "instance_id": "string",
            "instance_region_id": "string",
            "instance_type": "string",
        }])
    
    const serviceRouteEntryResource = new volcenginecc.cen.ServiceRouteEntry("serviceRouteEntryResource", {
        cenId: "string",
        destinationCidrBlock: "string",
        serviceVpcId: "string",
        creationTime: "string",
        description: "string",
        publishMode: "string",
        publishToInstances: [{
            instanceId: "string",
            instanceRegionId: "string",
            instanceType: "string",
        }],
    });
    
    type: volcenginecc:cen:ServiceRouteEntry
    properties:
        cenId: string
        creationTime: string
        description: string
        destinationCidrBlock: string
        publishMode: string
        publishToInstances:
            - instanceId: string
              instanceRegionId: string
              instanceType: 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

    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 string
    Cloud Enterprise Network instance ID.
    DestinationCidrBlock string
    Address range where the cloud service is deployed.
    ServiceVpcId string
    Private network ID bound to the backend cloud service.
    CreationTime string
    Resource creation time.
    Description string
    Custom remarks for the route.
    PublishMode string
    Route publishing scope mode.
    PublishToInstances List<Volcengine.ServiceRouteEntryPublishToInstance>
    CenId string
    Cloud Enterprise Network instance ID.
    DestinationCidrBlock string
    Address range where the cloud service is deployed.
    ServiceVpcId string
    Private network ID bound to the backend cloud service.
    CreationTime string
    Resource creation time.
    Description string
    Custom remarks for the route.
    PublishMode string
    Route publishing scope mode.
    PublishToInstances []ServiceRouteEntryPublishToInstanceArgs
    cenId String
    Cloud Enterprise Network instance ID.
    destinationCidrBlock String
    Address range where the cloud service is deployed.
    serviceVpcId String
    Private network ID bound to the backend cloud service.
    creationTime String
    Resource creation time.
    description String
    Custom remarks for the route.
    publishMode String
    Route publishing scope mode.
    publishToInstances List<ServiceRouteEntryPublishToInstance>
    cenId string
    Cloud Enterprise Network instance ID.
    destinationCidrBlock string
    Address range where the cloud service is deployed.
    serviceVpcId string
    Private network ID bound to the backend cloud service.
    creationTime string
    Resource creation time.
    description string
    Custom remarks for the route.
    publishMode string
    Route publishing scope mode.
    publishToInstances ServiceRouteEntryPublishToInstance[]
    cen_id str
    Cloud Enterprise Network instance ID.
    destination_cidr_block str
    Address range where the cloud service is deployed.
    service_vpc_id str
    Private network ID bound to the backend cloud service.
    creation_time str
    Resource creation time.
    description str
    Custom remarks for the route.
    publish_mode str
    Route publishing scope mode.
    publish_to_instances Sequence[ServiceRouteEntryPublishToInstanceArgs]
    cenId String
    Cloud Enterprise Network instance ID.
    destinationCidrBlock String
    Address range where the cloud service is deployed.
    serviceVpcId String
    Private network ID bound to the backend cloud service.
    creationTime String
    Resource creation time.
    description String
    Custom remarks for the route.
    publishMode String
    Route publishing scope mode.
    publishToInstances List<Property Map>

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceRegionId string
    Region where the cloud service is located.
    Status string
    Cloud service access route status.
    Id string
    The provider-assigned unique ID for this managed resource.
    ServiceRegionId string
    Region where the cloud service is located.
    Status string
    Cloud service access route status.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceRegionId String
    Region where the cloud service is located.
    status String
    Cloud service access route status.
    id string
    The provider-assigned unique ID for this managed resource.
    serviceRegionId string
    Region where the cloud service is located.
    status string
    Cloud service access route status.
    id str
    The provider-assigned unique ID for this managed resource.
    service_region_id str
    Region where the cloud service is located.
    status str
    Cloud service access route status.
    id String
    The provider-assigned unique ID for this managed resource.
    serviceRegionId String
    Region where the cloud service is located.
    status String
    Cloud service access route status.

    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: volcenginecc:cen:ServiceRouteEntry    get:      id: ${id}
    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
    Cloud Enterprise Network instance ID.
    CreationTime string
    Resource creation time.
    Description string
    Custom remarks for the route.
    DestinationCidrBlock string
    Address range where the cloud service is deployed.
    PublishMode string
    Route publishing scope mode.
    PublishToInstances List<Volcengine.ServiceRouteEntryPublishToInstance>
    ServiceRegionId string
    Region where the cloud service is located.
    ServiceVpcId string
    Private network ID bound to the backend cloud service.
    Status string
    Cloud service access route status.
    CenId string
    Cloud Enterprise Network instance ID.
    CreationTime string
    Resource creation time.
    Description string
    Custom remarks for the route.
    DestinationCidrBlock string
    Address range where the cloud service is deployed.
    PublishMode string
    Route publishing scope mode.
    PublishToInstances []ServiceRouteEntryPublishToInstanceArgs
    ServiceRegionId string
    Region where the cloud service is located.
    ServiceVpcId string
    Private network ID bound to the backend cloud service.
    Status string
    Cloud service access route status.
    cenId String
    Cloud Enterprise Network instance ID.
    creationTime String
    Resource creation time.
    description String
    Custom remarks for the route.
    destinationCidrBlock String
    Address range where the cloud service is deployed.
    publishMode String
    Route publishing scope mode.
    publishToInstances List<ServiceRouteEntryPublishToInstance>
    serviceRegionId String
    Region where the cloud service is located.
    serviceVpcId String
    Private network ID bound to the backend cloud service.
    status String
    Cloud service access route status.
    cenId string
    Cloud Enterprise Network instance ID.
    creationTime string
    Resource creation time.
    description string
    Custom remarks for the route.
    destinationCidrBlock string
    Address range where the cloud service is deployed.
    publishMode string
    Route publishing scope mode.
    publishToInstances ServiceRouteEntryPublishToInstance[]
    serviceRegionId string
    Region where the cloud service is located.
    serviceVpcId string
    Private network ID bound to the backend cloud service.
    status string
    Cloud service access route status.
    cen_id str
    Cloud Enterprise Network instance ID.
    creation_time str
    Resource creation time.
    description str
    Custom remarks for the route.
    destination_cidr_block str
    Address range where the cloud service is deployed.
    publish_mode str
    Route publishing scope mode.
    publish_to_instances Sequence[ServiceRouteEntryPublishToInstanceArgs]
    service_region_id str
    Region where the cloud service is located.
    service_vpc_id str
    Private network ID bound to the backend cloud service.
    status str
    Cloud service access route status.
    cenId String
    Cloud Enterprise Network instance ID.
    creationTime String
    Resource creation time.
    description String
    Custom remarks for the route.
    destinationCidrBlock String
    Address range where the cloud service is deployed.
    publishMode String
    Route publishing scope mode.
    publishToInstances List<Property Map>
    serviceRegionId String
    Region where the cloud service is located.
    serviceVpcId String
    Private network ID bound to the backend cloud service.
    status String
    Cloud service access route status.

    Supporting Types

    ServiceRouteEntryPublishToInstance, ServiceRouteEntryPublishToInstanceArgs

    InstanceId string
    Network instance ID for published cloud service access route.
    InstanceRegionId string
    Region for published cloud service access route.
    InstanceType string
    Network instance type for published cloud service access route.
    InstanceId string
    Network instance ID for published cloud service access route.
    InstanceRegionId string
    Region for published cloud service access route.
    InstanceType string
    Network instance type for published cloud service access route.
    instanceId String
    Network instance ID for published cloud service access route.
    instanceRegionId String
    Region for published cloud service access route.
    instanceType String
    Network instance type for published cloud service access route.
    instanceId string
    Network instance ID for published cloud service access route.
    instanceRegionId string
    Region for published cloud service access route.
    instanceType string
    Network instance type for published cloud service access route.
    instance_id str
    Network instance ID for published cloud service access route.
    instance_region_id str
    Region for published cloud service access route.
    instance_type str
    Network instance type for published cloud service access route.
    instanceId String
    Network instance ID for published cloud service access route.
    instanceRegionId String
    Region for published cloud service access route.
    instanceType String
    Network instance type for published cloud service access route.

    Import

    $ pulumi import volcenginecc:cen/serviceRouteEntry:ServiceRouteEntry example "cen_id|destination_cidr_block"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    volcenginecc volcengine/pulumi-volcenginecc
    License
    MPL-2.0
    Notes
    This Pulumi package is based on the volcenginecc Terraform Provider.
    volcenginecc logo
    Viewing docs for volcenginecc v0.0.32
    published on Thursday, Apr 23, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.