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

alicloud.sae.Application

Explore with Pulumi AI

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 since v1.161.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
import * as random from "@pulumi/random";

const config = new pulumi.Config();
const region = config.get("region") || "cn-hangzhou";
const name = config.get("name") || "tf-example";
const defaultInteger = new random.index.Integer("default", {
    max: 99999,
    min: 10000,
});
const _default = alicloud.getRegions({
    current: true,
});
const defaultGetZones = alicloud.getZones({
    availableResourceCreation: "VSwitch",
});
const defaultNetwork = new alicloud.vpc.Network("default", {
    vpcName: name,
    cidrBlock: "10.4.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
    vswitchName: name,
    cidrBlock: "10.4.0.0/24",
    vpcId: defaultNetwork.id,
    zoneId: defaultGetZones.then(defaultGetZones => defaultGetZones.zones?.[0]?.id),
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {vpcId: defaultNetwork.id});
const defaultNamespace = new alicloud.sae.Namespace("default", {
    namespaceId: _default.then(_default => `${_default.regions?.[0]?.id}:example${defaultInteger.result}`),
    namespaceName: name,
    namespaceDescription: name,
    enableMicroRegistration: false,
});
const defaultApplication = new alicloud.sae.Application("default", {
    appDescription: name,
    appName: `${name}-${defaultInteger.result}`,
    namespaceId: defaultNamespace.id,
    imageUrl: _default.then(_default => `registry-vpc.${_default.regions?.[0]?.id}.aliyuncs.com/sae-demo-image/consumer:1.0`),
    packageType: "Image",
    securityGroupId: defaultSecurityGroup.id,
    vpcId: defaultNetwork.id,
    vswitchId: defaultSwitch.id,
    timezone: "Asia/Beijing",
    replicas: 5,
    cpu: 500,
    memory: 2048,
});
Copy
import pulumi
import pulumi_alicloud as alicloud
import pulumi_random as random

config = pulumi.Config()
region = config.get("region")
if region is None:
    region = "cn-hangzhou"
name = config.get("name")
if name is None:
    name = "tf-example"
default_integer = random.index.Integer("default",
    max=99999,
    min=10000)
default = alicloud.get_regions(current=True)
default_get_zones = alicloud.get_zones(available_resource_creation="VSwitch")
default_network = alicloud.vpc.Network("default",
    vpc_name=name,
    cidr_block="10.4.0.0/16")
default_switch = alicloud.vpc.Switch("default",
    vswitch_name=name,
    cidr_block="10.4.0.0/24",
    vpc_id=default_network.id,
    zone_id=default_get_zones.zones[0].id)
default_security_group = alicloud.ecs.SecurityGroup("default", vpc_id=default_network.id)
default_namespace = alicloud.sae.Namespace("default",
    namespace_id=f"{default.regions[0].id}:example{default_integer['result']}",
    namespace_name=name,
    namespace_description=name,
    enable_micro_registration=False)
default_application = alicloud.sae.Application("default",
    app_description=name,
    app_name=f"{name}-{default_integer['result']}",
    namespace_id=default_namespace.id,
    image_url=f"registry-vpc.{default.regions[0].id}.aliyuncs.com/sae-demo-image/consumer:1.0",
    package_type="Image",
    security_group_id=default_security_group.id,
    vpc_id=default_network.id,
    vswitch_id=default_switch.id,
    timezone="Asia/Beijing",
    replicas=5,
    cpu=500,
    memory=2048)
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae"
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
	"github.com/pulumi/pulumi-random/sdk/v4/go/random"
	"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, "")
		region := "cn-hangzhou"
		if param := cfg.Get("region"); param != "" {
			region = param
		}
		name := "tf-example"
		if param := cfg.Get("name"); param != "" {
			name = param
		}
		defaultInteger, err := random.NewInteger(ctx, "default", &random.IntegerArgs{
			Max: 99999,
			Min: 10000,
		})
		if err != nil {
			return err
		}
		_default, err := alicloud.GetRegions(ctx, &alicloud.GetRegionsArgs{
			Current: pulumi.BoolRef(true),
		}, nil)
		if err != nil {
			return err
		}
		defaultGetZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
			AvailableResourceCreation: pulumi.StringRef("VSwitch"),
		}, nil)
		if err != nil {
			return err
		}
		defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
			VpcName:   pulumi.String(name),
			CidrBlock: pulumi.String("10.4.0.0/16"),
		})
		if err != nil {
			return err
		}
		defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
			VswitchName: pulumi.String(name),
			CidrBlock:   pulumi.String("10.4.0.0/24"),
			VpcId:       defaultNetwork.ID(),
			ZoneId:      pulumi.String(defaultGetZones.Zones[0].Id),
		})
		if err != nil {
			return err
		}
		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
			VpcId: defaultNetwork.ID(),
		})
		if err != nil {
			return err
		}
		defaultNamespace, err := sae.NewNamespace(ctx, "default", &sae.NamespaceArgs{
			NamespaceId:             pulumi.Sprintf("%v:example%v", _default.Regions[0].Id, defaultInteger.Result),
			NamespaceName:           pulumi.String(name),
			NamespaceDescription:    pulumi.String(name),
			EnableMicroRegistration: pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = sae.NewApplication(ctx, "default", &sae.ApplicationArgs{
			AppDescription:  pulumi.String(name),
			AppName:         pulumi.Sprintf("%v-%v", name, defaultInteger.Result),
			NamespaceId:     defaultNamespace.ID(),
			ImageUrl:        pulumi.Sprintf("registry-vpc.%v.aliyuncs.com/sae-demo-image/consumer:1.0", _default.Regions[0].Id),
			PackageType:     pulumi.String("Image"),
			SecurityGroupId: defaultSecurityGroup.ID(),
			VpcId:           defaultNetwork.ID(),
			VswitchId:       defaultSwitch.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
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
using Random = Pulumi.Random;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var region = config.Get("region") ?? "cn-hangzhou";
    var name = config.Get("name") ?? "tf-example";
    var defaultInteger = new Random.Index.Integer("default", new()
    {
        Max = 99999,
        Min = 10000,
    });

    var @default = AliCloud.GetRegions.Invoke(new()
    {
        Current = true,
    });

    var defaultGetZones = AliCloud.GetZones.Invoke(new()
    {
        AvailableResourceCreation = "VSwitch",
    });

    var defaultNetwork = new AliCloud.Vpc.Network("default", new()
    {
        VpcName = name,
        CidrBlock = "10.4.0.0/16",
    });

    var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
    {
        VswitchName = name,
        CidrBlock = "10.4.0.0/24",
        VpcId = defaultNetwork.Id,
        ZoneId = defaultGetZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
    });

    var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
    {
        VpcId = defaultNetwork.Id,
    });

    var defaultNamespace = new AliCloud.Sae.Namespace("default", new()
    {
        NamespaceId = @default.Apply(@default => $"{@default.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id)}:example{defaultInteger.Result}"),
        NamespaceName = name,
        NamespaceDescription = name,
        EnableMicroRegistration = false,
    });

    var defaultApplication = new AliCloud.Sae.Application("default", new()
    {
        AppDescription = name,
        AppName = $"{name}-{defaultInteger.Result}",
        NamespaceId = defaultNamespace.Id,
        ImageUrl = @default.Apply(@default => $"registry-vpc.{@default.Apply(getRegionsResult => getRegionsResult.Regions[0]?.Id)}.aliyuncs.com/sae-demo-image/consumer:1.0"),
        PackageType = "Image",
        SecurityGroupId = defaultSecurityGroup.Id,
        VpcId = defaultNetwork.Id,
        VswitchId = defaultSwitch.Id,
        Timezone = "Asia/Beijing",
        Replicas = 5,
        Cpu = 500,
        Memory = 2048,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.random.integer;
import com.pulumi.random.IntegerArgs;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetRegionsArgs;
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.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
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 region = config.get("region").orElse("cn-hangzhou");
        final var name = config.get("name").orElse("tf-example");
        var defaultInteger = new Integer("defaultInteger", IntegerArgs.builder()
            .max(99999)
            .min(10000)
            .build());

        final var default = AlicloudFunctions.getRegions(GetRegionsArgs.builder()
            .current(true)
            .build());

        final var defaultGetZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
            .availableResourceCreation("VSwitch")
            .build());

        var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
            .vpcName(name)
            .cidrBlock("10.4.0.0/16")
            .build());

        var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
            .vswitchName(name)
            .cidrBlock("10.4.0.0/24")
            .vpcId(defaultNetwork.id())
            .zoneId(defaultGetZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
            .build());

        var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
            .vpcId(defaultNetwork.id())
            .build());

        var defaultNamespace = new Namespace("defaultNamespace", NamespaceArgs.builder()
            .namespaceId(String.format("%s:example%s", default_.regions()[0].id(),defaultInteger.result()))
            .namespaceName(name)
            .namespaceDescription(name)
            .enableMicroRegistration(false)
            .build());

        var defaultApplication = new Application("defaultApplication", ApplicationArgs.builder()
            .appDescription(name)
            .appName(String.format("%s-%s", name,defaultInteger.result()))
            .namespaceId(defaultNamespace.id())
            .imageUrl(String.format("registry-vpc.%s.aliyuncs.com/sae-demo-image/consumer:1.0", default_.regions()[0].id()))
            .packageType("Image")
            .securityGroupId(defaultSecurityGroup.id())
            .vpcId(defaultNetwork.id())
            .vswitchId(defaultSwitch.id())
            .timezone("Asia/Beijing")
            .replicas("5")
            .cpu("500")
            .memory("2048")
            .build());

    }
}
Copy
configuration:
  region:
    type: string
    default: cn-hangzhou
  name:
    type: string
    default: tf-example
resources:
  defaultInteger:
    type: random:integer
    name: default
    properties:
      max: 99999
      min: 10000
  defaultNetwork:
    type: alicloud:vpc:Network
    name: default
    properties:
      vpcName: ${name}
      cidrBlock: 10.4.0.0/16
  defaultSwitch:
    type: alicloud:vpc:Switch
    name: default
    properties:
      vswitchName: ${name}
      cidrBlock: 10.4.0.0/24
      vpcId: ${defaultNetwork.id}
      zoneId: ${defaultGetZones.zones[0].id}
  defaultSecurityGroup:
    type: alicloud:ecs:SecurityGroup
    name: default
    properties:
      vpcId: ${defaultNetwork.id}
  defaultNamespace:
    type: alicloud:sae:Namespace
    name: default
    properties:
      namespaceId: ${default.regions[0].id}:example${defaultInteger.result}
      namespaceName: ${name}
      namespaceDescription: ${name}
      enableMicroRegistration: false
  defaultApplication:
    type: alicloud:sae:Application
    name: default
    properties:
      appDescription: ${name}
      appName: ${name}-${defaultInteger.result}
      namespaceId: ${defaultNamespace.id}
      imageUrl: registry-vpc.${default.regions[0].id}.aliyuncs.com/sae-demo-image/consumer:1.0
      packageType: Image
      securityGroupId: ${defaultSecurityGroup.id}
      vpcId: ${defaultNetwork.id}
      vswitchId: ${defaultSwitch.id}
      timezone: Asia/Beijing
      replicas: '5'
      cpu: '500'
      memory: '2048'
variables:
  default:
    fn::invoke:
      function: alicloud:getRegions
      arguments:
        current: true
  defaultGetZones:
    fn::invoke:
      function: alicloud:getZones
      arguments:
        availableResourceCreation: VSwitch
Copy

Create Application Resource

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

Constructor syntax

