Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi
alicloud.cen.getRouteServices
Explore with Pulumi AI
This data source provides CEN Route Service available to the user.
NOTE: Available in v1.102.0+
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.cen.getRouteServices({
    cenId: "cen-7qthudw0ll6jmc****",
});
export const firstCenRouteServiceId = example.then(example => example.services?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.cen.get_route_services(cen_id="cen-7qthudw0ll6jmc****")
pulumi.export("firstCenRouteServiceId", example.services[0].id)
package main
import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cen"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := cen.GetRouteServices(ctx, &cen.GetRouteServicesArgs{
			CenId: "cen-7qthudw0ll6jmc****",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("firstCenRouteServiceId", example.Services[0].Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() => 
{
    var example = AliCloud.Cen.GetRouteServices.Invoke(new()
    {
        CenId = "cen-7qthudw0ll6jmc****",
    });
    return new Dictionary<string, object?>
    {
        ["firstCenRouteServiceId"] = example.Apply(getRouteServicesResult => getRouteServicesResult.Services[0]?.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cen.CenFunctions;
import com.pulumi.alicloud.cen.inputs.GetRouteServicesArgs;
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) {
        final var example = CenFunctions.getRouteServices(GetRouteServicesArgs.builder()
            .cenId("cen-7qthudw0ll6jmc****")
            .build());
        ctx.export("firstCenRouteServiceId", example.applyValue(getRouteServicesResult -> getRouteServicesResult.services()[0].id()));
    }
}
variables:
  example:
    fn::invoke:
      function: alicloud:cen:getRouteServices
      arguments:
        cenId: cen-7qthudw0ll6jmc****
outputs:
  firstCenRouteServiceId: ${example.services[0].id}
Using getRouteServices
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRouteServices(args: GetRouteServicesArgs, opts?: InvokeOptions): Promise<GetRouteServicesResult>
function getRouteServicesOutput(args: GetRouteServicesOutputArgs, opts?: InvokeOptions): Output<GetRouteServicesResult>def get_route_services(access_region_id: Optional[str] = None,
                       cen_id: Optional[str] = None,
                       host: Optional[str] = None,
                       host_region_id: Optional[str] = None,
                       host_vpc_id: Optional[str] = None,
                       output_file: Optional[str] = None,
                       status: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetRouteServicesResult
def get_route_services_output(access_region_id: Optional[pulumi.Input[str]] = None,
                       cen_id: Optional[pulumi.Input[str]] = None,
                       host: Optional[pulumi.Input[str]] = None,
                       host_region_id: Optional[pulumi.Input[str]] = None,
                       host_vpc_id: Optional[pulumi.Input[str]] = None,
                       output_file: Optional[pulumi.Input[str]] = None,
                       status: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetRouteServicesResult]func GetRouteServices(ctx *Context, args *GetRouteServicesArgs, opts ...InvokeOption) (*GetRouteServicesResult, error)
func GetRouteServicesOutput(ctx *Context, args *GetRouteServicesOutputArgs, opts ...InvokeOption) GetRouteServicesResultOutput> Note: This function is named GetRouteServices in the Go SDK.
public static class GetRouteServices 
{
    public static Task<GetRouteServicesResult> InvokeAsync(GetRouteServicesArgs args, InvokeOptions? opts = null)
    public static Output<GetRouteServicesResult> Invoke(GetRouteServicesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRouteServicesResult> getRouteServices(GetRouteServicesArgs args, InvokeOptions options)
public static Output<GetRouteServicesResult> getRouteServices(GetRouteServicesArgs args, InvokeOptions options)
fn::invoke:
  function: alicloud:cen/getRouteServices:getRouteServices
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CenId string
- The ID of the CEN instance.
- AccessRegion stringId 
- The region of the network instances that access the cloud services.
- Host string
- The domain name or IP address of the cloud service.
- HostRegion stringId 
- The region of the cloud service.
- HostVpc stringId 
- The VPC associated with the cloud service.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- Status string
- The status of the cloud service. Valid values: Active,CreatingandDeleting.
- CenId string
- The ID of the CEN instance.
- AccessRegion stringId 
- The region of the network instances that access the cloud services.
- Host string
- The domain name or IP address of the cloud service.
- HostRegion stringId 
- The region of the cloud service.
- HostVpc stringId 
- The VPC associated with the cloud service.
- OutputFile string
- File name where to save data source results (after running pulumi preview).
- Status string
- The status of the cloud service. Valid values: Active,CreatingandDeleting.
- cenId String
- The ID of the CEN instance.
- accessRegion StringId 
- The region of the network instances that access the cloud services.
- host String
- The domain name or IP address of the cloud service.
- hostRegion StringId 
- The region of the cloud service.
- hostVpc StringId 
- The VPC associated with the cloud service.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- status String
- The status of the cloud service. Valid values: Active,CreatingandDeleting.
- cenId string
- The ID of the CEN instance.
- accessRegion stringId 
- The region of the network instances that access the cloud services.
- host string
- The domain name or IP address of the cloud service.
- hostRegion stringId 
- The region of the cloud service.
- hostVpc stringId 
- The VPC associated with the cloud service.
- outputFile string
- File name where to save data source results (after running pulumi preview).
- status string
- The status of the cloud service. Valid values: Active,CreatingandDeleting.
- cen_id str
- The ID of the CEN instance.
- access_region_ strid 
- The region of the network instances that access the cloud services.
- host str
- The domain name or IP address of the cloud service.
- host_region_ strid 
- The region of the cloud service.
- host_vpc_ strid 
- The VPC associated with the cloud service.
- output_file str
- File name where to save data source results (after running pulumi preview).
- status str
- The status of the cloud service. Valid values: Active,CreatingandDeleting.
- cenId String
- The ID of the CEN instance.
- accessRegion StringId 
- The region of the network instances that access the cloud services.
- host String
- The domain name or IP address of the cloud service.
- hostRegion StringId 
- The region of the cloud service.
- hostVpc StringId 
- The VPC associated with the cloud service.
- outputFile String
- File name where to save data source results (after running pulumi preview).
- status String
- The status of the cloud service. Valid values: Active,CreatingandDeleting.
getRouteServices Result
The following output properties are available:
- CenId string
- The ID of the CEN instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- A list of CEN Route Service IDs.
- Services
List<Pulumi.Ali Cloud. Cen. Outputs. Get Route Services Service> 
- A list of CEN Route Services. Each element contains the following attributes:
- AccessRegion stringId 
- The region of the network instances that access the cloud services.
- Host string
- The domain name or IP address of the cloud service.
- HostRegion stringId 
- The region of the cloud service.
- HostVpc stringId 
- The VPC associated with the cloud service.
- OutputFile string
- Status string
- The status of the cloud service.
- CenId string
- The ID of the CEN instance.
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of CEN Route Service IDs.
- Services
[]GetRoute Services Service 
- A list of CEN Route Services. Each element contains the following attributes:
- AccessRegion stringId 
- The region of the network instances that access the cloud services.
- Host string
- The domain name or IP address of the cloud service.
- HostRegion stringId 
- The region of the cloud service.
- HostVpc stringId 
- The VPC associated with the cloud service.
- OutputFile string
- Status string
- The status of the cloud service.
- cenId String
- The ID of the CEN instance.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of CEN Route Service IDs.
- services
List<GetRoute Services Service> 
- A list of CEN Route Services. Each element contains the following attributes:
- accessRegion StringId 
- The region of the network instances that access the cloud services.
- host String
- The domain name or IP address of the cloud service.
- hostRegion StringId 
- The region of the cloud service.
- hostVpc StringId 
- The VPC associated with the cloud service.
- outputFile String
- status String
- The status of the cloud service.
- cenId string
- The ID of the CEN instance.
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of CEN Route Service IDs.
- services
GetRoute Services Service[] 
- A list of CEN Route Services. Each element contains the following attributes:
- accessRegion stringId 
- The region of the network instances that access the cloud services.
- host string
- The domain name or IP address of the cloud service.
- hostRegion stringId 
- The region of the cloud service.
- hostVpc stringId 
- The VPC associated with the cloud service.
- outputFile string
- status string
- The status of the cloud service.
- cen_id str
- The ID of the CEN instance.
- id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- A list of CEN Route Service IDs.
- services
Sequence[GetRoute Services Service] 
- A list of CEN Route Services. Each element contains the following attributes:
- access_region_ strid 
- The region of the network instances that access the cloud services.
- host str
- The domain name or IP address of the cloud service.
- host_region_ strid 
- The region of the cloud service.
- host_vpc_ strid 
- The VPC associated with the cloud service.
- output_file str
- status str
- The status of the cloud service.
- cenId String
- The ID of the CEN instance.
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- A list of CEN Route Service IDs.
- services List<Property Map>
- A list of CEN Route Services. Each element contains the following attributes:
- accessRegion StringId 
- The region of the network instances that access the cloud services.
- host String
- The domain name or IP address of the cloud service.
- hostRegion StringId 
- The region of the cloud service.
- hostVpc StringId 
- The VPC associated with the cloud service.
- outputFile String
- status String
- The status of the cloud service.
Supporting Types
GetRouteServicesService   
- AccessRegion stringId 
- The region of the network instances that access the cloud services.
- CenId string
- The ID of the CEN instance.
- Cidrs List<string>
- The IP address of the cloud service.
- Description string
- The description of the cloud service.
- Host string
- The domain name or IP address of the cloud service.
- HostRegion stringId 
- The region of the cloud service.
- HostVpc stringId 
- The VPC associated with the cloud service.
- Id string
- The ID of the route service.
- Status string
- The status of the cloud service. Valid values: Active,CreatingandDeleting.
- UpdateInterval string
- The update interval. Default value: 5. The value cannot be modified.
- AccessRegion stringId 
- The region of the network instances that access the cloud services.
- CenId string
- The ID of the CEN instance.
- Cidrs []string
- The IP address of the cloud service.
- Description string
- The description of the cloud service.
- Host string
- The domain name or IP address of the cloud service.
- HostRegion stringId 
- The region of the cloud service.
- HostVpc stringId 
- The VPC associated with the cloud service.
- Id string
- The ID of the route service.
- Status string
- The status of the cloud service. Valid values: Active,CreatingandDeleting.
- UpdateInterval string
- The update interval. Default value: 5. The value cannot be modified.
- accessRegion StringId 
- The region of the network instances that access the cloud services.
- cenId String
- The ID of the CEN instance.
- cidrs List<String>
- The IP address of the cloud service.
- description String
- The description of the cloud service.
- host String
- The domain name or IP address of the cloud service.
- hostRegion StringId 
- The region of the cloud service.
- hostVpc StringId 
- The VPC associated with the cloud service.
- id String
- The ID of the route service.
- status String
- The status of the cloud service. Valid values: Active,CreatingandDeleting.
- updateInterval String
- The update interval. Default value: 5. The value cannot be modified.
- accessRegion stringId 
- The region of the network instances that access the cloud services.
- cenId string
- The ID of the CEN instance.
- cidrs string[]
- The IP address of the cloud service.
- description string
- The description of the cloud service.
- host string
- The domain name or IP address of the cloud service.
- hostRegion stringId 
- The region of the cloud service.
- hostVpc stringId 
- The VPC associated with the cloud service.
- id string
- The ID of the route service.
- status string
- The status of the cloud service. Valid values: Active,CreatingandDeleting.
- updateInterval string
- The update interval. Default value: 5. The value cannot be modified.
- access_region_ strid 
- The region of the network instances that access the cloud services.
- cen_id str
- The ID of the CEN instance.
- cidrs Sequence[str]
- The IP address of the cloud service.
- description str
- The description of the cloud service.
- host str
- The domain name or IP address of the cloud service.
- host_region_ strid 
- The region of the cloud service.
- host_vpc_ strid 
- The VPC associated with the cloud service.
- id str
- The ID of the route service.
- status str
- The status of the cloud service. Valid values: Active,CreatingandDeleting.
- update_interval str
- The update interval. Default value: 5. The value cannot be modified.
- accessRegion StringId 
- The region of the network instances that access the cloud services.
- cenId String
- The ID of the CEN instance.
- cidrs List<String>
- The IP address of the cloud service.
- description String
- The description of the cloud service.
- host String
- The domain name or IP address of the cloud service.
- hostRegion StringId 
- The region of the cloud service.
- hostVpc StringId 
- The VPC associated with the cloud service.
- id String
- The ID of the route service.
- status String
- The status of the cloud service. Valid values: Active,CreatingandDeleting.
- updateInterval String
- The update interval. Default value: 5. The value cannot be modified.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the alicloudTerraform Provider.