alicloud logo
Alibaba Cloud v3.34.0, Mar 17 23

alicloud.sae.Application

Provides a Serverless App Engine (SAE) Application resource.

For information about Serverless App Engine (SAE) Application and how to use it, see What is Application.

NOTE: Available in v1.161.0+.

Example Usage

Basic Usage

using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var name = config.Get("name") ?? "tf-testacc";
    var defaultZones = AliCloud.GetZones.Invoke(new()
    {
        AvailableResourceCreation = "VSwitch",
    });

    var vpc = new AliCloud.Vpc.Network("vpc", new()
    {
        VpcName = "tf_testacc",
        CidrBlock = "172.16.0.0/12",
    });

    var vsw = new AliCloud.Vpc.Switch("vsw", new()
    {
        VpcId = vpc.Id,
        CidrBlock = "172.16.0.0/24",
        ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
        VswitchName = name,
    });

    var defaultNamespace = new AliCloud.Sae.Namespace("defaultNamespace", new()
    {
        NamespaceDescription = name,
        NamespaceId = "cn-hangzhou:tfacctest",
        NamespaceName = name,
    });

    var defaultApplication = new AliCloud.Sae.Application("defaultApplication", new()
    {
        AppDescription = "tf-testaccDescription",
        AppName = "tf-testaccAppName",
        NamespaceId = defaultNamespace.Id,
        ImageUrl = "registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5",
        PackageType = "Image",
        VswitchId = vsw.Id,
        Timezone = "Asia/Beijing",
        Replicas = 5,
        Cpu = 500,
        Memory = 2048,
    });

});
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae"
	"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 := "tf-testacc"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
			VpcName:   pulumi.String("tf_testacc"),
			CidrBlock: pulumi.String("172.16.0.0/12"),
		})
		if err != nil {
			return err
		}
		vsw, err := vpc.NewSwitch(ctx, "vsw", &vpc.SwitchArgs{
			VpcId:       vpc.ID(),
			CidrBlock:   pulumi.String("172.16.0.0/24"),
			ZoneId:      *pulumi.String(defaultZones.Zones[0].Id),
			VswitchName: pulumi.String(name),
		})
		if err != nil {
			return err
		}
		defaultNamespace, err := sae.NewNamespace(ctx, "defaultNamespace", &sae.NamespaceArgs{
			NamespaceDescription: pulumi.String(name),
			NamespaceId:          pulumi.String("cn-hangzhou:tfacctest"),
			NamespaceName:        pulumi.String(name),
		})
		if err != nil {
			return err
		}
		_, err = sae.NewApplication(ctx, "defaultApplication", &sae.ApplicationArgs{
			AppDescription: pulumi.String("tf-testaccDescription"),
			AppName:        pulumi.String("tf-testaccAppName"),
			NamespaceId:    defaultNamespace.ID(),
			ImageUrl:       pulumi.String("registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5"),
			PackageType:    pulumi.String("Image"),
			VswitchId:      vsw.ID(),
			Timezone:       pulumi.String("Asia/Beijing"),
			Replicas:       pulumi.Int(5),
			Cpu:            pulumi.Int(500),
			Memory:         pulumi.Int(2048),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
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.sae.Namespace;
import com.pulumi.alicloud.sae.NamespaceArgs;
import com.pulumi.alicloud.sae.Application;
import com.pulumi.alicloud.sae.ApplicationArgs;
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("tf-testacc");
        final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
            .availableResourceCreation("VSwitch")
            .build());

        var vpc = new Network("vpc", NetworkArgs.builder()        
            .vpcName("tf_testacc")
            .cidrBlock("172.16.0.0/12")
            .build());

        var vsw = new Switch("vsw", SwitchArgs.builder()        
            .vpcId(vpc.id())
            .cidrBlock("172.16.0.0/24")
            .zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
            .vswitchName(name)
            .build());

        var defaultNamespace = new Namespace("defaultNamespace", NamespaceArgs.builder()        
            .namespaceDescription(name)
            .namespaceId("cn-hangzhou:tfacctest")
            .namespaceName(name)
            .build());

        var defaultApplication = new Application("defaultApplication", ApplicationArgs.builder()        
            .appDescription("tf-testaccDescription")
            .appName("tf-testaccAppName")
            .namespaceId(defaultNamespace.id())
            .imageUrl("registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5")
            .packageType("Image")
            .vswitchId(vsw.id())
            .timezone("Asia/Beijing")
            .replicas("5")
            .cpu("500")
            .memory("2048")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

config = pulumi.Config()
name = config.get("name")
if name is None:
    name = "tf-testacc"
default_zones = alicloud.get_zones(available_resource_creation="VSwitch")
vpc = alicloud.vpc.Network("vpc",
    vpc_name="tf_testacc",
    cidr_block="172.16.0.0/12")
vsw = alicloud.vpc.Switch("vsw",
    vpc_id=vpc.id,
    cidr_block="172.16.0.0/24",
    zone_id=default_zones.zones[0].id,
    vswitch_name=name)
default_namespace = alicloud.sae.Namespace("defaultNamespace",
    namespace_description=name,
    namespace_id="cn-hangzhou:tfacctest",
    namespace_name=name)
default_application = alicloud.sae.Application("defaultApplication",
    app_description="tf-testaccDescription",
    app_name="tf-testaccAppName",
    namespace_id=default_namespace.id,
    image_url="registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5",
    package_type="Image",
    vswitch_id=vsw.id,
    timezone="Asia/Beijing",
    replicas=5,
    cpu=500,
    memory=2048)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const config = new pulumi.Config();
const name = config.get("name") || "tf-testacc";
const defaultZones = alicloud.getZones({
    availableResourceCreation: "VSwitch",
});
const vpc = new alicloud.vpc.Network("vpc", {
    vpcName: "tf_testacc",
    cidrBlock: "172.16.0.0/12",
});
const vsw = new alicloud.vpc.Switch("vsw", {
    vpcId: vpc.id,
    cidrBlock: "172.16.0.0/24",
    zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
    vswitchName: name,
});
const defaultNamespace = new alicloud.sae.Namespace("defaultNamespace", {
    namespaceDescription: name,
    namespaceId: "cn-hangzhou:tfacctest",
    namespaceName: name,
});
const defaultApplication = new alicloud.sae.Application("defaultApplication", {
    appDescription: "tf-testaccDescription",
    appName: "tf-testaccAppName",
    namespaceId: defaultNamespace.id,
    imageUrl: "registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5",
    packageType: "Image",
    vswitchId: vsw.id,
    timezone: "Asia/Beijing",
    replicas: 5,
    cpu: 500,
    memory: 2048,
});
configuration:
  name:
    type: string
    default: tf-testacc
resources:
  vpc:
    type: alicloud:vpc:Network
    properties:
      vpcName: tf_testacc
      cidrBlock: 172.16.0.0/12
  vsw:
    type: alicloud:vpc:Switch
    properties:
      vpcId: ${vpc.id}
      cidrBlock: 172.16.0.0/24
      zoneId: ${defaultZones.zones[0].id}
      vswitchName: ${name}
  defaultNamespace:
    type: alicloud:sae:Namespace
    properties:
      namespaceDescription: ${name}
      namespaceId: cn-hangzhou:tfacctest
      namespaceName: ${name}
  defaultApplication:
    type: alicloud:sae:Application
    properties:
      appDescription: tf-testaccDescription
      appName: tf-testaccAppName
      namespaceId: ${defaultNamespace.id}
      imageUrl: registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5
      packageType: Image
      vswitchId: ${vsw.id}
      timezone: Asia/Beijing
      replicas: '5'
      cpu: '500'
      memory: '2048'
variables:
  defaultZones:
    fn::invoke:
      Function: alicloud:getZones
      Arguments:
        availableResourceCreation: VSwitch

Create Application Resource

new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                acr_assume_role_arn: Optional[str] = None,
                acr_instance_id: Optional[str] = None,
                app_description: Optional[str] = None,
                app_name: Optional[str] = None,
                auto_config: Optional[bool] = None,
                auto_enable_application_scaling_rule: Optional[bool] = None,
                batch_wait_time: Optional[int] = None,
                change_order_desc: Optional[str] = None,
                command: Optional[str] = None,
                command_args: Optional[str] = None,
                config_map_mount_desc: Optional[str] = None,
                cpu: Optional[int] = None,
                custom_host_alias: Optional[str] = None,
                deploy: Optional[bool] = None,
                edas_container_version: Optional[str] = None,
                enable_ahas: Optional[str] = None,
                enable_grey_tag_route: Optional[bool] = None,
                envs: Optional[str] = None,
                image_url: Optional[str] = None,
                jar_start_args: Optional[str] = None,
                jar_start_options: Optional[str] = None,
                jdk: Optional[str] = None,
                liveness: Optional[str] = None,
                memory: Optional[int] = None,
                micro_registration: Optional[str] = None,
                min_ready_instance_ratio: Optional[int] = None,
                min_ready_instances: Optional[int] = None,
                mount_desc: Optional[str] = None,
                mount_host: Optional[str] = None,
                namespace_id: Optional[str] = None,
                nas_id: Optional[str] = None,
                oss_ak_id: Optional[str] = None,
                oss_ak_secret: Optional[str] = None,
                oss_mount_descs: Optional[str] = None,
                package_type: Optional[str] = None,
                package_url: Optional[str] = None,
                package_version: Optional[str] = None,
                php_arms_config_location: Optional[str] = None,
                php_config: Optional[str] = None,
                php_config_location: Optional[str] = None,
                post_start: Optional[str] = None,
                pre_stop: Optional[str] = None,
                readiness: Optional[str] = None,
                replicas: Optional[int] = None,
                security_group_id: Optional[str] = None,
                sls_configs: Optional[str] = None,
                status: Optional[str] = None,
                tags: Optional[Mapping[str, Any]] = None,
                termination_grace_period_seconds: Optional[int] = None,
                timezone: Optional[str] = None,
                tomcat_config: Optional[str] = None,
                update_strategy: Optional[str] = None,
                version_id: Optional[str] = None,
                vpc_id: Optional[str] = None,
                vswitch_id: Optional[str] = None,
                war_start_options: Optional[str] = None,
                web_container: Optional[str] = None)
@overload
def Application(resource_name: str,
                args: ApplicationArgs,
                opts: Optional[ResourceOptions] = None)
func NewApplication(ctx *Context, name string, args ApplicationArgs, opts ...ResourceOption) (*Application, error)
public Application(string name, ApplicationArgs args, CustomResourceOptions? opts = null)
public Application(String name, ApplicationArgs args)
public Application(String name, ApplicationArgs args, CustomResourceOptions options)
type: alicloud:sae:Application
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ApplicationArgs
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 ApplicationArgs
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 ApplicationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ApplicationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Application Resource Properties

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

Inputs

The Application resource accepts the following input properties:

AppName string

Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.

PackageType string

Application package type. Support FatJar, War and Image. Valid values: FatJar, Image, War.

Replicas int

Initial number of instances.

AcrAssumeRoleArn string

The ARN of the RAM role required when pulling images across accounts. Only necessary if the image_url is pointing to an ACR EE instance.

AcrInstanceId string

The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.

AppDescription string

Application description information. No more than 1024 characters.

AutoConfig bool

The auto config. Valid values: false, true.

AutoEnableApplicationScalingRule bool

The auto enable application scaling rule. Valid values: false, true.

BatchWaitTime int

The batch wait time.

ChangeOrderDesc string

The change order desc.

Command string

Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.

CommandArgs string

Mirror startup command parameters. The parameters required for the above start command. For example: 1d.

ConfigMapMountDesc string

ConfigMap mount description.

Cpu int

The CPU required for each instance, in millicores, cannot be 0. Valid values: 1000, 16000, 2000, 32000, 4000, 500, 8000.

CustomHostAlias string

Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}].