new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
                args: ApplicationArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def Application(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                app_name: Optional[str] = None,
                package_type: Optional[str] = None,
                replicas: Optional[int] = None,
                acr_assume_role_arn: Optional[str] = None,
                acr_instance_id: Optional[str] = None,
                app_description: 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,
                command_args_v2s: Optional[Sequence[str]] = None,
                config_map_mount_desc: Optional[str] = None,
                config_map_mount_desc_v2s: Optional[Sequence[ApplicationConfigMapMountDescV2Args]] = None,
                cpu: Optional[int] = None,
                custom_host_alias: Optional[str] = None,
                custom_host_alias_v2s: Optional[Sequence[ApplicationCustomHostAliasV2Args]] = 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_pull_secrets: Optional[str] = None,
                image_url: Optional[str] = None,
                jar_start_args: Optional[str] = None,
                jar_start_options: Optional[str] = None,
                jdk: Optional[str] = None,
                kafka_configs: Optional[ApplicationKafkaConfigsArgs] = None,
                liveness: Optional[str] = None,
                liveness_v2: Optional[ApplicationLivenessV2Args] = None,
                memory: Optional[int] = None,
                micro_registration: Optional[str] = None,
                min_ready_instance_ratio: Optional[int] = None,
                min_ready_instances: Optional[int] = None,
                namespace_id: Optional[str] = None,
                nas_configs: Optional[Sequence[ApplicationNasConfigArgs]] = None,
                oss_ak_id: Optional[str] = None,
                oss_ak_secret: Optional[str] = None,
                oss_mount_descs: Optional[str] = None,
                oss_mount_descs_v2s: Optional[Sequence[ApplicationOssMountDescsV2Args]] = None,
                package_url: Optional[str] = None,
                package_version: Optional[str] = None,
                php: 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,
                post_start_v2: Optional[ApplicationPostStartV2Args] = None,
                pre_stop: Optional[str] = None,
                pre_stop_v2: Optional[ApplicationPreStopV2Args] = None,
                programming_language: Optional[str] = None,
                pvtz_discovery_svc: Optional[ApplicationPvtzDiscoverySvcArgs] = None,
                readiness: Optional[str] = None,
                readiness_v2: Optional[ApplicationReadinessV2Args] = None,
                security_group_id: Optional[str] = None,
                sls_configs: Optional[str] = None,
                status: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                termination_grace_period_seconds: Optional[int] = None,
                timezone: Optional[str] = None,
                tomcat_config: Optional[str] = None,
                tomcat_config_v2: Optional[ApplicationTomcatConfigV2Args] = None,
                update_strategy: Optional[str] = None,
                update_strategy_v2: Optional[ApplicationUpdateStrategyV2Args] = None,
                vpc_id: Optional[str] = None,
                vswitch_id: Optional[str] = None,
                war_start_options: Optional[str] = None,
                web_container: Optional[str] = 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.

Parameters

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

Constructor example

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

var exampleapplicationResourceResourceFromSaeapplication = new AliCloud.Sae.Application("exampleapplicationResourceResourceFromSaeapplication", new()
{
    AppName = "string",
    PackageType = "string",
    Replicas = 0,
    AcrAssumeRoleArn = "string",
    AcrInstanceId = "string",
    AppDescription = "string",
    AutoConfig = false,
    AutoEnableApplicationScalingRule = false,
    BatchWaitTime = 0,
    ChangeOrderDesc = "string",
    Command = "string",
    CommandArgsV2s = new[]
    {
        "string",
    },
    ConfigMapMountDescV2s = new[]
    {
        new AliCloud.Sae.Inputs.ApplicationConfigMapMountDescV2Args
        {
            ConfigMapId = "string",
            Key = "string",
            MountPath = "string",
        },
    },
    Cpu = 0,
    CustomHostAliasV2s = new[]
    {
        new AliCloud.Sae.Inputs.ApplicationCustomHostAliasV2Args
        {
            HostName = "string",
            Ip = "string",
        },
    },
    Deploy = false,
    EdasContainerVersion = "string",
    EnableAhas = "string",
    EnableGreyTagRoute = false,
    Envs = "string",
    ImagePullSecrets = "string",
    ImageUrl = "string",
    JarStartArgs = "string",
    JarStartOptions = "string",
    Jdk = "string",
    KafkaConfigs = new AliCloud.Sae.Inputs.ApplicationKafkaConfigsArgs
    {
        KafkaConfigs = new[]
        {
            new AliCloud.Sae.Inputs.ApplicationKafkaConfigsKafkaConfigArgs
            {
                KafkaTopic = "string",
                LogDir = "string",
                LogType = "string",
            },
        },
        KafkaEndpoint = "string",
        KafkaInstanceId = "string",
    },
    LivenessV2 = new AliCloud.Sae.Inputs.ApplicationLivenessV2Args
    {
        Exec = new AliCloud.Sae.Inputs.ApplicationLivenessV2ExecArgs
        {
            Commands = new[]
            {
                "string",
            },
        },
        HttpGet = new AliCloud.Sae.Inputs.ApplicationLivenessV2HttpGetArgs
        {
            IsContainKeyWord = false,
            KeyWord = "string",
            Path = "string",
            Port = 0,
            Scheme = "string",
        },
        InitialDelaySeconds = 0,
        PeriodSeconds = 0,
        TcpSocket = new AliCloud.Sae.Inputs.ApplicationLivenessV2TcpSocketArgs
        {
            Port = 0,
        },
        TimeoutSeconds = 0,
    },
    Memory = 0,
    MicroRegistration = "string",
    MinReadyInstanceRatio = 0,
    MinReadyInstances = 0,
    NamespaceId = "string",
    NasConfigs = new[]
    {
        new AliCloud.Sae.Inputs.ApplicationNasConfigArgs
        {
            MountDomain = "string",
            MountPath = "string",
            NasId = "string",
            NasPath = "string",
            ReadOnly = false,
        },
    },
    OssAkId = "string",
    OssAkSecret = "string",
    OssMountDescsV2s = new[]
    {
        new AliCloud.Sae.Inputs.ApplicationOssMountDescsV2Args
        {
            BucketName = "string",
            BucketPath = "string",
            MountPath = "string",
            ReadOnly = false,
        },
    },
    PackageUrl = "string",
    PackageVersion = "string",
    Php = "string",
    PhpArmsConfigLocation = "string",
    PhpConfig = "string",
    PhpConfigLocation = "string",
    PostStartV2 = new AliCloud.Sae.Inputs.ApplicationPostStartV2Args
    {
        Exec = new AliCloud.Sae.Inputs.ApplicationPostStartV2ExecArgs
        {
            Commands = new[]
            {
                "string",
            },
        },
    },
    PreStopV2 = new AliCloud.Sae.Inputs.ApplicationPreStopV2Args
    {
        Exec = new AliCloud.Sae.Inputs.ApplicationPreStopV2ExecArgs
        {
            Commands = new[]
            {
                "string",
            },
        },
    },
    ProgrammingLanguage = "string",
    PvtzDiscoverySvc = new AliCloud.Sae.Inputs.ApplicationPvtzDiscoverySvcArgs
    {
        Enable = false,
        NamespaceId = "string",
        PortProtocols = new[]
        {
            new AliCloud.Sae.Inputs.ApplicationPvtzDiscoverySvcPortProtocolArgs
            {
                Port = 0,
                Protocol = "string",
            },
        },
        ServiceName = "string",
    },
    ReadinessV2 = new AliCloud.Sae.Inputs.ApplicationReadinessV2Args
    {
        Exec = new AliCloud.Sae.Inputs.ApplicationReadinessV2ExecArgs
        {
            Commands = new[]
            {
                "string",
            },
        },
        HttpGet = new AliCloud.Sae.Inputs.ApplicationReadinessV2HttpGetArgs
        {
            IsContainKeyWord = false,
            KeyWord = "string",
            Path = "string",
            Port = 0,
            Scheme = "string",
        },
        InitialDelaySeconds = 0,
        PeriodSeconds = 0,
        TcpSocket = new AliCloud.Sae.Inputs.ApplicationReadinessV2TcpSocketArgs
        {
            Port = 0,
        },
        TimeoutSeconds = 0,
    },
    SecurityGroupId = "string",
    SlsConfigs = "string",
    Status = "string",
    Tags = 
    {
        { "string", "string" },
    },
    TerminationGracePeriodSeconds = 0,
    Timezone = "string",
    TomcatConfigV2 = new AliCloud.Sae.Inputs.ApplicationTomcatConfigV2Args
    {
        ContextPath = "string",
        MaxThreads = 0,
        Port = 0,
        UriEncoding = "string",
        UseBodyEncodingForUri = "string",
    },
    UpdateStrategyV2 = new AliCloud.Sae.Inputs.ApplicationUpdateStrategyV2Args
    {
        BatchUpdate = new AliCloud.Sae.Inputs.ApplicationUpdateStrategyV2BatchUpdateArgs
        {
            Batch = 0,
            BatchWaitTime = 0,
            ReleaseType = "string",
        },
        Type = "string",
    },
    VpcId = "string",
    VswitchId = "string",
    WarStartOptions = "string",
    WebContainer = "string",
});
Copy
example, err := sae.NewApplication(ctx, "exampleapplicationResourceResourceFromSaeapplication", &sae.ApplicationArgs{
	AppName:                          pulumi.String("string"),
	PackageType:                      pulumi.String("string"),
	Replicas:                         pulumi.Int(0),
	AcrAssumeRoleArn:                 pulumi.String("string"),
	AcrInstanceId:                    pulumi.String("string"),
	AppDescription:                   pulumi.String("string"),
	AutoConfig:                       pulumi.Bool(false),
	AutoEnableApplicationScalingRule: pulumi.Bool(false),
	BatchWaitTime:                    pulumi.Int(0),
	ChangeOrderDesc:                  pulumi.String("string"),
	Command:                          pulumi.String("string"),
	CommandArgsV2s: pulumi.StringArray{
		pulumi.String("string"),
	},
	ConfigMapMountDescV2s: sae.ApplicationConfigMapMountDescV2Array{
		&sae.ApplicationConfigMapMountDescV2Args{
			ConfigMapId: pulumi.String("string"),
			Key:         pulumi.String("string"),
			MountPath:   pulumi.String("string"),
		},
	},
	Cpu: pulumi.Int(0),
	CustomHostAliasV2s: sae.ApplicationCustomHostAliasV2Array{
		&sae.ApplicationCustomHostAliasV2Args{
			HostName: pulumi.String("string"),
			Ip:       pulumi.String("string"),
		},
	},
	Deploy:               pulumi.Bool(false),
	EdasContainerVersion: pulumi.String("string"),
	EnableAhas:           pulumi.String("string"),
	EnableGreyTagRoute:   pulumi.Bool(false),
	Envs:                 pulumi.String("string"),
	ImagePullSecrets:     pulumi.String("string"),
	ImageUrl:             pulumi.String("string"),
	JarStartArgs:         pulumi.String("string"),
	JarStartOptions:      pulumi.String("string"),
	Jdk:                  pulumi.String("string"),
	KafkaConfigs: &sae.ApplicationKafkaConfigsArgs{
		KafkaConfigs: sae.ApplicationKafkaConfigsKafkaConfigArray{
			&sae.ApplicationKafkaConfigsKafkaConfigArgs{
				KafkaTopic: pulumi.String("string"),
				LogDir:     pulumi.String("string"),
				LogType:    pulumi.String("string"),
			},
		},
		KafkaEndpoint:   pulumi.String("string"),
		KafkaInstanceId: pulumi.String("string"),
	},
	LivenessV2: &sae.ApplicationLivenessV2Args{
		Exec: &sae.ApplicationLivenessV2ExecArgs{
			Commands: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		HttpGet: &sae.ApplicationLivenessV2HttpGetArgs{
			IsContainKeyWord: pulumi.Bool(false),
			KeyWord:          pulumi.String("string"),
			Path:             pulumi.String("string"),
			Port:             pulumi.Int(0),
			Scheme:           pulumi.String("string"),
		},
		InitialDelaySeconds: pulumi.Int(0),
		PeriodSeconds:       pulumi.Int(0),
		TcpSocket: &sae.ApplicationLivenessV2TcpSocketArgs{
			Port: pulumi.Int(0),
		},
		TimeoutSeconds: pulumi.Int(0),
	},
	Memory:                pulumi.Int(0),
	MicroRegistration:     pulumi.String("string"),
	MinReadyInstanceRatio: pulumi.Int(0),
	MinReadyInstances:     pulumi.Int(0),
	NamespaceId:           pulumi.String("string"),
	NasConfigs: sae.ApplicationNasConfigArray{
		&sae.ApplicationNasConfigArgs{
			MountDomain: pulumi.String("string"),
			MountPath:   pulumi.String("string"),
			NasId:       pulumi.String("string"),
			NasPath:     pulumi.String("string"),
			ReadOnly:    pulumi.Bool(false),
		},
	},
	OssAkId:     pulumi.String("string"),
	OssAkSecret: pulumi.String("string"),
	OssMountDescsV2s: sae.ApplicationOssMountDescsV2Array{
		&sae.ApplicationOssMountDescsV2Args{
			BucketName: pulumi.String("string"),
			BucketPath: pulumi.String("string"),
			MountPath:  pulumi.String("string"),
			ReadOnly:   pulumi.Bool(false),
		},
	},
	PackageUrl:            pulumi.String("string"),
	PackageVersion:        pulumi.String("string"),
	Php:                   pulumi.String("string"),
	PhpArmsConfigLocation: pulumi.String("string"),
	PhpConfig:             pulumi.String("string"),
	PhpConfigLocation:     pulumi.String("string"),
	PostStartV2: &sae.ApplicationPostStartV2Args{
		Exec: &sae.ApplicationPostStartV2ExecArgs{
			Commands: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	PreStopV2: &sae.ApplicationPreStopV2Args{
		Exec: &sae.ApplicationPreStopV2ExecArgs{
			Commands: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	ProgrammingLanguage: pulumi.String("string"),
	PvtzDiscoverySvc: &sae.ApplicationPvtzDiscoverySvcArgs{
		Enable:      pulumi.Bool(false),
		NamespaceId: pulumi.String("string"),
		PortProtocols: sae.ApplicationPvtzDiscoverySvcPortProtocolArray{
			&sae.ApplicationPvtzDiscoverySvcPortProtocolArgs{
				Port:     pulumi.Int(0),
				Protocol: pulumi.String("string"),
			},
		},
		ServiceName: pulumi.String("string"),
	},
	ReadinessV2: &sae.ApplicationReadinessV2Args{
		Exec: &sae.ApplicationReadinessV2ExecArgs{
			Commands: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		HttpGet: &sae.ApplicationReadinessV2HttpGetArgs{
			IsContainKeyWord: pulumi.Bool(false),
			KeyWord:          pulumi.String("string"),
			Path:             pulumi.String("string"),
			Port:             pulumi.Int(0),
			Scheme:           pulumi.String("string"),
		},
		InitialDelaySeconds: pulumi.Int(0),
		PeriodSeconds:       pulumi.Int(0),
		TcpSocket: &sae.ApplicationReadinessV2TcpSocketArgs{
			Port: pulumi.Int(0),
		},
		TimeoutSeconds: pulumi.Int(0),
	},
	SecurityGroupId: pulumi.String("string"),
	SlsConfigs:      pulumi.String("string"),
	Status:          pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TerminationGracePeriodSeconds: pulumi.Int(0),
	Timezone:                      pulumi.String("string"),
	TomcatConfigV2: &sae.ApplicationTomcatConfigV2Args{
		ContextPath:           pulumi.String("string"),
		MaxThreads:            pulumi.Int(0),
		Port:                  pulumi.Int(0),
		UriEncoding:           pulumi.String("string"),
		UseBodyEncodingForUri: pulumi.String("string"),
	},
	UpdateStrategyV2: &sae.ApplicationUpdateStrategyV2Args{
		BatchUpdate: &sae.ApplicationUpdateStrategyV2BatchUpdateArgs{
			Batch:         pulumi.Int(0),
			BatchWaitTime: pulumi.Int(0),
			ReleaseType:   pulumi.String("string"),
		},
		Type: pulumi.String("string"),
	},
	VpcId:           pulumi.String("string"),
	VswitchId:       pulumi.String("string"),
	WarStartOptions: pulumi.String("string"),
	WebContainer:    pulumi.String("string"),
})
Copy
var exampleapplicationResourceResourceFromSaeapplication = new Application("exampleapplicationResourceResourceFromSaeapplication", ApplicationArgs.builder()
    .appName("string")
    .packageType("string")
    .replicas(0)
    .acrAssumeRoleArn("string")
    .acrInstanceId("string")
    .appDescription("string")
    .autoConfig(false)
    .autoEnableApplicationScalingRule(false)
    .batchWaitTime(0)
    .changeOrderDesc("string")
    .command("string")
    .commandArgsV2s("string")
    .configMapMountDescV2s(ApplicationConfigMapMountDescV2Args.builder()
        .configMapId("string")
        .key("string")
        .mountPath("string")
        .build())
    .cpu(0)
    .customHostAliasV2s(ApplicationCustomHostAliasV2Args.builder()
        .hostName("string")
        .ip("string")
        .build())
    .deploy(false)
    .edasContainerVersion("string")
    .enableAhas("string")
    .enableGreyTagRoute(false)
    .envs("string")
    .imagePullSecrets("string")
    .imageUrl("string")
    .jarStartArgs("string")
    .jarStartOptions("string")
    .jdk("string")
    .kafkaConfigs(ApplicationKafkaConfigsArgs.builder()
        .kafkaConfigs(ApplicationKafkaConfigsKafkaConfigArgs.builder()
            .kafkaTopic("string")
            .logDir("string")
            .logType("string")
            .build())
        .kafkaEndpoint("string")
        .kafkaInstanceId("string")
        .build())
    .livenessV2(ApplicationLivenessV2Args.builder()
        .exec(ApplicationLivenessV2ExecArgs.builder()
            .commands("string")
            .build())
        .httpGet(ApplicationLivenessV2HttpGetArgs.builder()
            .isContainKeyWord(false)
            .keyWord("string")
            .path("string")
            .port(0)
            .scheme("string")
            .build())
        .initialDelaySeconds(0)
        .periodSeconds(0)
        .tcpSocket(ApplicationLivenessV2TcpSocketArgs.builder()
            .port(0)
            .build())
        .timeoutSeconds(0)
        .build())
    .memory(0)
    .microRegistration("string")
    .minReadyInstanceRatio(0)
    .minReadyInstances(0)
    .namespaceId("string")
    .nasConfigs(ApplicationNasConfigArgs.builder()
        .mountDomain("string")
        .mountPath("string")
        .nasId("string")
        .nasPath("string")
        .readOnly(false)
        .build())
    .ossAkId("string")
    .ossAkSecret("string")
    .ossMountDescsV2s(ApplicationOssMountDescsV2Args.builder()
        .bucketName("string")
        .bucketPath("string")
        .mountPath("string")
        .readOnly(false)
        .build())
    .packageUrl("string")
    .packageVersion("string")
    .php("string")
    .phpArmsConfigLocation("string")
    .phpConfig("string")
    .phpConfigLocation("string")
    .postStartV2(ApplicationPostStartV2Args.builder()
        .exec(ApplicationPostStartV2ExecArgs.builder()
            .commands("string")
            .build())
        .build())
    .preStopV2(ApplicationPreStopV2Args.builder()
        .exec(ApplicationPreStopV2ExecArgs.builder()
            .commands("string")
            .build())
        .build())
    .programmingLanguage("string")
    .pvtzDiscoverySvc(ApplicationPvtzDiscoverySvcArgs.builder()
        .enable(false)
        .namespaceId("string")
        .portProtocols(ApplicationPvtzDiscoverySvcPortProtocolArgs.builder()
            .port(0)
            .protocol("string")
            .build())
        .serviceName("string")
        .build())
    .readinessV2(ApplicationReadinessV2Args.builder()
        .exec(ApplicationReadinessV2ExecArgs.builder()
            .commands("string")
            .build())
        .httpGet(ApplicationReadinessV2HttpGetArgs.builder()
            .isContainKeyWord(false)
            .keyWord("string")
            .path("string")
            .port(0)
            .scheme("string")
            .build())
        .initialDelaySeconds(0)
        .periodSeconds(0)
        .tcpSocket(ApplicationReadinessV2TcpSocketArgs.builder()
            .port(0)
            .build())
        .timeoutSeconds(0)
        .build())
    .securityGroupId("string")
    .slsConfigs("string")
    .status("string")
    .tags(Map.of("string", "string"))
    .terminationGracePeriodSeconds(0)
    .timezone("string")
    .tomcatConfigV2(ApplicationTomcatConfigV2Args.builder()
        .contextPath("string")
        .maxThreads(0)
        .port(0)
        .uriEncoding("string")
        .useBodyEncodingForUri("string")
        .build())
    .updateStrategyV2(ApplicationUpdateStrategyV2Args.builder()
        .batchUpdate(ApplicationUpdateStrategyV2BatchUpdateArgs.builder()
            .batch(0)
            .batchWaitTime(0)
            .releaseType("string")
            .build())
        .type("string")
        .build())
    .vpcId("string")
    .vswitchId("string")
    .warStartOptions("string")
    .webContainer("string")
    .build());
Copy
exampleapplication_resource_resource_from_saeapplication = alicloud.sae.Application("exampleapplicationResourceResourceFromSaeapplication",
    app_name="string",
    package_type="string",
    replicas=0,
    acr_assume_role_arn="string",
    acr_instance_id="string",
    app_description="string",
    auto_config=False,
    auto_enable_application_scaling_rule=False,
    batch_wait_time=0,
    change_order_desc="string",
    command="string",
    command_args_v2s=["string"],
    config_map_mount_desc_v2s=[{
        "config_map_id": "string",
        "key": "string",
        "mount_path": "string",
    }],
    cpu=0,
    custom_host_alias_v2s=[{
        "host_name": "string",
        "ip": "string",
    }],
    deploy=False,
    edas_container_version="string",
    enable_ahas="string",
    enable_grey_tag_route=False,
    envs="string",
    image_pull_secrets="string",
    image_url="string",
    jar_start_args="string",
    jar_start_options="string",
    jdk="string",
    kafka_configs={
        "kafka_configs": [{
            "kafka_topic": "string",
            "log_dir": "string",
            "log_type": "string",
        }],
        "kafka_endpoint": "string",
        "kafka_instance_id": "string",
    },
    liveness_v2={
        "exec_": {
            "commands": ["string"],
        },
        "http_get": {
            "is_contain_key_word": False,
            "key_word": "string",
            "path": "string",
            "port": 0,
            "scheme": "string",
        },
        "initial_delay_seconds": 0,
        "period_seconds": 0,
        "tcp_socket": {
            "port": 0,
        },
        "timeout_seconds": 0,
    },
    memory=0,
    micro_registration="string",
    min_ready_instance_ratio=0,
    min_ready_instances=0,
    namespace_id="string",
    nas_configs=[{
        "mount_domain": "string",
        "mount_path": "string",
        "nas_id": "string",
        "nas_path": "string",
        "read_only": False,
    }],
    oss_ak_id="string",
    oss_ak_secret="string",
    oss_mount_descs_v2s=[{
        "bucket_name": "string",
        "bucket_path": "string",
        "mount_path": "string",
        "read_only": False,
    }],
    package_url="string",
    package_version="string",
    php="string",
    php_arms_config_location="string",
    php_config="string",
    php_config_location="string",
    post_start_v2={
        "exec_": {
            "commands": ["string"],
        },
    },
    pre_stop_v2={
        "exec_": {
            "commands": ["string"],
        },
    },
    programming_language="string",
    pvtz_discovery_svc={
        "enable": False,
        "namespace_id": "string",
        "port_protocols": [{
            "port": 0,
            "protocol": "string",
        }],
        "service_name": "string",
    },
    readiness_v2={
        "exec_": {
            "commands": ["string"],
        },
        "http_get": {
            "is_contain_key_word": False,
            "key_word": "string",
            "path": "string",
            "port": 0,
            "scheme": "string",
        },
        "initial_delay_seconds": 0,
        "period_seconds": 0,
        "tcp_socket": {
            "port": 0,
        },
        "timeout_seconds": 0,
    },
    security_group_id="string",
    sls_configs="string",
    status="string",
    tags={
        "string": "string",
    },
    termination_grace_period_seconds=0,
    timezone="string",
    tomcat_config_v2={
        "context_path": "string",
        "max_threads": 0,
        "port": 0,
        "uri_encoding": "string",
        "use_body_encoding_for_uri": "string",
    },
    update_strategy_v2={
        "batch_update": {
            "batch": 0,
            "batch_wait_time": 0,
            "release_type": "string",
        },
        "type": "string",
    },
    vpc_id="string",
    vswitch_id="string",
    war_start_options="string",
    web_container="string")
Copy
const exampleapplicationResourceResourceFromSaeapplication = new alicloud.sae.Application("exampleapplicationResourceResourceFromSaeapplication", {
    appName: "string",
    packageType: "string",
    replicas: 0,
    acrAssumeRoleArn: "string",
    acrInstanceId: "string",
    appDescription: "string",
    autoConfig: false,
    autoEnableApplicationScalingRule: false,
    batchWaitTime: 0,
    changeOrderDesc: "string",
    command: "string",
    commandArgsV2s: ["string"],
    configMapMountDescV2s: [{
        configMapId: "string",
        key: "string",
        mountPath: "string",
    }],
    cpu: 0,
    customHostAliasV2s: [{
        hostName: "string",
        ip: "string",
    }],
    deploy: false,
    edasContainerVersion: "string",
    enableAhas: "string",
    enableGreyTagRoute: false,
    envs: "string",
    imagePullSecrets: "string",
    imageUrl: "string",
    jarStartArgs: "string",
    jarStartOptions: "string",
    jdk: "string",
    kafkaConfigs: {
        kafkaConfigs: [{
            kafkaTopic: "string",
            logDir: "string",
            logType: "string",
        }],
        kafkaEndpoint: "string",
        kafkaInstanceId: "string",
    },
    livenessV2: {
        exec: {
            commands: ["string"],
        },
        httpGet: {
            isContainKeyWord: false,
            keyWord: "string",
            path: "string",
            port: 0,
            scheme: "string",
        },
        initialDelaySeconds: 0,
        periodSeconds: 0,
        tcpSocket: {
            port: 0,
        },
        timeoutSeconds: 0,
    },
    memory: 0,
    microRegistration: "string",
    minReadyInstanceRatio: 0,
    minReadyInstances: 0,
    namespaceId: "string",
    nasConfigs: [{
        mountDomain: "string",
        mountPath: "string",
        nasId: "string",
        nasPath: "string",
        readOnly: false,
    }],
    ossAkId: "string",
    ossAkSecret: "string",
    ossMountDescsV2s: [{
        bucketName: "string",
        bucketPath: "string",
        mountPath: "string",
        readOnly: false,
    }],
    packageUrl: "string",
    packageVersion: "string",
    php: "string",
    phpArmsConfigLocation: "string",
    phpConfig: "string",
    phpConfigLocation: "string",
    postStartV2: {
        exec: {
            commands: ["string"],
        },
    },
    preStopV2: {
        exec: {
            commands: ["string"],
        },
    },
    programmingLanguage: "string",
    pvtzDiscoverySvc: {
        enable: false,
        namespaceId: "string",
        portProtocols: [{
            port: 0,
            protocol: "string",
        }],
        serviceName: "string",
    },
    readinessV2: {
        exec: {
            commands: ["string"],
        },
        httpGet: {
            isContainKeyWord: false,
            keyWord: "string",
            path: "string",
            port: 0,
            scheme: "string",
        },
        initialDelaySeconds: 0,
        periodSeconds: 0,
        tcpSocket: {
            port: 0,
        },
        timeoutSeconds: 0,
    },
    securityGroupId: "string",
    slsConfigs: "string",
    status: "string",
    tags: {
        string: "string",
    },
    terminationGracePeriodSeconds: 0,
    timezone: "string",
    tomcatConfigV2: {
        contextPath: "string",
        maxThreads: 0,
        port: 0,
        uriEncoding: "string",
        useBodyEncodingForUri: "string",
    },
    updateStrategyV2: {
        batchUpdate: {
            batch: 0,
            batchWaitTime: 0,
            releaseType: "string",
        },
        type: "string",
    },
    vpcId: "string",
    vswitchId: "string",
    warStartOptions: "string",
    webContainer: "string",
});
Copy
type: alicloud:sae:Application
properties:
    acrAssumeRoleArn: string
    acrInstanceId: string
    appDescription: string
    appName: string
    autoConfig: false
    autoEnableApplicationScalingRule: false
    batchWaitTime: 0
    changeOrderDesc: string
    command: string
    commandArgsV2s:
        - string
    configMapMountDescV2s:
        - configMapId: string
          key: string
          mountPath: string
    cpu: 0
    customHostAliasV2s:
        - hostName: string
          ip: string
    deploy: false
    edasContainerVersion: string
    enableAhas: string
    enableGreyTagRoute: false
    envs: string
    imagePullSecrets: string
    imageUrl: string
    jarStartArgs: string
    jarStartOptions: string
    jdk: string
    kafkaConfigs:
        kafkaConfigs:
            - kafkaTopic: string
              logDir: string
              logType: string
        kafkaEndpoint: string
        kafkaInstanceId: string
    livenessV2:
        exec:
            commands:
                - string
        httpGet:
            isContainKeyWord: false
            keyWord: string
            path: string
            port: 0
            scheme: string
        initialDelaySeconds: 0
        periodSeconds: 0
        tcpSocket:
            port: 0
        timeoutSeconds: 0
    memory: 0
    microRegistration: string
    minReadyInstanceRatio: 0
    minReadyInstances: 0
    namespaceId: string
    nasConfigs:
        - mountDomain: string
          mountPath: string
          nasId: string
          nasPath: string
          readOnly: false
    ossAkId: string
    ossAkSecret: string
    ossMountDescsV2s:
        - bucketName: string
          bucketPath: string
          mountPath: string
          readOnly: false
    packageType: string
    packageUrl: string
    packageVersion: string
    php: string
    phpArmsConfigLocation: string
    phpConfig: string
    phpConfigLocation: string
    postStartV2:
        exec:
            commands:
                - string
    preStopV2:
        exec:
            commands:
                - string
    programmingLanguage: string
    pvtzDiscoverySvc:
        enable: false
        namespaceId: string
        portProtocols:
            - port: 0
              protocol: string
        serviceName: string
    readinessV2:
        exec:
            commands:
                - string
        httpGet:
            isContainKeyWord: false
            keyWord: string
            path: string
            port: 0
            scheme: string
        initialDelaySeconds: 0
        periodSeconds: 0
        tcpSocket:
            port: 0
        timeoutSeconds: 0
    replicas: 0
    securityGroupId: string
    slsConfigs: string
    status: string
    tags:
        string: string
    terminationGracePeriodSeconds: 0
    timezone: string
    tomcatConfigV2:
        contextPath: string
        maxThreads: 0
        port: 0
        uriEncoding: string
        useBodyEncodingForUri: string
    updateStrategyV2:
        batchUpdate:
            batch: 0
            batchWaitTime: 0
            releaseType: string
        type: string
    vpcId: string
    vswitchId: string
    warStartOptions: string
    webContainer: string
Copy

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

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

The Application resource accepts the following input properties:

AppName
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
Application package type. Valid values: FatJar, War, Image, PhpZip, IMAGE_PHP_5_4, IMAGE_PHP_5_4_ALPINE, IMAGE_PHP_5_5, IMAGE_PHP_5_5_ALPINE, IMAGE_PHP_5_6, IMAGE_PHP_5_6_ALPINE, IMAGE_PHP_7_0, IMAGE_PHP_7_0_ALPINE, IMAGE_PHP_7_1, IMAGE_PHP_7_1_ALPINE, IMAGE_PHP_7_2, IMAGE_PHP_7_2_ALPINE, IMAGE_PHP_7_3, IMAGE_PHP_7_3_ALPINE, PythonZip.
Replicas This property is required. 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. NOTE: From version 1.211.0, app_description can be modified.
AutoConfig bool
The auto config. Valid values: true, false.
AutoEnableApplicationScalingRule bool
The auto enable application scaling rule. Valid values: true, false.
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. NOTE: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

Deprecated: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

CommandArgsV2s List<string>
The parameters of the image startup command.
ConfigMapMountDesc string
ConfigMap mount description. NOTE: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

Deprecated: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

ConfigMapMountDescV2s List<Pulumi.AliCloud.Sae.Inputs.ApplicationConfigMapMountDescV2>
The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See config_map_mount_desc_v2 below.
Cpu int
The CPU required for each instance, in millicores, cannot be 0. Valid values: 500, 1000, 2000, 4000, 8000, 16000, 32000.
CustomHostAlias string
Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}]. NOTE: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

Deprecated: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

CustomHostAliasV2s List<Pulumi.AliCloud.Sae.Inputs.ApplicationCustomHostAliasV2>
The custom mapping between the hostname and IP address in the container. See custom_host_alias_v2 below.
Deploy bool
The deploy. Valid values: true, false.
EdasContainerVersion string
The operating environment used by the Pandora application.
EnableAhas string
The enable ahas. Valid values: true, false.
EnableGreyTagRoute bool
The enable grey tag route. Default value: false. Valid values:
Envs string
Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:
ImagePullSecrets string
The ID of the corresponding Secret.
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.
KafkaConfigs Pulumi.AliCloud.Sae.Inputs.ApplicationKafkaConfigs
The logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
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. NOTE: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

Deprecated: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

LivenessV2 Pulumi.AliCloud.Sae.Inputs.ApplicationLivenessV2
The liveness check settings of the container. See liveness_v2 below.
Memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 2048, 4096, 8192, 12288, 16384, 24576, 32768, 65536, 131072.
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.
NamespaceId Changes to this property will trigger replacement. 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.
NasConfigs List<Pulumi.AliCloud.Sae.Inputs.ApplicationNasConfig>
The configurations for mounting the NAS file system. See nas_configs below.
OssAkId string
OSS AccessKey ID.
OssAkSecret string
OSS AccessKey Secret.
OssMountDescs string
OSS mount description information. NOTE: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

Deprecated: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

OssMountDescsV2s List<Pulumi.AliCloud.Sae.Inputs.ApplicationOssMountDescsV2>
The description of the mounted Object Storage Service (OSS) bucket. See oss_mount_descs_v2 below.
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.
Php string
The Php environment.
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"]}}. NOTE: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

Deprecated: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

PostStartV2 Pulumi.AliCloud.Sae.Inputs.ApplicationPostStartV2
The script that is run immediately after the container is started. See post_start_v2 below.
PreStop string
Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}. NOTE: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

Deprecated: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

PreStopV2 Pulumi.AliCloud.Sae.Inputs.ApplicationPreStopV2
The script that is run before the container is stopped. See pre_stop_v2 below.
ProgrammingLanguage Changes to this property will trigger replacement. string
The programming language that is used to create the application. Valid values: java, php, other.
PvtzDiscoverySvc Pulumi.AliCloud.Sae.Inputs.ApplicationPvtzDiscoverySvc
The configurations of Kubernetes Service-based service registration and discovery. See pvtz_discovery_svc below.
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. NOTE: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

Deprecated: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

ReadinessV2 Pulumi.AliCloud.Sae.Inputs.ApplicationReadinessV2
The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See readiness_v2 below.
SecurityGroupId string
Security group ID.
SlsConfigs string

Configuration for log collection to SLS. Valid parameter descriptions are as follows:

  • projectName: Configures the project name on SLS.
  • logDir: Path to the logs.
  • logType: Type of logs. stdout indicates container standard output logs, and only one can be set; if not set, it means collecting file logs.
  • logstoreName: Configures the log store name on SLS.
  • logtailName: Configures the log tail name on SLS; if not specified, it means creating a new log tail.

If you no longer need to use the SLS collection feature, you should set the value of this field to an empty string. There are two examples:

  • Using SAE automatically created SLS resources: [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].
  • Using custom SLS resources: [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

NOTE: Projects that are automatically created with applications will be deleted along with the application deletion. Therefore, when selecting existing projects, you cannot choose projects automatically created by SAE.

Status string
The status of the resource. Valid values: RUNNING, STOPPED, UNKNOWN.
Tags Dictionary<string, string>
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. Default value: 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. NOTE: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

Deprecated: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

TomcatConfigV2 Pulumi.AliCloud.Sae.Inputs.ApplicationTomcatConfigV2
The Tomcat configuration. See tomcat_config_v2 below.
UpdateStrategy string
The update strategy. NOTE: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

Deprecated: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

UpdateStrategyV2 Pulumi.AliCloud.Sae.Inputs.ApplicationUpdateStrategyV2
The release policy. See update_strategy_v2 below.
VpcId Changes to this property will trigger replacement. string
The vpc id.
VswitchId string
The vswitch id. NOTE: From version 1.211.0, vswitch_id can be modified.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
Application package type. Valid values: FatJar, War, Image, PhpZip, IMAGE_PHP_5_4, IMAGE_PHP_5_4_ALPINE, IMAGE_PHP_5_5, IMAGE_PHP_5_5_ALPINE, IMAGE_PHP_5_6, IMAGE_PHP_5_6_ALPINE, IMAGE_PHP_7_0, IMAGE_PHP_7_0_ALPINE, IMAGE_PHP_7_1, IMAGE_PHP_7_1_ALPINE, IMAGE_PHP_7_2, IMAGE_PHP_7_2_ALPINE, IMAGE_PHP_7_3, IMAGE_PHP_7_3_ALPINE, PythonZip.
Replicas This property is required. 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. NOTE: From version 1.211.0, app_description can be modified.
AutoConfig bool
The auto config. Valid values: true, false.
AutoEnableApplicationScalingRule bool
The auto enable application scaling rule. Valid values: true, false.
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. NOTE: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

Deprecated: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

CommandArgsV2s []string
The parameters of the image startup command.
ConfigMapMountDesc string
ConfigMap mount description. NOTE: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

Deprecated: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

ConfigMapMountDescV2s []ApplicationConfigMapMountDescV2Args
The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See config_map_mount_desc_v2 below.
Cpu int
The CPU required for each instance, in millicores, cannot be 0. Valid values: 500, 1000, 2000, 4000, 8000, 16000, 32000.
CustomHostAlias string
Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}]. NOTE: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

Deprecated: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

CustomHostAliasV2s []ApplicationCustomHostAliasV2Args
The custom mapping between the hostname and IP address in the container. See custom_host_alias_v2 below.
Deploy bool
The deploy. Valid values: true, false.
EdasContainerVersion string
The operating environment used by the Pandora application.
EnableAhas string
The enable ahas. Valid values: true, false.
EnableGreyTagRoute bool
The enable grey tag route. Default value: false. Valid values:
Envs string
Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:
ImagePullSecrets string
The ID of the corresponding Secret.
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.
KafkaConfigs ApplicationKafkaConfigsArgs
The logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
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. NOTE: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

Deprecated: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

LivenessV2 ApplicationLivenessV2Args
The liveness check settings of the container. See liveness_v2 below.
Memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 2048, 4096, 8192, 12288, 16384, 24576, 32768, 65536, 131072.
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.
NamespaceId Changes to this property will trigger replacement. 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.
NasConfigs []ApplicationNasConfigArgs
The configurations for mounting the NAS file system. See nas_configs below.
OssAkId string
OSS AccessKey ID.
OssAkSecret string
OSS AccessKey Secret.
OssMountDescs string
OSS mount description information. NOTE: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

Deprecated: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

OssMountDescsV2s []ApplicationOssMountDescsV2Args
The description of the mounted Object Storage Service (OSS) bucket. See oss_mount_descs_v2 below.
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.
Php string
The Php environment.
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"]}}. NOTE: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

Deprecated: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

PostStartV2 ApplicationPostStartV2Args
The script that is run immediately after the container is started. See post_start_v2 below.
PreStop string
Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}. NOTE: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

Deprecated: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

PreStopV2 ApplicationPreStopV2Args
The script that is run before the container is stopped. See pre_stop_v2 below.
ProgrammingLanguage Changes to this property will trigger replacement. string
The programming language that is used to create the application. Valid values: java, php, other.
PvtzDiscoverySvc ApplicationPvtzDiscoverySvcArgs
The configurations of Kubernetes Service-based service registration and discovery. See pvtz_discovery_svc below.
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. NOTE: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

Deprecated: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

ReadinessV2 ApplicationReadinessV2Args
The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See readiness_v2 below.
SecurityGroupId string
Security group ID.
SlsConfigs string

Configuration for log collection to SLS. Valid parameter descriptions are as follows:

  • projectName: Configures the project name on SLS.
  • logDir: Path to the logs.
  • logType: Type of logs. stdout indicates container standard output logs, and only one can be set; if not set, it means collecting file logs.
  • logstoreName: Configures the log store name on SLS.
  • logtailName: Configures the log tail name on SLS; if not specified, it means creating a new log tail.

If you no longer need to use the SLS collection feature, you should set the value of this field to an empty string. There are two examples:

  • Using SAE automatically created SLS resources: [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].
  • Using custom SLS resources: [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

NOTE: Projects that are automatically created with applications will be deleted along with the application deletion. Therefore, when selecting existing projects, you cannot choose projects automatically created by SAE.

Status string
The status of the resource. Valid values: RUNNING, STOPPED, UNKNOWN.
Tags map[string]string
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. Default value: 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. NOTE: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

Deprecated: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

TomcatConfigV2 ApplicationTomcatConfigV2Args
The Tomcat configuration. See tomcat_config_v2 below.
UpdateStrategy string
The update strategy. NOTE: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

Deprecated: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

UpdateStrategyV2 ApplicationUpdateStrategyV2Args
The release policy. See update_strategy_v2 below.
VpcId Changes to this property will trigger replacement. string
The vpc id.
VswitchId string
The vswitch id. NOTE: From version 1.211.0, vswitch_id can be modified.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
String
Application package type. Valid values: FatJar, War, Image, PhpZip, IMAGE_PHP_5_4, IMAGE_PHP_5_4_ALPINE, IMAGE_PHP_5_5, IMAGE_PHP_5_5_ALPINE, IMAGE_PHP_5_6, IMAGE_PHP_5_6_ALPINE, IMAGE_PHP_7_0, IMAGE_PHP_7_0_ALPINE, IMAGE_PHP_7_1, IMAGE_PHP_7_1_ALPINE, IMAGE_PHP_7_2, IMAGE_PHP_7_2_ALPINE, IMAGE_PHP_7_3, IMAGE_PHP_7_3_ALPINE, PythonZip.
replicas This property is required. 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. NOTE: From version 1.211.0, app_description can be modified.
autoConfig Boolean
The auto config. Valid values: true, false.
autoEnableApplicationScalingRule Boolean
The auto enable application scaling rule. Valid values: true, false.
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. NOTE: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

Deprecated: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

commandArgsV2s List<String>
The parameters of the image startup command.
configMapMountDesc String
ConfigMap mount description. NOTE: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

Deprecated: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

configMapMountDescV2s List<ApplicationConfigMapMountDescV2>
The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See config_map_mount_desc_v2 below.
cpu Integer
The CPU required for each instance, in millicores, cannot be 0. Valid values: 500, 1000, 2000, 4000, 8000, 16000, 32000.
customHostAlias String
Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}]. NOTE: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

Deprecated: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

customHostAliasV2s List<ApplicationCustomHostAliasV2>
The custom mapping between the hostname and IP address in the container. See custom_host_alias_v2 below.
deploy Boolean
The deploy. Valid values: true, false.
edasContainerVersion String
The operating environment used by the Pandora application.
enableAhas String
The enable ahas. Valid values: true, false.
enableGreyTagRoute Boolean
The enable grey tag route. Default value: false. Valid values:
envs String
Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:
imagePullSecrets String
The ID of the corresponding Secret.
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.
kafkaConfigs ApplicationKafkaConfigs
The logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
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. NOTE: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

Deprecated: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

livenessV2 ApplicationLivenessV2
The liveness check settings of the container. See liveness_v2 below.
memory Integer
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 2048, 4096, 8192, 12288, 16384, 24576, 32768, 65536, 131072.
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.
namespaceId Changes to this property will trigger replacement. 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.
nasConfigs List<ApplicationNasConfig>
The configurations for mounting the NAS file system. See nas_configs below.
ossAkId String
OSS AccessKey ID.
ossAkSecret String
OSS AccessKey Secret.
ossMountDescs String
OSS mount description information. NOTE: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

Deprecated: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

ossMountDescsV2s List<ApplicationOssMountDescsV2>
The description of the mounted Object Storage Service (OSS) bucket. See oss_mount_descs_v2 below.
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.
php String
The Php environment.
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"]}}. NOTE: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

Deprecated: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

postStartV2 ApplicationPostStartV2
The script that is run immediately after the container is started. See post_start_v2 below.
preStop String
Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}. NOTE: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

