Alibaba Cloud

Pulumi Official
Package maintained by Pulumi
v3.19.0 published on Friday, Mar 18, 2022 by Pulumi

getRouteServices

This data source provides CEN Route Service available to the user.

NOTE: Available in v1.102.0+

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(AliCloud.Cen.GetRouteServices.InvokeAsync(new AliCloud.Cen.GetRouteServicesArgs
        {
            CenId = "cen-7qthudw0ll6jmc****",
        }));
        this.FirstCenRouteServiceId = example.Apply(example => example.Services?[0]?.Id);
    }

    [Output("firstCenRouteServiceId")]
    public Output<string> FirstCenRouteServiceId { get; set; }
}
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
	})
}

Coming soon!

import pulumi
import pulumi_alicloud as alicloud

example = alicloud.cen.get_route_services(cen_id="cen-7qthudw0ll6jmc****")
pulumi.export("firstCenRouteServiceId", example.services[0].id)
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);

Coming soon!

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

-(Required, ForceNew) The ID of the CEN instance.

AccessRegionId string

The region of the network instances that access the cloud services.

Host string

-(Optional, ForceNew) 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. Valid values: Active, Creating and Deleting.

CenId string

-(Required, ForceNew) The ID of the CEN instance.

AccessRegionId string

The region of the network instances that access the cloud services.

Host string

-(Optional, ForceNew) 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. Valid values: Active, Creating and Deleting.

cenId String

-(Required, ForceNew) The ID of the CEN instance.

accessRegionId String

The region of the network instances that access the cloud services.

host String

-(Optional, ForceNew) 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. Valid values: Active, Creating and Deleting.

cenId string

-(Required, ForceNew) The ID of the CEN instance.

accessRegionId string

The region of the network instances that access the cloud services.

host string

-(Optional, ForceNew) 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. Valid values: Active, Creating and Deleting.

cen_id str

-(Required, ForceNew) The ID of the CEN instance.

access_region_id str

The region of the network instances that access the cloud services.

host str

-(Optional, ForceNew) 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. Valid values: Active, Creating and Deleting.

cenId String

-(Required, ForceNew) The ID of the CEN instance.

accessRegionId String

The region of the network instances that access the cloud services.

host String

-(Optional, ForceNew) 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. 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

A list of CEN Route Service IDs.

services ListRouteServicesService>

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

A list of CEN Route Service IDs.

services List

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

-(Required, ForceNew) 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

-(Optional, ForceNew) 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

-(Required, ForceNew) 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

-(Optional, ForceNew) 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

-(Required, ForceNew) The ID of the CEN instance.

cidrs List

The IP address of the cloud service.

description String

The description of the cloud service.

host String

-(Optional, ForceNew) 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

-(Required, ForceNew) 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

-(Optional, ForceNew) 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

-(Required, ForceNew) 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

-(Optional, ForceNew) 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

-(Required, ForceNew) The ID of the CEN instance.

cidrs List

The IP address of the cloud service.

description String

The description of the cloud service.

host String

-(Optional, ForceNew) 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
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.