Deploy bool

The deploy. Valid values: false, true.

EdasContainerVersion string

The operating environment used by the Pandora application.

EnableAhas string

The enable ahas.

EnableGreyTagRoute bool

The enable grey tag route.

Envs string

Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:

ImageUrl string

Mirror address. Only Image type applications can configure the mirror address.

JarStartArgs string

The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

JarStartOptions string

The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

Jdk string

The JDK version that the deployment package depends on. Image type applications are not supported.

Liveness string

Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.

Memory int

The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 131072, 16384, 2048, 32768, 4096, 65536, 8192.

MicroRegistration string

Select the Nacos registry. Valid values: 0, 1, 2.

MinReadyInstanceRatio int

Minimum Survival Instance Percentage. NOTE: When min_ready_instances and min_ready_instance_ratio are passed at the same time, and the value of min_ready_instance_ratio is not -1, the min_ready_instance_ratio parameter shall prevail. Assuming that min_ready_instances is 5 and min_ready_instance_ratio is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:

  • -1: Initialization value, indicating that percentages are not used.
  • 0~100: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
MinReadyInstances int

The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.

MountDesc string

Mount description.

MountHost string

Mount point of NAS in application VPC.

NamespaceId string

SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.

NasId string

ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.

OssAkId string

OSS AccessKey ID.

OssAkSecret string

OSS AccessKey Secret.

OssMountDescs string

OSS mount description information.

PackageUrl string

Deployment package address. Only FatJar or War type applications can configure the deployment package address.

PackageVersion string

The version number of the deployment package. Required when the Package Type is War and FatJar.

PhpArmsConfigLocation string

The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.

PhpConfig string

PHP configuration file content.

PhpConfigLocation string

PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.

PostStart string

Execute the script after startup, the format is like: {exec:{command:[cat,"/etc/group"]}}.

PreStop string

Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}.

Readiness string

Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {exec:{command:[sh,"-c","cat /home/admin/start.sh"]},initialDelaySeconds:30,periodSeconds:30,"timeoutSeconds ":2}. Valid values: command, initialDelaySeconds, periodSeconds, timeoutSeconds.

SecurityGroupId string

Security group ID.

SlsConfigs string

SLS configuration.

Status string

The status of the resource. Valid values: RUNNING, STOPPED.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

TerminationGracePeriodSeconds int

Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].

Timezone string

Time zone, the default value is Asia/Shanghai.

TomcatConfig string

Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: contextInputType, contextPath, httpPort, maxThreads, uriEncoding, useBodyEncoding, useDefaultConfig.

UpdateStrategy string

The update strategy.

VersionId string

Application version id.

VpcId string

The vpc id.

VswitchId string

The vswitch id.

WarStartOptions string

WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.

WebContainer string

The version of tomcat that the deployment package depends on. Image type applications are not supported.

AppName string

Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.

PackageType string

