Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 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);
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.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:
- Cen
Id string - The ID of the CEN instance.
- Access
Region stringId - The region of the network instances that access the cloud services.
- Host string
- The domain name or IP address of the cloud service.
- Host
Region stringId - The region of the cloud service.
- Host
Vpc stringId - The VPC associated with the cloud service.
- Output
File 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 string - The ID of the CEN instance.
- Access
Region stringId - The region of the network instances that access the cloud services.
- Host string
- The domain name or IP address of the cloud service.
- Host
Region stringId - The region of the cloud service.
- Host
Vpc stringId - The VPC associated with the cloud service.
- Output
File 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 String - The ID of the CEN instance.
- access
Region StringId - The region of the network instances that access the cloud services.
- host String
- The domain name or IP address of the cloud service.
- host
Region StringId - The region of the cloud service.
- host
Vpc StringId - The VPC associated with the cloud service.
- output
File 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 string - The ID of the CEN instance.
- access
Region stringId - The region of the network instances that access the cloud services.
- host string
- The domain name or IP address of the cloud service.
- host
Region stringId - The region of the cloud service.
- host
Vpc stringId - The VPC associated with the cloud service.
- output
File 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.
- cen
Id String - The ID of the CEN instance.
- access
Region StringId - The region of the network instances that access the cloud services.
- host String
- The domain name or IP address of the cloud service.
- host
Region StringId - The region of the cloud service.
- host
Vpc StringId - The VPC associated with the cloud service.
- output
File 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:
- Cen
Id 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:
- Access
Region stringId - The region of the network instances that access the cloud services.
- Host string
- The domain name or IP address of the cloud service.
- Host
Region stringId - The region of the cloud service.
- Host
Vpc stringId - The VPC associated with the cloud service.
- Output
File string - Status string
- The status of the cloud service.
- Cen
Id 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
[]Get
Route Services Service - A list of CEN Route Services. Each element contains the following attributes:
- Access
Region stringId - The region of the network instances that access the cloud services.
- Host string
- The domain name or IP address of the cloud service.
- Host
Region stringId - The region of the cloud service.
- Host
Vpc stringId - The VPC associated with the cloud service.
- Output
File string - Status string
- The status of the cloud service.
- cen
Id 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<Get
Route Services Service> - A list of CEN Route Services. Each element contains the following attributes:
- access
Region StringId - The region of the network instances that access the cloud services.
- host String
- The domain name or IP address of the cloud service.
- host
Region StringId - The region of the cloud service.
- host
Vpc StringId - The VPC associated with the cloud service.
- output
File String - status String
- The status of the cloud service.
- cen
Id 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
Get
Route Services Service[] - A list of CEN Route Services. Each element contains the following attributes:
- access
Region stringId - The region of the network instances that access the cloud services.
- host string
- The domain name or IP address of the cloud service.
- host
Region stringId - The region of the cloud service.
- host
Vpc stringId - The VPC associated with the cloud service.
- output
File 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[Get
Route 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.
- cen
Id 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:
- access
Region StringId - The region of the network instances that access the cloud services.
- host String
- The domain name or IP address of the cloud service.
- host
Region StringId - The region of the cloud service.
- host
Vpc StringId - The VPC associated with the cloud service.
- output
File String - status String
- The status of the cloud service.
Supporting Types
GetRouteServicesService
- Access
Region stringId - The region of the network instances that access the cloud services.
- Cen
Id 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.
- Host
Region stringId - The region of the cloud service.
- Host
Vpc 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. - Update
Interval string - The update interval. Default value: 5. The value cannot be modified.
- Access
Region stringId - The region of the network instances that access the cloud services.
- Cen
Id 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.
- Host
Region stringId - The region of the cloud service.
- Host
Vpc 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. - Update
Interval string - The update interval. Default value: 5. The value cannot be modified.
- access
Region StringId - The region of the network instances that access the cloud services.
- cen
Id 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.
- host
Region StringId - The region of the cloud service.
- host
Vpc 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. - update
Interval String - The update interval. Default value: 5. The value cannot be modified.
- access
Region stringId - The region of the network instances that access the cloud services.
- cen
Id 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.
- host
Region stringId - The region of the cloud service.
- host
Vpc 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. - update
Interval 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.
- access
Region StringId - The region of the network instances that access the cloud services.
- cen
Id 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.
- host
Region StringId - The region of the cloud service.
- host
Vpc 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. - update
Interval 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.
Alibaba Cloud v3.88.1 published on Saturday, Nov 8, 2025 by Pulumi