Deprecated: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

preStopV2 ApplicationPreStopV2
The script that is run before the container is stopped. See pre_stop_v2 below.
programmingLanguage Changes to this property will trigger replacement. String
The programming language that is used to create the application. Valid values: java, php, other.
pvtzDiscoverySvc ApplicationPvtzDiscoverySvc
The configurations of Kubernetes Service-based service registration and discovery. See pvtz_discovery_svc below.
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. NOTE: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

Deprecated: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

readinessV2 ApplicationReadinessV2
The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See readiness_v2 below.
securityGroupId String
Security group ID.
slsConfigs String

Configuration for log collection to SLS. Valid parameter descriptions are as follows:

  • projectName: Configures the project name on SLS.
  • logDir: Path to the logs.
  • logType: Type of logs. stdout indicates container standard output logs, and only one can be set; if not set, it means collecting file logs.
  • logstoreName: Configures the log store name on SLS.
  • logtailName: Configures the log tail name on SLS; if not specified, it means creating a new log tail.

If you no longer need to use the SLS collection feature, you should set the value of this field to an empty string. There are two examples:

  • Using SAE automatically created SLS resources: [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].
  • Using custom SLS resources: [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

NOTE: Projects that are automatically created with applications will be deleted along with the application deletion. Therefore, when selecting existing projects, you cannot choose projects automatically created by SAE.

status String
The status of the resource. Valid values: RUNNING, STOPPED, UNKNOWN.
tags Map<String,String>
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. Default value: 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. NOTE: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

Deprecated: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

tomcatConfigV2 ApplicationTomcatConfigV2
The Tomcat configuration. See tomcat_config_v2 below.
updateStrategy String
The update strategy. NOTE: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

Deprecated: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

updateStrategyV2 ApplicationUpdateStrategyV2
The release policy. See update_strategy_v2 below.
vpcId Changes to this property will trigger replacement. String
The vpc id.
vswitchId String
The vswitch id. NOTE: From version 1.211.0, vswitch_id can be modified.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
string
Application package type. Valid values: FatJar, War, Image, PhpZip, IMAGE_PHP_5_4, IMAGE_PHP_5_4_ALPINE, IMAGE_PHP_5_5, IMAGE_PHP_5_5_ALPINE, IMAGE_PHP_5_6, IMAGE_PHP_5_6_ALPINE, IMAGE_PHP_7_0, IMAGE_PHP_7_0_ALPINE, IMAGE_PHP_7_1, IMAGE_PHP_7_1_ALPINE, IMAGE_PHP_7_2, IMAGE_PHP_7_2_ALPINE, IMAGE_PHP_7_3, IMAGE_PHP_7_3_ALPINE, PythonZip.
replicas This property is required. 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. NOTE: From version 1.211.0, app_description can be modified.
autoConfig boolean
The auto config. Valid values: true, false.
autoEnableApplicationScalingRule boolean
The auto enable application scaling rule. Valid values: true, false.
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. NOTE: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

Deprecated: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

commandArgsV2s string[]
The parameters of the image startup command.
configMapMountDesc string
ConfigMap mount description. NOTE: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

Deprecated: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

configMapMountDescV2s ApplicationConfigMapMountDescV2[]
The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See config_map_mount_desc_v2 below.
cpu number
The CPU required for each instance, in millicores, cannot be 0. Valid values: 500, 1000, 2000, 4000, 8000, 16000, 32000.
customHostAlias string
Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}]. NOTE: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