Application package type. Support FatJar, War and Image. Valid values: FatJar, Image, War.

Replicas int

Initial number of instances.

AcrAssumeRoleArn string

The ARN of the RAM role required when pulling images across accounts. Only necessary if the image_url is pointing to an ACR EE instance.

AcrInstanceId string

The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.

AppDescription string

Application description information. No more than 1024 characters.

AutoConfig bool

The auto config. Valid values: false, true.

AutoEnableApplicationScalingRule bool

The auto enable application scaling rule. Valid values: false, true.

BatchWaitTime int

The batch wait time.

ChangeOrderDesc string

The change order desc.

Command string

Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.

CommandArgs string

Mirror startup command parameters. The parameters required for the above start command. For example: 1d.

ConfigMapMountDesc string

ConfigMap mount description.

Cpu int

The CPU required for each instance, in millicores, cannot be 0. Valid values: 1000, 16000, 2000, 32000, 4000, 500, 8000.

CustomHostAlias string

Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}].

Deploy bool

The deploy. Valid values: false, true.

EdasContainerVersion string

The operating environment used by the Pandora application.

EnableAhas string

The enable ahas.

EnableGreyTagRoute bool

The enable grey tag route.

Envs string

Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:

ImageUrl string

Mirror address. Only Image type applications can configure the mirror address.

JarStartArgs string

The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

JarStartOptions string

The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

Jdk string

The JDK version that the deployment package depends on. Image type applications are not supported.

Liveness string

Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.

Memory int

The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 131072, 16384, 2048, 32768, 4096, 65536, 8192.

MicroRegistration string

Select the Nacos registry. Valid values: 0, 1, 2.

MinReadyInstanceRatio int

Minimum Survival Instance Percentage. NOTE: When min_ready_instances and min_ready_instance_ratio are passed at the same time, and the value of min_ready_instance_ratio is not -1, the min_ready_instance_ratio parameter shall prevail. Assuming that min_ready_instances is 5 and min_ready_instance_ratio is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:

  • -1: Initialization value, indicating that percentages are not used.
  • 0~100: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
MinReadyInstances int

The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.

MountDesc string

Mount description.

MountHost string

Mount point of NAS in application VPC.

NamespaceId string

SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.

NasId string

ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.

OssAkId string

OSS AccessKey ID.

OssAkSecret string

OSS AccessKey Secret.

OssMountDescs string

OSS mount description information.

PackageUrl string

Deployment package address. Only FatJar or War type applications can configure the deployment package address.

PackageVersion string

The version number of the deployment package. Required when the Package Type is War and FatJar.

PhpArmsConfigLocation string

The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.

PhpConfig string

PHP configuration file content.

PhpConfigLocation string

PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.

PostStart string

Execute the script after startup, the format is like: {exec:{command:[cat,"/etc/group"]}}.

PreStop string

Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}.

Readiness string

Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {exec:{command:[sh,"-c","cat /home/admin/start.sh"]},initialDelaySeconds:30,periodSeconds:30,"timeoutSeconds ":2}. Valid values: command, initialDelaySeconds, periodSeconds, timeoutSeconds.

SecurityGroupId string

Security group ID.

SlsConfigs string

SLS configuration.

Status string

The status of the resource. Valid values: RUNNING, STOPPED.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

TerminationGracePeriodSeconds int

Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].

Timezone string

Time zone, the default value is Asia/Shanghai.

TomcatConfig string

Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: contextInputType, contextPath, httpPort, maxThreads, uriEncoding, useBodyEncoding, useDefaultConfig.

UpdateStrategy string

The update strategy.

VersionId string

Application version id.

VpcId string

The vpc id.

VswitchId string

The vswitch id.

WarStartOptions string

WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.

WebContainer string

The version of tomcat that the deployment package depends on. Image type applications are not supported.

appName String

Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.

packageType String

Application package type. Support FatJar, War and Image. Valid values: FatJar, Image, War.

replicas Integer

Initial number of instances.

acrAssumeRoleArn String

The ARN of the RAM role required when pulling images across accounts. Only necessary if the image_url is pointing to an ACR EE instance.

acrInstanceId String

The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.

appDescription String

Application description information. No more than 1024 characters.

autoConfig Boolean

The auto config. Valid values: false, true.

autoEnableApplicationScalingRule Boolean

The auto enable application scaling rule. Valid values: false, true.

batchWaitTime Integer

The batch wait time.

changeOrderDesc String

The change order desc.

command String

Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.

commandArgs String

Mirror startup command parameters. The parameters required for the above start command. For example: 1d.

configMapMountDesc String

ConfigMap mount description.

cpu Integer

The CPU required for each instance, in millicores, cannot be 0. Valid values: 1000, 16000, 2000, 32000, 4000, 500, 8000.

customHostAlias String

Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}].

deploy Boolean

The deploy. Valid values: false, true.

edasContainerVersion String

The operating environment used by the Pandora application.

enableAhas String

The enable ahas.

enableGreyTagRoute Boolean

The enable grey tag route.

envs String

Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:

imageUrl String

Mirror address. Only Image type applications can configure the mirror address.

jarStartArgs String

The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jarStartOptions String

The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jdk String

The JDK version that the deployment package depends on. Image type applications are not supported.

liveness String

Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.

memory Integer

The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 131072, 16384, 2048, 32768, 4096, 65536, 8192.

microRegistration String

Select the Nacos registry. Valid values: 0, 1, 2.

minReadyInstanceRatio Integer

Minimum Survival Instance Percentage. NOTE: When min_ready_instances and min_ready_instance_ratio are passed at the same time, and the value of min_ready_instance_ratio is not -1, the min_ready_instance_ratio parameter shall prevail. Assuming that min_ready_instances is 5 and min_ready_instance_ratio is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:

  • -1: Initialization value, indicating that percentages are not used.
  • 0~100: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
minReadyInstances Integer

The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.

mountDesc String

Mount description.

mountHost String

Mount point of NAS in application VPC.

namespaceId String

SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.

nasId String

ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.

ossAkId String

OSS AccessKey ID.

ossAkSecret String

OSS AccessKey Secret.

ossMountDescs String

OSS mount description information.

packageUrl String

Deployment package address. Only FatJar or War type applications can configure the deployment package address.

packageVersion String

The version number of the deployment package. Required when the Package Type is War and FatJar.

phpArmsConfigLocation String

The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.

phpConfig String

PHP configuration file content.

phpConfigLocation String

PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.

postStart String

Execute the script after startup, the format is like: {exec:{command:[cat,"/etc/group"]}}.

preStop String

Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}.

readiness String

Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {exec:{command:[sh,"-c","cat /home/admin/start.sh"]},initialDelaySeconds:30,periodSeconds:30,"timeoutSeconds ":2}. Valid values: command, initialDelaySeconds, periodSeconds, timeoutSeconds.

securityGroupId String

Security group ID.

slsConfigs String

SLS configuration.

status String

The status of the resource. Valid values: RUNNING, STOPPED.

tags Map<String,Object>

A mapping of tags to assign to the resource.

terminationGracePeriodSeconds Integer

Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].

timezone String

Time zone, the default value is Asia/Shanghai.

tomcatConfig String

Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: contextInputType, contextPath, httpPort, maxThreads, uriEncoding, useBodyEncoding, useDefaultConfig.

updateStrategy String

The update strategy.

versionId String

Application version id.

vpcId String

The vpc id.

vswitchId String

