1. Registry
  2. Packages
  3. Alibaba Cloud Provider
  4. API Docs
  5. apig
  6. getServices
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi
alicloud logo alicloud logo
Viewing docs for Alibaba Cloud v3.108.0
published on Thursday, Sep 17, 2026 by Pulumi

    This data source provides APIG Service available to the user. What is Service

    NOTE: Available since v1.286.0.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "terraform-example";
    const address = config.get("address") || "127.0.0.1:8080";
    const address1 = config.get("address1") || "127.0.0.1:7891";
    const address2 = config.get("address2") || "127.0.0.1:7890";
    const defaultvpc = new alicloud.vpc.Network("defaultvpc", {
        cidrBlock: "172.32.0.0/12",
        vpcName: "zhenyuan-example",
    });
    const defaultvswitch = new alicloud.vpc.Switch("defaultvswitch", {
        vpcId: defaultvpc.id,
        zoneId: "cn-hangzhou-g",
        cidrBlock: "172.32.100.0/24",
        vswitchName: "zhenyuan-example",
    });
    const defaultFsRKYn = new alicloud.apig.Gateway("defaultFsRKYn", {
        networkAccessConfig: {
            type: "Intranet",
        },
        vswitch: {
            vswitchId: defaultvswitch.id,
            name: defaultvswitch.vswitchName,
        },
        zoneConfig: {
            selectOption: "Auto",
        },
        vpc: {
            vpcId: defaultvpc.id,
        },
        paymentType: "PayAsYouGo",
        gatewayName: "zhenyuanexample",
        spec: "apigw.small.x1",
        logConfig: {
            sls: {
                enable: false,
            },
        },
    });
    const defaultService = new alicloud.apig.Service("default", {
        addresses: [address],
        serviceName: "1784264568",
        sourceType: "VIP",
        gatewayId: defaultFsRKYn.id,
        namespace: "default",
    });
    const _default = alicloud.apig.getServicesOutput({
        ids: [defaultService.id],
        nameRegex: defaultService.serviceName,
        gatewayId: defaultFsRKYn.id,
        sourceType: "VIP",
    });
    export const alicloudApigServiceExampleId = _default.apply(_default => _default.services?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "terraform-example"
    address = config.get("address")
    if address is None:
        address = "127.0.0.1:8080"
    address1 = config.get("address1")
    if address1 is None:
        address1 = "127.0.0.1:7891"
    address2 = config.get("address2")
    if address2 is None:
        address2 = "127.0.0.1:7890"
    defaultvpc = alicloud.vpc.Network("defaultvpc",
        cidr_block="172.32.0.0/12",
        vpc_name="zhenyuan-example")
    defaultvswitch = alicloud.vpc.Switch("defaultvswitch",
        vpc_id=defaultvpc.id,
        zone_id="cn-hangzhou-g",
        cidr_block="172.32.100.0/24",
        vswitch_name="zhenyuan-example")
    default_fs_rk_yn = alicloud.apig.Gateway("defaultFsRKYn",
        network_access_config={
            "type": "Intranet",
        },
        vswitch={
            "vswitch_id": defaultvswitch.id,
            "name": defaultvswitch.vswitch_name,
        },
        zone_config={
            "select_option": "Auto",
        },
        vpc={
            "vpc_id": defaultvpc.id,
        },
        payment_type="PayAsYouGo",
        gateway_name="zhenyuanexample",
        spec="apigw.small.x1",
        log_config={
            "sls": {
                "enable": False,
            },
        })
    default_service = alicloud.apig.Service("default",
        addresses=[address],
        service_name="1784264568",
        source_type="VIP",
        gateway_id=default_fs_rk_yn.id,
        namespace="default")
    default = alicloud.apig.get_services_output(ids=[default_service.id],
        name_regex=default_service.service_name,
        gateway_id=default_fs_rk_yn.id,
        source_type="VIP")
    pulumi.export("alicloudApigServiceExampleId", default.services[0].id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apig"
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		name := "terraform-example"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		address := "127.0.0.1:8080"
    		if param := cfg.Get("address"); param != "" {
    			address = param
    		}
    		address1 := "127.0.0.1:7891"
    		if param := cfg.Get("address1"); param != "" {
    			address1 = param
    		}
    		address2 := "127.0.0.1:7890"
    		if param := cfg.Get("address2"); param != "" {
    			address2 = param
    		}
    		defaultvpc, err := vpc.NewNetwork(ctx, "defaultvpc", &vpc.NetworkArgs{
    			CidrBlock: pulumi.String("172.32.0.0/12"),
    			VpcName:   pulumi.String("zhenyuan-example"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultvswitch, err := vpc.NewSwitch(ctx, "defaultvswitch", &vpc.SwitchArgs{
    			VpcId:       defaultvpc.ID().ToIDOutput().ToStringOutput(),
    			ZoneId:      pulumi.String("cn-hangzhou-g"),
    			CidrBlock:   pulumi.String("172.32.100.0/24"),
    			VswitchName: pulumi.String("zhenyuan-example"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultFsRKYn, err := apig.NewGateway(ctx, "defaultFsRKYn", &apig.GatewayArgs{
    			NetworkAccessConfig: &apig.GatewayNetworkAccessConfigArgs{
    				Type: pulumi.String("Intranet"),
    			},
    			Vswitch: &apig.GatewayVswitchArgs{
    				VswitchId: defaultvswitch.ID().ToIDOutput().ToStringOutput(),
    				Name:      defaultvswitch.VswitchName,
    			},
    			ZoneConfig: &apig.GatewayZoneConfigArgs{
    				SelectOption: pulumi.String("Auto"),
    			},
    			Vpc: &apig.GatewayVpcArgs{
    				VpcId: defaultvpc.ID().ToIDOutput().ToStringOutput(),
    			},
    			PaymentType: pulumi.String("PayAsYouGo"),
    			GatewayName: pulumi.String("zhenyuanexample"),
    			Spec:        pulumi.String("apigw.small.x1"),
    			LogConfig: &apig.GatewayLogConfigArgs{
    				Sls: &apig.GatewayLogConfigSlsArgs{
    					Enable: pulumi.Bool(false),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		defaultService, err := apig.NewService(ctx, "default", &apig.ServiceArgs{
    			Addresses: pulumi.StringArray{
    				pulumi.String(address),
    			},
    			ServiceName: pulumi.String("1784264568"),
    			SourceType:  pulumi.String("VIP"),
    			GatewayId:   defaultFsRKYn.ID().ToIDOutput().ToStringOutput(),
    			Namespace:   pulumi.String("default"),
    		})
    		if err != nil {
    			return err
    		}
    		_default := apig.GetServicesOutput(ctx, apig.GetServicesOutputArgs{
    			Ids: pulumi.StringArray{
    				defaultService.ID().ToIDOutput().ToStringOutput(),
    			},
    			NameRegex:  defaultService.ServiceName,
    			GatewayId:  defaultFsRKYn.ID().ToIDOutput().ToStringOutput(),
    			SourceType: pulumi.String("VIP"),
    		}, nil)
    		ctx.Export("alicloudApigServiceExampleId", _default.ApplyT(func(_default apig.GetServicesResult) (*string, error) {
    			return _default.Services[0].Id, nil
    		}).(pulumi.StringPtrOutput))
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var name = config.Get("name") ?? "terraform-example";
        var address = config.Get("address") ?? "127.0.0.1:8080";
        var address1 = config.Get("address1") ?? "127.0.0.1:7891";
        var address2 = config.Get("address2") ?? "127.0.0.1:7890";
        var defaultvpc = new AliCloud.Vpc.Network("defaultvpc", new()
        {
            CidrBlock = "172.32.0.0/12",
            VpcName = "zhenyuan-example",
        });
    
        var defaultvswitch = new AliCloud.Vpc.Switch("defaultvswitch", new()
        {
            VpcId = defaultvpc.Id,
            ZoneId = "cn-hangzhou-g",
            CidrBlock = "172.32.100.0/24",
            VswitchName = "zhenyuan-example",
        });
    
        var defaultFsRKYn = new AliCloud.Apig.Gateway("defaultFsRKYn", new()
        {
            NetworkAccessConfig = new AliCloud.Apig.Inputs.GatewayNetworkAccessConfigArgs
            {
                Type = "Intranet",
            },
            Vswitch = new AliCloud.Apig.Inputs.GatewayVswitchArgs
            {
                VswitchId = defaultvswitch.Id,
                Name = defaultvswitch.VswitchName,
            },
            ZoneConfig = new AliCloud.Apig.Inputs.GatewayZoneConfigArgs
            {
                SelectOption = "Auto",
            },
            Vpc = new AliCloud.Apig.Inputs.GatewayVpcArgs
            {
                VpcId = defaultvpc.Id,
            },
            PaymentType = "PayAsYouGo",
            GatewayName = "zhenyuanexample",
            Spec = "apigw.small.x1",
            LogConfig = new AliCloud.Apig.Inputs.GatewayLogConfigArgs
            {
                Sls = new AliCloud.Apig.Inputs.GatewayLogConfigSlsArgs
                {
                    Enable = false,
                },
            },
        });
    
        var defaultService = new AliCloud.Apig.Service("default", new()
        {
            Addresses = new[]
            {
                address,
            },
            ServiceName = "1784264568",
            SourceType = "VIP",
            GatewayId = defaultFsRKYn.Id,
            Namespace = "default",
        });
    
        var @default = AliCloud.Apig.GetServices.Invoke(new()
        {
            Ids = new[]
            {
                defaultService.Id,
            },
            NameRegex = defaultService.ServiceName,
            GatewayId = defaultFsRKYn.Id,
            SourceType = "VIP",
        });
    
        return new Dictionary<string, object?>
        {
            ["alicloudApigServiceExampleId"] = @default.Apply(@default => @default.Apply(getServicesResult => getServicesResult.Services[0]?.Id)),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.vpc.Network;
    import com.pulumi.alicloud.vpc.NetworkArgs;
    import com.pulumi.alicloud.vpc.Switch;
    import com.pulumi.alicloud.vpc.SwitchArgs;
    import com.pulumi.alicloud.apig.Gateway;
    import com.pulumi.alicloud.apig.GatewayArgs;
    import com.pulumi.alicloud.apig.inputs.GatewayNetworkAccessConfigArgs;
    import com.pulumi.alicloud.apig.inputs.GatewayVswitchArgs;
    import com.pulumi.alicloud.apig.inputs.GatewayZoneConfigArgs;
    import com.pulumi.alicloud.apig.inputs.GatewayVpcArgs;
    import com.pulumi.alicloud.apig.inputs.GatewayLogConfigArgs;
    import com.pulumi.alicloud.apig.inputs.GatewayLogConfigSlsArgs;
    import com.pulumi.alicloud.apig.Service;
    import com.pulumi.alicloud.apig.ServiceArgs;
    import com.pulumi.alicloud.apig.ApigFunctions;
    import com.pulumi.alicloud.apig.inputs.GetServicesArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 config = ctx.config();
            final var name = config.get("name").orElse("terraform-example");
            final var address = config.get("address").orElse("127.0.0.1:8080");
            final var address1 = config.get("address1").orElse("127.0.0.1:7891");
            final var address2 = config.get("address2").orElse("127.0.0.1:7890");
            var defaultvpc = new Network("defaultvpc", NetworkArgs.builder()
                .cidrBlock("172.32.0.0/12")
                .vpcName("zhenyuan-example")
                .build());
    
            var defaultvswitch = new Switch("defaultvswitch", SwitchArgs.builder()
                .vpcId(defaultvpc.id())
                .zoneId("cn-hangzhou-g")
                .cidrBlock("172.32.100.0/24")
                .vswitchName("zhenyuan-example")
                .build());
    
            var defaultFsRKYn = new Gateway("defaultFsRKYn", GatewayArgs.builder()
                .networkAccessConfig(GatewayNetworkAccessConfigArgs.builder()
                    .type("Intranet")
                    .build())
                .vswitch(GatewayVswitchArgs.builder()
                    .vswitchId(defaultvswitch.id())
                    .name(defaultvswitch.vswitchName())
                    .build())
                .zoneConfig(GatewayZoneConfigArgs.builder()
                    .selectOption("Auto")
                    .build())
                .vpc(GatewayVpcArgs.builder()
                    .vpcId(defaultvpc.id())
                    .build())
                .paymentType("PayAsYouGo")
                .gatewayName("zhenyuanexample")
                .spec("apigw.small.x1")
                .logConfig(GatewayLogConfigArgs.builder()
                    .sls(GatewayLogConfigSlsArgs.builder()
                        .enable(false)
                        .build())
                    .build())
                .build());
    
            var defaultService = new Service("defaultService", ServiceArgs.builder()
                .addresses(address)
                .serviceName("1784264568")
                .sourceType("VIP")
                .gatewayId(defaultFsRKYn.id())
                .namespace("default")
                .build());
    
            final var default = ApigFunctions.getServices(GetServicesArgs.builder()
                .ids(defaultService.id())
                .nameRegex(defaultService.serviceName())
                .gatewayId(defaultFsRKYn.id())
                .sourceType("VIP")
                .build());
    
            ctx.export("alicloudApigServiceExampleId", default_.applyValue(_default_ -> _default_.services()[0].id()));
        }
    }
    
    configuration:
      name:
        type: string
        default: terraform-example
      address:
        type: string
        default: 127.0.0.1:8080
      address1:
        type: string
        default: 127.0.0.1:7891
      address2:
        type: string
        default: 127.0.0.1:7890
    resources:
      defaultvpc:
        type: alicloud:vpc:Network
        properties:
          cidrBlock: 172.32.0.0/12
          vpcName: zhenyuan-example
      defaultvswitch:
        type: alicloud:vpc:Switch
        properties:
          vpcId: ${defaultvpc.id}
          zoneId: cn-hangzhou-g
          cidrBlock: 172.32.100.0/24
          vswitchName: zhenyuan-example
      defaultFsRKYn:
        type: alicloud:apig:Gateway
        properties:
          networkAccessConfig:
            type: Intranet
          vswitch:
            vswitchId: ${defaultvswitch.id}
            name: ${defaultvswitch.vswitchName}
          zoneConfig:
            selectOption: Auto
          vpc:
            vpcId: ${defaultvpc.id}
          paymentType: PayAsYouGo
          gatewayName: zhenyuanexample
          spec: apigw.small.x1
          logConfig:
            sls:
              enable: false
      defaultService:
        type: alicloud:apig:Service
        name: default
        properties:
          addresses:
            - ${address}
          serviceName: '1784264568'
          sourceType: VIP
          gatewayId: ${defaultFsRKYn.id}
          namespace: default
    variables:
      default:
        fn::invoke:
          function: alicloud:apig:getServices
          arguments:
            ids:
              - ${defaultService.id}
            nameRegex: ${defaultService.serviceName}
            gatewayId: ${defaultFsRKYn.id}
            sourceType: VIP
    outputs:
      alicloudApigServiceExampleId: ${default.services[0].id}
    
    pulumi {
      required_providers {
        alicloud = {
          source = "pulumi/alicloud"
        }
      }
    }
    
    data "alicloud_apig_getservices" "default" {
      ids         = [alicloud_apig_service.default.id]
      name_regex  = alicloud_apig_service.default.service_name
      gateway_id  = alicloud_apig_gateway.defaultFsRKYn.id
      source_type = "VIP"
    }
    
    resource "alicloud_vpc_network" "defaultvpc" {
      cidr_block = "172.32.0.0/12"
      vpc_name   = "zhenyuan-example"
    }
    resource "alicloud_vpc_switch" "defaultvswitch" {
      vpc_id       = alicloud_vpc_network.defaultvpc.id
      zone_id      = "cn-hangzhou-g"
      cidr_block   = "172.32.100.0/24"
      vswitch_name = "zhenyuan-example"
    }
    resource "alicloud_apig_gateway" "defaultFsRKYn" {
      network_access_config = {
        type = "Intranet"
      }
      vswitch = {
        vswitch_id = alicloud_vpc_switch.defaultvswitch.id
        name       = alicloud_vpc_switch.defaultvswitch.vswitch_name
      }
      zone_config = {
        select_option = "Auto"
      }
      vpc = {
        vpc_id = alicloud_vpc_network.defaultvpc.id
      }
      payment_type = "PayAsYouGo"
      gateway_name = "zhenyuanexample"
      spec         = "apigw.small.x1"
      log_config = {
        sls = {
          enable = false
        }
      }
    }
    resource "alicloud_apig_service" "default" {
      addresses    = [var.address]
      service_name = "1784264568"
      source_type  = "VIP"
      gateway_id   = alicloud_apig_gateway.defaultFsRKYn.id
      namespace    = "default"
    }
    variable "name" {
      type    = string
      default = "terraform-example"
    }
    variable "address" {
      type    = string
      default = "127.0.0.1:8080"
    }
    variable "address1" {
      type    = string
      default = "127.0.0.1:7891"
    }
    variable "address2" {
      type    = string
      default = "127.0.0.1:7890"
    }
    output "alicloudApigServiceExampleId" {
      value = data.alicloud_apig_getservices.default.services[0].id
    }
    

    Using getServices

    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 getServices(args: GetServicesArgs, opts?: InvokeOptions): Promise<GetServicesResult>
    function getServicesOutput(args: GetServicesOutputArgs, opts?: InvokeOutputOptions): Output<GetServicesResult>
    def get_services(gateway_id: Optional[str] = None,
                     ids: Optional[Sequence[str]] = None,
                     name_regex: Optional[str] = None,
                     output_file: Optional[str] = None,
                     resource_group_id: Optional[str] = None,
                     source_type: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetServicesResult
    def get_services_output(gateway_id: pulumi.Input[Optional[str]] = None,
                     ids: pulumi.Input[Optional[Sequence[pulumi.Input[str]]]] = None,
                     name_regex: pulumi.Input[Optional[str]] = None,
                     output_file: pulumi.Input[Optional[str]] = None,
                     resource_group_id: pulumi.Input[Optional[str]] = None,
                     source_type: pulumi.Input[Optional[str]] = None,
                     opts: Optional[InvokeOutputOptions] = None) -> Output[GetServicesResult]
    func GetServices(ctx *Context, args *GetServicesArgs, opts ...InvokeOption) (*GetServicesResult, error)
    func GetServicesOutput(ctx *Context, args *GetServicesOutputArgs, opts ...InvokeOption) GetServicesResultOutput

    > Note: This function is named GetServices in the Go SDK.

    public static class GetServices 
    {
        public static Task<GetServicesResult> InvokeAsync(GetServicesArgs args, InvokeOptions? opts = null)
        public static Output<GetServicesResult> Invoke(GetServicesInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetServicesResult> Invoke(GetServicesInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetServicesResult> getServices(GetServicesArgs args, InvokeOptions options)
    public static Output<GetServicesResult> getServices(GetServicesArgs args, InvokeOptions options)
    public static Output<GetServicesResult> getServices(GetServicesArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: alicloud:apig/getServices:getServices
      arguments:
        # arguments dictionary
    data "alicloud_apig_get_services" "name" {
        # arguments
    }

    The following arguments are supported:

    GatewayId string
    The ID of the Cloud Native API Gateway.
    Ids List<string>
    A list of Service IDs.
    NameRegex string
    A regex string to filter results by APIG Service name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ResourceGroupId string
    The ID of the resource group
    SourceType string
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI
    GatewayId string
    The ID of the Cloud Native API Gateway.
    Ids []string
    A list of Service IDs.
    NameRegex string
    A regex string to filter results by APIG Service name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    ResourceGroupId string
    The ID of the resource group
    SourceType string
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI
    gateway_id string
    The ID of the Cloud Native API Gateway.
    ids list(string)
    A list of Service IDs.
    name_regex string
    A regex string to filter results by APIG Service name.
    output_file string
    File name where to save data source results (after running pulumi preview).
    resource_group_id string
    The ID of the resource group
    source_type string
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI
    gatewayId String
    The ID of the Cloud Native API Gateway.
    ids List<String>
    A list of Service IDs.
    nameRegex String
    A regex string to filter results by APIG Service name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    resourceGroupId String
    The ID of the resource group
    sourceType String
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI
    gatewayId string
    The ID of the Cloud Native API Gateway.
    ids string[]
    A list of Service IDs.
    nameRegex string
    A regex string to filter results by APIG Service name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    resourceGroupId string
    The ID of the resource group
    sourceType string
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI
    gateway_id str
    The ID of the Cloud Native API Gateway.
    ids Sequence[str]
    A list of Service IDs.
    name_regex str
    A regex string to filter results by APIG Service name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    resource_group_id str
    The ID of the resource group
    source_type str
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI
    gatewayId String
    The ID of the Cloud Native API Gateway.
    ids List<String>
    A list of Service IDs.
    nameRegex String
    A regex string to filter results by APIG Service name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    resourceGroupId String
    The ID of the resource group
    sourceType String
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI

    getServices Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of Service IDs.
    Names List<string>
    A list of name of Services.
    Services List<Pulumi.AliCloud.Apig.Outputs.GetServicesService>
    A list of Service Entries. Each element contains the following attributes:
    GatewayId string
    The ID of the Cloud Native API Gateway.
    NameRegex string
    OutputFile string
    ResourceGroupId string
    The ID of the resource group.
    SourceType string
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of Service IDs.
    Names []string
    A list of name of Services.
    Services []GetServicesService
    A list of Service Entries. Each element contains the following attributes:
    GatewayId string
    The ID of the Cloud Native API Gateway.
    NameRegex string
    OutputFile string
    ResourceGroupId string
    The ID of the resource group.
    SourceType string
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI.
    id string
    The provider-assigned unique ID for this managed resource.
    ids list(string)
    A list of Service IDs.
    names list(string)
    A list of name of Services.
    services list(object)
    A list of Service Entries. Each element contains the following attributes:
    gateway_id string
    The ID of the Cloud Native API Gateway.
    name_regex string
    output_file string
    resource_group_id string
    The ID of the resource group.
    source_type string
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Service IDs.
    names List<String>
    A list of name of Services.
    services List<GetServicesService>
    A list of Service Entries. Each element contains the following attributes:
    gatewayId String
    The ID of the Cloud Native API Gateway.
    nameRegex String
    outputFile String
    resourceGroupId String
    The ID of the resource group.
    sourceType String
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI.
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of Service IDs.
    names string[]
    A list of name of Services.
    services GetServicesService[]
    A list of Service Entries. Each element contains the following attributes:
    gatewayId string
    The ID of the Cloud Native API Gateway.
    nameRegex string
    outputFile string
    resourceGroupId string
    The ID of the resource group.
    sourceType string
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI.
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of Service IDs.
    names Sequence[str]
    A list of name of Services.
    services Sequence[GetServicesService]
    A list of Service Entries. Each element contains the following attributes:
    gateway_id str
    The ID of the Cloud Native API Gateway.
    name_regex str
    output_file str
    resource_group_id str
    The ID of the resource group.
    source_type str
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI.
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Service IDs.
    names List<String>
    A list of name of Services.
    services List<Property Map>
    A list of Service Entries. Each element contains the following attributes:
    gatewayId String
    The ID of the Cloud Native API Gateway.
    nameRegex String
    outputFile String
    resourceGroupId String
    The ID of the resource group.
    sourceType String
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI.

    Supporting Types

    GetServicesService

    Addresses List<string>
    A list of domain names or fixed addresses.
    CreateTimestamp int
    Creation timestamp.
    DnsServers List<string>
    DNS servers.
    ExpressType string
    Express type.
    GatewayId string
    The ID of the Cloud Native API Gateway.
    HealthCheckConfigs List<Pulumi.AliCloud.Apig.Inputs.GetServicesServiceHealthCheckConfig>
    Health check configuration.
    HealthStatus string
    Health status.
    HealthyPanicThreshold double
    Healthy panic threshold.
    Id string
    The ID of the resource supplied above.
    Namespace string
    The namespace of the service.
    OutlierDetectionConfigs List<Pulumi.AliCloud.Apig.Inputs.GetServicesServiceOutlierDetectionConfig>
    Outlier detection configuration.
    OutlierEndpoints List<string>
    Outlier endpoints.
    Ports List<Pulumi.AliCloud.Apig.Inputs.GetServicesServicePort>
    Port information.
    Protocol string
    Service protocol.
    Qualifier string
    The function version or alias.
    ResourceGroupId string
    The ID of the resource group
    RuntimeDetailErrorCode string
    Runtime detail error code.
    RuntimeDetailStatus string
    Runtime detail status.
    ServiceId string
    service id.
    ServiceName string
    Service Name, need to fill in manually when sourceType is VIP/DNS/AI.
    SourceType string
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI
    UnhealthyEndpoints List<string>
    Unhealthy endpoints.
    UpdateTimestamp int
    Update timestamp.
    Addresses []string
    A list of domain names or fixed addresses.
    CreateTimestamp int
    Creation timestamp.
    DnsServers []string
    DNS servers.
    ExpressType string
    Express type.
    GatewayId string
    The ID of the Cloud Native API Gateway.
    HealthCheckConfigs []GetServicesServiceHealthCheckConfig
    Health check configuration.
    HealthStatus string
    Health status.
    HealthyPanicThreshold float64
    Healthy panic threshold.
    Id string
    The ID of the resource supplied above.
    Namespace string
    The namespace of the service.
    OutlierDetectionConfigs []GetServicesServiceOutlierDetectionConfig
    Outlier detection configuration.
    OutlierEndpoints []string
    Outlier endpoints.
    Ports []GetServicesServicePort
    Port information.
    Protocol string
    Service protocol.
    Qualifier string
    The function version or alias.
    ResourceGroupId string
    The ID of the resource group
    RuntimeDetailErrorCode string
    Runtime detail error code.
    RuntimeDetailStatus string
    Runtime detail status.
    ServiceId string
    service id.
    ServiceName string
    Service Name, need to fill in manually when sourceType is VIP/DNS/AI.
    SourceType string
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI
    UnhealthyEndpoints []string
    Unhealthy endpoints.
    UpdateTimestamp int
    Update timestamp.
    addresses list(string)
    A list of domain names or fixed addresses.
    create_timestamp number
    Creation timestamp.
    dns_servers list(string)
    DNS servers.
    express_type string
    Express type.
    gateway_id string
    The ID of the Cloud Native API Gateway.
    health_check_configs list(object)
    Health check configuration.
    health_status string
    Health status.
    healthy_panic_threshold number
    Healthy panic threshold.
    id string
    The ID of the resource supplied above.
    namespace string
    The namespace of the service.
    outlier_detection_configs list(object)
    Outlier detection configuration.
    outlier_endpoints list(string)
    Outlier endpoints.
    ports list(object)
    Port information.
    protocol string
    Service protocol.
    qualifier string
    The function version or alias.
    resource_group_id string
    The ID of the resource group
    runtime_detail_error_code string
    Runtime detail error code.
    runtime_detail_status string
    Runtime detail status.
    service_id string
    service id.
    service_name string
    Service Name, need to fill in manually when sourceType is VIP/DNS/AI.
    source_type string
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI
    unhealthy_endpoints list(string)
    Unhealthy endpoints.
    update_timestamp number
    Update timestamp.
    addresses List<String>
    A list of domain names or fixed addresses.
    createTimestamp Integer
    Creation timestamp.
    dnsServers List<String>
    DNS servers.
    expressType String
    Express type.
    gatewayId String
    The ID of the Cloud Native API Gateway.
    healthCheckConfigs List<GetServicesServiceHealthCheckConfig>
    Health check configuration.
    healthStatus String
    Health status.
    healthyPanicThreshold Double
    Healthy panic threshold.
    id String
    The ID of the resource supplied above.
    namespace String
    The namespace of the service.
    outlierDetectionConfigs List<GetServicesServiceOutlierDetectionConfig>
    Outlier detection configuration.
    outlierEndpoints List<String>
    Outlier endpoints.
    ports List<GetServicesServicePort>
    Port information.
    protocol String
    Service protocol.
    qualifier String
    The function version or alias.
    resourceGroupId String
    The ID of the resource group
    runtimeDetailErrorCode String
    Runtime detail error code.
    runtimeDetailStatus String
    Runtime detail status.
    serviceId String
    service id.
    serviceName String
    Service Name, need to fill in manually when sourceType is VIP/DNS/AI.
    sourceType String
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI
    unhealthyEndpoints List<String>
    Unhealthy endpoints.
    updateTimestamp Integer
    Update timestamp.
    addresses string[]
    A list of domain names or fixed addresses.
    createTimestamp number
    Creation timestamp.
    dnsServers string[]
    DNS servers.
    expressType string
    Express type.
    gatewayId string
    The ID of the Cloud Native API Gateway.
    healthCheckConfigs GetServicesServiceHealthCheckConfig[]
    Health check configuration.
    healthStatus string
    Health status.
    healthyPanicThreshold number
    Healthy panic threshold.
    id string
    The ID of the resource supplied above.
    namespace string
    The namespace of the service.
    outlierDetectionConfigs GetServicesServiceOutlierDetectionConfig[]
    Outlier detection configuration.
    outlierEndpoints string[]
    Outlier endpoints.
    ports GetServicesServicePort[]
    Port information.
    protocol string
    Service protocol.
    qualifier string
    The function version or alias.
    resourceGroupId string
    The ID of the resource group
    runtimeDetailErrorCode string
    Runtime detail error code.
    runtimeDetailStatus string
    Runtime detail status.
    serviceId string
    service id.
    serviceName string
    Service Name, need to fill in manually when sourceType is VIP/DNS/AI.
    sourceType string
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI
    unhealthyEndpoints string[]
    Unhealthy endpoints.
    updateTimestamp number
    Update timestamp.
    addresses Sequence[str]
    A list of domain names or fixed addresses.
    create_timestamp int
    Creation timestamp.
    dns_servers Sequence[str]
    DNS servers.
    express_type str
    Express type.
    gateway_id str
    The ID of the Cloud Native API Gateway.
    health_check_configs Sequence[GetServicesServiceHealthCheckConfig]
    Health check configuration.
    health_status str
    Health status.
    healthy_panic_threshold float
    Healthy panic threshold.
    id str
    The ID of the resource supplied above.
    namespace str
    The namespace of the service.
    outlier_detection_configs Sequence[GetServicesServiceOutlierDetectionConfig]
    Outlier detection configuration.
    outlier_endpoints Sequence[str]
    Outlier endpoints.
    ports Sequence[GetServicesServicePort]
    Port information.
    protocol str
    Service protocol.
    qualifier str
    The function version or alias.
    resource_group_id str
    The ID of the resource group
    runtime_detail_error_code str
    Runtime detail error code.
    runtime_detail_status str
    Runtime detail status.
    service_id str
    service id.
    service_name str
    Service Name, need to fill in manually when sourceType is VIP/DNS/AI.
    source_type str
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI
    unhealthy_endpoints Sequence[str]
    Unhealthy endpoints.
    update_timestamp int
    Update timestamp.
    addresses List<String>
    A list of domain names or fixed addresses.
    createTimestamp Number
    Creation timestamp.
    dnsServers List<String>
    DNS servers.
    expressType String
    Express type.
    gatewayId String
    The ID of the Cloud Native API Gateway.
    healthCheckConfigs List<Property Map>
    Health check configuration.
    healthStatus String
    Health status.
    healthyPanicThreshold Number
    Healthy panic threshold.
    id String
    The ID of the resource supplied above.
    namespace String
    The namespace of the service.
    outlierDetectionConfigs List<Property Map>
    Outlier detection configuration.
    outlierEndpoints List<String>
    Outlier endpoints.
    ports List<Property Map>
    Port information.
    protocol String
    Service protocol.
    qualifier String
    The function version or alias.
    resourceGroupId String
    The ID of the resource group
    runtimeDetailErrorCode String
    Runtime detail error code.
    runtimeDetailStatus String
    Runtime detail status.
    serviceId String
    service id.
    serviceName String
    Service Name, need to fill in manually when sourceType is VIP/DNS/AI.
    sourceType String
    service source type, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI
    unhealthyEndpoints List<String>
    Unhealthy endpoints.
    updateTimestamp Number
    Update timestamp.

    GetServicesServiceHealthCheckConfig

    Enable bool
    Whether to enable outlier detection.
    ExpectedStatuses List<string>
    Expected HTTP status codes.
    HealthyThreshold int
    Healthy threshold.
    HttpHost string
    Health check host (optional when protocol is HTTP).
    HttpPath string
    Health check path (required when protocol is HTTP).
    Interval int
    Detection interval.
    Protocol string
    Service protocol.
    Timeout int
    Health check response timeout.
    UnhealthyThreshold int
    Unhealthy threshold.
    Enable bool
    Whether to enable outlier detection.
    ExpectedStatuses []string
    Expected HTTP status codes.
    HealthyThreshold int
    Healthy threshold.
    HttpHost string
    Health check host (optional when protocol is HTTP).
    HttpPath string
    Health check path (required when protocol is HTTP).
    Interval int
    Detection interval.
    Protocol string
    Service protocol.
    Timeout int
    Health check response timeout.
    UnhealthyThreshold int
    Unhealthy threshold.
    enable bool
    Whether to enable outlier detection.
    expected_statuses list(string)
    Expected HTTP status codes.
    healthy_threshold number
    Healthy threshold.
    http_host string
    Health check host (optional when protocol is HTTP).
    http_path string
    Health check path (required when protocol is HTTP).
    interval number
    Detection interval.
    protocol string
    Service protocol.
    timeout number
    Health check response timeout.
    unhealthy_threshold number
    Unhealthy threshold.
    enable Boolean
    Whether to enable outlier detection.
    expectedStatuses List<String>
    Expected HTTP status codes.
    healthyThreshold Integer
    Healthy threshold.
    httpHost String
    Health check host (optional when protocol is HTTP).
    httpPath String
    Health check path (required when protocol is HTTP).
    interval Integer
    Detection interval.
    protocol String
    Service protocol.
    timeout Integer
    Health check response timeout.
    unhealthyThreshold Integer
    Unhealthy threshold.
    enable boolean
    Whether to enable outlier detection.
    expectedStatuses string[]
    Expected HTTP status codes.
    healthyThreshold number
    Healthy threshold.
    httpHost string
    Health check host (optional when protocol is HTTP).
    httpPath string
    Health check path (required when protocol is HTTP).
    interval number
    Detection interval.
    protocol string
    Service protocol.
    timeout number
    Health check response timeout.
    unhealthyThreshold number
    Unhealthy threshold.
    enable bool
    Whether to enable outlier detection.
    expected_statuses Sequence[str]
    Expected HTTP status codes.
    healthy_threshold int
    Healthy threshold.
    http_host str
    Health check host (optional when protocol is HTTP).
    http_path str
    Health check path (required when protocol is HTTP).
    interval int
    Detection interval.
    protocol str
    Service protocol.
    timeout int
    Health check response timeout.
    unhealthy_threshold int
    Unhealthy threshold.
    enable Boolean
    Whether to enable outlier detection.
    expectedStatuses List<String>
    Expected HTTP status codes.
    healthyThreshold Number
    Healthy threshold.
    httpHost String
    Health check host (optional when protocol is HTTP).
    httpPath String
    Health check path (required when protocol is HTTP).
    interval Number
    Detection interval.
    protocol String
    Service protocol.
    timeout Number
    Health check response timeout.
    unhealthyThreshold Number
    Unhealthy threshold.

    GetServicesServiceOutlierDetectionConfig

    BaseEjectionTime int
    Base ejection time.
    Enable bool
    Whether to enable outlier detection.
    FailurePercentageMinimumHosts int
    Failure percentage minimum hosts.
    FailurePercentageThreshold int
    Failure percentage threshold.
    Interval int
    Detection interval.
    BaseEjectionTime int
    Base ejection time.
    Enable bool
    Whether to enable outlier detection.
    FailurePercentageMinimumHosts int
    Failure percentage minimum hosts.
    FailurePercentageThreshold int
    Failure percentage threshold.
    Interval int
    Detection interval.
    base_ejection_time number
    Base ejection time.
    enable bool
    Whether to enable outlier detection.
    failure_percentage_minimum_hosts number
    Failure percentage minimum hosts.
    failure_percentage_threshold number
    Failure percentage threshold.
    interval number
    Detection interval.
    baseEjectionTime Integer
    Base ejection time.
    enable Boolean
    Whether to enable outlier detection.
    failurePercentageMinimumHosts Integer
    Failure percentage minimum hosts.
    failurePercentageThreshold Integer
    Failure percentage threshold.
    interval Integer
    Detection interval.
    baseEjectionTime number
    Base ejection time.
    enable boolean
    Whether to enable outlier detection.
    failurePercentageMinimumHosts number
    Failure percentage minimum hosts.
    failurePercentageThreshold number
    Failure percentage threshold.
    interval number
    Detection interval.
    base_ejection_time int
    Base ejection time.
    enable bool
    Whether to enable outlier detection.
    failure_percentage_minimum_hosts int
    Failure percentage minimum hosts.
    failure_percentage_threshold int
    Failure percentage threshold.
    interval int
    Detection interval.
    baseEjectionTime Number
    Base ejection time.
    enable Boolean
    Whether to enable outlier detection.
    failurePercentageMinimumHosts Number
    Failure percentage minimum hosts.
    failurePercentageThreshold Number
    Failure percentage threshold.
    interval Number
    Detection interval.

    GetServicesServicePort

    Name string
    Port name.
    Port int
    Port number.
    Protocol string
    Service protocol.
    Name string
    Port name.
    Port int
    Port number.
    Protocol string
    Service protocol.
    name string
    Port name.
    port number
    Port number.
    protocol string
    Service protocol.
    name String
    Port name.
    port Integer
    Port number.
    protocol String
    Service protocol.
    name string
    Port name.
    port number
    Port number.
    protocol string
    Service protocol.
    name str
    Port name.
    port int
    Port number.
    protocol str
    Service protocol.
    name String
    Port name.
    port Number
    Port number.
    protocol String
    Service protocol.

    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 alicloud logo
    Viewing docs for Alibaba Cloud v3.108.0
    published on Thursday, Sep 17, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial