1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. esa
  5. EdgeContainerApp
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.esa.EdgeContainerApp

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

    Provides a ESA Edge Container App resource.

    For information about ESA Edge Container App and how to use it, see What is Edge Container App.

    NOTE: Available since v1.247.0.

    Example Usage

    Basic Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const config = new pulumi.Config();
    const name = config.get("name") || "tfexample";
    const _default = new alicloud.esa.EdgeContainerApp("default", {
        targetPort: 3000,
        healthCheckHost: "example.com",
        remarks: name,
        healthCheckPort: 80,
        healthCheckUri: "/",
        healthCheckTimeout: 3,
        healthCheckMethod: "HEAD",
        healthCheckHttpCode: "http_2xx",
        healthCheckFailTimes: 5,
        servicePort: 80,
        healthCheckInterval: 5,
        healthCheckSuccTimes: 2,
        edgeContainerAppName: name,
        healthCheckType: "l7",
    });
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    config = pulumi.Config()
    name = config.get("name")
    if name is None:
        name = "tfexample"
    default = alicloud.esa.EdgeContainerApp("default",
        target_port=3000,
        health_check_host="example.com",
        remarks=name,
        health_check_port=80,
        health_check_uri="/",
        health_check_timeout=3,
        health_check_method="HEAD",
        health_check_http_code="http_2xx",
        health_check_fail_times=5,
        service_port=80,
        health_check_interval=5,
        health_check_succ_times=2,
        edge_container_app_name=name,
        health_check_type="l7")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/esa"
    	"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 := "tfexample"
    		if param := cfg.Get("name"); param != "" {
    			name = param
    		}
    		_, err := esa.NewEdgeContainerApp(ctx, "default", &esa.EdgeContainerAppArgs{
    			TargetPort:           pulumi.Int(3000),
    			HealthCheckHost:      pulumi.String("example.com"),
    			Remarks:              pulumi.String(name),
    			HealthCheckPort:      pulumi.Int(80),
    			HealthCheckUri:       pulumi.String("/"),
    			HealthCheckTimeout:   pulumi.Int(3),
    			HealthCheckMethod:    pulumi.String("HEAD"),
    			HealthCheckHttpCode:  pulumi.String("http_2xx"),
    			HealthCheckFailTimes: pulumi.Int(5),
    			ServicePort:          pulumi.Int(80),
    			HealthCheckInterval:  pulumi.Int(5),
    			HealthCheckSuccTimes: pulumi.Int(2),
    			EdgeContainerAppName: pulumi.String(name),
    			HealthCheckType:      pulumi.String("l7"),
    		})
    		if err != nil {
    			return err
    		}
    		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") ?? "tfexample";
        var @default = new AliCloud.Esa.EdgeContainerApp("default", new()
        {
            TargetPort = 3000,
            HealthCheckHost = "example.com",
            Remarks = name,
            HealthCheckPort = 80,
            HealthCheckUri = "/",
            HealthCheckTimeout = 3,
            HealthCheckMethod = "HEAD",
            HealthCheckHttpCode = "http_2xx",
            HealthCheckFailTimes = 5,
            ServicePort = 80,
            HealthCheckInterval = 5,
            HealthCheckSuccTimes = 2,
            EdgeContainerAppName = name,
            HealthCheckType = "l7",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.esa.EdgeContainerApp;
    import com.pulumi.alicloud.esa.EdgeContainerAppArgs;
    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 config = ctx.config();
            final var name = config.get("name").orElse("tfexample");
            var default_ = new EdgeContainerApp("default", EdgeContainerAppArgs.builder()
                .targetPort("3000")
                .healthCheckHost("example.com")
                .remarks(name)
                .healthCheckPort("80")
                .healthCheckUri("/")
                .healthCheckTimeout("3")
                .healthCheckMethod("HEAD")
                .healthCheckHttpCode("http_2xx")
                .healthCheckFailTimes("5")
                .servicePort("80")
                .healthCheckInterval("5")
                .healthCheckSuccTimes("2")
                .edgeContainerAppName(name)
                .healthCheckType("l7")
                .build());
    
        }
    }
    
    configuration:
      name:
        type: string
        default: tfexample
    resources:
      default:
        type: alicloud:esa:EdgeContainerApp
        properties:
          targetPort: '3000'
          healthCheckHost: example.com
          remarks: ${name}
          healthCheckPort: '80'
          healthCheckUri: /
          healthCheckTimeout: '3'
          healthCheckMethod: HEAD
          healthCheckHttpCode: http_2xx
          healthCheckFailTimes: '5'
          servicePort: '80'
          healthCheckInterval: '5'
          healthCheckSuccTimes: '2'
          edgeContainerAppName: ${name}
          healthCheckType: l7
    

    Create EdgeContainerApp Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EdgeContainerApp(name: string, args: EdgeContainerAppArgs, opts?: CustomResourceOptions);
    @overload
    def EdgeContainerApp(resource_name: str,
                         args: EdgeContainerAppArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def EdgeContainerApp(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         edge_container_app_name: Optional[str] = None,
                         target_port: Optional[int] = None,
                         service_port: Optional[int] = None,
                         health_check_port: Optional[int] = None,
                         health_check_interval: Optional[int] = None,
                         health_check_method: Optional[str] = None,
                         health_check_http_code: Optional[str] = None,
                         health_check_succ_times: Optional[int] = None,
                         health_check_timeout: Optional[int] = None,
                         health_check_type: Optional[str] = None,
                         health_check_uri: Optional[str] = None,
                         remarks: Optional[str] = None,
                         health_check_host: Optional[str] = None,
                         health_check_fail_times: Optional[int] = None)
    func NewEdgeContainerApp(ctx *Context, name string, args EdgeContainerAppArgs, opts ...ResourceOption) (*EdgeContainerApp, error)
    public EdgeContainerApp(string name, EdgeContainerAppArgs args, CustomResourceOptions? opts = null)
    public EdgeContainerApp(String name, EdgeContainerAppArgs args)
    public EdgeContainerApp(String name, EdgeContainerAppArgs args, CustomResourceOptions options)
    
    type: alicloud:esa:EdgeContainerApp
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EdgeContainerAppArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EdgeContainerAppArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EdgeContainerAppArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EdgeContainerAppArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EdgeContainerAppArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var edgeContainerAppResource = new AliCloud.Esa.EdgeContainerApp("edgeContainerAppResource", new()
    {
        EdgeContainerAppName = "string",
        TargetPort = 0,
        ServicePort = 0,
        HealthCheckPort = 0,
        HealthCheckInterval = 0,
        HealthCheckMethod = "string",
        HealthCheckHttpCode = "string",
        HealthCheckSuccTimes = 0,
        HealthCheckTimeout = 0,
        HealthCheckType = "string",
        HealthCheckUri = "string",
        Remarks = "string",
        HealthCheckHost = "string",
        HealthCheckFailTimes = 0,
    });
    
    example, err := esa.NewEdgeContainerApp(ctx, "edgeContainerAppResource", &esa.EdgeContainerAppArgs{
    	EdgeContainerAppName: pulumi.String("string"),
    	TargetPort:           pulumi.Int(0),
    	ServicePort:          pulumi.Int(0),
    	HealthCheckPort:      pulumi.Int(0),
    	HealthCheckInterval:  pulumi.Int(0),
    	HealthCheckMethod:    pulumi.String("string"),
    	HealthCheckHttpCode:  pulumi.String("string"),
    	HealthCheckSuccTimes: pulumi.Int(0),
    	HealthCheckTimeout:   pulumi.Int(0),
    	HealthCheckType:      pulumi.String("string"),
    	HealthCheckUri:       pulumi.String("string"),
    	Remarks:              pulumi.String("string"),
    	HealthCheckHost:      pulumi.String("string"),
    	HealthCheckFailTimes: pulumi.Int(0),
    })
    
    var edgeContainerAppResource = new EdgeContainerApp("edgeContainerAppResource", EdgeContainerAppArgs.builder()
        .edgeContainerAppName("string")
        .targetPort(0)
        .servicePort(0)
        .healthCheckPort(0)
        .healthCheckInterval(0)
        .healthCheckMethod("string")
        .healthCheckHttpCode("string")
        .healthCheckSuccTimes(0)
        .healthCheckTimeout(0)
        .healthCheckType("string")
        .healthCheckUri("string")
        .remarks("string")
        .healthCheckHost("string")
        .healthCheckFailTimes(0)
        .build());
    
    edge_container_app_resource = alicloud.esa.EdgeContainerApp("edgeContainerAppResource",
        edge_container_app_name="string",
        target_port=0,
        service_port=0,
        health_check_port=0,
        health_check_interval=0,
        health_check_method="string",
        health_check_http_code="string",
        health_check_succ_times=0,
        health_check_timeout=0,
        health_check_type="string",
        health_check_uri="string",
        remarks="string",
        health_check_host="string",
        health_check_fail_times=0)
    
    const edgeContainerAppResource = new alicloud.esa.EdgeContainerApp("edgeContainerAppResource", {
        edgeContainerAppName: "string",
        targetPort: 0,
        servicePort: 0,
        healthCheckPort: 0,
        healthCheckInterval: 0,
        healthCheckMethod: "string",
        healthCheckHttpCode: "string",
        healthCheckSuccTimes: 0,
        healthCheckTimeout: 0,
        healthCheckType: "string",
        healthCheckUri: "string",
        remarks: "string",
        healthCheckHost: "string",
        healthCheckFailTimes: 0,
    });
    
    type: alicloud:esa:EdgeContainerApp
    properties:
        edgeContainerAppName: string
        healthCheckFailTimes: 0
        healthCheckHost: string
        healthCheckHttpCode: string
        healthCheckInterval: 0
        healthCheckMethod: string
        healthCheckPort: 0
        healthCheckSuccTimes: 0
        healthCheckTimeout: 0
        healthCheckType: string
        healthCheckUri: string
        remarks: string
        servicePort: 0
        targetPort: 0
    

    EdgeContainerApp Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EdgeContainerApp resource accepts the following input properties:

    EdgeContainerAppName string
    The application name must start with a lowercase letter. Lowercase letters, numbers, and bars are supported. The length is limited to 6 to 128 characters.
    ServicePort int
    The name of the application. The name must start with a lowercase letter and can contain lowercase letters, digits, and hyphens (-). The name must be 6 to 128 characters in length.
    TargetPort int
    The server port. Valid values: 1 to 65535.
    HealthCheckFailTimes int
    The number of consecutive successful health checks required for an application to be considered as healthy. Valid values: 1 to 10. Default value: 2.
    HealthCheckHost string

    The health check type. By default, this parameter is left empty.

    Valid values:

    HealthCheckHttpCode string
    The domain name that is used for health checks. This parameter is empty by default.
    HealthCheckInterval int
    The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds. Valid values: 1 to 100. Default value: 3.
    HealthCheckMethod string
    The HTTP status code returned for a successful health check. Valid values:

    • http_2xx (default)
    • http_3xx
    HealthCheckPort int
    The URI used for health checks. The URI must be 1 to 80 characters in length. Default value: "/".
    HealthCheckSuccTimes int
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 5.
    HealthCheckTimeout int
    The port used for health checks. Valid values: 1 to 65535. Default value: 80.
    HealthCheckType string
    The remarks. This parameter is empty by default.
    HealthCheckUri string
    The HTTP request method for health checks. Valid values:

    • HEAD (default): requests the headers of the resource.
    • GET: requests the specified resource and returns both the headers and entity body.
    Remarks string
    The backend port, which is also the service port of the application. Valid values: 1 to 65535.
    EdgeContainerAppName string
    The application name must start with a lowercase letter. Lowercase letters, numbers, and bars are supported. The length is limited to 6 to 128 characters.
    ServicePort int
    The name of the application. The name must start with a lowercase letter and can contain lowercase letters, digits, and hyphens (-). The name must be 6 to 128 characters in length.
    TargetPort int
    The server port. Valid values: 1 to 65535.
    HealthCheckFailTimes int
    The number of consecutive successful health checks required for an application to be considered as healthy. Valid values: 1 to 10. Default value: 2.
    HealthCheckHost string

    The health check type. By default, this parameter is left empty.

    Valid values:

    HealthCheckHttpCode string
    The domain name that is used for health checks. This parameter is empty by default.
    HealthCheckInterval int
    The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds. Valid values: 1 to 100. Default value: 3.
    HealthCheckMethod string
    The HTTP status code returned for a successful health check. Valid values:

    • http_2xx (default)
    • http_3xx
    HealthCheckPort int
    The URI used for health checks. The URI must be 1 to 80 characters in length. Default value: "/".
    HealthCheckSuccTimes int
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 5.
    HealthCheckTimeout int
    The port used for health checks. Valid values: 1 to 65535. Default value: 80.
    HealthCheckType string
    The remarks. This parameter is empty by default.
    HealthCheckUri string
    The HTTP request method for health checks. Valid values:

    • HEAD (default): requests the headers of the resource.
    • GET: requests the specified resource and returns both the headers and entity body.
    Remarks string
    The backend port, which is also the service port of the application. Valid values: 1 to 65535.
    edgeContainerAppName String
    The application name must start with a lowercase letter. Lowercase letters, numbers, and bars are supported. The length is limited to 6 to 128 characters.
    servicePort Integer
    The name of the application. The name must start with a lowercase letter and can contain lowercase letters, digits, and hyphens (-). The name must be 6 to 128 characters in length.
    targetPort Integer
    The server port. Valid values: 1 to 65535.
    healthCheckFailTimes Integer
    The number of consecutive successful health checks required for an application to be considered as healthy. Valid values: 1 to 10. Default value: 2.
    healthCheckHost String

    The health check type. By default, this parameter is left empty.

    Valid values:

    healthCheckHttpCode String
    The domain name that is used for health checks. This parameter is empty by default.
    healthCheckInterval Integer
    The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds. Valid values: 1 to 100. Default value: 3.
    healthCheckMethod String
    The HTTP status code returned for a successful health check. Valid values:

    • http_2xx (default)
    • http_3xx
    healthCheckPort Integer
    The URI used for health checks. The URI must be 1 to 80 characters in length. Default value: "/".
    healthCheckSuccTimes Integer
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 5.
    healthCheckTimeout Integer
    The port used for health checks. Valid values: 1 to 65535. Default value: 80.
    healthCheckType String
    The remarks. This parameter is empty by default.
    healthCheckUri String
    The HTTP request method for health checks. Valid values:

    • HEAD (default): requests the headers of the resource.
    • GET: requests the specified resource and returns both the headers and entity body.
    remarks String
    The backend port, which is also the service port of the application. Valid values: 1 to 65535.
    edgeContainerAppName string
    The application name must start with a lowercase letter. Lowercase letters, numbers, and bars are supported. The length is limited to 6 to 128 characters.
    servicePort number
    The name of the application. The name must start with a lowercase letter and can contain lowercase letters, digits, and hyphens (-). The name must be 6 to 128 characters in length.
    targetPort number
    The server port. Valid values: 1 to 65535.
    healthCheckFailTimes number
    The number of consecutive successful health checks required for an application to be considered as healthy. Valid values: 1 to 10. Default value: 2.
    healthCheckHost string

    The health check type. By default, this parameter is left empty.

    Valid values:

    healthCheckHttpCode string
    The domain name that is used for health checks. This parameter is empty by default.
    healthCheckInterval number
    The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds. Valid values: 1 to 100. Default value: 3.
    healthCheckMethod string
    The HTTP status code returned for a successful health check. Valid values:

    • http_2xx (default)
    • http_3xx
    healthCheckPort number
    The URI used for health checks. The URI must be 1 to 80 characters in length. Default value: "/".
    healthCheckSuccTimes number
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 5.
    healthCheckTimeout number
    The port used for health checks. Valid values: 1 to 65535. Default value: 80.
    healthCheckType string
    The remarks. This parameter is empty by default.
    healthCheckUri string
    The HTTP request method for health checks. Valid values:

    • HEAD (default): requests the headers of the resource.
    • GET: requests the specified resource and returns both the headers and entity body.
    remarks string
    The backend port, which is also the service port of the application. Valid values: 1 to 65535.
    edge_container_app_name str
    The application name must start with a lowercase letter. Lowercase letters, numbers, and bars are supported. The length is limited to 6 to 128 characters.
    service_port int
    The name of the application. The name must start with a lowercase letter and can contain lowercase letters, digits, and hyphens (-). The name must be 6 to 128 characters in length.
    target_port int
    The server port. Valid values: 1 to 65535.
    health_check_fail_times int
    The number of consecutive successful health checks required for an application to be considered as healthy. Valid values: 1 to 10. Default value: 2.
    health_check_host str

    The health check type. By default, this parameter is left empty.

    Valid values:

    health_check_http_code str
    The domain name that is used for health checks. This parameter is empty by default.
    health_check_interval int
    The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds. Valid values: 1 to 100. Default value: 3.
    health_check_method str
    The HTTP status code returned for a successful health check. Valid values:

    • http_2xx (default)
    • http_3xx
    health_check_port int
    The URI used for health checks. The URI must be 1 to 80 characters in length. Default value: "/".
    health_check_succ_times int
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 5.
    health_check_timeout int
    The port used for health checks. Valid values: 1 to 65535. Default value: 80.
    health_check_type str
    The remarks. This parameter is empty by default.
    health_check_uri str
    The HTTP request method for health checks. Valid values:

    • HEAD (default): requests the headers of the resource.
    • GET: requests the specified resource and returns both the headers and entity body.
    remarks str
    The backend port, which is also the service port of the application. Valid values: 1 to 65535.
    edgeContainerAppName String
    The application name must start with a lowercase letter. Lowercase letters, numbers, and bars are supported. The length is limited to 6 to 128 characters.
    servicePort Number
    The name of the application. The name must start with a lowercase letter and can contain lowercase letters, digits, and hyphens (-). The name must be 6 to 128 characters in length.
    targetPort Number
    The server port. Valid values: 1 to 65535.
    healthCheckFailTimes Number
    The number of consecutive successful health checks required for an application to be considered as healthy. Valid values: 1 to 10. Default value: 2.
    healthCheckHost String

    The health check type. By default, this parameter is left empty.

    Valid values:

    healthCheckHttpCode String
    The domain name that is used for health checks. This parameter is empty by default.
    healthCheckInterval Number
    The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds. Valid values: 1 to 100. Default value: 3.
    healthCheckMethod String
    The HTTP status code returned for a successful health check. Valid values:

    • http_2xx (default)
    • http_3xx
    healthCheckPort Number
    The URI used for health checks. The URI must be 1 to 80 characters in length. Default value: "/".
    healthCheckSuccTimes Number
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 5.
    healthCheckTimeout Number
    The port used for health checks. Valid values: 1 to 65535. Default value: 80.
    healthCheckType String
    The remarks. This parameter is empty by default.
    healthCheckUri String
    The HTTP request method for health checks. Valid values:

    • HEAD (default): requests the headers of the resource.
    • GET: requests the specified resource and returns both the headers and entity body.
    remarks String
    The backend port, which is also the service port of the application. Valid values: 1 to 65535.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EdgeContainerApp resource produces the following output properties:

    CreateTime string
    The time when the application was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the application.
    CreateTime string
    The time when the application was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the application.
    createTime String
    The time when the application was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the application.
    createTime string
    The time when the application was created.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the application.
    create_time str
    The time when the application was created.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the application.
    createTime String
    The time when the application was created.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the application.

    Look up Existing EdgeContainerApp Resource

    Get an existing EdgeContainerApp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EdgeContainerAppState, opts?: CustomResourceOptions): EdgeContainerApp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            edge_container_app_name: Optional[str] = None,
            health_check_fail_times: Optional[int] = None,
            health_check_host: Optional[str] = None,
            health_check_http_code: Optional[str] = None,
            health_check_interval: Optional[int] = None,
            health_check_method: Optional[str] = None,
            health_check_port: Optional[int] = None,
            health_check_succ_times: Optional[int] = None,
            health_check_timeout: Optional[int] = None,
            health_check_type: Optional[str] = None,
            health_check_uri: Optional[str] = None,
            remarks: Optional[str] = None,
            service_port: Optional[int] = None,
            status: Optional[str] = None,
            target_port: Optional[int] = None) -> EdgeContainerApp
    func GetEdgeContainerApp(ctx *Context, name string, id IDInput, state *EdgeContainerAppState, opts ...ResourceOption) (*EdgeContainerApp, error)
    public static EdgeContainerApp Get(string name, Input<string> id, EdgeContainerAppState? state, CustomResourceOptions? opts = null)
    public static EdgeContainerApp get(String name, Output<String> id, EdgeContainerAppState state, CustomResourceOptions options)
    resources:  _:    type: alicloud:esa:EdgeContainerApp    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CreateTime string
    The time when the application was created.
    EdgeContainerAppName string
    The application name must start with a lowercase letter. Lowercase letters, numbers, and bars are supported. The length is limited to 6 to 128 characters.
    HealthCheckFailTimes int
    The number of consecutive successful health checks required for an application to be considered as healthy. Valid values: 1 to 10. Default value: 2.
    HealthCheckHost string

    The health check type. By default, this parameter is left empty.

    Valid values:

    HealthCheckHttpCode string
    The domain name that is used for health checks. This parameter is empty by default.
    HealthCheckInterval int
    The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds. Valid values: 1 to 100. Default value: 3.
    HealthCheckMethod string
    The HTTP status code returned for a successful health check. Valid values:

    • http_2xx (default)
    • http_3xx
    HealthCheckPort int
    The URI used for health checks. The URI must be 1 to 80 characters in length. Default value: "/".
    HealthCheckSuccTimes int
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 5.
    HealthCheckTimeout int
    The port used for health checks. Valid values: 1 to 65535. Default value: 80.
    HealthCheckType string
    The remarks. This parameter is empty by default.
    HealthCheckUri string
    The HTTP request method for health checks. Valid values:

    • HEAD (default): requests the headers of the resource.
    • GET: requests the specified resource and returns both the headers and entity body.
    Remarks string
    The backend port, which is also the service port of the application. Valid values: 1 to 65535.
    ServicePort int
    The name of the application. The name must start with a lowercase letter and can contain lowercase letters, digits, and hyphens (-). The name must be 6 to 128 characters in length.
    Status string
    The status of the application.
    TargetPort int
    The server port. Valid values: 1 to 65535.
    CreateTime string
    The time when the application was created.
    EdgeContainerAppName string
    The application name must start with a lowercase letter. Lowercase letters, numbers, and bars are supported. The length is limited to 6 to 128 characters.
    HealthCheckFailTimes int
    The number of consecutive successful health checks required for an application to be considered as healthy. Valid values: 1 to 10. Default value: 2.
    HealthCheckHost string

    The health check type. By default, this parameter is left empty.

    Valid values:

    HealthCheckHttpCode string
    The domain name that is used for health checks. This parameter is empty by default.
    HealthCheckInterval int
    The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds. Valid values: 1 to 100. Default value: 3.
    HealthCheckMethod string
    The HTTP status code returned for a successful health check. Valid values:

    • http_2xx (default)
    • http_3xx
    HealthCheckPort int
    The URI used for health checks. The URI must be 1 to 80 characters in length. Default value: "/".
    HealthCheckSuccTimes int
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 5.
    HealthCheckTimeout int
    The port used for health checks. Valid values: 1 to 65535. Default value: 80.
    HealthCheckType string
    The remarks. This parameter is empty by default.
    HealthCheckUri string
    The HTTP request method for health checks. Valid values:

    • HEAD (default): requests the headers of the resource.
    • GET: requests the specified resource and returns both the headers and entity body.
    Remarks string
    The backend port, which is also the service port of the application. Valid values: 1 to 65535.
    ServicePort int
    The name of the application. The name must start with a lowercase letter and can contain lowercase letters, digits, and hyphens (-). The name must be 6 to 128 characters in length.
    Status string
    The status of the application.
    TargetPort int
    The server port. Valid values: 1 to 65535.
    createTime String
    The time when the application was created.
    edgeContainerAppName String
    The application name must start with a lowercase letter. Lowercase letters, numbers, and bars are supported. The length is limited to 6 to 128 characters.
    healthCheckFailTimes Integer
    The number of consecutive successful health checks required for an application to be considered as healthy. Valid values: 1 to 10. Default value: 2.
    healthCheckHost String

    The health check type. By default, this parameter is left empty.

    Valid values:

    healthCheckHttpCode String
    The domain name that is used for health checks. This parameter is empty by default.
    healthCheckInterval Integer
    The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds. Valid values: 1 to 100. Default value: 3.
    healthCheckMethod String
    The HTTP status code returned for a successful health check. Valid values:

    • http_2xx (default)
    • http_3xx
    healthCheckPort Integer
    The URI used for health checks. The URI must be 1 to 80 characters in length. Default value: "/".
    healthCheckSuccTimes Integer
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 5.
    healthCheckTimeout Integer
    The port used for health checks. Valid values: 1 to 65535. Default value: 80.
    healthCheckType String
    The remarks. This parameter is empty by default.
    healthCheckUri String
    The HTTP request method for health checks. Valid values:

    • HEAD (default): requests the headers of the resource.
    • GET: requests the specified resource and returns both the headers and entity body.
    remarks String
    The backend port, which is also the service port of the application. Valid values: 1 to 65535.
    servicePort Integer
    The name of the application. The name must start with a lowercase letter and can contain lowercase letters, digits, and hyphens (-). The name must be 6 to 128 characters in length.
    status String
    The status of the application.
    targetPort Integer
    The server port. Valid values: 1 to 65535.
    createTime string
    The time when the application was created.
    edgeContainerAppName string
    The application name must start with a lowercase letter. Lowercase letters, numbers, and bars are supported. The length is limited to 6 to 128 characters.
    healthCheckFailTimes number
    The number of consecutive successful health checks required for an application to be considered as healthy. Valid values: 1 to 10. Default value: 2.
    healthCheckHost string

    The health check type. By default, this parameter is left empty.

    Valid values:

    healthCheckHttpCode string
    The domain name that is used for health checks. This parameter is empty by default.
    healthCheckInterval number
    The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds. Valid values: 1 to 100. Default value: 3.
    healthCheckMethod string
    The HTTP status code returned for a successful health check. Valid values:

    • http_2xx (default)
    • http_3xx
    healthCheckPort number
    The URI used for health checks. The URI must be 1 to 80 characters in length. Default value: "/".
    healthCheckSuccTimes number
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 5.
    healthCheckTimeout number
    The port used for health checks. Valid values: 1 to 65535. Default value: 80.
    healthCheckType string
    The remarks. This parameter is empty by default.
    healthCheckUri string
    The HTTP request method for health checks. Valid values:

    • HEAD (default): requests the headers of the resource.
    • GET: requests the specified resource and returns both the headers and entity body.
    remarks string
    The backend port, which is also the service port of the application. Valid values: 1 to 65535.
    servicePort number
    The name of the application. The name must start with a lowercase letter and can contain lowercase letters, digits, and hyphens (-). The name must be 6 to 128 characters in length.
    status string
    The status of the application.
    targetPort number
    The server port. Valid values: 1 to 65535.
    create_time str
    The time when the application was created.
    edge_container_app_name str
    The application name must start with a lowercase letter. Lowercase letters, numbers, and bars are supported. The length is limited to 6 to 128 characters.
    health_check_fail_times int
    The number of consecutive successful health checks required for an application to be considered as healthy. Valid values: 1 to 10. Default value: 2.
    health_check_host str

    The health check type. By default, this parameter is left empty.

    Valid values:

    health_check_http_code str
    The domain name that is used for health checks. This parameter is empty by default.
    health_check_interval int
    The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds. Valid values: 1 to 100. Default value: 3.
    health_check_method str
    The HTTP status code returned for a successful health check. Valid values:

    • http_2xx (default)
    • http_3xx
    health_check_port int
    The URI used for health checks. The URI must be 1 to 80 characters in length. Default value: "/".
    health_check_succ_times int
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 5.
    health_check_timeout int
    The port used for health checks. Valid values: 1 to 65535. Default value: 80.
    health_check_type str
    The remarks. This parameter is empty by default.
    health_check_uri str
    The HTTP request method for health checks. Valid values:

    • HEAD (default): requests the headers of the resource.
    • GET: requests the specified resource and returns both the headers and entity body.
    remarks str
    The backend port, which is also the service port of the application. Valid values: 1 to 65535.
    service_port int
    The name of the application. The name must start with a lowercase letter and can contain lowercase letters, digits, and hyphens (-). The name must be 6 to 128 characters in length.
    status str
    The status of the application.
    target_port int
    The server port. Valid values: 1 to 65535.
    createTime String
    The time when the application was created.
    edgeContainerAppName String
    The application name must start with a lowercase letter. Lowercase letters, numbers, and bars are supported. The length is limited to 6 to 128 characters.
    healthCheckFailTimes Number
    The number of consecutive successful health checks required for an application to be considered as healthy. Valid values: 1 to 10. Default value: 2.
    healthCheckHost String

    The health check type. By default, this parameter is left empty.

    Valid values:

    healthCheckHttpCode String
    The domain name that is used for health checks. This parameter is empty by default.
    healthCheckInterval Number
    The timeout period of a health check response. If a backend ECS instance does not respond within the specified timeout period, the ECS instance fails the health check. Unit: seconds. Valid values: 1 to 100. Default value: 3.
    healthCheckMethod String
    The HTTP status code returned for a successful health check. Valid values:

    • http_2xx (default)
    • http_3xx
    healthCheckPort Number
    The URI used for health checks. The URI must be 1 to 80 characters in length. Default value: "/".
    healthCheckSuccTimes Number
    The interval between two consecutive health checks. Unit: seconds. Valid values: 1 to 50. Default value: 5.
    healthCheckTimeout Number
    The port used for health checks. Valid values: 1 to 65535. Default value: 80.
    healthCheckType String
    The remarks. This parameter is empty by default.
    healthCheckUri String
    The HTTP request method for health checks. Valid values:

    • HEAD (default): requests the headers of the resource.
    • GET: requests the specified resource and returns both the headers and entity body.
    remarks String
    The backend port, which is also the service port of the application. Valid values: 1 to 65535.
    servicePort Number
    The name of the application. The name must start with a lowercase letter and can contain lowercase letters, digits, and hyphens (-). The name must be 6 to 128 characters in length.
    status String
    The status of the application.
    targetPort Number
    The server port. Valid values: 1 to 65535.

    Import

    ESA Edge Container App can be imported using the id, e.g.

    $ pulumi import alicloud:esa/edgeContainerApp:EdgeContainerApp example <id>
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.76.0 published on Tuesday, Apr 8, 2025 by Pulumi