The vswitch id.

warStartOptions String

WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.

webContainer String

The version of tomcat that the deployment package depends on. Image type applications are not supported.

appName string

Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.

packageType string

Application package type. Support FatJar, War and Image. Valid values: FatJar, Image, War.

replicas number

Initial number of instances.

acrAssumeRoleArn string

The ARN of the RAM role required when pulling images across accounts. Only necessary if the image_url is pointing to an ACR EE instance.

acrInstanceId string

The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.

appDescription string

Application description information. No more than 1024 characters.

autoConfig boolean

The auto config. Valid values: false, true.

autoEnableApplicationScalingRule boolean

The auto enable application scaling rule. Valid values: false, true.

batchWaitTime number

The batch wait time.

changeOrderDesc string

The change order desc.

command string

Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.

commandArgs string

Mirror startup command parameters. The parameters required for the above start command. For example: 1d.

configMapMountDesc string

ConfigMap mount description.

cpu number

The CPU required for each instance, in millicores, cannot be 0. Valid values: 1000, 16000, 2000, 32000, 4000, 500, 8000.

customHostAlias string

Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}].

deploy boolean

The deploy. Valid values: false, true.

edasContainerVersion string

The operating environment used by the Pandora application.

enableAhas string

The enable ahas.

enableGreyTagRoute boolean

The enable grey tag route.

envs string

Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:

imageUrl string

Mirror address. Only Image type applications can configure the mirror address.

jarStartArgs string

The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jarStartOptions string

The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jdk string

The JDK version that the deployment package depends on. Image type applications are not supported.

liveness string

Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.

memory number

The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 131072, 16384, 2048, 32768, 4096, 65536, 8192.

microRegistration string

Select the Nacos registry. Valid values: 0, 1, 2.

minReadyInstanceRatio number

Minimum Survival Instance Percentage. NOTE: When min_ready_instances and min_ready_instance_ratio are passed at the same time, and the value of min_ready_instance_ratio is not -1, the min_ready_instance_ratio parameter shall prevail. Assuming that min_ready_instances is 5 and min_ready_instance_ratio is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:

  • -1: Initialization value, indicating that percentages are not used.
  • 0~100: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
minReadyInstances number

The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.

mountDesc string

Mount description.

mountHost string

Mount point of NAS in application VPC.

namespaceId string

SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.

nasId string

ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.

ossAkId string

OSS AccessKey ID.

ossAkSecret string

OSS AccessKey Secret.

ossMountDescs string

OSS mount description information.

packageUrl string

Deployment package address. Only FatJar or War type applications can configure the deployment package address.

packageVersion string

The version number of the deployment package. Required when the Package Type is War and FatJar.

phpArmsConfigLocation string

The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.

phpConfig string

PHP configuration file content.

phpConfigLocation string

PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.

postStart string

Execute the script after startup, the format is like: {exec:{command:[cat,"/etc/group"]}}.

preStop string

Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}.

readiness string

Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {exec:{command:[sh,"-c","cat /home/admin/start.sh"]},initialDelaySeconds:30,periodSeconds:30,"timeoutSeconds ":2}. Valid values: command, initialDelaySeconds, periodSeconds, timeoutSeconds.

securityGroupId string

Security group ID.

slsConfigs string

SLS configuration.

status string

The status of the resource. Valid values: RUNNING, STOPPED.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

terminationGracePeriodSeconds number

Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].

timezone string

Time zone, the default value is Asia/Shanghai.

tomcatConfig string

Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: contextInputType, contextPath, httpPort, maxThreads, uriEncoding, useBodyEncoding, useDefaultConfig.

updateStrategy string

The update strategy.

versionId string

Application version id.

vpcId string

The vpc id.

vswitchId string

The vswitch id.

warStartOptions string

WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.

webContainer string

The version of tomcat that the deployment package depends on. Image type applications are not supported.

app_name str

Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.

package_type str

Application package type. Support FatJar, War and Image. Valid values: FatJar, Image, War.

replicas int

Initial number of instances.

acr_assume_role_arn str

The ARN of the RAM role required when pulling images across accounts. Only necessary if the image_url is pointing to an ACR EE instance.

acr_instance_id str

The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.

app_description str

Application description information. No more than 1024 characters.

auto_config bool

The auto config. Valid values: false, true.

auto_enable_application_scaling_rule bool

The auto enable application scaling rule. Valid values: false, true.

batch_wait_time int

The batch wait time.

change_order_desc str

The change order desc.

command str

Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.

command_args str

Mirror startup command parameters. The parameters required for the above start command. For example: 1d.

config_map_mount_desc str

ConfigMap mount description.

cpu int

The CPU required for each instance, in millicores, cannot be 0. Valid values: 1000, 16000, 2000, 32000, 4000, 500, 8000.

custom_host_alias str

Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}].

deploy bool

The deploy. Valid values: false, true.

edas_container_version str

The operating environment used by the Pandora application.

enable_ahas str

The enable ahas.

enable_grey_tag_route bool

The enable grey tag route.

envs str

Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:

image_url str

Mirror address. Only Image type applications can configure the mirror address.

jar_start_args str

The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jar_start_options str

The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jdk str

The JDK version that the deployment package depends on. Image type applications are not supported.

liveness str

Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.

memory int

The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 131072, 16384, 2048, 32768, 4096, 65536, 8192.

micro_registration str

Select the Nacos registry. Valid values: 0, 1, 2.

min_ready_instance_ratio int

Minimum Survival Instance Percentage. NOTE: When min_ready_instances and min_ready_instance_ratio are passed at the same time, and the value of min_ready_instance_ratio is not -1, the min_ready_instance_ratio parameter shall prevail. Assuming that min_ready_instances is 5 and min_ready_instance_ratio is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:

  • -1: Initialization value, indicating that percentages are not used.
  • 0~100: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
min_ready_instances int

The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.

mount_desc str

Mount description.

mount_host str

Mount point of NAS in application VPC.

namespace_id str

SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.

nas_id str

ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.

oss_ak_id str

OSS AccessKey ID.

oss_ak_secret str

OSS AccessKey Secret.

oss_mount_descs str

OSS mount description information.

package_url str

Deployment package address. Only FatJar or War type applications can configure the deployment package address.

package_version str

The version number of the deployment package. Required when the Package Type is War and FatJar.

php_arms_config_location str

The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.

php_config str

PHP configuration file content.

php_config_location str

PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.

post_start str

Execute the script after startup, the format is like: {exec:{command:[cat,"/etc/group"]}}.

pre_stop str

Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}.

readiness str

Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {exec:{command:[sh,"-c","cat /home/admin/start.sh"]},initialDelaySeconds:30,periodSeconds:30,"timeoutSeconds ":2}. Valid values: command, initialDelaySeconds, periodSeconds, timeoutSeconds.

security_group_id str

Security group ID.

sls_configs str

SLS configuration.

status str

The status of the resource. Valid values: RUNNING, STOPPED.

tags Mapping[str, Any]

A mapping of tags to assign to the resource.

termination_grace_period_seconds int

Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].

timezone str

Time zone, the default value is Asia/Shanghai.

tomcat_config str

Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: contextInputType, contextPath, httpPort, maxThreads, uriEncoding, useBodyEncoding, useDefaultConfig.

update_strategy str

The update strategy.

version_id str

Application version id.

vpc_id str

The vpc id.

vswitch_id str

The vswitch id.

war_start_options str

WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.

web_container str

The version of tomcat that the deployment package depends on. Image type applications are not supported.

appName String

Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.

packageType String

Application package type. Support FatJar, War and Image. Valid values: FatJar, Image, War.

replicas Number

Initial number of instances.

acrAssumeRoleArn String

The ARN of the RAM role required when pulling images across accounts. Only necessary if the image_url is pointing to an ACR EE instance.

acrInstanceId String

The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.

appDescription String

Application description information. No more than 1024 characters.

autoConfig Boolean

The auto config. Valid values: false, true.

autoEnableApplicationScalingRule Boolean

The auto enable application scaling rule. Valid values: false, true.

batchWaitTime Number

The batch wait time.

changeOrderDesc String

The change order desc.

command String

Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.

commandArgs String

Mirror startup command parameters. The parameters required for the above start command. For example: 1d.

configMapMountDesc String

ConfigMap mount description.

cpu Number

The CPU required for each instance, in millicores, cannot be 0. Valid values: 1000, 16000, 2000, 32000, 4000, 500, 8000.

customHostAlias String

Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}].

deploy Boolean

The deploy. Valid values: false, true.

edasContainerVersion String

The operating environment used by the Pandora application.

enableAhas String

The enable ahas.

enableGreyTagRoute Boolean

The enable grey tag route.

envs String

Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:

imageUrl String

Mirror address. Only Image type applications can configure the mirror address.

jarStartArgs String

The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jarStartOptions String

The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jdk String

The JDK version that the deployment package depends on. Image type applications are not supported.

liveness String

Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.

memory Number

The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 131072, 16384, 2048, 32768, 4096, 65536, 8192.

microRegistration String

Select the Nacos registry. Valid values: 0, 1, 2.

minReadyInstanceRatio Number

Minimum Survival Instance Percentage. NOTE: When min_ready_instances and min_ready_instance_ratio are passed at the same time, and the value of min_ready_instance_ratio is not -1, the min_ready_instance_ratio parameter shall prevail. Assuming that min_ready_instances is 5 and min_ready_instance_ratio is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:

  • -1: Initialization value, indicating that percentages are not used.
  • 0~100: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
minReadyInstances Number

The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.

mountDesc String

Mount description.

mountHost String

Mount point of NAS in application VPC.

namespaceId String

SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.

nasId String

ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.

ossAkId String

OSS AccessKey ID.

ossAkSecret String

OSS AccessKey Secret.

ossMountDescs String

OSS mount description information.

packageUrl String

Deployment package address. Only FatJar or War type applications can configure the deployment package address.

packageVersion String

The version number of the deployment package. Required when the Package Type is War and FatJar.

phpArmsConfigLocation String

The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.

phpConfig String

PHP configuration file content.

phpConfigLocation String

PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.

postStart String

Execute the script after startup, the format is like: {exec:{command:[cat,"/etc/group"]}}.

preStop String

Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}.

readiness String

Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {exec:{command:[sh,"-c","cat /home/admin/start.sh"]},initialDelaySeconds:30,periodSeconds:30,"timeoutSeconds ":2}. Valid values: command, initialDelaySeconds, periodSeconds, timeoutSeconds.

securityGroupId String

Security group ID.

slsConfigs String

SLS configuration.

status String

The status of the resource. Valid values: RUNNING, STOPPED.

tags Map<Any>

A mapping of tags to assign to the resource.

terminationGracePeriodSeconds Number

Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].

timezone String

Time zone, the default value is Asia/Shanghai.

tomcatConfig String

Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: contextInputType, contextPath, httpPort, maxThreads, uriEncoding, useBodyEncoding, useDefaultConfig.

updateStrategy String

The update strategy.

versionId String

Application version id.

vpcId String

The vpc id.

vswitchId String

The vswitch id.

warStartOptions String

WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.

webContainer String

The version of tomcat that the deployment package depends on. Image type applications are not supported.

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing Application Resource

Get an existing Application 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?: ApplicationState, opts?: CustomResourceOptions): Application
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        acr_assume_role_arn: Optional[str] = None,
        acr_instance_id: Optional[str] = None,
        app_description: Optional[str] = None,
        app_name: Optional[str] = None,
        auto_config: Optional[bool] = None,
        auto_enable_application_scaling_rule: Optional[bool] = None,
        batch_wait_time: Optional[int] = None,
        change_order_desc: Optional[str] = None,
        command: Optional[str] = None,
        command_args: Optional[str] = None,
        config_map_mount_desc: Optional[str] = None,
        cpu: Optional[int] = None,
        custom_host_alias: Optional[str] = None,
        deploy: Optional[bool] = None,
        edas_container_version: Optional[str] = None,
        enable_ahas: Optional[str] = None,
        enable_grey_tag_route: Optional[bool] = None,
        envs: Optional[str] = None,
        image_url: Optional[str] = None,
        jar_start_args: Optional[str] = None,
        jar_start_options: Optional[str] = None,
        jdk: Optional[str] = None,
        liveness: Optional[str] = None,
        memory: Optional[int] = None,
        micro_registration: Optional[str] = None,
        min_ready_instance_ratio: Optional[int] = None,
        min_ready_instances: Optional[int] = None,
        mount_desc: Optional[str] = None,
        mount_host: Optional[str] = None,
        namespace_id: Optional[str] = None,
        nas_id: Optional[str] = None,
        oss_ak_id: Optional[str] = None,
        oss_ak_secret: Optional[str] = None,
        oss_mount_descs: Optional[str] = None,
        package_type: Optional[str] = None,
        package_url: Optional[str] = None,
        package_version: Optional[str] = None,
        php_arms_config_location: Optional[str] = None,
        php_config: Optional[str] = None,
        php_config_location: Optional[str] = None,
        post_start: Optional[str] = None,
        pre_stop: Optional[str] = None,
        readiness: Optional[str] = None,
        replicas: Optional[int] = None,
        security_group_id: Optional[str] = None,
        sls_configs: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, Any]] = None,
        termination_grace_period_seconds: Optional[int] = None,
        timezone: Optional[str] = None,
        tomcat_config: Optional[str] = None,
        update_strategy: Optional[str] = None,
        version_id: Optional[str] = None,
        vpc_id: Optional[str] = None,
        vswitch_id: Optional[str] = None,
        war_start_options: Optional[str] = None,
        web_container: Optional[str] = None) -> Application
func GetApplication(ctx *Context, name string, id IDInput, state *ApplicationState, opts ...ResourceOption) (*Application, error)
public static Application Get(string name, Input<string> id, ApplicationState? state, CustomResourceOptions? opts = null)
public static Application get(String name, Output<String> id, ApplicationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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:
AcrAssumeRoleArn string

The ARN of the RAM role required when pulling images across accounts. Only necessary if the image_url is pointing to an ACR EE instance.

AcrInstanceId string

The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.

AppDescription string

Application description information. No more than 1024 characters.

AppName string

Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.

AutoConfig bool

The auto config. Valid values: false, true.

AutoEnableApplicationScalingRule bool

The auto enable application scaling rule. Valid values: false, true.

BatchWaitTime int

The batch wait time.

ChangeOrderDesc string

The change order desc.

Command string

Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.

CommandArgs string

Mirror startup command parameters. The parameters required for the above start command. For example: 1d.

ConfigMapMountDesc string

ConfigMap mount description.

Cpu int

The CPU required for each instance, in millicores, cannot be 0. Valid values: 1000, 16000, 2000, 32000, 4000, 500, 8000.

CustomHostAlias string

Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}].

