Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Alibaba Cloud

v3.8.0 published on Monday, Oct 4, 2021 by Pulumi

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.133.0+.

Example Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var config = new Config();
        var name = config.Get("name") ?? "tf-testacc";
        var defaultZones = Output.Create(AliCloud.GetZones.InvokeAsync(new AliCloud.GetZonesArgs
        {
            AvailableResourceCreation = "VSwitch",
        }));
        var vpc = new AliCloud.Vpc.Network("vpc", new AliCloud.Vpc.NetworkArgs
        {
            VpcName = "tf_testacc",
            CidrBlock = "172.16.0.0/12",
        });
        var vsw = new AliCloud.Vpc.Switch("vsw", new AliCloud.Vpc.SwitchArgs
        {
            VpcId = vpc.Id,
            CidrBlock = "172.16.0.0/24",
            ZoneId = defaultZones.Apply(defaultZones => defaultZones.Zones[0].Id),
            VswitchName = name,
        });
        var defaultNamespace = new AliCloud.Sae.Namespace("defaultNamespace", new AliCloud.Sae.NamespaceArgs
        {
            NamespaceDescription = name,
            NamespaceId = "cn-hangzhou:tfacctest",
            NamespaceName = name,
        });
        var defaultApplication = new AliCloud.Sae.Application("defaultApplication", new AliCloud.Sae.ApplicationArgs
        {
            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
		}
		opt0 := "VSwitch"
		defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: &opt0,
		}, 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
	})
}
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",
});

Create a Application Resource

new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
                opts: Optional[ResourceOptions] = 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,
                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,
                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,
                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)
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.

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.
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
The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace.
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.
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.
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.
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.
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
The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace.
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.
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.
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.
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.
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
The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace.
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.
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.
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.
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.
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
The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace.
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.
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.
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.
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.

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 str
The provider-assigned unique ID for this managed resource.

Look up an 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,
        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,
        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,
        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,
        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)
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.

The following state arguments are supported:

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
The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace.
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.
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.
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.
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.
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
The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace.
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.
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.
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.
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.
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
The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace.
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.
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.
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.
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_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
The virtual switch where the elastic network card of the application instance is located. The switch must be located in the aforementioned VPC. The switch also has a binding relationship with the SAE namespace. If it is left blank, the default is the vSwitch ID bound to the namespace.
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.
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.
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.
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.

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
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.