Deprecated: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

customHostAliasV2s ApplicationCustomHostAliasV2[]
The custom mapping between the hostname and IP address in the container. See custom_host_alias_v2 below.
deploy boolean
The deploy. Valid values: true, false.
edasContainerVersion string
The operating environment used by the Pandora application.
enableAhas string
The enable ahas. Valid values: true, false.
enableGreyTagRoute boolean
The enable grey tag route. Default value: false. Valid values:
envs string
Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:
imagePullSecrets string
The ID of the corresponding Secret.
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.
kafkaConfigs ApplicationKafkaConfigs
The logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
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. NOTE: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

Deprecated: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

livenessV2 ApplicationLivenessV2
The liveness check settings of the container. See liveness_v2 below.
memory number
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 2048, 4096, 8192, 12288, 16384, 24576, 32768, 65536, 131072.
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.
namespaceId Changes to this property will trigger replacement. 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.
nasConfigs ApplicationNasConfig[]
The configurations for mounting the NAS file system. See nas_configs below.
ossAkId string
OSS AccessKey ID.
ossAkSecret string
OSS AccessKey Secret.
ossMountDescs string
OSS mount description information. NOTE: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

Deprecated: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

ossMountDescsV2s ApplicationOssMountDescsV2[]
The description of the mounted Object Storage Service (OSS) bucket. See oss_mount_descs_v2 below.
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.
php string
The Php environment.
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"]}}. NOTE: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

Deprecated: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

postStartV2 ApplicationPostStartV2
The script that is run immediately after the container is started. See post_start_v2 below.
preStop string
Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}. NOTE: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

Deprecated: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

preStopV2 ApplicationPreStopV2
The script that is run before the container is stopped. See pre_stop_v2 below.
programmingLanguage Changes to this property will trigger replacement. string
The programming language that is used to create the application. Valid values: java, php, other.
pvtzDiscoverySvc ApplicationPvtzDiscoverySvc
The configurations of Kubernetes Service-based service registration and discovery. See pvtz_discovery_svc below.
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. NOTE: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

Deprecated: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

readinessV2 ApplicationReadinessV2
The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See readiness_v2 below.
securityGroupId string
Security group ID.
slsConfigs string

Configuration for log collection to SLS. Valid parameter descriptions are as follows:

  • projectName: Configures the project name on SLS.
  • logDir: Path to the logs.
  • logType: Type of logs. stdout indicates container standard output logs, and only one can be set; if not set, it means collecting file logs.
  • logstoreName: Configures the log store name on SLS.
  • logtailName: Configures the log tail name on SLS; if not specified, it means creating a new log tail.

If you no longer need to use the SLS collection feature, you should set the value of this field to an empty string. There are two examples:

  • Using SAE automatically created SLS resources: [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].
  • Using custom SLS resources: [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

NOTE: Projects that are automatically created with applications will be deleted along with the application deletion. Therefore, when selecting existing projects, you cannot choose projects automatically created by SAE.

status string
The status of the resource. Valid values: RUNNING, STOPPED, UNKNOWN.
tags {[key: string]: string}
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. Default value: 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. NOTE: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

Deprecated: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

tomcatConfigV2 ApplicationTomcatConfigV2
The Tomcat configuration. See tomcat_config_v2 below.
updateStrategy string
The update strategy. NOTE: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

Deprecated: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

updateStrategyV2 ApplicationUpdateStrategyV2
The release policy. See update_strategy_v2 below.
vpcId Changes to this property will trigger replacement. string
The vpc id.
vswitchId string
The vswitch id. NOTE: From version 1.211.0, vswitch_id can be modified.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
str
Application package type. Valid values: FatJar, War, Image, PhpZip, IMAGE_PHP_5_4, IMAGE_PHP_5_4_ALPINE, IMAGE_PHP_5_5, IMAGE_PHP_5_5_ALPINE, IMAGE_PHP_5_6, IMAGE_PHP_5_6_ALPINE, IMAGE_PHP_7_0, IMAGE_PHP_7_0_ALPINE, IMAGE_PHP_7_1, IMAGE_PHP_7_1_ALPINE, IMAGE_PHP_7_2, IMAGE_PHP_7_2_ALPINE, IMAGE_PHP_7_3, IMAGE_PHP_7_3_ALPINE, PythonZip.
replicas This property is required. 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. NOTE: From version 1.211.0, app_description can be modified.
auto_config bool
The auto config. Valid values: true, false.
auto_enable_application_scaling_rule bool
The auto enable application scaling rule. Valid values: true, false.
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. NOTE: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

Deprecated: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

command_args_v2s Sequence[str]
The parameters of the image startup command.
config_map_mount_desc str
ConfigMap mount description. NOTE: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

Deprecated: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

config_map_mount_desc_v2s Sequence[ApplicationConfigMapMountDescV2Args]
The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See config_map_mount_desc_v2 below.
cpu int
The CPU required for each instance, in millicores, cannot be 0. Valid values: 500, 1000, 2000, 4000, 8000, 16000, 32000.
custom_host_alias str
Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}]. NOTE: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

Deprecated: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