Deploy bool

The deploy. Valid values: false, true.

EdasContainerVersion string

The operating environment used by the Pandora application.

EnableAhas string

The enable ahas.

EnableGreyTagRoute bool

The enable grey tag route.

Envs string

Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:

ImageUrl string

Mirror address. Only Image type applications can configure the mirror address.

JarStartArgs string

The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

JarStartOptions string

The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

Jdk string

The JDK version that the deployment package depends on. Image type applications are not supported.

Liveness string

Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.

Memory int

The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 131072, 16384, 2048, 32768, 4096, 65536, 8192.

MicroRegistration string

Select the Nacos registry. Valid values: 0, 1, 2.

MinReadyInstanceRatio int

Minimum Survival Instance Percentage. NOTE: When min_ready_instances and min_ready_instance_ratio are passed at the same time, and the value of min_ready_instance_ratio is not -1, the min_ready_instance_ratio parameter shall prevail. Assuming that min_ready_instances is 5 and min_ready_instance_ratio is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:

  • -1: Initialization value, indicating that percentages are not used.
  • 0~100: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
MinReadyInstances int

The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.

MountDesc string

Mount description.

MountHost string

Mount point of NAS in application VPC.

NamespaceId string

SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.

NasId string

ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.

OssAkId string

OSS AccessKey ID.

OssAkSecret string

OSS AccessKey Secret.

OssMountDescs string

OSS mount description information.

PackageType string

Application package type. Support FatJar, War and Image. Valid values: FatJar, Image, War.

PackageUrl string

Deployment package address. Only FatJar or War type applications can configure the deployment package address.

PackageVersion string

The version number of the deployment package. Required when the Package Type is War and FatJar.

PhpArmsConfigLocation string

The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.

PhpConfig string

PHP configuration file content.

PhpConfigLocation string

PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.

PostStart string

Execute the script after startup, the format is like: {exec:{command:[cat,"/etc/group"]}}.

PreStop string

Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}.

Readiness string

Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {exec:{command:[sh,"-c","cat /home/admin/start.sh"]},initialDelaySeconds:30,periodSeconds:30,"timeoutSeconds ":2}. Valid values: command, initialDelaySeconds, periodSeconds, timeoutSeconds.

Replicas int

Initial number of instances.

SecurityGroupId string

Security group ID.

SlsConfigs string

SLS configuration.

Status string

The status of the resource. Valid values: RUNNING, STOPPED.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

TerminationGracePeriodSeconds int

Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].

Timezone string

Time zone, the default value is Asia/Shanghai.

TomcatConfig string

Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: contextInputType, contextPath, httpPort, maxThreads, uriEncoding, useBodyEncoding, useDefaultConfig.

UpdateStrategy string

The update strategy.

VersionId string

Application version id.

VpcId string

The vpc id.

VswitchId string

The vswitch id.

WarStartOptions string

WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.

WebContainer string

The version of tomcat that the deployment package depends on. Image type applications are not supported.

AcrAssumeRoleArn string

The ARN of the RAM role required when pulling images across accounts. Only necessary if the image_url is pointing to an ACR EE instance.

AcrInstanceId string

The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.

AppDescription string

Application description information. No more than 1024 characters.

AppName string

Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.

AutoConfig bool

The auto config. Valid values: false, true.

AutoEnableApplicationScalingRule bool

The auto enable application scaling rule. Valid values: false, true.

BatchWaitTime int

The batch wait time.

ChangeOrderDesc string

The change order desc.

Command string

Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.

CommandArgs string

Mirror startup command parameters. The parameters required for the above start command. For example: 1d.

ConfigMapMountDesc string

ConfigMap mount description.

Cpu int

The CPU required for each instance, in millicores, cannot be 0. Valid values: 1000, 16000, 2000, 32000, 4000, 500, 8000.

CustomHostAlias string

Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}].

Deploy bool

The deploy. Valid values: false, true.

EdasContainerVersion string

The operating environment used by the Pandora application.

EnableAhas string

The enable ahas.

EnableGreyTagRoute bool

The enable grey tag route.

Envs string

Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:

ImageUrl string

Mirror address. Only Image type applications can configure the mirror address.

JarStartArgs string

The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

JarStartOptions string

The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

Jdk string

The JDK version that the deployment package depends on. Image type applications are not supported.

Liveness string

Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.

Memory int

The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 131072, 16384, 2048, 32768, 4096, 65536, 8192.

MicroRegistration string

Select the Nacos registry. Valid values: 0, 1, 2.

MinReadyInstanceRatio int

Minimum Survival Instance Percentage. NOTE: When min_ready_instances and min_ready_instance_ratio are passed at the same time, and the value of min_ready_instance_ratio is not -1, the min_ready_instance_ratio parameter shall prevail. Assuming that min_ready_instances is 5 and min_ready_instance_ratio is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:

  • -1: Initialization value, indicating that percentages are not used.
  • 0~100: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
MinReadyInstances int

The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.

MountDesc string

Mount description.

MountHost string

Mount point of NAS in application VPC.

NamespaceId string

SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.

NasId string

ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.

OssAkId string

OSS AccessKey ID.

OssAkSecret string

OSS AccessKey Secret.

OssMountDescs string

OSS mount description information.

PackageType string

Application package type. Support FatJar, War and Image. Valid values: FatJar, Image, War.

PackageUrl string

Deployment package address. Only FatJar or War type applications can configure the deployment package address.

PackageVersion string

The version number of the deployment package. Required when the Package Type is War and FatJar.

PhpArmsConfigLocation string

The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.

PhpConfig string

PHP configuration file content.

PhpConfigLocation string

PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.

PostStart string

Execute the script after startup, the format is like: {exec:{command:[cat,"/etc/group"]}}.

PreStop string

Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}.

Readiness string

Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {exec:{command:[sh,"-c","cat /home/admin/start.sh"]},initialDelaySeconds:30,periodSeconds:30,"timeoutSeconds ":2}. Valid values: command, initialDelaySeconds, periodSeconds, timeoutSeconds.

Replicas int

Initial number of instances.

SecurityGroupId string

Security group ID.

SlsConfigs string

SLS configuration.

Status string

The status of the resource. Valid values: RUNNING, STOPPED.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

TerminationGracePeriodSeconds int

Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].

Timezone string

Time zone, the default value is Asia/Shanghai.

TomcatConfig string

Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: contextInputType, contextPath, httpPort, maxThreads, uriEncoding, useBodyEncoding, useDefaultConfig.

UpdateStrategy string

The update strategy.

VersionId string

Application version id.

VpcId string

The vpc id.

VswitchId string

The vswitch id.

WarStartOptions string

WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.

WebContainer string

The version of tomcat that the deployment package depends on. Image type applications are not supported.

acrAssumeRoleArn String

The ARN of the RAM role required when pulling images across accounts. Only necessary if the image_url is pointing to an ACR EE instance.

acrInstanceId String

The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.

appDescription String

Application description information. No more than 1024 characters.

appName String

Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.

autoConfig Boolean

The auto config. Valid values: false, true.

autoEnableApplicationScalingRule Boolean

The auto enable application scaling rule. Valid values: false, true.

batchWaitTime Integer

The batch wait time.

changeOrderDesc String

The change order desc.

command String

Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.

commandArgs String

Mirror startup command parameters. The parameters required for the above start command. For example: 1d.

