getRouteServices

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

NOTE: Available in v1.102.0+

Example Usage

Basic Usage

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()));
}
}

Return

A collection of values returned by getRouteServices.

Parameters

argument

A collection of arguments for invoking getRouteServices.


suspend fun getRouteServices(accessRegionId: String? = null, cenId: String, host: String? = null, hostRegionId: String? = null, hostVpcId: String? = null, outputFile: String? = null, status: String? = null): GetRouteServicesResult

Return

A collection of values returned by getRouteServices.

See also

Parameters

accessRegionId

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

cenId

The ID of the CEN instance.

host

The domain name or IP address of the cloud service.

hostRegionId

The region of the cloud service.

hostVpcId

The VPC associated with the cloud service.

outputFile

File name where to save data source results (after running pulumi preview).

status

The status of the cloud service. Valid values: Active, Creating and Deleting.


Return

A collection of values returned by getRouteServices.

See also

Parameters

argument

Builder for com.pulumi.alicloud.cen.kotlin.inputs.GetRouteServicesPlainArgs.