custom_host_alias_v2s Sequence[ApplicationCustomHostAliasV2Args]
The custom mapping between the hostname and IP address in the container. See custom_host_alias_v2 below.
deploy bool
The deploy. Valid values: true, false.
edas_container_version str
The operating environment used by the Pandora application.
enable_ahas str
The enable ahas. Valid values: true, false.
enable_grey_tag_route bool
The enable grey tag route. Default value: false. Valid values:
envs str
Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:
image_pull_secrets str
The ID of the corresponding Secret.
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.
kafka_configs ApplicationKafkaConfigsArgs
The logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
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. NOTE: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

Deprecated: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

liveness_v2 ApplicationLivenessV2Args
The liveness check settings of the container. See liveness_v2 below.
memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 2048, 4096, 8192, 12288, 16384, 24576, 32768, 65536, 131072.
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.
namespace_id Changes to this property will trigger replacement. 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_configs Sequence[ApplicationNasConfigArgs]
The configurations for mounting the NAS file system. See nas_configs below.
oss_ak_id str
OSS AccessKey ID.
oss_ak_secret str
OSS AccessKey Secret.
oss_mount_descs str
OSS mount description information. NOTE: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

Deprecated: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

oss_mount_descs_v2s Sequence[ApplicationOssMountDescsV2Args]
The description of the mounted Object Storage Service (OSS) bucket. See oss_mount_descs_v2 below.
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 str
The Php environment.
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"]}}. NOTE: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

Deprecated: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

post_start_v2 ApplicationPostStartV2Args
The script that is run immediately after the container is started. See post_start_v2 below.
pre_stop str
Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}. NOTE: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

Deprecated: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

pre_stop_v2 ApplicationPreStopV2Args
The script that is run before the container is stopped. See pre_stop_v2 below.
programming_language Changes to this property will trigger replacement. str
The programming language that is used to create the application. Valid values: java, php, other.
pvtz_discovery_svc ApplicationPvtzDiscoverySvcArgs
The configurations of Kubernetes Service-based service registration and discovery. See pvtz_discovery_svc below.
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. NOTE: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

Deprecated: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

readiness_v2 ApplicationReadinessV2Args
The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See readiness_v2 below.
security_group_id str
Security group ID.
sls_configs str

Configuration for log collection to SLS. Valid parameter descriptions are as follows:

  • projectName: Configures the project name on SLS.
  • logDir: Path to the logs.
  • logType: Type of logs. stdout indicates container standard output logs, and only one can be set; if not set, it means collecting file logs.
  • logstoreName: Configures the log store name on SLS.
  • logtailName: Configures the log tail name on SLS; if not specified, it means creating a new log tail.

If you no longer need to use the SLS collection feature, you should set the value of this field to an empty string. There are two examples:

  • Using SAE automatically created SLS resources: [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].
  • Using custom SLS resources: [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

NOTE: Projects that are automatically created with applications will be deleted along with the application deletion. Therefore, when selecting existing projects, you cannot choose projects automatically created by SAE.

status str
The status of the resource. Valid values: RUNNING, STOPPED, UNKNOWN.
tags Mapping[str, str]
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. Default value: 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. NOTE: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

Deprecated: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

tomcat_config_v2 ApplicationTomcatConfigV2Args
The Tomcat configuration. See tomcat_config_v2 below.
update_strategy str
The update strategy. NOTE: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

Deprecated: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

update_strategy_v2 ApplicationUpdateStrategyV2Args
The release policy. See update_strategy_v2 below.
vpc_id Changes to this property will trigger replacement. str
The vpc id.
vswitch_id str
The vswitch id. NOTE: From version 1.211.0, vswitch_id can be modified.
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
This property is required.
Changes to this property will trigger replacement.
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
This property is required.
Changes to this property will trigger replacement.
String
Application package type. Valid values: FatJar, War, Image, PhpZip, IMAGE_PHP_5_4, IMAGE_PHP_5_4_ALPINE, IMAGE_PHP_5_5, IMAGE_PHP_5_5_ALPINE, IMAGE_PHP_5_6, IMAGE_PHP_5_6_ALPINE, IMAGE_PHP_7_0, IMAGE_PHP_7_0_ALPINE, IMAGE_PHP_7_1, IMAGE_PHP_7_1_ALPINE, IMAGE_PHP_7_2, IMAGE_PHP_7_2_ALPINE, IMAGE_PHP_7_3, IMAGE_PHP_7_3_ALPINE, PythonZip.
replicas This property is required. 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. NOTE: From version 1.211.0, app_description can be modified.
autoConfig Boolean
The auto config. Valid values: true, false.
autoEnableApplicationScalingRule Boolean
The auto enable application scaling rule. Valid values: true, false.
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. NOTE: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

Deprecated: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

commandArgsV2s List<String>
The parameters of the image startup command.
configMapMountDesc String
ConfigMap mount description. NOTE: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

Deprecated: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

configMapMountDescV2s List<Property Map>
The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See config_map_mount_desc_v2 below.
cpu Number
The CPU required for each instance, in millicores, cannot be 0. Valid values: 500, 1000, 2000, 4000, 8000, 16000, 32000.
customHostAlias String
Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}]. NOTE: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

Deprecated: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

customHostAliasV2s List<Property Map>
The custom mapping between the hostname and IP address in the container. See custom_host_alias_v2 below.
deploy Boolean
The deploy. Valid values: true, false.
edasContainerVersion String
The operating environment used by the Pandora application.
enableAhas String
The enable ahas. Valid values: true, false.
enableGreyTagRoute Boolean
The enable grey tag route. Default value: false. Valid values:
envs String
Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:
imagePullSecrets String
The ID of the corresponding Secret.
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.
kafkaConfigs Property Map
The logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
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. NOTE: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

Deprecated: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

livenessV2 Property Map
The liveness check settings of the container. See liveness_v2 below.
memory Number
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 2048, 4096, 8192, 12288, 16384, 24576, 32768, 65536, 131072.
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.
namespaceId Changes to this property will trigger replacement. 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.
nasConfigs List<Property Map>
The configurations for mounting the NAS file system. See nas_configs below.
ossAkId String
OSS AccessKey ID.
ossAkSecret String
OSS AccessKey Secret.
ossMountDescs String
OSS mount description information. NOTE: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

Deprecated: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

ossMountDescsV2s List<Property Map>
The description of the mounted Object Storage Service (OSS) bucket. See oss_mount_descs_v2 below.
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.
php String
The Php environment.
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"]}}. NOTE: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

Deprecated: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

postStartV2 Property Map
The script that is run immediately after the container is started. See post_start_v2 below.
preStop String
Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}. NOTE: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

Deprecated: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

preStopV2 Property Map
The script that is run before the container is stopped. See pre_stop_v2 below.
programmingLanguage Changes to this property will trigger replacement. String
The programming language that is used to create the application. Valid values: java, php, other.
pvtzDiscoverySvc Property Map
The configurations of Kubernetes Service-based service registration and discovery. See pvtz_discovery_svc below.
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. NOTE: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

Deprecated: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

readinessV2 Property Map
The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See readiness_v2 below.
securityGroupId String
Security group ID.
slsConfigs String

Configuration for log collection to SLS. Valid parameter descriptions are as follows:

  • projectName: Configures the project name on SLS.
  • logDir: Path to the logs.
  • logType: Type of logs. stdout indicates container standard output logs, and only one can be set; if not set, it means collecting file logs.
  • logstoreName: Configures the log store name on SLS.
  • logtailName: Configures the log tail name on SLS; if not specified, it means creating a new log tail.

If you no longer need to use the SLS collection feature, you should set the value of this field to an empty string. There are two examples:

  • Using SAE automatically created SLS resources: [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].
  • Using custom SLS resources: [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

NOTE: Projects that are automatically created with applications will be deleted along with the application deletion. Therefore, when selecting existing projects, you cannot choose projects automatically created by SAE.

status String
The status of the resource. Valid values: RUNNING, STOPPED, UNKNOWN.
tags Map<String>
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. Default value: 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. NOTE: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

Deprecated: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

tomcatConfigV2 Property Map
The Tomcat configuration. See tomcat_config_v2 below.
updateStrategy String
The update strategy. NOTE: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

Deprecated: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

updateStrategyV2 Property Map
The release policy. See update_strategy_v2 below.
vpcId Changes to this property will trigger replacement. String
The vpc id.
vswitchId String
The vswitch id. NOTE: From version 1.211.0, vswitch_id can be modified.
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,
        command_args_v2s: Optional[Sequence[str]] = None,
        config_map_mount_desc: Optional[str] = None,
        config_map_mount_desc_v2s: Optional[Sequence[ApplicationConfigMapMountDescV2Args]] = None,
        cpu: Optional[int] = None,
        custom_host_alias: Optional[str] = None,
        custom_host_alias_v2s: Optional[Sequence[ApplicationCustomHostAliasV2Args]] = 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_pull_secrets: Optional[str] = None,
        image_url: Optional[str] = None,
        jar_start_args: Optional[str] = None,
        jar_start_options: Optional[str] = None,
        jdk: Optional[str] = None,
        kafka_configs: Optional[ApplicationKafkaConfigsArgs] = None,
        liveness: Optional[str] = None,
        liveness_v2: Optional[ApplicationLivenessV2Args] = None,
        memory: Optional[int] = None,
        micro_registration: Optional[str] = None,
        min_ready_instance_ratio: Optional[int] = None,
        min_ready_instances: Optional[int] = None,
        namespace_id: Optional[str] = None,
        nas_configs: Optional[Sequence[ApplicationNasConfigArgs]] = None,
        oss_ak_id: Optional[str] = None,
        oss_ak_secret: Optional[str] = None,
        oss_mount_descs: Optional[str] = None,
        oss_mount_descs_v2s: Optional[Sequence[ApplicationOssMountDescsV2Args]] = None,
        package_type: Optional[str] = None,
        package_url: Optional[str] = None,
        package_version: Optional[str] = None,
        php: 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,
        post_start_v2: Optional[ApplicationPostStartV2Args] = None,
        pre_stop: Optional[str] = None,
        pre_stop_v2: Optional[ApplicationPreStopV2Args] = None,
        programming_language: Optional[str] = None,
        pvtz_discovery_svc: Optional[ApplicationPvtzDiscoverySvcArgs] = None,
        readiness: Optional[str] = None,
        readiness_v2: Optional[ApplicationReadinessV2Args] = None,
        replicas: Optional[int] = None,
        security_group_id: Optional[str] = None,
        sls_configs: Optional[str] = None,
        status: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        termination_grace_period_seconds: Optional[int] = None,
        timezone: Optional[str] = None,
        tomcat_config: Optional[str] = None,
        tomcat_config_v2: Optional[ApplicationTomcatConfigV2Args] = None,
        update_strategy: Optional[str] = None,
        update_strategy_v2: Optional[ApplicationUpdateStrategyV2Args] = 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)
resources:  _:    type: alicloud:sae:Application    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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. NOTE: From version 1.211.0, app_description can be modified.
AppName Changes to this property will trigger replacement. 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: true, false.
AutoEnableApplicationScalingRule bool
The auto enable application scaling rule. Valid values: true, false.
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. NOTE: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

Deprecated: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

CommandArgsV2s List<string>
The parameters of the image startup command.
ConfigMapMountDesc string
ConfigMap mount description. NOTE: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

Deprecated: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

ConfigMapMountDescV2s List<Pulumi.AliCloud.Sae.Inputs.ApplicationConfigMapMountDescV2>
The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See config_map_mount_desc_v2 below.
Cpu int
The CPU required for each instance, in millicores, cannot be 0. Valid values: 500, 1000, 2000, 4000, 8000, 16000, 32000.
CustomHostAlias string
Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}]. NOTE: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

Deprecated: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

CustomHostAliasV2s List<Pulumi.AliCloud.Sae.Inputs.ApplicationCustomHostAliasV2>
The custom mapping between the hostname and IP address in the container. See custom_host_alias_v2 below.
Deploy bool
The deploy. Valid values: true, false.
EdasContainerVersion string
The operating environment used by the Pandora application.
EnableAhas string
The enable ahas. Valid values: true, false.
EnableGreyTagRoute bool
The enable grey tag route. Default value: false. Valid values:
Envs string
Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:
ImagePullSecrets string
The ID of the corresponding Secret.
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.
KafkaConfigs Pulumi.AliCloud.Sae.Inputs.ApplicationKafkaConfigs
The logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
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. NOTE: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

Deprecated: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

LivenessV2 Pulumi.AliCloud.Sae.Inputs.ApplicationLivenessV2
The liveness check settings of the container. See liveness_v2 below.
Memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 2048, 4096, 8192, 12288, 16384, 24576, 32768, 65536, 131072.
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.
NamespaceId Changes to this property will trigger replacement. 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.
NasConfigs List<Pulumi.AliCloud.Sae.Inputs.ApplicationNasConfig>
The configurations for mounting the NAS file system. See nas_configs below.
OssAkId string
OSS AccessKey ID.
OssAkSecret string
OSS AccessKey Secret.
OssMountDescs string
OSS mount description information. NOTE: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

Deprecated: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

OssMountDescsV2s List<Pulumi.AliCloud.Sae.Inputs.ApplicationOssMountDescsV2>
The description of the mounted Object Storage Service (OSS) bucket. See oss_mount_descs_v2 below.
PackageType Changes to this property will trigger replacement. string
Application package type. Valid values: FatJar, War, Image, PhpZip, IMAGE_PHP_5_4, IMAGE_PHP_5_4_ALPINE, IMAGE_PHP_5_5, IMAGE_PHP_5_5_ALPINE, IMAGE_PHP_5_6, IMAGE_PHP_5_6_ALPINE, IMAGE_PHP_7_0, IMAGE_PHP_7_0_ALPINE, IMAGE_PHP_7_1, IMAGE_PHP_7_1_ALPINE, IMAGE_PHP_7_2, IMAGE_PHP_7_2_ALPINE, IMAGE_PHP_7_3, IMAGE_PHP_7_3_ALPINE, PythonZip.
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.
Php string
The Php environment.
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"]}}. NOTE: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

Deprecated: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

PostStartV2 Pulumi.AliCloud.Sae.Inputs.ApplicationPostStartV2
The script that is run immediately after the container is started. See post_start_v2 below.
PreStop string
Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}. NOTE: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

Deprecated: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

PreStopV2 Pulumi.AliCloud.Sae.Inputs.ApplicationPreStopV2
The script that is run before the container is stopped. See pre_stop_v2 below.
ProgrammingLanguage Changes to this property will trigger replacement. string
The programming language that is used to create the application. Valid values: java, php, other.
PvtzDiscoverySvc Pulumi.AliCloud.Sae.Inputs.ApplicationPvtzDiscoverySvc
The configurations of Kubernetes Service-based service registration and discovery. See pvtz_discovery_svc below.
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. NOTE: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

Deprecated: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

ReadinessV2 Pulumi.AliCloud.Sae.Inputs.ApplicationReadinessV2
The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See readiness_v2 below.
Replicas int
Initial number of instances.
SecurityGroupId string
Security group ID.
SlsConfigs string

Configuration for log collection to SLS. Valid parameter descriptions are as follows:

  • projectName: Configures the project name on SLS.
  • logDir: Path to the logs.
  • logType: Type of logs. stdout indicates container standard output logs, and only one can be set; if not set, it means collecting file logs.
  • logstoreName: Configures the log store name on SLS.
  • logtailName: Configures the log tail name on SLS; if not specified, it means creating a new log tail.