configMapMountDesc String

ConfigMap mount description.

cpu Integer

The CPU required for each instance, in millicores, cannot be 0. Valid values: 1000, 16000, 2000, 32000, 4000, 500, 8000.

customHostAlias String

Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}].

deploy Boolean

The deploy. Valid values: false, true.

edasContainerVersion String

The operating environment used by the Pandora application.

enableAhas String

The enable ahas.

enableGreyTagRoute Boolean

The enable grey tag route.

envs String

Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:

imageUrl String

Mirror address. Only Image type applications can configure the mirror address.

jarStartArgs String

The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jarStartOptions String

The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jdk String

The JDK version that the deployment package depends on. Image type applications are not supported.

liveness String

Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.

memory Integer

The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 131072, 16384, 2048, 32768, 4096, 65536, 8192.

microRegistration String

Select the Nacos registry. Valid values: 0, 1, 2.

minReadyInstanceRatio Integer

Minimum Survival Instance Percentage. NOTE: When min_ready_instances and min_ready_instance_ratio are passed at the same time, and the value of min_ready_instance_ratio is not -1, the min_ready_instance_ratio parameter shall prevail. Assuming that min_ready_instances is 5 and min_ready_instance_ratio is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:

  • -1: Initialization value, indicating that percentages are not used.
  • 0~100: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
minReadyInstances Integer

The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.

mountDesc String

Mount description.

mountHost String

Mount point of NAS in application VPC.

namespaceId String

SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.

nasId String

ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.

ossAkId String

OSS AccessKey ID.

ossAkSecret String

OSS AccessKey Secret.

ossMountDescs String

OSS mount description information.

packageType String

Application package type. Support FatJar, War and Image. Valid values: FatJar, Image, War.

packageUrl String

Deployment package address. Only FatJar or War type applications can configure the deployment package address.

packageVersion String

The version number of the deployment package. Required when the Package Type is War and FatJar.

phpArmsConfigLocation String

The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.

phpConfig String

PHP configuration file content.

phpConfigLocation String

PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.

postStart String

Execute the script after startup, the format is like: {exec:{command:[cat,"/etc/group"]}}.

preStop String

Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}.

readiness String

Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {exec:{command:[sh,"-c","cat /home/admin/start.sh"]},initialDelaySeconds:30,periodSeconds:30,"timeoutSeconds ":2}. Valid values: command, initialDelaySeconds, periodSeconds, timeoutSeconds.

replicas Integer

Initial number of instances.

securityGroupId String

Security group ID.

slsConfigs String

SLS configuration.

status String

The status of the resource. Valid values: RUNNING, STOPPED.

tags Map<String,Object>

A mapping of tags to assign to the resource.

terminationGracePeriodSeconds Integer

Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].

timezone String

Time zone, the default value is Asia/Shanghai.

tomcatConfig String

Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: contextInputType, contextPath, httpPort, maxThreads, uriEncoding, useBodyEncoding, useDefaultConfig.

updateStrategy String

The update strategy.

versionId String

Application version id.

vpcId String

The vpc id.

vswitchId String

The vswitch id.

warStartOptions String

WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.

webContainer String

The version of tomcat that the deployment package depends on. Image type applications are not supported.

acrAssumeRoleArn string

The ARN of the RAM role required when pulling images across accounts. Only necessary if the image_url is pointing to an ACR EE instance.

acrInstanceId string

The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.

appDescription string

Application description information. No more than 1024 characters.

appName string

Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.

autoConfig boolean

The auto config. Valid values: false, true.

autoEnableApplicationScalingRule boolean

The auto enable application scaling rule. Valid values: false, true.

batchWaitTime number

The batch wait time.

changeOrderDesc string

The change order desc.

command string

Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.

commandArgs string

Mirror startup command parameters. The parameters required for the above start command. For example: 1d.

configMapMountDesc string

ConfigMap mount description.

cpu number

The CPU required for each instance, in millicores, cannot be 0. Valid values: 1000, 16000, 2000, 32000, 4000, 500, 8000.

customHostAlias string

Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}].

deploy boolean

The deploy. Valid values: false, true.

edasContainerVersion string

The operating environment used by the Pandora application.

enableAhas string

The enable ahas.

enableGreyTagRoute boolean

The enable grey tag route.

envs string

Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:

imageUrl string

Mirror address. Only Image type applications can configure the mirror address.

jarStartArgs string

The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jarStartOptions string

The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jdk string

The JDK version that the deployment package depends on. Image type applications are not supported.

liveness string

Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.

memory number

The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 131072, 16384, 2048, 32768, 4096, 65536, 8192.

microRegistration string

Select the Nacos registry. Valid values: 0, 1, 2.

minReadyInstanceRatio number

Minimum Survival Instance Percentage. NOTE: When min_ready_instances and min_ready_instance_ratio are passed at the same time, and the value of min_ready_instance_ratio is not -1, the min_ready_instance_ratio parameter shall prevail. Assuming that min_ready_instances is 5 and min_ready_instance_ratio is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:

  • -1: Initialization value, indicating that percentages are not used.
  • 0~100: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
minReadyInstances number

The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.

mountDesc string

Mount description.

mountHost string

Mount point of NAS in application VPC.

namespaceId string

SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.

nasId string

ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.

ossAkId string

OSS AccessKey ID.

ossAkSecret string

OSS AccessKey Secret.

ossMountDescs string

OSS mount description information.

packageType string

Application package type. Support FatJar, War and Image. Valid values: FatJar, Image, War.

packageUrl string

Deployment package address. Only FatJar or War type applications can configure the deployment package address.

packageVersion string

The version number of the deployment package. Required when the Package Type is War and FatJar.

phpArmsConfigLocation string

The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.

phpConfig string

PHP configuration file content.

phpConfigLocation string

PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.

postStart string

Execute the script after startup, the format is like: {exec:{command:[cat,"/etc/group"]}}.

preStop string

Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}.

readiness string

Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {exec:{command:[sh,"-c","cat /home/admin/start.sh"]},initialDelaySeconds:30,periodSeconds:30,"timeoutSeconds ":2}. Valid values: command, initialDelaySeconds, periodSeconds, timeoutSeconds.

replicas number

Initial number of instances.

securityGroupId string

Security group ID.

slsConfigs string

SLS configuration.

status string

The status of the resource. Valid values: RUNNING, STOPPED.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

terminationGracePeriodSeconds number

Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].

timezone string

Time zone, the default value is Asia/Shanghai.

tomcatConfig string

Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: contextInputType, contextPath, httpPort, maxThreads, uriEncoding, useBodyEncoding, useDefaultConfig.

updateStrategy string

The update strategy.

versionId string

Application version id.

vpcId string

The vpc id.

vswitchId string

The vswitch id.

warStartOptions string

WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.

webContainer string

The version of tomcat that the deployment package depends on. Image type applications are not supported.

acr_assume_role_arn str

The ARN of the RAM role required when pulling images across accounts. Only necessary if the image_url is pointing to an ACR EE instance.

acr_instance_id str

The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.

app_description str

Application description information. No more than 1024 characters.

app_name str

Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.

auto_config bool

The auto config. Valid values: false, true.

auto_enable_application_scaling_rule bool

The auto enable application scaling rule. Valid values: false, true.

batch_wait_time int

The batch wait time.

change_order_desc str

The change order desc.

command str

Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.

command_args str

Mirror startup command parameters. The parameters required for the above start command. For example: 1d.

