1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. cen
  5. getRouteServices
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi

alicloud.cen.getRouteServices

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 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.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:cen/getRouteServices:getRouteServices
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CenId string
    The ID of the CEN instance.
    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
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the cloud service. Valid values: Active, Creating and Deleting.
    CenId string
    The ID of the CEN instance.
    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
    File name where to save data source results (after running pulumi preview).
    Status string
    The status of the cloud service. Valid values: Active, Creating and Deleting.
    cenId String
    The ID of the CEN instance.
    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
    File name where to save data source results (after running pulumi preview).
    status String
    The status of the cloud service. Valid values: Active, Creating and Deleting.
    cenId string
    The ID of the CEN instance.
    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
    File name where to save data source results (after running pulumi preview).
    status string
    The status of the cloud service. Valid values: Active, Creating and Deleting.
    cen_id str
    The ID of the CEN instance.
    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
    File name where to save data source results (after running pulumi preview).
    status str
    The status of the cloud service. Valid values: Active, Creating and Deleting.
    cenId String
    The ID of the CEN instance.
    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
    File name where to save data source results (after running pulumi preview).
    status 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 string
    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.
    HostRegionId string
    The region of the cloud service.
    HostVpcId string
    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, Creating and Deleting.
    UpdateInterval string
    The update interval. Default value: 5. The value cannot be modified.
    AccessRegionId string
    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.
    HostRegionId string
    The region of the cloud service.
    HostVpcId string
    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, Creating and Deleting.
    UpdateInterval string
    The update interval. Default value: 5. The value cannot be modified.
    accessRegionId String
    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.
    hostRegionId String
    The region of the cloud service.
    hostVpcId String
    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, Creating and Deleting.
    updateInterval String
    The update interval. Default value: 5. The value cannot be modified.
    accessRegionId string
    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.
    hostRegionId string
    The region of the cloud service.
    hostVpcId string
    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, Creating and Deleting.
    updateInterval string
    The update interval. Default value: 5. The value cannot be modified.
    access_region_id str
    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_id str
    The region of the cloud service.
    host_vpc_id str
    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, Creating and Deleting.
    update_interval str
    The update interval. Default value: 5. The value cannot be modified.
    accessRegionId String
    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.
    hostRegionId String
    The region of the cloud service.
    hostVpcId String
    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, Creating and Deleting.
    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 alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.51.0 published on Saturday, Mar 23, 2024 by Pulumi