If you no longer need to use the SLS collection feature, you should set the value of this field to an empty string. There are two examples:

  • Using SAE automatically created SLS resources: [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].
  • Using custom SLS resources: [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

NOTE: Projects that are automatically created with applications will be deleted along with the application deletion. Therefore, when selecting existing projects, you cannot choose projects automatically created by SAE.

Status string
The status of the resource. Valid values: RUNNING, STOPPED, UNKNOWN.
Tags Dictionary<string, string>
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. Default value: 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. NOTE: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

Deprecated: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

TomcatConfigV2 Pulumi.AliCloud.Sae.Inputs.ApplicationTomcatConfigV2
The Tomcat configuration. See tomcat_config_v2 below.
UpdateStrategy string
The update strategy. NOTE: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

Deprecated: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

UpdateStrategyV2 Pulumi.AliCloud.Sae.Inputs.ApplicationUpdateStrategyV2
The release policy. See update_strategy_v2 below.
VpcId Changes to this property will trigger replacement. string
The vpc id.
VswitchId string
The vswitch id. NOTE: From version 1.211.0, vswitch_id can be modified.
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. NOTE: From version 1.211.0, app_description can be modified.
AppName Changes to this property will trigger replacement. 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: true, false.
AutoEnableApplicationScalingRule bool
The auto enable application scaling rule. Valid values: true, false.
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. NOTE: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

Deprecated: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

CommandArgsV2s []string
The parameters of the image startup command.
ConfigMapMountDesc string
ConfigMap mount description. NOTE: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

Deprecated: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

ConfigMapMountDescV2s []ApplicationConfigMapMountDescV2Args
The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See config_map_mount_desc_v2 below.
Cpu int
The CPU required for each instance, in millicores, cannot be 0. Valid values: 500, 1000, 2000, 4000, 8000, 16000, 32000.
CustomHostAlias string
Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}]. NOTE: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

Deprecated: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

CustomHostAliasV2s []ApplicationCustomHostAliasV2Args
The custom mapping between the hostname and IP address in the container. See custom_host_alias_v2 below.
Deploy bool
The deploy. Valid values: true, false.
EdasContainerVersion string
The operating environment used by the Pandora application.
EnableAhas string
The enable ahas. Valid values: true, false.
EnableGreyTagRoute bool
The enable grey tag route. Default value: false. Valid values:
Envs string
Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:
ImagePullSecrets string
The ID of the corresponding Secret.
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.
KafkaConfigs ApplicationKafkaConfigsArgs
The logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
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. NOTE: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

Deprecated: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

LivenessV2 ApplicationLivenessV2Args
The liveness check settings of the container. See liveness_v2 below.
Memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 2048, 4096, 8192, 12288, 16384, 24576, 32768, 65536, 131072.
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.
NamespaceId Changes to this property will trigger replacement. 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.
NasConfigs []ApplicationNasConfigArgs
The configurations for mounting the NAS file system. See nas_configs below.
OssAkId string
OSS AccessKey ID.
OssAkSecret string
OSS AccessKey Secret.
OssMountDescs string
OSS mount description information. NOTE: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

Deprecated: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

OssMountDescsV2s []ApplicationOssMountDescsV2Args
The description of the mounted Object Storage Service (OSS) bucket. See oss_mount_descs_v2 below.
PackageType Changes to this property will trigger replacement. string
Application package type. Valid values: FatJar, War, Image, PhpZip, IMAGE_PHP_5_4, IMAGE_PHP_5_4_ALPINE, IMAGE_PHP_5_5, IMAGE_PHP_5_5_ALPINE, IMAGE_PHP_5_6, IMAGE_PHP_5_6_ALPINE, IMAGE_PHP_7_0, IMAGE_PHP_7_0_ALPINE, IMAGE_PHP_7_1, IMAGE_PHP_7_1_ALPINE, IMAGE_PHP_7_2, IMAGE_PHP_7_2_ALPINE, IMAGE_PHP_7_3, IMAGE_PHP_7_3_ALPINE, PythonZip.
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.
Php string
The Php environment.
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"]}}. NOTE: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

Deprecated: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

PostStartV2 ApplicationPostStartV2Args
The script that is run immediately after the container is started. See post_start_v2 below.
PreStop string
Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}. NOTE: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

Deprecated: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

PreStopV2 ApplicationPreStopV2Args
The script that is run before the container is stopped. See pre_stop_v2 below.
ProgrammingLanguage Changes to this property will trigger replacement. string
The programming language that is used to create the application. Valid values: java, php, other.
PvtzDiscoverySvc ApplicationPvtzDiscoverySvcArgs
The configurations of Kubernetes Service-based service registration and discovery. See pvtz_discovery_svc below.
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. NOTE: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

Deprecated: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

ReadinessV2 ApplicationReadinessV2Args
The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See readiness_v2 below.
Replicas int
Initial number of instances.
SecurityGroupId string
Security group ID.
SlsConfigs string

Configuration for log collection to SLS. Valid parameter descriptions are as follows:

  • projectName: Configures the project name on SLS.
  • logDir: Path to the logs.
  • logType: Type of logs. stdout indicates container standard output logs, and only one can be set; if not set, it means collecting file logs.
  • logstoreName: Configures the log store name on SLS.
  • logtailName: Configures the log tail name on SLS; if not specified, it means creating a new log tail.

If you no longer need to use the SLS collection feature, you should set the value of this field to an empty string. There are two examples:

  • Using SAE automatically created SLS resources: [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].
  • Using custom SLS resources: [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

NOTE: Projects that are automatically created with applications will be deleted along with the application deletion. Therefore, when selecting existing projects, you cannot choose projects automatically created by SAE.

Status string
The status of the resource. Valid values: RUNNING, STOPPED, UNKNOWN.
Tags map[string]string
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. Default value: 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. NOTE: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

Deprecated: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

TomcatConfigV2 ApplicationTomcatConfigV2Args
The Tomcat configuration. See tomcat_config_v2 below.
UpdateStrategy string
The update strategy. NOTE: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

Deprecated: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

UpdateStrategyV2 ApplicationUpdateStrategyV2Args
The release policy. See update_strategy_v2 below.
VpcId Changes to this property will trigger replacement. string
The vpc id.
VswitchId string
The vswitch id. NOTE: From version 1.211.0, vswitch_id can be modified.
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. NOTE: From version 1.211.0, app_description can be modified.
appName Changes to this property will trigger replacement. 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: true, false.
autoEnableApplicationScalingRule Boolean
The auto enable application scaling rule. Valid values: true, false.
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. NOTE: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

Deprecated: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

commandArgsV2s List<String>
The parameters of the image startup command.
configMapMountDesc String
ConfigMap mount description. NOTE: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

Deprecated: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

configMapMountDescV2s List<ApplicationConfigMapMountDescV2>
The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See config_map_mount_desc_v2 below.
cpu Integer
The CPU required for each instance, in millicores, cannot be 0. Valid values: 500, 1000, 2000, 4000, 8000, 16000, 32000.
customHostAlias String
Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}]. NOTE: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

Deprecated: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

customHostAliasV2s List<ApplicationCustomHostAliasV2>
The custom mapping between the hostname and IP address in the container. See custom_host_alias_v2 below.
deploy Boolean
The deploy. Valid values: true, false.
edasContainerVersion String
The operating environment used by the Pandora application.
enableAhas String
The enable ahas. Valid values: true, false.
enableGreyTagRoute Boolean
The enable grey tag route. Default value: false. Valid values:
envs String
Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:
imagePullSecrets String
The ID of the corresponding Secret.
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.
kafkaConfigs ApplicationKafkaConfigs
The logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
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. NOTE: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

Deprecated: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

livenessV2 ApplicationLivenessV2
The liveness check settings of the container. See liveness_v2 below.
memory Integer
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 2048, 4096, 8192, 12288, 16384, 24576, 32768, 65536, 131072.
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.
namespaceId Changes to this property will trigger replacement. 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.
nasConfigs List<ApplicationNasConfig>
The configurations for mounting the NAS file system. See nas_configs below.
ossAkId String
OSS AccessKey ID.
ossAkSecret String
OSS AccessKey Secret.
ossMountDescs String
OSS mount description information. NOTE: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

Deprecated: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

ossMountDescsV2s List<ApplicationOssMountDescsV2>
The description of the mounted Object Storage Service (OSS) bucket. See oss_mount_descs_v2 below.
packageType Changes to this property will trigger replacement. String
Application package type. Valid values: FatJar, War, Image, PhpZip, IMAGE_PHP_5_4, IMAGE_PHP_5_4_ALPINE, IMAGE_PHP_5_5, IMAGE_PHP_5_5_ALPINE, IMAGE_PHP_5_6, IMAGE_PHP_5_6_ALPINE, IMAGE_PHP_7_0, IMAGE_PHP_7_0_ALPINE, IMAGE_PHP_7_1, IMAGE_PHP_7_1_ALPINE, IMAGE_PHP_7_2, IMAGE_PHP_7_2_ALPINE, IMAGE_PHP_7_3, IMAGE_PHP_7_3_ALPINE, PythonZip.
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.
php String
The Php environment.
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"]}}. NOTE: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

Deprecated: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

postStartV2 ApplicationPostStartV2
The script that is run immediately after the container is started. See post_start_v2 below.
preStop String
Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}. NOTE: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

Deprecated: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

preStopV2 ApplicationPreStopV2
The script that is run before the container is stopped. See pre_stop_v2 below.
programmingLanguage Changes to this property will trigger replacement. String
The programming language that is used to create the application. Valid values: java, php, other.
pvtzDiscoverySvc ApplicationPvtzDiscoverySvc
The configurations of Kubernetes Service-based service registration and discovery. See pvtz_discovery_svc below.
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. NOTE: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

Deprecated: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

readinessV2 ApplicationReadinessV2
The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See readiness_v2 below.
replicas Integer
Initial number of instances.
securityGroupId String
Security group ID.
slsConfigs String

Configuration for log collection to SLS. Valid parameter descriptions are as follows:

  • projectName: Configures the project name on SLS.
  • logDir: Path to the logs.
  • logType: Type of logs. stdout indicates container standard output logs, and only one can be set; if not set, it means collecting file logs.
  • logstoreName: Configures the log store name on SLS.
  • logtailName: Configures the log tail name on SLS; if not specified, it means creating a new log tail.

If you no longer need to use the SLS collection feature, you should set the value of this field to an empty string. There are two examples:

  • Using SAE automatically created SLS resources: [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].
  • Using custom SLS resources: [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

NOTE: Projects that are automatically created with applications will be deleted along with the application deletion. Therefore, when selecting existing projects, you cannot choose projects automatically created by SAE.

status String
The status of the resource. Valid values: RUNNING, STOPPED, UNKNOWN.
tags Map<String,String>
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. Default value: 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. NOTE: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

Deprecated: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

tomcatConfigV2 ApplicationTomcatConfigV2
The Tomcat configuration. See tomcat_config_v2 below.
updateStrategy String
The update strategy. NOTE: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

Deprecated: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

updateStrategyV2 ApplicationUpdateStrategyV2
The release policy. See update_strategy_v2 below.
vpcId Changes to this property will trigger replacement. String
The vpc id.
vswitchId String
The vswitch id. NOTE: From version 1.211.0, vswitch_id can be modified.
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. NOTE: From version 1.211.0, app_description can be modified.
appName Changes to this property will trigger replacement. 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: true, false.
autoEnableApplicationScalingRule boolean
The auto enable application scaling rule. Valid values: true, false.
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. NOTE: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

Deprecated: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

commandArgsV2s string[]
The parameters of the image startup command.
configMapMountDesc string
ConfigMap mount description. NOTE: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

Deprecated: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

configMapMountDescV2s ApplicationConfigMapMountDescV2[]
The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See config_map_mount_desc_v2 below.
cpu number
The CPU required for each instance, in millicores, cannot be 0. Valid values: 500, 1000, 2000, 4000, 8000, 16000, 32000.
customHostAlias string
Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}]. NOTE: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

Deprecated: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

customHostAliasV2s ApplicationCustomHostAliasV2[]
The custom mapping between the hostname and IP address in the container. See custom_host_alias_v2 below.
deploy boolean
The deploy. Valid values: true, false.
edasContainerVersion string
The operating environment used by the Pandora application.
enableAhas string
The enable ahas. Valid values: true, false.
enableGreyTagRoute boolean
The enable grey tag route. Default value: false. Valid values:
envs string
Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:
imagePullSecrets string
The ID of the corresponding Secret.
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.
kafkaConfigs ApplicationKafkaConfigs
The logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
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. NOTE: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

Deprecated: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

livenessV2 ApplicationLivenessV2
The liveness check settings of the container. See liveness_v2 below.
memory number
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 2048, 4096, 8192, 12288, 16384, 24576, 32768, 65536, 131072.
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.
namespaceId Changes to this property will trigger replacement. 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.
nasConfigs ApplicationNasConfig[]
The configurations for mounting the NAS file system. See nas_configs below.
ossAkId string
OSS AccessKey ID.
ossAkSecret string
OSS AccessKey Secret.
ossMountDescs string
OSS mount description information. NOTE: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

Deprecated: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

ossMountDescsV2s ApplicationOssMountDescsV2[]
The description of the mounted Object Storage Service (OSS) bucket. See oss_mount_descs_v2 below.
packageType Changes to this property will trigger replacement. string
Application package type. Valid values: FatJar, War, Image, PhpZip, IMAGE_PHP_5_4, IMAGE_PHP_5_4_ALPINE, IMAGE_PHP_5_5, IMAGE_PHP_5_5_ALPINE, IMAGE_PHP_5_6, IMAGE_PHP_5_6_ALPINE, IMAGE_PHP_7_0, IMAGE_PHP_7_0_ALPINE, IMAGE_PHP_7_1, IMAGE_PHP_7_1_ALPINE, IMAGE_PHP_7_2, IMAGE_PHP_7_2_ALPINE, IMAGE_PHP_7_3, IMAGE_PHP_7_3_ALPINE, PythonZip.
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.
php string
The Php environment.
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"]}}. NOTE: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

Deprecated: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

postStartV2 ApplicationPostStartV2
The script that is run immediately after the container is started. See post_start_v2 below.
preStop string
Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}. NOTE: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

Deprecated: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

preStopV2 ApplicationPreStopV2
The script that is run before the container is stopped. See pre_stop_v2 below.
programmingLanguage Changes to this property will trigger replacement. string
The programming language that is used to create the application. Valid values: java, php, other.
pvtzDiscoverySvc ApplicationPvtzDiscoverySvc
The configurations of Kubernetes Service-based service registration and discovery. See pvtz_discovery_svc below.
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. NOTE: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

Deprecated: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

readinessV2 ApplicationReadinessV2
The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See readiness_v2 below.
replicas number
Initial number of instances.
securityGroupId string
Security group ID.
slsConfigs string

Configuration for log collection to SLS. Valid parameter descriptions are as follows:

  • projectName: Configures the project name on SLS.
  • logDir: Path to the logs.
  • logType: Type of logs. stdout indicates container standard output logs, and only one can be set; if not set, it means collecting file logs.
  • logstoreName: Configures the log store name on SLS.
  • logtailName: Configures the log tail name on SLS; if not specified, it means creating a new log tail.

If you no longer need to use the SLS collection feature, you should set the value of this field to an empty string. There are two examples:

  • Using SAE automatically created SLS resources: [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].
  • Using custom SLS resources: [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

NOTE: Projects that are automatically created with applications will be deleted along with the application deletion. Therefore, when selecting existing projects, you cannot choose projects automatically created by SAE.

status string
The status of the resource. Valid values: RUNNING, STOPPED, UNKNOWN.
tags {[key: string]: string}
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. Default value: 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. NOTE: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

Deprecated: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

tomcatConfigV2 ApplicationTomcatConfigV2
The Tomcat configuration. See tomcat_config_v2 below.
updateStrategy string
The update strategy. NOTE: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

Deprecated: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

updateStrategyV2 ApplicationUpdateStrategyV2
The release policy. See update_strategy_v2 below.
vpcId Changes to this property will trigger replacement. string
The vpc id.
vswitchId string
The vswitch id. NOTE: From version 1.211.0, vswitch_id can be modified.
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. NOTE: From version 1.211.0, app_description can be modified.
app_name Changes to this property will trigger replacement. 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: true, false.
auto_enable_application_scaling_rule bool
The auto enable application scaling rule. Valid values: true, false.
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. NOTE: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

Deprecated: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

command_args_v2s Sequence[str]
The parameters of the image startup command.
config_map_mount_desc str
ConfigMap mount description. NOTE: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

Deprecated: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

config_map_mount_desc_v2s Sequence[ApplicationConfigMapMountDescV2Args]
The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See config_map_mount_desc_v2 below.
cpu int
The CPU required for each instance, in millicores, cannot be 0. Valid values: 500, 1000, 2000, 4000, 8000, 16000, 32000.
custom_host_alias str
Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}]. NOTE: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

Deprecated: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

custom_host_alias_v2s Sequence[ApplicationCustomHostAliasV2Args]
The custom mapping between the hostname and IP address in the container. See custom_host_alias_v2 below.
deploy bool
The deploy. Valid values: true, false.
edas_container_version str
The operating environment used by the Pandora application.
enable_ahas str
The enable ahas. Valid values: true, false.
enable_grey_tag_route bool
The enable grey tag route. Default value: false. Valid values:
envs str
Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:
image_pull_secrets str
The ID of the corresponding Secret.
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.
kafka_configs ApplicationKafkaConfigsArgs
The logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
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. NOTE: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

Deprecated: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

liveness_v2 ApplicationLivenessV2Args
The liveness check settings of the container. See liveness_v2 below.
memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 2048, 4096, 8192, 12288, 16384, 24576, 32768, 65536, 131072.
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.
namespace_id Changes to this property will trigger replacement. 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_configs Sequence[ApplicationNasConfigArgs]
The configurations for mounting the NAS file system. See nas_configs below.
oss_ak_id str
OSS AccessKey ID.
oss_ak_secret str
OSS AccessKey Secret.
oss_mount_descs str
OSS mount description information. NOTE: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

Deprecated: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

oss_mount_descs_v2s Sequence[ApplicationOssMountDescsV2Args]
The description of the mounted Object Storage Service (OSS) bucket. See oss_mount_descs_v2 below.
package_type Changes to this property will trigger replacement. str
Application package type. Valid values: FatJar, War, Image, PhpZip, IMAGE_PHP_5_4, IMAGE_PHP_5_4_ALPINE, IMAGE_PHP_5_5, IMAGE_PHP_5_5_ALPINE, IMAGE_PHP_5_6, IMAGE_PHP_5_6_ALPINE, IMAGE_PHP_7_0, IMAGE_PHP_7_0_ALPINE, IMAGE_PHP_7_1, IMAGE_PHP_7_1_ALPINE, IMAGE_PHP_7_2, IMAGE_PHP_7_2_ALPINE, IMAGE_PHP_7_3, IMAGE_PHP_7_3_ALPINE, PythonZip.
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 str
The Php environment.
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"]}}. NOTE: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

Deprecated: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

post_start_v2 ApplicationPostStartV2Args
The script that is run immediately after the container is started. See post_start_v2 below.
pre_stop str
Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}. NOTE: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

Deprecated: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

pre_stop_v2 ApplicationPreStopV2Args
The script that is run before the container is stopped. See pre_stop_v2 below.
programming_language Changes to this property will trigger replacement. str
The programming language that is used to create the application. Valid values: java, php, other.
pvtz_discovery_svc ApplicationPvtzDiscoverySvcArgs
The configurations of Kubernetes Service-based service registration and discovery. See pvtz_discovery_svc below.
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. NOTE: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

Deprecated: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

readiness_v2 ApplicationReadinessV2Args
The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See readiness_v2 below.
replicas int
Initial number of instances.
security_group_id str
Security group ID.
sls_configs str

Configuration for log collection to SLS. Valid parameter descriptions are as follows:

  • projectName: Configures the project name on SLS.
  • logDir: Path to the logs.
  • logType: Type of logs. stdout indicates container standard output logs, and only one can be set; if not set, it means collecting file logs.
  • logstoreName: Configures the log store name on SLS.
  • logtailName: Configures the log tail name on SLS; if not specified, it means creating a new log tail.

If you no longer need to use the SLS collection feature, you should set the value of this field to an empty string. There are two examples:

  • Using SAE automatically created SLS resources: [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].
  • Using custom SLS resources: [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

NOTE: Projects that are automatically created with applications will be deleted along with the application deletion. Therefore, when selecting existing projects, you cannot choose projects automatically created by SAE.

status str
The status of the resource. Valid values: RUNNING, STOPPED, UNKNOWN.
tags Mapping[str, str]
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. Default value: 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. NOTE: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

Deprecated: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

tomcat_config_v2 ApplicationTomcatConfigV2Args
The Tomcat configuration. See tomcat_config_v2 below.
update_strategy str
The update strategy. NOTE: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

Deprecated: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

update_strategy_v2 ApplicationUpdateStrategyV2Args
The release policy. See update_strategy_v2 below.
vpc_id Changes to this property will trigger replacement. str
The vpc id.
vswitch_id str
The vswitch id. NOTE: From version 1.211.0, vswitch_id can be modified.
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. NOTE: From version 1.211.0, app_description can be modified.
appName Changes to this property will trigger replacement. 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: true, false.
autoEnableApplicationScalingRule Boolean
The auto enable application scaling rule. Valid values: true, false.
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. NOTE: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

Deprecated: Field command_args has been deprecated from provider version 1.211.0. New field command_args_v2 instead.

commandArgsV2s List<String>
The parameters of the image startup command.
configMapMountDesc String
ConfigMap mount description. NOTE: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

Deprecated: Field config_map_mount_desc has been deprecated from provider version 1.211.0. New field config_map_mount_desc_v2 instead.

configMapMountDescV2s List<Property Map>
The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. See config_map_mount_desc_v2 below.
cpu Number
The CPU required for each instance, in millicores, cannot be 0. Valid values: 500, 1000, 2000, 4000, 8000, 16000, 32000.
customHostAlias String
Custom host mapping in the container. For example: [{hostName:samplehost,ip:127.0.0.1}]. NOTE: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

Deprecated: Field custom_host_alias has been deprecated from provider version 1.211.0. New field custom_host_alias_v2 instead.

customHostAliasV2s List<Property Map>
The custom mapping between the hostname and IP address in the container. See custom_host_alias_v2 below.
deploy Boolean
The deploy. Valid values: true, false.
edasContainerVersion String
The operating environment used by the Pandora application.
enableAhas String
The enable ahas. Valid values: true, false.
enableGreyTagRoute Boolean
The enable grey tag route. Default value: false. Valid values:
envs String
Container environment variable parameters. For example, [{"name":"envtmp","value":"0"}]. The value description is as follows:
imagePullSecrets String
The ID of the corresponding Secret.
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.
kafkaConfigs Property Map
The logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
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. NOTE: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

Deprecated: Field liveness has been deprecated from provider version 1.211.0. New field liveness_v2 instead.

livenessV2 Property Map
The liveness check settings of the container. See liveness_v2 below.
memory Number
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values: 1024, 2048, 4096, 8192, 12288, 16384, 24576, 32768, 65536, 131072.
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.
namespaceId Changes to this property will trigger replacement. 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.
nasConfigs List<Property Map>
The configurations for mounting the NAS file system. See nas_configs below.
ossAkId String
OSS AccessKey ID.
ossAkSecret String
OSS AccessKey Secret.
ossMountDescs String
OSS mount description information. NOTE: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

Deprecated: Field oss_mount_descs has been deprecated from provider version 1.211.0. New field oss_mount_descs_v2 instead.

ossMountDescsV2s List<Property Map>
The description of the mounted Object Storage Service (OSS) bucket. See oss_mount_descs_v2 below.
packageType Changes to this property will trigger replacement. String
Application package type. Valid values: FatJar, War, Image, PhpZip, IMAGE_PHP_5_4, IMAGE_PHP_5_4_ALPINE, IMAGE_PHP_5_5, IMAGE_PHP_5_5_ALPINE, IMAGE_PHP_5_6, IMAGE_PHP_5_6_ALPINE, IMAGE_PHP_7_0, IMAGE_PHP_7_0_ALPINE, IMAGE_PHP_7_1, IMAGE_PHP_7_1_ALPINE, IMAGE_PHP_7_2, IMAGE_PHP_7_2_ALPINE, IMAGE_PHP_7_3, IMAGE_PHP_7_3_ALPINE, PythonZip.
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.
php String
The Php environment.
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"]}}. NOTE: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

Deprecated: Field post_start has been deprecated from provider version 1.211.0. New field post_start_v2 instead.

postStartV2 Property Map
The script that is run immediately after the container is started. See post_start_v2 below.
preStop String
Execute the script before stopping, the format is like: {exec:{command:[cat,"/etc/group"]}}. NOTE: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

Deprecated: Field pre_stop has been deprecated from provider version 1.211.0. New field pre_stop_v2 instead.

preStopV2 Property Map
The script that is run before the container is stopped. See pre_stop_v2 below.
programmingLanguage Changes to this property will trigger replacement. String
The programming language that is used to create the application. Valid values: java, php, other.
pvtzDiscoverySvc Property Map
The configurations of Kubernetes Service-based service registration and discovery. See pvtz_discovery_svc below.
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. NOTE: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

Deprecated: Field readiness has been deprecated from provider version 1.211.0. New field readiness_v2 instead.

readinessV2 Property Map
The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. See readiness_v2 below.
replicas Number
Initial number of instances.
securityGroupId String
Security group ID.
slsConfigs String

Configuration for log collection to SLS. Valid parameter descriptions are as follows:

  • projectName: Configures the project name on SLS.
  • logDir: Path to the logs.
  • logType: Type of logs. stdout indicates container standard output logs, and only one can be set; if not set, it means collecting file logs.
  • logstoreName: Configures the log store name on SLS.
  • logtailName: Configures the log tail name on SLS; if not specified, it means creating a new log tail.

If you no longer need to use the SLS collection feature, you should set the value of this field to an empty string. There are two examples:

  • Using SAE automatically created SLS resources: [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].
  • Using custom SLS resources: [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

NOTE: Projects that are automatically created with applications will be deleted along with the application deletion. Therefore, when selecting existing projects, you cannot choose projects automatically created by SAE.

status String
The status of the resource. Valid values: RUNNING, STOPPED, UNKNOWN.
tags Map<String>
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. Default value: 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. NOTE: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

Deprecated: Field tomcat_config has been deprecated from provider version 1.211.0. New field tomcat_config_v2 instead.

tomcatConfigV2 Property Map
The Tomcat configuration. See tomcat_config_v2 below.
updateStrategy String
The update strategy. NOTE: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

Deprecated: Field update_strategy has been deprecated from provider version 1.211.0. New field update_strategy_v2 instead.

updateStrategyV2 Property Map
The release policy. See update_strategy_v2 below.
vpcId Changes to this property will trigger replacement. String
The vpc id.
vswitchId String
The vswitch id. NOTE: From version 1.211.0, vswitch_id can be modified.
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.

Supporting Types

ApplicationConfigMapMountDescV2
, ApplicationConfigMapMountDescV2Args

ConfigMapId string
The ID of the ConfigMap.
Key string
The key.
MountPath string
The mount path.
ConfigMapId string
The ID of the ConfigMap.
Key string
The key.
MountPath string
The mount path.
configMapId String
The ID of the ConfigMap.
key String
The key.
mountPath String
The mount path.
configMapId string
The ID of the ConfigMap.
key string
The key.
mountPath string
The mount path.
config_map_id str
The ID of the ConfigMap.
key str
The key.
mount_path str
The mount path.
configMapId String
The ID of the ConfigMap.
key String
The key.
mountPath String
The mount path.

ApplicationCustomHostAliasV2
, ApplicationCustomHostAliasV2Args

HostName string
The domain name or hostname.
Ip string
The IP address.
HostName string
The domain name or hostname.
Ip string
The IP address.
hostName String
The domain name or hostname.
ip String
The IP address.
hostName string
The domain name or hostname.
ip string
The IP address.
host_name str
The domain name or hostname.
ip str
The IP address.
hostName String
The domain name or hostname.
ip String
The IP address.

ApplicationKafkaConfigs
, ApplicationKafkaConfigsArgs

KafkaConfigs List<Pulumi.AliCloud.Sae.Inputs.ApplicationKafkaConfigsKafkaConfig>
One or more logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
KafkaEndpoint string
The endpoint of the ApsaraMQ for Kafka API.
KafkaInstanceId string
The ID of the ApsaraMQ for Kafka instance.
KafkaConfigs []ApplicationKafkaConfigsKafkaConfig
One or more logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
KafkaEndpoint string
The endpoint of the ApsaraMQ for Kafka API.
KafkaInstanceId string
The ID of the ApsaraMQ for Kafka instance.
kafkaConfigs List<ApplicationKafkaConfigsKafkaConfig>
One or more logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
kafkaEndpoint String
The endpoint of the ApsaraMQ for Kafka API.
kafkaInstanceId String
The ID of the ApsaraMQ for Kafka instance.
kafkaConfigs ApplicationKafkaConfigsKafkaConfig[]
One or more logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
kafkaEndpoint string
The endpoint of the ApsaraMQ for Kafka API.
kafkaInstanceId string
The ID of the ApsaraMQ for Kafka instance.
kafka_configs Sequence[ApplicationKafkaConfigsKafkaConfig]
One or more logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
kafka_endpoint str
The endpoint of the ApsaraMQ for Kafka API.
kafka_instance_id str
The ID of the ApsaraMQ for Kafka instance.
kafkaConfigs List<Property Map>
One or more logging configurations of ApsaraMQ for Kafka. See kafka_configs below.
kafkaEndpoint String
The endpoint of the ApsaraMQ for Kafka API.
kafkaInstanceId String
The ID of the ApsaraMQ for Kafka instance.

ApplicationKafkaConfigsKafkaConfig
, ApplicationKafkaConfigsKafkaConfigArgs

KafkaTopic string
The topic of the Kafka.
LogDir string
The path in which logs are stored.
LogType string
The type of the log.
KafkaTopic string
The topic of the Kafka.
LogDir string
The path in which logs are stored.
LogType string
The type of the log.
kafkaTopic String
The topic of the Kafka.
logDir String
The path in which logs are stored.
logType String
The type of the log.
kafkaTopic string
The topic of the Kafka.
logDir string
The path in which logs are stored.
logType string
The type of the log.
kafka_topic str
The topic of the Kafka.
log_dir str
The path in which logs are stored.
log_type str
The type of the log.
kafkaTopic String
The topic of the Kafka.
logDir String
The path in which logs are stored.
logType String
The type of the log.

ApplicationLivenessV2
, ApplicationLivenessV2Args

Exec Pulumi.AliCloud.Sae.Inputs.ApplicationLivenessV2Exec
Execute. See exec below.
HttpGet Pulumi.AliCloud.Sae.Inputs.ApplicationLivenessV2HttpGet
The liveness check settings of the container. See http_get below.
InitialDelaySeconds int
The delay of the health check.
PeriodSeconds int
The interval at which the health check is performed.
TcpSocket Pulumi.AliCloud.Sae.Inputs.ApplicationLivenessV2TcpSocket
The liveness check settings of the container. See tcp_socket below.
TimeoutSeconds int
The timeout period of the health check.
Exec ApplicationLivenessV2Exec
Execute. See exec below.
HttpGet ApplicationLivenessV2HttpGet
The liveness check settings of the container. See http_get below.
InitialDelaySeconds int
The delay of the health check.
PeriodSeconds int
The interval at which the health check is performed.
TcpSocket ApplicationLivenessV2TcpSocket
The liveness check settings of the container. See tcp_socket below.
TimeoutSeconds int
The timeout period of the health check.
exec ApplicationLivenessV2Exec
Execute. See exec below.
httpGet ApplicationLivenessV2HttpGet
The liveness check settings of the container. See http_get below.
initialDelaySeconds Integer
The delay of the health check.
periodSeconds Integer
The interval at which the health check is performed.
tcpSocket ApplicationLivenessV2TcpSocket
The liveness check settings of the container. See tcp_socket below.
timeoutSeconds Integer
The timeout period of the health check.
exec ApplicationLivenessV2Exec
Execute. See exec below.
httpGet ApplicationLivenessV2HttpGet
The liveness check settings of the container. See http_get below.
initialDelaySeconds number
The delay of the health check.
periodSeconds number
The interval at which the health check is performed.
tcpSocket ApplicationLivenessV2TcpSocket
The liveness check settings of the container. See tcp_socket below.
timeoutSeconds number
The timeout period of the health check.
exec_ ApplicationLivenessV2Exec
Execute. See exec below.
http_get ApplicationLivenessV2HttpGet
The liveness check settings of the container. See http_get below.
initial_delay_seconds int
The delay of the health check.
period_seconds int
The interval at which the health check is performed.
tcp_socket ApplicationLivenessV2TcpSocket
The liveness check settings of the container. See tcp_socket below.
timeout_seconds int
The timeout period of the health check.
exec Property Map
Execute. See exec below.
httpGet Property Map
The liveness check settings of the container. See http_get below.
initialDelaySeconds Number
The delay of the health check.
periodSeconds Number
The interval at which the health check is performed.
tcpSocket Property Map
The liveness check settings of the container. See tcp_socket below.
timeoutSeconds Number
The timeout period of the health check.

ApplicationLivenessV2Exec
, ApplicationLivenessV2ExecArgs

Commands List<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.
Commands []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.
commands List<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.
commands 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.
commands Sequence[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.
commands List<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.

ApplicationLivenessV2HttpGet
, ApplicationLivenessV2HttpGetArgs

IsContainKeyWord bool
KeyWord string
Path string
Port int
Scheme string
IsContainKeyWord bool
KeyWord string
Path string
Port int
Scheme string
isContainKeyWord Boolean
keyWord String
path String
port Integer
scheme String
isContainKeyWord boolean
keyWord string
path string
port number
scheme string
isContainKeyWord Boolean
keyWord String
path String
port Number
scheme String

ApplicationLivenessV2TcpSocket
, ApplicationLivenessV2TcpSocketArgs

Port int
Port int
port Integer
port number
port int
port Number

ApplicationNasConfig
, ApplicationNasConfigArgs

MountDomain string
The domain name of the mount target.
MountPath string
The mount path of the container.
NasId string
The ID of the NAS file system.
NasPath string
The directory in the NAS file system.
ReadOnly bool
Specifies whether the application can read data from or write data to resources in the directory of the NAS. Valid values: true and false. If you set read_only to false, the application has the read and write permissions.
MountDomain string
The domain name of the mount target.
MountPath string
The mount path of the container.
NasId string
The ID of the NAS file system.
NasPath string
The directory in the NAS file system.
ReadOnly bool
Specifies whether the application can read data from or write data to resources in the directory of the NAS. Valid values: true and false. If you set read_only to false, the application has the read and write permissions.
mountDomain String
The domain name of the mount target.
mountPath String
The mount path of the container.
nasId String
The ID of the NAS file system.
nasPath String
The directory in the NAS file system.
readOnly Boolean
Specifies whether the application can read data from or write data to resources in the directory of the NAS. Valid values: true and false. If you set read_only to false, the application has the read and write permissions.
mountDomain string
The domain name of the mount target.
mountPath string
The mount path of the container.
nasId string
The ID of the NAS file system.
nasPath string
The directory in the NAS file system.
readOnly boolean
Specifies whether the application can read data from or write data to resources in the directory of the NAS. Valid values: true and false. If you set read_only to false, the application has the read and write permissions.
mount_domain str
The domain name of the mount target.
mount_path str
The mount path of the container.
nas_id str
The ID of the NAS file system.
nas_path str
The directory in the NAS file system.
read_only bool
Specifies whether the application can read data from or write data to resources in the directory of the NAS. Valid values: true and false. If you set read_only to false, the application has the read and write permissions.
mountDomain String
The domain name of the mount target.
mountPath String
The mount path of the container.
nasId String
The ID of the NAS file system.
nasPath String
The directory in the NAS file system.
readOnly Boolean
Specifies whether the application can read data from or write data to resources in the directory of the NAS. Valid values: true and false. If you set read_only to false, the application has the read and write permissions.

ApplicationOssMountDescsV2
, ApplicationOssMountDescsV2Args

BucketName string
The name of the OSS bucket.
BucketPath string
The directory or object in OSS.
MountPath string
The path of the container in SAE.
ReadOnly bool
Specifies whether the application can use the container path to read data from or write data to resources in the directory of the OSS bucket. Valid values:
BucketName string
The name of the OSS bucket.
BucketPath string
The directory or object in OSS.
MountPath string
The path of the container in SAE.
ReadOnly bool
Specifies whether the application can use the container path to read data from or write data to resources in the directory of the OSS bucket. Valid values:
bucketName String
The name of the OSS bucket.
bucketPath String
The directory or object in OSS.
mountPath String
The path of the container in SAE.
readOnly Boolean
Specifies whether the application can use the container path to read data from or write data to resources in the directory of the OSS bucket. Valid values:
bucketName string
The name of the OSS bucket.
bucketPath string
The directory or object in OSS.
mountPath string
The path of the container in SAE.
readOnly boolean
Specifies whether the application can use the container path to read data from or write data to resources in the directory of the OSS bucket. Valid values:
bucket_name str
The name of the OSS bucket.
bucket_path str
The directory or object in OSS.
mount_path str
The path of the container in SAE.
read_only bool
Specifies whether the application can use the container path to read data from or write data to resources in the directory of the OSS bucket. Valid values:
bucketName String
The name of the OSS bucket.
bucketPath String
The directory or object in OSS.
mountPath String
The path of the container in SAE.
readOnly Boolean
Specifies whether the application can use the container path to read data from or write data to resources in the directory of the OSS bucket. Valid values:

ApplicationPostStartV2
, ApplicationPostStartV2Args

Exec ApplicationPostStartV2Exec
Execute. See exec below.
exec ApplicationPostStartV2Exec
Execute. See exec below.
exec ApplicationPostStartV2Exec
Execute. See exec below.
exec_ ApplicationPostStartV2Exec
Execute. See exec below.
exec Property Map
Execute. See exec below.

ApplicationPostStartV2Exec
, ApplicationPostStartV2ExecArgs

Commands List<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.
Commands []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.
commands List<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.
commands 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.
commands Sequence[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.
commands List<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.

ApplicationPreStopV2
, ApplicationPreStopV2Args

Exec ApplicationPreStopV2Exec
Execute. See exec below.
exec ApplicationPreStopV2Exec
Execute. See exec below.
exec ApplicationPreStopV2Exec
Execute. See exec below.
exec_ ApplicationPreStopV2Exec
Execute. See exec below.
exec Property Map
Execute. See exec below.

ApplicationPreStopV2Exec
, ApplicationPreStopV2ExecArgs

Commands List<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.
Commands []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.
commands List<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.
commands 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.
commands Sequence[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.
commands List<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.

ApplicationPvtzDiscoverySvc
, ApplicationPvtzDiscoverySvcArgs

Enable bool
Enables the Kubernetes Service-based registration and discovery feature.
NamespaceId Changes to this property will trigger replacement. string
The ID of the namespace.
PortProtocols List<Pulumi.AliCloud.Sae.Inputs.ApplicationPvtzDiscoverySvcPortProtocol>
The port number and protocol. See port_protocols below.
ServiceName Changes to this property will trigger replacement. string
The name of the Service.
Enable bool
Enables the Kubernetes Service-based registration and discovery feature.
NamespaceId Changes to this property will trigger replacement. string
The ID of the namespace.
PortProtocols []ApplicationPvtzDiscoverySvcPortProtocol
The port number and protocol. See port_protocols below.
ServiceName Changes to this property will trigger replacement. string
The name of the Service.
enable Boolean
Enables the Kubernetes Service-based registration and discovery feature.
namespaceId Changes to this property will trigger replacement. String
The ID of the namespace.
portProtocols List<ApplicationPvtzDiscoverySvcPortProtocol>
The port number and protocol. See port_protocols below.
serviceName Changes to this property will trigger replacement. String
The name of the Service.
enable boolean
Enables the Kubernetes Service-based registration and discovery feature.
namespaceId Changes to this property will trigger replacement. string
The ID of the namespace.
portProtocols ApplicationPvtzDiscoverySvcPortProtocol[]
The port number and protocol. See port_protocols below.
serviceName Changes to this property will trigger replacement. string
The name of the Service.
enable bool
Enables the Kubernetes Service-based registration and discovery feature.
namespace_id Changes to this property will trigger replacement. str
The ID of the namespace.
port_protocols Sequence[ApplicationPvtzDiscoverySvcPortProtocol]
The port number and protocol. See port_protocols below.
service_name Changes to this property will trigger replacement. str
The name of the Service.
enable Boolean
Enables the Kubernetes Service-based registration and discovery feature.
namespaceId Changes to this property will trigger replacement. String
The ID of the namespace.
portProtocols List<Property Map>
The port number and protocol. See port_protocols below.
serviceName Changes to this property will trigger replacement. String
The name of the Service.

ApplicationPvtzDiscoverySvcPortProtocol
, ApplicationPvtzDiscoverySvcPortProtocolArgs

Port int
Protocol string
The protocol. Valid values: TCP and UDP.
Port int
Protocol string
The protocol. Valid values: TCP and UDP.
port Integer
protocol String
The protocol. Valid values: TCP and UDP.
port number
protocol string
The protocol. Valid values: TCP and UDP.
port int
protocol str
The protocol. Valid values: TCP and UDP.
port Number
protocol String
The protocol. Valid values: TCP and UDP.

ApplicationReadinessV2
, ApplicationReadinessV2Args

Exec Pulumi.AliCloud.Sae.Inputs.ApplicationReadinessV2Exec
Execute. See exec below.
HttpGet Pulumi.AliCloud.Sae.Inputs.ApplicationReadinessV2HttpGet
The liveness check settings of the container. See http_get below.
InitialDelaySeconds int
The delay of the health check.
PeriodSeconds int
The interval at which the health check is performed.
TcpSocket Pulumi.AliCloud.Sae.Inputs.ApplicationReadinessV2TcpSocket
The liveness check settings of the container. See tcp_socket below.
TimeoutSeconds int
The timeout period of the health check.
Exec ApplicationReadinessV2Exec
Execute. See exec below.
HttpGet ApplicationReadinessV2HttpGet
The liveness check settings of the container. See http_get below.
InitialDelaySeconds int
The delay of the health check.
PeriodSeconds int
The interval at which the health check is performed.
TcpSocket ApplicationReadinessV2TcpSocket
The liveness check settings of the container. See tcp_socket below.
TimeoutSeconds int
The timeout period of the health check.
exec ApplicationReadinessV2Exec
Execute. See exec below.
httpGet ApplicationReadinessV2HttpGet
The liveness check settings of the container. See http_get below.
initialDelaySeconds Integer
The delay of the health check.
periodSeconds Integer
The interval at which the health check is performed.
tcpSocket ApplicationReadinessV2TcpSocket
The liveness check settings of the container. See tcp_socket below.
timeoutSeconds Integer
The timeout period of the health check.
exec ApplicationReadinessV2Exec
Execute. See exec below.
httpGet ApplicationReadinessV2HttpGet
The liveness check settings of the container. See http_get below.
initialDelaySeconds number
The delay of the health check.
periodSeconds number
The interval at which the health check is performed.
tcpSocket ApplicationReadinessV2TcpSocket
The liveness check settings of the container. See tcp_socket below.
timeoutSeconds number
The timeout period of the health check.
exec_ ApplicationReadinessV2Exec
Execute. See exec below.
http_get ApplicationReadinessV2HttpGet
The liveness check settings of the container. See http_get below.
initial_delay_seconds int
The delay of the health check.
period_seconds int
The interval at which the health check is performed.
tcp_socket ApplicationReadinessV2TcpSocket
The liveness check settings of the container. See tcp_socket below.
timeout_seconds int
The timeout period of the health check.
exec Property Map
Execute. See exec below.
httpGet Property Map
The liveness check settings of the container. See http_get below.
initialDelaySeconds Number
The delay of the health check.
periodSeconds Number
The interval at which the health check is performed.
tcpSocket Property Map
The liveness check settings of the container. See tcp_socket below.
timeoutSeconds Number
The timeout period of the health check.

ApplicationReadinessV2Exec
, ApplicationReadinessV2ExecArgs

Commands List<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.
Commands []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.
commands List<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.
commands 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.
commands Sequence[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.
commands List<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.

ApplicationReadinessV2HttpGet
, ApplicationReadinessV2HttpGetArgs

IsContainKeyWord bool
KeyWord string
Path string
Port int
Scheme string
IsContainKeyWord bool
KeyWord string
Path string
Port int
Scheme string
isContainKeyWord Boolean
keyWord String
path String
port Integer
scheme String
isContainKeyWord boolean
keyWord string
path string
port number
scheme string
isContainKeyWord Boolean
keyWord String
path String
port Number
scheme String

ApplicationReadinessV2TcpSocket
, ApplicationReadinessV2TcpSocketArgs

Port int
Port int
port Integer
port number
port int
port Number

ApplicationTomcatConfigV2
, ApplicationTomcatConfigV2Args

ContextPath string
The path.
MaxThreads int
The maximum number of connections in the connection pool.
Port int
The port.
UriEncoding string
The URI encoding scheme in the Tomcat container.
UseBodyEncodingForUri string
Specifies whether to use the encoding scheme that is specified by BodyEncoding for URL.
ContextPath string
The path.
MaxThreads int
The maximum number of connections in the connection pool.
Port int
The port.
UriEncoding string
The URI encoding scheme in the Tomcat container.
UseBodyEncodingForUri string
Specifies whether to use the encoding scheme that is specified by BodyEncoding for URL.
contextPath String
The path.
maxThreads Integer
The maximum number of connections in the connection pool.
port Integer
The port.
uriEncoding String
The URI encoding scheme in the Tomcat container.
useBodyEncodingForUri String
Specifies whether to use the encoding scheme that is specified by BodyEncoding for URL.
contextPath string
The path.
maxThreads number
The maximum number of connections in the connection pool.
port number
The port.
uriEncoding string
The URI encoding scheme in the Tomcat container.
useBodyEncodingForUri string
Specifies whether to use the encoding scheme that is specified by BodyEncoding for URL.
context_path str
The path.
max_threads int
The maximum number of connections in the connection pool.
port int
The port.
uri_encoding str
The URI encoding scheme in the Tomcat container.
use_body_encoding_for_uri str
Specifies whether to use the encoding scheme that is specified by BodyEncoding for URL.
contextPath String
The path.
maxThreads Number
The maximum number of connections in the connection pool.
port Number
The port.
uriEncoding String
The URI encoding scheme in the Tomcat container.
useBodyEncodingForUri String
Specifies whether to use the encoding scheme that is specified by BodyEncoding for URL.

ApplicationUpdateStrategyV2
, ApplicationUpdateStrategyV2Args

BatchUpdate Pulumi.AliCloud.Sae.Inputs.ApplicationUpdateStrategyV2BatchUpdate
The phased release policy. See batch_update below.
Type string
The type of the release policy. Valid values: GrayBatchUpdate and BatchUpdate.
BatchUpdate ApplicationUpdateStrategyV2BatchUpdate
The phased release policy. See batch_update below.
Type string
The type of the release policy. Valid values: GrayBatchUpdate and BatchUpdate.
batchUpdate ApplicationUpdateStrategyV2BatchUpdate
The phased release policy. See batch_update below.
type String
The type of the release policy. Valid values: GrayBatchUpdate and BatchUpdate.
batchUpdate ApplicationUpdateStrategyV2BatchUpdate
The phased release policy. See batch_update below.
type string
The type of the release policy. Valid values: GrayBatchUpdate and BatchUpdate.
batch_update ApplicationUpdateStrategyV2BatchUpdate
The phased release policy. See batch_update below.
type str
The type of the release policy. Valid values: GrayBatchUpdate and BatchUpdate.
batchUpdate Property Map
The phased release policy. See batch_update below.
type String
The type of the release policy. Valid values: GrayBatchUpdate and BatchUpdate.

ApplicationUpdateStrategyV2BatchUpdate
, ApplicationUpdateStrategyV2BatchUpdateArgs

Batch int
The number of batches in which you want to release the instances.
BatchWaitTime int
The batch wait time.
ReleaseType string
The processing method for the batches. Valid values: auto and manual.
Batch int
The number of batches in which you want to release the instances.
BatchWaitTime int
The batch wait time.
ReleaseType string
The processing method for the batches. Valid values: auto and manual.
batch Integer
The number of batches in which you want to release the instances.
batchWaitTime Integer
The batch wait time.
releaseType String
The processing method for the batches. Valid values: auto and manual.
batch number
The number of batches in which you want to release the instances.
batchWaitTime number
The batch wait time.
releaseType string
The processing method for the batches. Valid values: auto and manual.
batch int
The number of batches in which you want to release the instances.
batch_wait_time int
The batch wait time.
release_type str
The processing method for the batches. Valid values: auto and manual.
batch Number
The number of batches in which you want to release the instances.
batchWaitTime Number
The batch wait time.
releaseType String
The processing method for the batches. Valid values: auto and manual.

Import

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

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

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

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.