config_map_mount_desc str

ConfigMap mount description.

cpu int

The CPU required for each instance, in millicores, cannot be 0. Valid values: 1000, 16000, 2000, 32000, 4000, 500, 8000.

custom_host_alias str

Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}].

deploy bool

The deploy. Valid values: false, true.

edas_container_version str

The operating environment used by the Pandora application.

enable_ahas str

The enable ahas.

enable_grey_tag_route bool

The enable grey tag route.

envs str

Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:

image_url str

Mirror address. Only Image type applications can configure the mirror address.

jar_start_args str

The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jar_start_options str

The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jdk str

The JDK version that the deployment package depends on. Image type applications are not supported.

liveness str

Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.

memory int

The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 131072, 16384, 2048, 32768, 4096, 65536, 8192.

micro_registration str

Select the Nacos registry. Valid values: 0, 1, 2.

min_ready_instance_ratio int

Minimum Survival Instance Percentage. NOTE: When min_ready_instances and min_ready_instance_ratio are passed at the same time, and the value of min_ready_instance_ratio is not -1, the min_ready_instance_ratio parameter shall prevail. Assuming that min_ready_instances is 5 and min_ready_instance_ratio is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:

  • -1: Initialization value, indicating that percentages are not used.
  • 0~100: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
min_ready_instances int

The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.

mount_desc str

Mount description.

mount_host str

Mount point of NAS in application VPC.

namespace_id str

SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.

nas_id str

ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.

oss_ak_id str

OSS AccessKey ID.

oss_ak_secret str

OSS AccessKey Secret.

oss_mount_descs str

OSS mount description information.

package_type str

Application package type. Support FatJar, War and Image. Valid values: FatJar, Image, War.

package_url str

Deployment package address. Only FatJar or War type applications can configure the deployment package address.

package_version str

The version number of the deployment package. Required when the Package Type is War and FatJar.

php_arms_config_location str

The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.

php_config str

PHP configuration file content.

php_config_location str

PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.

post_start str

Execute the script after startup, the format is like: {exec:{command:[cat,"/etc/group"]}}.

pre_stop str

Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}.

readiness str

Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {exec:{command:[sh,"-c","cat /home/admin/start.sh"]},initialDelaySeconds:30,periodSeconds:30,"timeoutSeconds ":2}. Valid values: command, initialDelaySeconds, periodSeconds, timeoutSeconds.

replicas int

Initial number of instances.

security_group_id str

Security group ID.

sls_configs str

SLS configuration.

status str

The status of the resource. Valid values: RUNNING, STOPPED.

tags Mapping[str, Any]

A mapping of tags to assign to the resource.

termination_grace_period_seconds int

Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].

timezone str

Time zone, the default value is Asia/Shanghai.

tomcat_config str

Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: contextInputType, contextPath, httpPort, maxThreads, uriEncoding, useBodyEncoding, useDefaultConfig.

update_strategy str

The update strategy.

version_id str

Application version id.

vpc_id str

The vpc id.

vswitch_id str

The vswitch id.

war_start_options str

WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.

web_container str

The version of tomcat that the deployment package depends on. Image type applications are not supported.

acrAssumeRoleArn String

The ARN of the RAM role required when pulling images across accounts. Only necessary if the image_url is pointing to an ACR EE instance.

acrInstanceId String

The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.

appDescription String

Application description information. No more than 1024 characters.

appName String

Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.

autoConfig Boolean

The auto config. Valid values: false, true.

autoEnableApplicationScalingRule Boolean

The auto enable application scaling rule. Valid values: false, true.

batchWaitTime Number

The batch wait time.

changeOrderDesc String

The change order desc.

command String

Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.

commandArgs String

Mirror startup command parameters. The parameters required for the above start command. For example: 1d.

configMapMountDesc String

ConfigMap mount description.

cpu Number

The CPU required for each instance, in millicores, cannot be 0. Valid values: 1000, 16000, 2000, 32000, 4000, 500, 8000.

customHostAlias String

Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}].

deploy Boolean

The deploy. Valid values: false, true.

edasContainerVersion String

The operating environment used by the Pandora application.

enableAhas String

The enable ahas.

enableGreyTagRoute Boolean

The enable grey tag route.

envs String

Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:

imageUrl String

Mirror address. Only Image type applications can configure the mirror address.

jarStartArgs String

The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jarStartOptions String

The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

jdk String

The JDK version that the deployment package depends on. Image type applications are not supported.

liveness String

Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.

memory Number

The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 131072, 16384, 2048, 32768, 4096, 65536, 8192.

microRegistration String

Select the Nacos registry. Valid values: 0, 1, 2.

minReadyInstanceRatio Number

Minimum Survival Instance Percentage. NOTE: When min_ready_instances and min_ready_instance_ratio are passed at the same time, and the value of min_ready_instance_ratio is not -1, the min_ready_instance_ratio parameter shall prevail. Assuming that min_ready_instances is 5 and min_ready_instance_ratio is 50, 50 is used to calculate the minimum number of surviving instances.The value description is as follows:

  • -1: Initialization value, indicating that percentages are not used.
  • 0~100: The unit is percentage, rounded up. For example, if it is set to 50%, if there are currently 5 instances, the minimum number of surviving instances is 3.
minReadyInstances Number

The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.

mountDesc String

Mount description.

mountHost String

Mount point of NAS in application VPC.

namespaceId String

SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.

nasId String

ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.

ossAkId String

OSS AccessKey ID.

ossAkSecret String

OSS AccessKey Secret.

ossMountDescs String

OSS mount description information.

packageType String

Application package type. Support FatJar, War and Image. Valid values: FatJar, Image, War.

packageUrl String

Deployment package address. Only FatJar or War type applications can configure the deployment package address.

packageVersion String

The version number of the deployment package. Required when the Package Type is War and FatJar.

phpArmsConfigLocation String

The PHP application monitors the mount path, and you need to ensure that the PHP server will load the configuration file of this path. You don't need to pay attention to the configuration content, SAE will automatically render the correct configuration file.

phpConfig String

PHP configuration file content.

phpConfigLocation String

PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.

postStart String

Execute the script after startup, the format is like: {exec:{command:[cat,"/etc/group"]}}.

preStop String

Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}.

readiness String

Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {exec:{command:[sh,"-c","cat /home/admin/start.sh"]},initialDelaySeconds:30,periodSeconds:30,"timeoutSeconds ":2}. Valid values: command, initialDelaySeconds, periodSeconds, timeoutSeconds.

replicas Number

Initial number of instances.

securityGroupId String

Security group ID.

slsConfigs String

SLS configuration.

status String

The status of the resource. Valid values: RUNNING, STOPPED.

tags Map<Any>

A mapping of tags to assign to the resource.

terminationGracePeriodSeconds Number

Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].

timezone String

Time zone, the default value is Asia/Shanghai.

tomcatConfig String

Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values: contextInputType, contextPath, httpPort, maxThreads, uriEncoding, useBodyEncoding, useDefaultConfig.

updateStrategy String

The update strategy.

versionId String

Application version id.

vpcId String

The vpc id.

vswitchId String

The vswitch id.

warStartOptions String

WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.

webContainer String

The version of tomcat that the deployment package depends on. Image type applications are not supported.

Import

Serverless App Engine (SAE) Application can be imported using the id, e.g.

 $ pulumi import alicloud:sae/application:Application example <id>

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.