1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. cen
  5. getRouteServices
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

alicloud.cen.getRouteServices

Explore with Pulumi AI

Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

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);
Copy
import pulumi
import pulumi_alicloud as alicloud

example = alicloud.cen.get_route_services(cen_id="cen-7qthudw0ll6jmc****")
pulumi.export("firstCenRouteServiceId", example.services[0].id)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
variables:
  example:
    fn::invoke:
      function: alicloud:cen:getRouteServices
      arguments:
        cenId: cen-7qthudw0ll6jmc****
outputs:
  firstCenRouteServiceId: ${example.services[0].id}
Copy

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>
Copy
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]
Copy
func GetRouteServices(ctx *Context, args *GetRouteServicesArgs, opts ...InvokeOption) (*GetRouteServicesResult, error)
func GetRouteServicesOutput(ctx *Context, args *GetRouteServicesOutputArgs, opts ...InvokeOption) GetRouteServicesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetRouteServicesResult> getRouteServices(GetRouteServicesArgs args, InvokeOptions options)
public static Output<GetRouteServicesResult> getRouteServices(GetRouteServicesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:cen/getRouteServices:getRouteServices
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CenId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the CEN instance.
AccessRegionId Changes to this property will trigger replacement. string
The region of the network instances that access the cloud services.
Host Changes to this property will trigger replacement. string
The domain name or IP address of the cloud service.
HostRegionId Changes to this property will trigger replacement. string
The region of the cloud service.
HostVpcId Changes to this property will trigger replacement. string
The VPC associated with the cloud service.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of the cloud service. Valid values: Active, Creating and Deleting.
CenId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the CEN instance.
AccessRegionId Changes to this property will trigger replacement. string
The region of the network instances that access the cloud services.
Host Changes to this property will trigger replacement. string
The domain name or IP address of the cloud service.
HostRegionId Changes to this property will trigger replacement. string
The region of the cloud service.
HostVpcId Changes to this property will trigger replacement. string
The VPC associated with the cloud service.
OutputFile string
File name where to save data source results (after running pulumi preview).
Status Changes to this property will trigger replacement. string
The status of the cloud service. Valid values: Active, Creating and Deleting.
cenId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the CEN instance.
accessRegionId Changes to this property will trigger replacement. String
The region of the network instances that access the cloud services.
host Changes to this property will trigger replacement. String
The domain name or IP address of the cloud service.
hostRegionId Changes to this property will trigger replacement. String
The region of the cloud service.
hostVpcId Changes to this property will trigger replacement. String
The VPC associated with the cloud service.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of the cloud service. Valid values: Active, Creating and Deleting.
cenId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the CEN instance.
accessRegionId Changes to this property will trigger replacement. string
The region of the network instances that access the cloud services.
host Changes to this property will trigger replacement. string
The domain name or IP address of the cloud service.
hostRegionId Changes to this property will trigger replacement. string
The region of the cloud service.
hostVpcId Changes to this property will trigger replacement. string
The VPC associated with the cloud service.
outputFile string
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. string
The status of the cloud service. Valid values: Active, Creating and Deleting.
cen_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the CEN instance.
access_region_id Changes to this property will trigger replacement. str
The region of the network instances that access the cloud services.
host Changes to this property will trigger replacement. str
The domain name or IP address of the cloud service.
host_region_id Changes to this property will trigger replacement. str
The region of the cloud service.
host_vpc_id Changes to this property will trigger replacement. str
The VPC associated with the cloud service.
output_file str
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. str
The status of the cloud service. Valid values: Active, Creating and Deleting.
cenId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the CEN instance.
accessRegionId Changes to this property will trigger replacement. String
The region of the network instances that access the cloud services.
host Changes to this property will trigger replacement. String
The domain name or IP address of the cloud service.
hostRegionId Changes to this property will trigger replacement. String
The region of the cloud service.
hostVpcId Changes to this property will trigger replacement. String
The VPC associated with the cloud service.
outputFile String
File name where to save data source results (after running pulumi preview).
status Changes to this property will trigger replacement. String
The status of the cloud service. Valid values: Active, Creating and Deleting.

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.AliCloud.Cen.Outputs.GetRouteServicesService>
A list of CEN Route Services. Each element contains the following attributes:
AccessRegionId string
The region of the network instances that access the cloud services.
Host string
The domain name or IP address of the cloud service.
HostRegionId string
The region of the cloud service.
HostVpcId string
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 []GetRouteServicesService
A list of CEN Route Services. Each element contains the following attributes:
AccessRegionId string
The region of the network instances that access the cloud services.
Host string
The domain name or IP address of the cloud service.
HostRegionId string
The region of the cloud service.
HostVpcId string
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<GetRouteServicesService>
A list of CEN Route Services. Each element contains the following attributes:
accessRegionId String
The region of the network instances that access the cloud services.
host String
The domain name or IP address of the cloud service.
hostRegionId String
The region of the cloud service.
hostVpcId String
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 GetRouteServicesService[]
A list of CEN Route Services. Each element contains the following attributes:
accessRegionId string
The region of the network instances that access the cloud services.
host string
The domain name or IP address of the cloud service.
hostRegionId string
The region of the cloud service.
hostVpcId string
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[GetRouteServicesService]
A list of CEN Route Services. Each element contains the following attributes:
access_region_id str
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_id str
The region of the cloud service.
host_vpc_id str
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:
accessRegionId String
The region of the network instances that access the cloud services.
host String
The domain name or IP address of the cloud service.
hostRegionId String
The region of the cloud service.
hostVpcId String
The VPC associated with the cloud service.
outputFile String
status String
The status of the cloud service.

Supporting Types

GetRouteServicesService

AccessRegionId This property is required. string
The region of the network instances that access the cloud services.
CenId This property is required. string
The ID of the CEN instance.
Cidrs This property is required. List<string>
The IP address of the cloud service.
Description This property is required. string
The description of the cloud service.
Host This property is required. string
The domain name or IP address of the cloud service.
HostRegionId This property is required. string
The region of the cloud service.
HostVpcId This property is required. string
The VPC associated with the cloud service.
Id This property is required. string
The ID of the route service.
Status This property is required. string
The status of the cloud service. Valid values: Active, Creating and Deleting.
UpdateInterval This property is required. string
The update interval. Default value: 5. The value cannot be modified.
AccessRegionId This property is required. string
The region of the network instances that access the cloud services.
CenId This property is required. string
The ID of the CEN instance.
Cidrs This property is required. []string
The IP address of the cloud service.
Description This property is required. string
The description of the cloud service.
Host This property is required. string
The domain name or IP address of the cloud service.
HostRegionId This property is required. string
The region of the cloud service.
HostVpcId This property is required. string
The VPC associated with the cloud service.
Id This property is required. string
The ID of the route service.
Status This property is required. string
The status of the cloud service. Valid values: Active, Creating and Deleting.
UpdateInterval This property is required. string
The update interval. Default value: 5. The value cannot be modified.
accessRegionId This property is required. String
The region of the network instances that access the cloud services.
cenId This property is required. String
The ID of the CEN instance.
cidrs This property is required. List<String>
The IP address of the cloud service.
description This property is required. String
The description of the cloud service.
host This property is required. String
The domain name or IP address of the cloud service.
hostRegionId This property is required. String
The region of the cloud service.
hostVpcId This property is required. String
The VPC associated with the cloud service.
id This property is required. String
The ID of the route service.
status This property is required. String
The status of the cloud service. Valid values: Active, Creating and Deleting.
updateInterval This property is required. String
The update interval. Default value: 5. The value cannot be modified.
accessRegionId This property is required. string
The region of the network instances that access the cloud services.
cenId This property is required. string
The ID of the CEN instance.
cidrs This property is required. string[]
The IP address of the cloud service.
description This property is required. string
The description of the cloud service.
host This property is required. string
The domain name or IP address of the cloud service.
hostRegionId This property is required. string
The region of the cloud service.
hostVpcId This property is required. string
The VPC associated with the cloud service.
id This property is required. string
The ID of the route service.
status This property is required. string
The status of the cloud service. Valid values: Active, Creating and Deleting.
updateInterval This property is required. string
The update interval. Default value: 5. The value cannot be modified.
access_region_id This property is required. str
The region of the network instances that access the cloud services.
cen_id This property is required. str
The ID of the CEN instance.
cidrs This property is required. Sequence[str]
The IP address of the cloud service.
description This property is required. str
The description of the cloud service.
host This property is required. str
The domain name or IP address of the cloud service.
host_region_id This property is required. str
The region of the cloud service.
host_vpc_id This property is required. str
The VPC associated with the cloud service.
id This property is required. str
The ID of the route service.
status This property is required. str
The status of the cloud service. Valid values: Active, Creating and Deleting.
update_interval This property is required. str
The update interval. Default value: 5. The value cannot be modified.
accessRegionId This property is required. String
The region of the network instances that access the cloud services.
cenId This property is required. String
The ID of the CEN instance.
cidrs This property is required. List<String>
The IP address of the cloud service.
description This property is required. String
The description of the cloud service.
host This property is required. String
The domain name or IP address of the cloud service.
hostRegionId This property is required. String
The region of the cloud service.
hostVpcId This property is required. String
The VPC associated with the cloud service.
id This property is required. String
The ID of the route service.
status This property is required. String
The status of the cloud service. Valid values: Active, Creating and Deleting.
updateInterval This property is required. 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 alicloud Terraform Provider.
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi