alicloud.sae.Application
Provides a Serverless App Engine (SAE) Application resource.
For information about Serverless App Engine (SAE) Application and how to use it, see What is Application.
NOTE: Available in v1.161.0+.
Example Usage
Basic Usage
using System.Collections.Generic;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-testacc";
var defaultZones = AliCloud.GetZones.Invoke(new()
{
AvailableResourceCreation = "VSwitch",
});
var vpc = new AliCloud.Vpc.Network("vpc", new()
{
VpcName = "tf_testacc",
CidrBlock = "172.16.0.0/12",
});
var vsw = new AliCloud.Vpc.Switch("vsw", new()
{
VpcId = vpc.Id,
CidrBlock = "172.16.0.0/24",
ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
VswitchName = name,
});
var defaultNamespace = new AliCloud.Sae.Namespace("defaultNamespace", new()
{
NamespaceDescription = name,
NamespaceId = "cn-hangzhou:tfacctest",
NamespaceName = name,
});
var defaultApplication = new AliCloud.Sae.Application("defaultApplication", new()
{
AppDescription = "tf-testaccDescription",
AppName = "tf-testaccAppName",
NamespaceId = defaultNamespace.Id,
ImageUrl = "registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5",
PackageType = "Image",
VswitchId = vsw.Id,
Timezone = "Asia/Beijing",
Replicas = 5,
Cpu = 500,
Memory = 2048,
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-testacc"
if param := cfg.Get("name"); param != "" {
name = param
}
defaultZones, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{
AvailableResourceCreation: pulumi.StringRef("VSwitch"),
}, nil)
if err != nil {
return err
}
vpc, err := vpc.NewNetwork(ctx, "vpc", &vpc.NetworkArgs{
VpcName: pulumi.String("tf_testacc"),
CidrBlock: pulumi.String("172.16.0.0/12"),
})
if err != nil {
return err
}
vsw, err := vpc.NewSwitch(ctx, "vsw", &vpc.SwitchArgs{
VpcId: vpc.ID(),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: *pulumi.String(defaultZones.Zones[0].Id),
VswitchName: pulumi.String(name),
})
if err != nil {
return err
}
defaultNamespace, err := sae.NewNamespace(ctx, "defaultNamespace", &sae.NamespaceArgs{
NamespaceDescription: pulumi.String(name),
NamespaceId: pulumi.String("cn-hangzhou:tfacctest"),
NamespaceName: pulumi.String(name),
})
if err != nil {
return err
}
_, err = sae.NewApplication(ctx, "defaultApplication", &sae.ApplicationArgs{
AppDescription: pulumi.String("tf-testaccDescription"),
AppName: pulumi.String("tf-testaccAppName"),
NamespaceId: defaultNamespace.ID(),
ImageUrl: pulumi.String("registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5"),
PackageType: pulumi.String("Image"),
VswitchId: vsw.ID(),
Timezone: pulumi.String("Asia/Beijing"),
Replicas: pulumi.Int(5),
Cpu: pulumi.Int(500),
Memory: pulumi.Int(2048),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.sae.Namespace;
import com.pulumi.alicloud.sae.NamespaceArgs;
import com.pulumi.alicloud.sae.Application;
import com.pulumi.alicloud.sae.ApplicationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf-testacc");
final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
var vpc = new Network("vpc", NetworkArgs.builder()
.vpcName("tf_testacc")
.cidrBlock("172.16.0.0/12")
.build());
var vsw = new Switch("vsw", SwitchArgs.builder()
.vpcId(vpc.id())
.cidrBlock("172.16.0.0/24")
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.vswitchName(name)
.build());
var defaultNamespace = new Namespace("defaultNamespace", NamespaceArgs.builder()
.namespaceDescription(name)
.namespaceId("cn-hangzhou:tfacctest")
.namespaceName(name)
.build());
var defaultApplication = new Application("defaultApplication", ApplicationArgs.builder()
.appDescription("tf-testaccDescription")
.appName("tf-testaccAppName")
.namespaceId(defaultNamespace.id())
.imageUrl("registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5")
.packageType("Image")
.vswitchId(vsw.id())
.timezone("Asia/Beijing")
.replicas("5")
.cpu("500")
.memory("2048")
.build());
}
}
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-testacc"
default_zones = alicloud.get_zones(available_resource_creation="VSwitch")
vpc = alicloud.vpc.Network("vpc",
vpc_name="tf_testacc",
cidr_block="172.16.0.0/12")
vsw = alicloud.vpc.Switch("vsw",
vpc_id=vpc.id,
cidr_block="172.16.0.0/24",
zone_id=default_zones.zones[0].id,
vswitch_name=name)
default_namespace = alicloud.sae.Namespace("defaultNamespace",
namespace_description=name,
namespace_id="cn-hangzhou:tfacctest",
namespace_name=name)
default_application = alicloud.sae.Application("defaultApplication",
app_description="tf-testaccDescription",
app_name="tf-testaccAppName",
namespace_id=default_namespace.id,
image_url="registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5",
package_type="Image",
vswitch_id=vsw.id,
timezone="Asia/Beijing",
replicas=5,
cpu=500,
memory=2048)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-testacc";
const defaultZones = alicloud.getZones({
availableResourceCreation: "VSwitch",
});
const vpc = new alicloud.vpc.Network("vpc", {
vpcName: "tf_testacc",
cidrBlock: "172.16.0.0/12",
});
const vsw = new alicloud.vpc.Switch("vsw", {
vpcId: vpc.id,
cidrBlock: "172.16.0.0/24",
zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
vswitchName: name,
});
const defaultNamespace = new alicloud.sae.Namespace("defaultNamespace", {
namespaceDescription: name,
namespaceId: "cn-hangzhou:tfacctest",
namespaceName: name,
});
const defaultApplication = new alicloud.sae.Application("defaultApplication", {
appDescription: "tf-testaccDescription",
appName: "tf-testaccAppName",
namespaceId: defaultNamespace.id,
imageUrl: "registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5",
packageType: "Image",
vswitchId: vsw.id,
timezone: "Asia/Beijing",
replicas: 5,
cpu: 500,
memory: 2048,
});
configuration:
name:
type: string
default: tf-testacc
resources:
vpc:
type: alicloud:vpc:Network
properties:
vpcName: tf_testacc
cidrBlock: 172.16.0.0/12
vsw:
type: alicloud:vpc:Switch
properties:
vpcId: ${vpc.id}
cidrBlock: 172.16.0.0/24
zoneId: ${defaultZones.zones[0].id}
vswitchName: ${name}
defaultNamespace:
type: alicloud:sae:Namespace
properties:
namespaceDescription: ${name}
namespaceId: cn-hangzhou:tfacctest
namespaceName: ${name}
defaultApplication:
type: alicloud:sae:Application
properties:
appDescription: tf-testaccDescription
appName: tf-testaccAppName
namespaceId: ${defaultNamespace.id}
imageUrl: registry-vpc.cn-hangzhou.aliyuncs.com/lxepoo/apache-php5
packageType: Image
vswitchId: ${vsw.id}
timezone: Asia/Beijing
replicas: '5'
cpu: '500'
memory: '2048'
variables:
defaultZones:
fn::invoke:
Function: alicloud:getZones
Arguments:
availableResourceCreation: VSwitch
Create Application Resource
new Application(name: string, args: ApplicationArgs, opts?: CustomResourceOptions);
@overload
def Application(resource_name: str,
opts: Optional[ResourceOptions] = None,
acr_assume_role_arn: Optional[str] = None,
acr_instance_id: Optional[str] = None,
app_description: Optional[str] = None,
app_name: Optional[str] = None,
auto_config: Optional[bool] = None,
auto_enable_application_scaling_rule: Optional[bool] = None,
batch_wait_time: Optional[int] = None,
change_order_desc: Optional[str] = None,
command: Optional[str] = None,
command_args: Optional[str] = None,
config_map_mount_desc: Optional[str] = None,
cpu: Optional[int] = None,
custom_host_alias: Optional[str] = None,
deploy: Optional[bool] = None,
edas_container_version: Optional[str] = None,
enable_ahas: Optional[str] = None,
enable_grey_tag_route: Optional[bool] = None,
envs: Optional[str] = None,
image_url: Optional[str] = None,
jar_start_args: Optional[str] = None,
jar_start_options: Optional[str] = None,
jdk: Optional[str] = None,
liveness: Optional[str] = None,
memory: Optional[int] = None,
micro_registration: Optional[str] = None,
min_ready_instance_ratio: Optional[int] = None,
min_ready_instances: Optional[int] = None,
mount_desc: Optional[str] = None,
mount_host: Optional[str] = None,
namespace_id: Optional[str] = None,
nas_id: Optional[str] = None,
oss_ak_id: Optional[str] = None,
oss_ak_secret: Optional[str] = None,
oss_mount_descs: Optional[str] = None,
package_type: Optional[str] = None,
package_url: Optional[str] = None,
package_version: Optional[str] = None,
php_arms_config_location: Optional[str] = None,
php_config: Optional[str] = None,
php_config_location: Optional[str] = None,
post_start: Optional[str] = None,
pre_stop: Optional[str] = None,
readiness: Optional[str] = None,
replicas: Optional[int] = None,
security_group_id: Optional[str] = None,
sls_configs: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
termination_grace_period_seconds: Optional[int] = None,
timezone: Optional[str] = None,
tomcat_config: Optional[str] = None,
update_strategy: Optional[str] = None,
version_id: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
war_start_options: Optional[str] = None,
web_container: Optional[str] = None)
@overload
def Application(resource_name: str,
args: ApplicationArgs,
opts: Optional[ResourceOptions] = None)
func NewApplication(ctx *Context, name string, args ApplicationArgs, opts ...ResourceOption) (*Application, error)
public Application(string name, ApplicationArgs args, CustomResourceOptions? opts = null)
public Application(String name, ApplicationArgs args)
public Application(String name, ApplicationArgs args, CustomResourceOptions options)
type: alicloud:sae:Application
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApplicationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Application Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Application resource accepts the following input properties:
- App
Name string 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 string Application package type. Support FatJar, War and Image. Valid values:
FatJar
,Image
,War
.- Replicas int
Initial number of instances.
- Acr
Assume stringRole Arn 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 stringId The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.
- App
Description string Application description information. No more than 1024 characters.
- Auto
Config bool The auto config. Valid values:
false
,true
.- Auto
Enable boolApplication Scaling Rule The auto enable application scaling rule. Valid values:
false
,true
.- Batch
Wait intTime The batch wait time.
- Change
Order stringDesc 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.
- Command
Args string Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
- Config
Map stringMount Desc ConfigMap mount description.
- Cpu int
The CPU required for each instance, in millicores, cannot be 0. Valid values:
1000
,16000
,2000
,32000
,4000
,500
,8000
.- Custom
Host stringAlias Custom host mapping in the container. For example: [{
hostName
:samplehost
,ip
:127.0.0.1
}].- Deploy bool
The deploy. Valid values:
false
,true
.- Edas
Container stringVersion The operating environment used by the Pandora application.
- Enable
Ahas string The enable ahas.
- Enable
Grey boolTag Route The enable grey tag route.
- Envs string
Container environment variable parameters. For example,
[{"name":"envtmp","value":"0"}]
. The value description is as follows:- Image
Url string Mirror address. Only Image type applications can configure the mirror address.
- Jar
Start stringArgs The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- Jar
Start stringOptions The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- Jdk string
The JDK version that the deployment package depends on. Image type applications are not supported.
- Liveness string
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
- Memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values:
1024
,131072
,16384
,2048
,32768
,4096
,65536
,8192
.- Micro
Registration string Select the Nacos registry. Valid values:
0
,1
,2
.- Min
Ready intInstance Ratio Minimum Survival Instance Percentage. NOTE: When
min_ready_instances
andmin_ready_instance_ratio
are passed at the same time, and the value ofmin_ready_instance_ratio
is not -1, themin_ready_instance_ratio
parameter shall prevail. Assuming thatmin_ready_instances
is 5 andmin_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 intInstances The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
- Mount
Desc string Mount description.
- Mount
Host string Mount point of NAS in application VPC.
- Namespace
Id 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.
- Nas
Id string ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
- Oss
Ak stringId OSS AccessKey ID.
- Oss
Ak stringSecret OSS AccessKey Secret.
- Oss
Mount stringDescs OSS mount description information.
- Package
Url string Deployment package address. Only FatJar or War type applications can configure the deployment package address.
- Package
Version string The version number of the deployment package. Required when the Package Type is War and FatJar.
- Php
Arms stringConfig Location 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 string PHP configuration file content.
- Php
Config stringLocation PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
- Post
Start string Execute the script after startup, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- Pre
Stop string Execute the script before stopping, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- Readiness string
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {
exec
:{command
:[sh
,"-c","cat /home/admin/start.sh"]},initialDelaySeconds
:30,periodSeconds
:30,"timeoutSeconds ":2}. Valid values:command
,initialDelaySeconds
,periodSeconds
,timeoutSeconds
.- Security
Group stringId Security group ID.
- Sls
Configs string SLS configuration.
- Status string
The status of the resource. Valid values:
RUNNING
,STOPPED
.- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Termination
Grace intPeriod Seconds Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
- Timezone string
Time zone, the default value is Asia/Shanghai.
- Tomcat
Config 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
.- Update
Strategy string The update strategy.
- Version
Id string Application version id.
- Vpc
Id string The vpc id.
- Vswitch
Id string The vswitch id.
- War
Start stringOptions WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
- Web
Container string The version of tomcat that the deployment package depends on. Image type applications are not supported.
- App
Name string 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 string Application package type. Support FatJar, War and Image. Valid values:
FatJar
,Image
,War
.- Replicas int
Initial number of instances.
- Acr
Assume stringRole Arn 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 stringId The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.
- App
Description string Application description information. No more than 1024 characters.
- Auto
Config bool The auto config. Valid values:
false
,true
.- Auto
Enable boolApplication Scaling Rule The auto enable application scaling rule. Valid values:
false
,true
.- Batch
Wait intTime The batch wait time.
- Change
Order stringDesc 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.
- Command
Args string Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
- Config
Map stringMount Desc ConfigMap mount description.
- Cpu int
The CPU required for each instance, in millicores, cannot be 0. Valid values:
1000
,16000
,2000
,32000
,4000
,500
,8000
.- Custom
Host stringAlias Custom host mapping in the container. For example: [{
hostName
:samplehost
,ip
:127.0.0.1
}].- Deploy bool
The deploy. Valid values:
false
,true
.- Edas
Container stringVersion The operating environment used by the Pandora application.
- Enable
Ahas string The enable ahas.
- Enable
Grey boolTag Route The enable grey tag route.
- Envs string
Container environment variable parameters. For example,
[{"name":"envtmp","value":"0"}]
. The value description is as follows:- Image
Url string Mirror address. Only Image type applications can configure the mirror address.
- Jar
Start stringArgs The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- Jar
Start stringOptions The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- Jdk string
The JDK version that the deployment package depends on. Image type applications are not supported.
- Liveness string
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
- Memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values:
1024
,131072
,16384
,2048
,32768
,4096
,65536
,8192
.- Micro
Registration string Select the Nacos registry. Valid values:
0
,1
,2
.- Min
Ready intInstance Ratio Minimum Survival Instance Percentage. NOTE: When
min_ready_instances
andmin_ready_instance_ratio
are passed at the same time, and the value ofmin_ready_instance_ratio
is not -1, themin_ready_instance_ratio
parameter shall prevail. Assuming thatmin_ready_instances
is 5 andmin_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 intInstances The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
- Mount
Desc string Mount description.
- Mount
Host string Mount point of NAS in application VPC.
- Namespace
Id 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.
- Nas
Id string ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
- Oss
Ak stringId OSS AccessKey ID.
- Oss
Ak stringSecret OSS AccessKey Secret.
- Oss
Mount stringDescs OSS mount description information.
- Package
Url string Deployment package address. Only FatJar or War type applications can configure the deployment package address.
- Package
Version string The version number of the deployment package. Required when the Package Type is War and FatJar.
- Php
Arms stringConfig Location 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 string PHP configuration file content.
- Php
Config stringLocation PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
- Post
Start string Execute the script after startup, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- Pre
Stop string Execute the script before stopping, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- Readiness string
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {
exec
:{command
:[sh
,"-c","cat /home/admin/start.sh"]},initialDelaySeconds
:30,periodSeconds
:30,"timeoutSeconds ":2}. Valid values:command
,initialDelaySeconds
,periodSeconds
,timeoutSeconds
.- Security
Group stringId Security group ID.
- Sls
Configs string SLS configuration.
- Status string
The status of the resource. Valid values:
RUNNING
,STOPPED
.- map[string]interface{}
A mapping of tags to assign to the resource.
- Termination
Grace intPeriod Seconds Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
- Timezone string
Time zone, the default value is Asia/Shanghai.
- Tomcat
Config 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
.- Update
Strategy string The update strategy.
- Version
Id string Application version id.
- Vpc
Id string The vpc id.
- Vswitch
Id string The vswitch id.
- War
Start stringOptions WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
- Web
Container string The version of tomcat that the deployment package depends on. Image type applications are not supported.
- app
Name String 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 String Application package type. Support FatJar, War and Image. Valid values:
FatJar
,Image
,War
.- replicas Integer
Initial number of instances.
- acr
Assume StringRole Arn 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 StringId The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.
- app
Description String Application description information. No more than 1024 characters.
- auto
Config Boolean The auto config. Valid values:
false
,true
.- auto
Enable BooleanApplication Scaling Rule The auto enable application scaling rule. Valid values:
false
,true
.- batch
Wait IntegerTime The batch wait time.
- change
Order StringDesc 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.
- command
Args String Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
- config
Map StringMount Desc ConfigMap mount description.
- cpu Integer
The CPU required for each instance, in millicores, cannot be 0. Valid values:
1000
,16000
,2000
,32000
,4000
,500
,8000
.- custom
Host StringAlias Custom host mapping in the container. For example: [{
hostName
:samplehost
,ip
:127.0.0.1
}].- deploy Boolean
The deploy. Valid values:
false
,true
.- edas
Container StringVersion The operating environment used by the Pandora application.
- enable
Ahas String The enable ahas.
- enable
Grey BooleanTag Route The enable grey tag route.
- envs String
Container environment variable parameters. For example,
[{"name":"envtmp","value":"0"}]
. The value description is as follows:- image
Url String Mirror address. Only Image type applications can configure the mirror address.
- jar
Start StringArgs The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jar
Start StringOptions The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jdk String
The JDK version that the deployment package depends on. Image type applications are not supported.
- liveness String
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
- memory Integer
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values:
1024
,131072
,16384
,2048
,32768
,4096
,65536
,8192
.- micro
Registration String Select the Nacos registry. Valid values:
0
,1
,2
.- min
Ready IntegerInstance Ratio Minimum Survival Instance Percentage. NOTE: When
min_ready_instances
andmin_ready_instance_ratio
are passed at the same time, and the value ofmin_ready_instance_ratio
is not -1, themin_ready_instance_ratio
parameter shall prevail. Assuming thatmin_ready_instances
is 5 andmin_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 IntegerInstances The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
- mount
Desc String Mount description.
- mount
Host String Mount point of NAS in application VPC.
- namespace
Id 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.
- nas
Id String ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
- oss
Ak StringId OSS AccessKey ID.
- oss
Ak StringSecret OSS AccessKey Secret.
- oss
Mount StringDescs OSS mount description information.
- package
Url String Deployment package address. Only FatJar or War type applications can configure the deployment package address.
- package
Version String The version number of the deployment package. Required when the Package Type is War and FatJar.
- php
Arms StringConfig Location 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 String PHP configuration file content.
- php
Config StringLocation PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
- post
Start String Execute the script after startup, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- pre
Stop String Execute the script before stopping, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- readiness String
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {
exec
:{command
:[sh
,"-c","cat /home/admin/start.sh"]},initialDelaySeconds
:30,periodSeconds
:30,"timeoutSeconds ":2}. Valid values:command
,initialDelaySeconds
,periodSeconds
,timeoutSeconds
.- security
Group StringId Security group ID.
- sls
Configs String SLS configuration.
- status String
The status of the resource. Valid values:
RUNNING
,STOPPED
.- Map<String,Object>
A mapping of tags to assign to the resource.
- termination
Grace IntegerPeriod Seconds Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
- timezone String
Time zone, the default value is Asia/Shanghai.
- tomcat
Config 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
.- update
Strategy String The update strategy.
- version
Id String Application version id.
- vpc
Id String The vpc id.
- vswitch
Id String The vswitch id.
- war
Start StringOptions WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
- web
Container String The version of tomcat that the deployment package depends on. Image type applications are not supported.
- app
Name string 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 string Application package type. Support FatJar, War and Image. Valid values:
FatJar
,Image
,War
.- replicas number
Initial number of instances.
- acr
Assume stringRole Arn 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 stringId The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.
- app
Description string Application description information. No more than 1024 characters.
- auto
Config boolean The auto config. Valid values:
false
,true
.- auto
Enable booleanApplication Scaling Rule The auto enable application scaling rule. Valid values:
false
,true
.- batch
Wait numberTime The batch wait time.
- change
Order stringDesc 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.
- command
Args string Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
- config
Map stringMount Desc ConfigMap mount description.
- cpu number
The CPU required for each instance, in millicores, cannot be 0. Valid values:
1000
,16000
,2000
,32000
,4000
,500
,8000
.- custom
Host stringAlias Custom host mapping in the container. For example: [{
hostName
:samplehost
,ip
:127.0.0.1
}].- deploy boolean
The deploy. Valid values:
false
,true
.- edas
Container stringVersion The operating environment used by the Pandora application.
- enable
Ahas string The enable ahas.
- enable
Grey booleanTag Route The enable grey tag route.
- envs string
Container environment variable parameters. For example,
[{"name":"envtmp","value":"0"}]
. The value description is as follows:- image
Url string Mirror address. Only Image type applications can configure the mirror address.
- jar
Start stringArgs The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jar
Start stringOptions The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jdk string
The JDK version that the deployment package depends on. Image type applications are not supported.
- liveness string
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
- memory number
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values:
1024
,131072
,16384
,2048
,32768
,4096
,65536
,8192
.- micro
Registration string Select the Nacos registry. Valid values:
0
,1
,2
.- min
Ready numberInstance Ratio Minimum Survival Instance Percentage. NOTE: When
min_ready_instances
andmin_ready_instance_ratio
are passed at the same time, and the value ofmin_ready_instance_ratio
is not -1, themin_ready_instance_ratio
parameter shall prevail. Assuming thatmin_ready_instances
is 5 andmin_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 numberInstances The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
- mount
Desc string Mount description.
- mount
Host string Mount point of NAS in application VPC.
- namespace
Id 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.
- nas
Id string ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
- oss
Ak stringId OSS AccessKey ID.
- oss
Ak stringSecret OSS AccessKey Secret.
- oss
Mount stringDescs OSS mount description information.
- package
Url string Deployment package address. Only FatJar or War type applications can configure the deployment package address.
- package
Version string The version number of the deployment package. Required when the Package Type is War and FatJar.
- php
Arms stringConfig Location 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 string PHP configuration file content.
- php
Config stringLocation PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
- post
Start string Execute the script after startup, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- pre
Stop string Execute the script before stopping, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- readiness string
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {
exec
:{command
:[sh
,"-c","cat /home/admin/start.sh"]},initialDelaySeconds
:30,periodSeconds
:30,"timeoutSeconds ":2}. Valid values:command
,initialDelaySeconds
,periodSeconds
,timeoutSeconds
.- security
Group stringId Security group ID.
- sls
Configs string SLS configuration.
- status string
The status of the resource. Valid values:
RUNNING
,STOPPED
.- {[key: string]: any}
A mapping of tags to assign to the resource.
- termination
Grace numberPeriod Seconds Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
- timezone string
Time zone, the default value is Asia/Shanghai.
- tomcat
Config 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
.- update
Strategy string The update strategy.
- version
Id string Application version id.
- vpc
Id string The vpc id.
- vswitch
Id string The vswitch id.
- war
Start stringOptions WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
- web
Container string The version of tomcat that the deployment package depends on. Image type applications are not supported.
- app_
name str Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
- package_
type str Application package type. Support FatJar, War and Image. Valid values:
FatJar
,Image
,War
.- replicas int
Initial number of instances.
- acr_
assume_ strrole_ arn 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_ strid The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.
- app_
description str Application description information. No more than 1024 characters.
- auto_
config bool The auto config. Valid values:
false
,true
.- auto_
enable_ boolapplication_ scaling_ rule The auto enable application scaling rule. Valid values:
false
,true
.- batch_
wait_ inttime The batch wait time.
- change_
order_ strdesc The change order desc.
- command str
Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.
- command_
args str Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
- config_
map_ strmount_ desc ConfigMap mount description.
- cpu int
The CPU required for each instance, in millicores, cannot be 0. Valid values:
1000
,16000
,2000
,32000
,4000
,500
,8000
.- custom_
host_ stralias Custom host mapping in the container. For example: [{
hostName
:samplehost
,ip
:127.0.0.1
}].- deploy bool
The deploy. Valid values:
false
,true
.- edas_
container_ strversion The operating environment used by the Pandora application.
- enable_
ahas str The enable ahas.
- enable_
grey_ booltag_ route The enable grey tag route.
- envs str
Container environment variable parameters. For example,
[{"name":"envtmp","value":"0"}]
. The value description is as follows:- image_
url str Mirror address. Only Image type applications can configure the mirror address.
- jar_
start_ strargs The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jar_
start_ stroptions The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jdk str
The JDK version that the deployment package depends on. Image type applications are not supported.
- liveness str
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
- memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values:
1024
,131072
,16384
,2048
,32768
,4096
,65536
,8192
.- micro_
registration str Select the Nacos registry. Valid values:
0
,1
,2
.- min_
ready_ intinstance_ ratio Minimum Survival Instance Percentage. NOTE: When
min_ready_instances
andmin_ready_instance_ratio
are passed at the same time, and the value ofmin_ready_instance_ratio
is not -1, themin_ready_instance_ratio
parameter shall prevail. Assuming thatmin_ready_instances
is 5 andmin_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_ intinstances The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
- mount_
desc str Mount description.
- mount_
host str Mount point of NAS in application VPC.
- namespace_
id str SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
- nas_
id str ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
- oss_
ak_ strid OSS AccessKey ID.
- oss_
ak_ strsecret OSS AccessKey Secret.
- oss_
mount_ strdescs OSS mount description information.
- package_
url str Deployment package address. Only FatJar or War type applications can configure the deployment package address.
- package_
version str The version number of the deployment package. Required when the Package Type is War and FatJar.
- php_
arms_ strconfig_ location 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_ strlocation PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
- post_
start str Execute the script after startup, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- pre_
stop str Execute the script before stopping, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- readiness str
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {
exec
:{command
:[sh
,"-c","cat /home/admin/start.sh"]},initialDelaySeconds
:30,periodSeconds
:30,"timeoutSeconds ":2}. Valid values:command
,initialDelaySeconds
,periodSeconds
,timeoutSeconds
.- security_
group_ strid Security group ID.
- sls_
configs str SLS configuration.
- status str
The status of the resource. Valid values:
RUNNING
,STOPPED
.- Mapping[str, Any]
A mapping of tags to assign to the resource.
- termination_
grace_ intperiod_ seconds Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
- timezone str
Time zone, the default value is Asia/Shanghai.
- tomcat_
config str Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values:
contextInputType
,contextPath
,httpPort
,maxThreads
,uriEncoding
,useBodyEncoding
,useDefaultConfig
.- update_
strategy str The update strategy.
- version_
id str Application version id.
- vpc_
id str The vpc id.
- vswitch_
id str The vswitch id.
- war_
start_ stroptions 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.
- app
Name String 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 String Application package type. Support FatJar, War and Image. Valid values:
FatJar
,Image
,War
.- replicas Number
Initial number of instances.
- acr
Assume StringRole Arn 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 StringId The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.
- app
Description String Application description information. No more than 1024 characters.
- auto
Config Boolean The auto config. Valid values:
false
,true
.- auto
Enable BooleanApplication Scaling Rule The auto enable application scaling rule. Valid values:
false
,true
.- batch
Wait NumberTime The batch wait time.
- change
Order StringDesc 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.
- command
Args String Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
- config
Map StringMount Desc ConfigMap mount description.
- cpu Number
The CPU required for each instance, in millicores, cannot be 0. Valid values:
1000
,16000
,2000
,32000
,4000
,500
,8000
.- custom
Host StringAlias Custom host mapping in the container. For example: [{
hostName
:samplehost
,ip
:127.0.0.1
}].- deploy Boolean
The deploy. Valid values:
false
,true
.- edas
Container StringVersion The operating environment used by the Pandora application.
- enable
Ahas String The enable ahas.
- enable
Grey BooleanTag Route The enable grey tag route.
- envs String
Container environment variable parameters. For example,
[{"name":"envtmp","value":"0"}]
. The value description is as follows:- image
Url String Mirror address. Only Image type applications can configure the mirror address.
- jar
Start StringArgs The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jar
Start StringOptions The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jdk String
The JDK version that the deployment package depends on. Image type applications are not supported.
- liveness String
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
- memory Number
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values:
1024
,131072
,16384
,2048
,32768
,4096
,65536
,8192
.- micro
Registration String Select the Nacos registry. Valid values:
0
,1
,2
.- min
Ready NumberInstance Ratio Minimum Survival Instance Percentage. NOTE: When
min_ready_instances
andmin_ready_instance_ratio
are passed at the same time, and the value ofmin_ready_instance_ratio
is not -1, themin_ready_instance_ratio
parameter shall prevail. Assuming thatmin_ready_instances
is 5 andmin_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 NumberInstances The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
- mount
Desc String Mount description.
- mount
Host String Mount point of NAS in application VPC.
- namespace
Id 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.
- nas
Id String ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
- oss
Ak StringId OSS AccessKey ID.
- oss
Ak StringSecret OSS AccessKey Secret.
- oss
Mount StringDescs OSS mount description information.
- package
Url String Deployment package address. Only FatJar or War type applications can configure the deployment package address.
- package
Version String The version number of the deployment package. Required when the Package Type is War and FatJar.
- php
Arms StringConfig Location 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 String PHP configuration file content.
- php
Config StringLocation PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
- post
Start String Execute the script after startup, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- pre
Stop String Execute the script before stopping, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- readiness String
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {
exec
:{command
:[sh
,"-c","cat /home/admin/start.sh"]},initialDelaySeconds
:30,periodSeconds
:30,"timeoutSeconds ":2}. Valid values:command
,initialDelaySeconds
,periodSeconds
,timeoutSeconds
.- security
Group StringId Security group ID.
- sls
Configs String SLS configuration.
- status String
The status of the resource. Valid values:
RUNNING
,STOPPED
.- Map<Any>
A mapping of tags to assign to the resource.
- termination
Grace NumberPeriod Seconds Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
- timezone String
Time zone, the default value is Asia/Shanghai.
- tomcat
Config 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
.- update
Strategy String The update strategy.
- version
Id String Application version id.
- vpc
Id String The vpc id.
- vswitch
Id String The vswitch id.
- war
Start StringOptions WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
- web
Container String The version of tomcat that the deployment package depends on. Image type applications are not supported.
Outputs
All input properties are implicitly available as output properties. Additionally, the Application resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing Application Resource
Get an existing Application resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ApplicationState, opts?: CustomResourceOptions): Application
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acr_assume_role_arn: Optional[str] = None,
acr_instance_id: Optional[str] = None,
app_description: Optional[str] = None,
app_name: Optional[str] = None,
auto_config: Optional[bool] = None,
auto_enable_application_scaling_rule: Optional[bool] = None,
batch_wait_time: Optional[int] = None,
change_order_desc: Optional[str] = None,
command: Optional[str] = None,
command_args: Optional[str] = None,
config_map_mount_desc: Optional[str] = None,
cpu: Optional[int] = None,
custom_host_alias: Optional[str] = None,
deploy: Optional[bool] = None,
edas_container_version: Optional[str] = None,
enable_ahas: Optional[str] = None,
enable_grey_tag_route: Optional[bool] = None,
envs: Optional[str] = None,
image_url: Optional[str] = None,
jar_start_args: Optional[str] = None,
jar_start_options: Optional[str] = None,
jdk: Optional[str] = None,
liveness: Optional[str] = None,
memory: Optional[int] = None,
micro_registration: Optional[str] = None,
min_ready_instance_ratio: Optional[int] = None,
min_ready_instances: Optional[int] = None,
mount_desc: Optional[str] = None,
mount_host: Optional[str] = None,
namespace_id: Optional[str] = None,
nas_id: Optional[str] = None,
oss_ak_id: Optional[str] = None,
oss_ak_secret: Optional[str] = None,
oss_mount_descs: Optional[str] = None,
package_type: Optional[str] = None,
package_url: Optional[str] = None,
package_version: Optional[str] = None,
php_arms_config_location: Optional[str] = None,
php_config: Optional[str] = None,
php_config_location: Optional[str] = None,
post_start: Optional[str] = None,
pre_stop: Optional[str] = None,
readiness: Optional[str] = None,
replicas: Optional[int] = None,
security_group_id: Optional[str] = None,
sls_configs: Optional[str] = None,
status: Optional[str] = None,
tags: Optional[Mapping[str, Any]] = None,
termination_grace_period_seconds: Optional[int] = None,
timezone: Optional[str] = None,
tomcat_config: Optional[str] = None,
update_strategy: Optional[str] = None,
version_id: Optional[str] = None,
vpc_id: Optional[str] = None,
vswitch_id: Optional[str] = None,
war_start_options: Optional[str] = None,
web_container: Optional[str] = None) -> Application
func GetApplication(ctx *Context, name string, id IDInput, state *ApplicationState, opts ...ResourceOption) (*Application, error)
public static Application Get(string name, Input<string> id, ApplicationState? state, CustomResourceOptions? opts = null)
public static Application get(String name, Output<String> id, ApplicationState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Acr
Assume stringRole Arn 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 stringId The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.
- App
Description string Application description information. No more than 1024 characters.
- App
Name string Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
- Auto
Config bool The auto config. Valid values:
false
,true
.- Auto
Enable boolApplication Scaling Rule The auto enable application scaling rule. Valid values:
false
,true
.- Batch
Wait intTime The batch wait time.
- Change
Order stringDesc 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.
- Command
Args string Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
- Config
Map stringMount Desc ConfigMap mount description.
- Cpu int
The CPU required for each instance, in millicores, cannot be 0. Valid values:
1000
,16000
,2000
,32000
,4000
,500
,8000
.- Custom
Host stringAlias Custom host mapping in the container. For example: [{
hostName
:samplehost
,ip
:127.0.0.1
}].- Deploy bool
The deploy. Valid values:
false
,true
.- Edas
Container stringVersion The operating environment used by the Pandora application.
- Enable
Ahas string The enable ahas.
- Enable
Grey boolTag Route The enable grey tag route.
- Envs string
Container environment variable parameters. For example,
[{"name":"envtmp","value":"0"}]
. The value description is as follows:- Image
Url string Mirror address. Only Image type applications can configure the mirror address.
- Jar
Start stringArgs The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- Jar
Start stringOptions The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- Jdk string
The JDK version that the deployment package depends on. Image type applications are not supported.
- Liveness string
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
- Memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values:
1024
,131072
,16384
,2048
,32768
,4096
,65536
,8192
.- Micro
Registration string Select the Nacos registry. Valid values:
0
,1
,2
.- Min
Ready intInstance Ratio Minimum Survival Instance Percentage. NOTE: When
min_ready_instances
andmin_ready_instance_ratio
are passed at the same time, and the value ofmin_ready_instance_ratio
is not -1, themin_ready_instance_ratio
parameter shall prevail. Assuming thatmin_ready_instances
is 5 andmin_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 intInstances The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
- Mount
Desc string Mount description.
- Mount
Host string Mount point of NAS in application VPC.
- Namespace
Id 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.
- Nas
Id string ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
- Oss
Ak stringId OSS AccessKey ID.
- Oss
Ak stringSecret OSS AccessKey Secret.
- Oss
Mount stringDescs OSS mount description information.
- Package
Type string Application package type. Support FatJar, War and Image. Valid values:
FatJar
,Image
,War
.- Package
Url string Deployment package address. Only FatJar or War type applications can configure the deployment package address.
- Package
Version string The version number of the deployment package. Required when the Package Type is War and FatJar.
- Php
Arms stringConfig Location 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 string PHP configuration file content.
- Php
Config stringLocation PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
- Post
Start string Execute the script after startup, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- Pre
Stop string Execute the script before stopping, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- Readiness string
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {
exec
:{command
:[sh
,"-c","cat /home/admin/start.sh"]},initialDelaySeconds
:30,periodSeconds
:30,"timeoutSeconds ":2}. Valid values:command
,initialDelaySeconds
,periodSeconds
,timeoutSeconds
.- Replicas int
Initial number of instances.
- Security
Group stringId Security group ID.
- Sls
Configs string SLS configuration.
- Status string
The status of the resource. Valid values:
RUNNING
,STOPPED
.- Dictionary<string, object>
A mapping of tags to assign to the resource.
- Termination
Grace intPeriod Seconds Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
- Timezone string
Time zone, the default value is Asia/Shanghai.
- Tomcat
Config 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
.- Update
Strategy string The update strategy.
- Version
Id string Application version id.
- Vpc
Id string The vpc id.
- Vswitch
Id string The vswitch id.
- War
Start stringOptions WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
- Web
Container string The version of tomcat that the deployment package depends on. Image type applications are not supported.
- Acr
Assume stringRole Arn 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 stringId The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.
- App
Description string Application description information. No more than 1024 characters.
- App
Name string Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
- Auto
Config bool The auto config. Valid values:
false
,true
.- Auto
Enable boolApplication Scaling Rule The auto enable application scaling rule. Valid values:
false
,true
.- Batch
Wait intTime The batch wait time.
- Change
Order stringDesc 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.
- Command
Args string Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
- Config
Map stringMount Desc ConfigMap mount description.
- Cpu int
The CPU required for each instance, in millicores, cannot be 0. Valid values:
1000
,16000
,2000
,32000
,4000
,500
,8000
.- Custom
Host stringAlias Custom host mapping in the container. For example: [{
hostName
:samplehost
,ip
:127.0.0.1
}].- Deploy bool
The deploy. Valid values:
false
,true
.- Edas
Container stringVersion The operating environment used by the Pandora application.
- Enable
Ahas string The enable ahas.
- Enable
Grey boolTag Route The enable grey tag route.
- Envs string
Container environment variable parameters. For example,
[{"name":"envtmp","value":"0"}]
. The value description is as follows:- Image
Url string Mirror address. Only Image type applications can configure the mirror address.
- Jar
Start stringArgs The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- Jar
Start stringOptions The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- Jdk string
The JDK version that the deployment package depends on. Image type applications are not supported.
- Liveness string
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
- Memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values:
1024
,131072
,16384
,2048
,32768
,4096
,65536
,8192
.- Micro
Registration string Select the Nacos registry. Valid values:
0
,1
,2
.- Min
Ready intInstance Ratio Minimum Survival Instance Percentage. NOTE: When
min_ready_instances
andmin_ready_instance_ratio
are passed at the same time, and the value ofmin_ready_instance_ratio
is not -1, themin_ready_instance_ratio
parameter shall prevail. Assuming thatmin_ready_instances
is 5 andmin_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 intInstances The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
- Mount
Desc string Mount description.
- Mount
Host string Mount point of NAS in application VPC.
- Namespace
Id 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.
- Nas
Id string ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
- Oss
Ak stringId OSS AccessKey ID.
- Oss
Ak stringSecret OSS AccessKey Secret.
- Oss
Mount stringDescs OSS mount description information.
- Package
Type string Application package type. Support FatJar, War and Image. Valid values:
FatJar
,Image
,War
.- Package
Url string Deployment package address. Only FatJar or War type applications can configure the deployment package address.
- Package
Version string The version number of the deployment package. Required when the Package Type is War and FatJar.
- Php
Arms stringConfig Location 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 string PHP configuration file content.
- Php
Config stringLocation PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
- Post
Start string Execute the script after startup, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- Pre
Stop string Execute the script before stopping, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- Readiness string
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {
exec
:{command
:[sh
,"-c","cat /home/admin/start.sh"]},initialDelaySeconds
:30,periodSeconds
:30,"timeoutSeconds ":2}. Valid values:command
,initialDelaySeconds
,periodSeconds
,timeoutSeconds
.- Replicas int
Initial number of instances.
- Security
Group stringId Security group ID.
- Sls
Configs string SLS configuration.
- Status string
The status of the resource. Valid values:
RUNNING
,STOPPED
.- map[string]interface{}
A mapping of tags to assign to the resource.
- Termination
Grace intPeriod Seconds Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
- Timezone string
Time zone, the default value is Asia/Shanghai.
- Tomcat
Config 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
.- Update
Strategy string The update strategy.
- Version
Id string Application version id.
- Vpc
Id string The vpc id.
- Vswitch
Id string The vswitch id.
- War
Start stringOptions WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
- Web
Container string The version of tomcat that the deployment package depends on. Image type applications are not supported.
- acr
Assume StringRole Arn 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 StringId The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.
- app
Description String Application description information. No more than 1024 characters.
- app
Name String 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 Boolean The auto config. Valid values:
false
,true
.- auto
Enable BooleanApplication Scaling Rule The auto enable application scaling rule. Valid values:
false
,true
.- batch
Wait IntegerTime The batch wait time.
- change
Order StringDesc 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.
- command
Args String Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
- config
Map StringMount Desc ConfigMap mount description.
- cpu Integer
The CPU required for each instance, in millicores, cannot be 0. Valid values:
1000
,16000
,2000
,32000
,4000
,500
,8000
.- custom
Host StringAlias Custom host mapping in the container. For example: [{
hostName
:samplehost
,ip
:127.0.0.1
}].- deploy Boolean
The deploy. Valid values:
false
,true
.- edas
Container StringVersion The operating environment used by the Pandora application.
- enable
Ahas String The enable ahas.
- enable
Grey BooleanTag Route The enable grey tag route.
- envs String
Container environment variable parameters. For example,
[{"name":"envtmp","value":"0"}]
. The value description is as follows:- image
Url String Mirror address. Only Image type applications can configure the mirror address.
- jar
Start StringArgs The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jar
Start StringOptions The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jdk String
The JDK version that the deployment package depends on. Image type applications are not supported.
- liveness String
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
- memory Integer
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values:
1024
,131072
,16384
,2048
,32768
,4096
,65536
,8192
.- micro
Registration String Select the Nacos registry. Valid values:
0
,1
,2
.- min
Ready IntegerInstance Ratio Minimum Survival Instance Percentage. NOTE: When
min_ready_instances
andmin_ready_instance_ratio
are passed at the same time, and the value ofmin_ready_instance_ratio
is not -1, themin_ready_instance_ratio
parameter shall prevail. Assuming thatmin_ready_instances
is 5 andmin_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 IntegerInstances The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
- mount
Desc String Mount description.
- mount
Host String Mount point of NAS in application VPC.
- namespace
Id 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.
- nas
Id String ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
- oss
Ak StringId OSS AccessKey ID.
- oss
Ak StringSecret OSS AccessKey Secret.
- oss
Mount StringDescs OSS mount description information.
- package
Type String Application package type. Support FatJar, War and Image. Valid values:
FatJar
,Image
,War
.- package
Url String Deployment package address. Only FatJar or War type applications can configure the deployment package address.
- package
Version String The version number of the deployment package. Required when the Package Type is War and FatJar.
- php
Arms StringConfig Location 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 String PHP configuration file content.
- php
Config StringLocation PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
- post
Start String Execute the script after startup, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- pre
Stop String Execute the script before stopping, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- readiness String
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {
exec
:{command
:[sh
,"-c","cat /home/admin/start.sh"]},initialDelaySeconds
:30,periodSeconds
:30,"timeoutSeconds ":2}. Valid values:command
,initialDelaySeconds
,periodSeconds
,timeoutSeconds
.- replicas Integer
Initial number of instances.
- security
Group StringId Security group ID.
- sls
Configs String SLS configuration.
- status String
The status of the resource. Valid values:
RUNNING
,STOPPED
.- Map<String,Object>
A mapping of tags to assign to the resource.
- termination
Grace IntegerPeriod Seconds Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
- timezone String
Time zone, the default value is Asia/Shanghai.
- tomcat
Config 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
.- update
Strategy String The update strategy.
- version
Id String Application version id.
- vpc
Id String The vpc id.
- vswitch
Id String The vswitch id.
- war
Start StringOptions WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
- web
Container String The version of tomcat that the deployment package depends on. Image type applications are not supported.
- acr
Assume stringRole Arn 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 stringId The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.
- app
Description string Application description information. No more than 1024 characters.
- app
Name string 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 boolean The auto config. Valid values:
false
,true
.- auto
Enable booleanApplication Scaling Rule The auto enable application scaling rule. Valid values:
false
,true
.- batch
Wait numberTime The batch wait time.
- change
Order stringDesc 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.
- command
Args string Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
- config
Map stringMount Desc ConfigMap mount description.
- cpu number
The CPU required for each instance, in millicores, cannot be 0. Valid values:
1000
,16000
,2000
,32000
,4000
,500
,8000
.- custom
Host stringAlias Custom host mapping in the container. For example: [{
hostName
:samplehost
,ip
:127.0.0.1
}].- deploy boolean
The deploy. Valid values:
false
,true
.- edas
Container stringVersion The operating environment used by the Pandora application.
- enable
Ahas string The enable ahas.
- enable
Grey booleanTag Route The enable grey tag route.
- envs string
Container environment variable parameters. For example,
[{"name":"envtmp","value":"0"}]
. The value description is as follows:- image
Url string Mirror address. Only Image type applications can configure the mirror address.
- jar
Start stringArgs The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jar
Start stringOptions The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jdk string
The JDK version that the deployment package depends on. Image type applications are not supported.
- liveness string
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
- memory number
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values:
1024
,131072
,16384
,2048
,32768
,4096
,65536
,8192
.- micro
Registration string Select the Nacos registry. Valid values:
0
,1
,2
.- min
Ready numberInstance Ratio Minimum Survival Instance Percentage. NOTE: When
min_ready_instances
andmin_ready_instance_ratio
are passed at the same time, and the value ofmin_ready_instance_ratio
is not -1, themin_ready_instance_ratio
parameter shall prevail. Assuming thatmin_ready_instances
is 5 andmin_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 numberInstances The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
- mount
Desc string Mount description.
- mount
Host string Mount point of NAS in application VPC.
- namespace
Id 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.
- nas
Id string ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
- oss
Ak stringId OSS AccessKey ID.
- oss
Ak stringSecret OSS AccessKey Secret.
- oss
Mount stringDescs OSS mount description information.
- package
Type string Application package type. Support FatJar, War and Image. Valid values:
FatJar
,Image
,War
.- package
Url string Deployment package address. Only FatJar or War type applications can configure the deployment package address.
- package
Version string The version number of the deployment package. Required when the Package Type is War and FatJar.
- php
Arms stringConfig Location 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 string PHP configuration file content.
- php
Config stringLocation PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
- post
Start string Execute the script after startup, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- pre
Stop string Execute the script before stopping, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- readiness string
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {
exec
:{command
:[sh
,"-c","cat /home/admin/start.sh"]},initialDelaySeconds
:30,periodSeconds
:30,"timeoutSeconds ":2}. Valid values:command
,initialDelaySeconds
,periodSeconds
,timeoutSeconds
.- replicas number
Initial number of instances.
- security
Group stringId Security group ID.
- sls
Configs string SLS configuration.
- status string
The status of the resource. Valid values:
RUNNING
,STOPPED
.- {[key: string]: any}
A mapping of tags to assign to the resource.
- termination
Grace numberPeriod Seconds Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
- timezone string
Time zone, the default value is Asia/Shanghai.
- tomcat
Config 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
.- update
Strategy string The update strategy.
- version
Id string Application version id.
- vpc
Id string The vpc id.
- vswitch
Id string The vswitch id.
- war
Start stringOptions WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
- web
Container string The version of tomcat that the deployment package depends on. Image type applications are not supported.
- acr_
assume_ strrole_ arn 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_ strid The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.
- app_
description str Application description information. No more than 1024 characters.
- app_
name str Application Name. Combinations of numbers, letters, and dashes (-) are allowed. It must start with a letter and the maximum length is 36 characters.
- auto_
config bool The auto config. Valid values:
false
,true
.- auto_
enable_ boolapplication_ scaling_ rule The auto enable application scaling rule. Valid values:
false
,true
.- batch_
wait_ inttime The batch wait time.
- change_
order_ strdesc The change order desc.
- command str
Mirror start command. The command must be an executable object in the container. For example: sleep. Setting this command will cause the original startup command of the mirror to become invalid.
- command_
args str Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
- config_
map_ strmount_ desc ConfigMap mount description.
- cpu int
The CPU required for each instance, in millicores, cannot be 0. Valid values:
1000
,16000
,2000
,32000
,4000
,500
,8000
.- custom_
host_ stralias Custom host mapping in the container. For example: [{
hostName
:samplehost
,ip
:127.0.0.1
}].- deploy bool
The deploy. Valid values:
false
,true
.- edas_
container_ strversion The operating environment used by the Pandora application.
- enable_
ahas str The enable ahas.
- enable_
grey_ booltag_ route The enable grey tag route.
- envs str
Container environment variable parameters. For example,
[{"name":"envtmp","value":"0"}]
. The value description is as follows:- image_
url str Mirror address. Only Image type applications can configure the mirror address.
- jar_
start_ strargs The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jar_
start_ stroptions The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jdk str
The JDK version that the deployment package depends on. Image type applications are not supported.
- liveness str
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
- memory int
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values:
1024
,131072
,16384
,2048
,32768
,4096
,65536
,8192
.- micro_
registration str Select the Nacos registry. Valid values:
0
,1
,2
.- min_
ready_ intinstance_ ratio Minimum Survival Instance Percentage. NOTE: When
min_ready_instances
andmin_ready_instance_ratio
are passed at the same time, and the value ofmin_ready_instance_ratio
is not -1, themin_ready_instance_ratio
parameter shall prevail. Assuming thatmin_ready_instances
is 5 andmin_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_ intinstances The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
- mount_
desc str Mount description.
- mount_
host str Mount point of NAS in application VPC.
- namespace_
id str SAE namespace ID. Only namespaces whose names are lowercase letters and dashes (-) are supported, and must start with a letter. The namespace can be obtained by calling the DescribeNamespaceList interface.
- nas_
id str ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
- oss_
ak_ strid OSS AccessKey ID.
- oss_
ak_ strsecret OSS AccessKey Secret.
- oss_
mount_ strdescs OSS mount description information.
- package_
type str Application package type. Support FatJar, War and Image. Valid values:
FatJar
,Image
,War
.- package_
url str Deployment package address. Only FatJar or War type applications can configure the deployment package address.
- package_
version str The version number of the deployment package. Required when the Package Type is War and FatJar.
- php_
arms_ strconfig_ location 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_ strlocation PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
- post_
start str Execute the script after startup, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- pre_
stop str Execute the script before stopping, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- readiness str
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {
exec
:{command
:[sh
,"-c","cat /home/admin/start.sh"]},initialDelaySeconds
:30,periodSeconds
:30,"timeoutSeconds ":2}. Valid values:command
,initialDelaySeconds
,periodSeconds
,timeoutSeconds
.- replicas int
Initial number of instances.
- security_
group_ strid Security group ID.
- sls_
configs str SLS configuration.
- status str
The status of the resource. Valid values:
RUNNING
,STOPPED
.- Mapping[str, Any]
A mapping of tags to assign to the resource.
- termination_
grace_ intperiod_ seconds Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
- timezone str
Time zone, the default value is Asia/Shanghai.
- tomcat_
config str Tomcat file configuration, set to "{}" means to delete the configuration: useDefaultConfig: Whether to use a custom configuration, if it is true, it means that the custom configuration is not used; if it is false, it means that the custom configuration is used. If you do not use custom configuration, the following parameter configuration will not take effect. contextInputType: Select the access path of the application. war: No need to fill in the custom path, the access path of the application is the WAR package name. root: No need to fill in the custom path, the access path of the application is /. custom: You need to fill in the custom path in the custom path below. contextPath: custom path, this parameter only needs to be configured when the contextInputType type is custom. httpPort: The port range is 1024~65535. Ports less than 1024 need Root permission to operate. Because the container is configured with Admin permissions, please fill in a port greater than 1024. If not configured, the default is 8080. maxThreads: Configure the number of connections in the connection pool, the default size is 400. uriEncoding: Tomcat encoding format, including UTF-8, ISO-8859-1, GBK and GB2312. If not set, the default is ISO-8859-1. useBodyEncoding: Whether to use BodyEncoding for URL. Valid values:
contextInputType
,contextPath
,httpPort
,maxThreads
,uriEncoding
,useBodyEncoding
,useDefaultConfig
.- update_
strategy str The update strategy.
- version_
id str Application version id.
- vpc_
id str The vpc id.
- vswitch_
id str The vswitch id.
- war_
start_ stroptions 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.
- acr
Assume StringRole Arn 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 StringId The ID of the ACR EE instance. Only necessary if the image_url is pointing to an ACR EE instance.
- app
Description String Application description information. No more than 1024 characters.
- app
Name String 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 Boolean The auto config. Valid values:
false
,true
.- auto
Enable BooleanApplication Scaling Rule The auto enable application scaling rule. Valid values:
false
,true
.- batch
Wait NumberTime The batch wait time.
- change
Order StringDesc 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.
- command
Args String Mirror startup command parameters. The parameters required for the above start command. For example: 1d.
- config
Map StringMount Desc ConfigMap mount description.
- cpu Number
The CPU required for each instance, in millicores, cannot be 0. Valid values:
1000
,16000
,2000
,32000
,4000
,500
,8000
.- custom
Host StringAlias Custom host mapping in the container. For example: [{
hostName
:samplehost
,ip
:127.0.0.1
}].- deploy Boolean
The deploy. Valid values:
false
,true
.- edas
Container StringVersion The operating environment used by the Pandora application.
- enable
Ahas String The enable ahas.
- enable
Grey BooleanTag Route The enable grey tag route.
- envs String
Container environment variable parameters. For example,
[{"name":"envtmp","value":"0"}]
. The value description is as follows:- image
Url String Mirror address. Only Image type applications can configure the mirror address.
- jar
Start StringArgs The JAR package starts application parameters. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jar
Start StringOptions The JAR package starts the application option. Application default startup command: $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
- jdk String
The JDK version that the deployment package depends on. Image type applications are not supported.
- liveness String
Container health check. Containers that fail the health check will be shut down and restored. Currently, only the method of issuing commands in the container is supported.
- memory Number
The memory required for each instance, in MB, cannot be 0. One-to-one correspondence with CPU. Valid values:
1024
,131072
,16384
,2048
,32768
,4096
,65536
,8192
.- micro
Registration String Select the Nacos registry. Valid values:
0
,1
,2
.- min
Ready NumberInstance Ratio Minimum Survival Instance Percentage. NOTE: When
min_ready_instances
andmin_ready_instance_ratio
are passed at the same time, and the value ofmin_ready_instance_ratio
is not -1, themin_ready_instance_ratio
parameter shall prevail. Assuming thatmin_ready_instances
is 5 andmin_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 NumberInstances The Minimum Available Instance. On the Change Had Promised during the Available Number of Instances to Be.
- mount
Desc String Mount description.
- mount
Host String Mount point of NAS in application VPC.
- namespace
Id 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.
- nas
Id String ID of the mounted NAS, Must be in the same region as the cluster. It must have an available mount point creation quota, or its mount point must be on a switch in the VPC. If it is not filled in and the mountDescs field is present, a NAS will be automatically purchased and mounted on the switch in the VPC by default.
- oss
Ak StringId OSS AccessKey ID.
- oss
Ak StringSecret OSS AccessKey Secret.
- oss
Mount StringDescs OSS mount description information.
- package
Type String Application package type. Support FatJar, War and Image. Valid values:
FatJar
,Image
,War
.- package
Url String Deployment package address. Only FatJar or War type applications can configure the deployment package address.
- package
Version String The version number of the deployment package. Required when the Package Type is War and FatJar.
- php
Arms StringConfig Location 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 String PHP configuration file content.
- php
Config StringLocation PHP application startup configuration mount path, you need to ensure that the PHP server will start using this configuration file.
- post
Start String Execute the script after startup, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- pre
Stop String Execute the script before stopping, the format is like: {
exec
:{command
:[cat
,"/etc/group"]}}.- readiness String
Application startup status checks, containers that fail multiple health checks will be shut down and restarted. Containers that do not pass the health check will not receive SLB traffic. For example: {
exec
:{command
:[sh
,"-c","cat /home/admin/start.sh"]},initialDelaySeconds
:30,periodSeconds
:30,"timeoutSeconds ":2}. Valid values:command
,initialDelaySeconds
,periodSeconds
,timeoutSeconds
.- replicas Number
Initial number of instances.
- security
Group StringId Security group ID.
- sls
Configs String SLS configuration.
- status String
The status of the resource. Valid values:
RUNNING
,STOPPED
.- Map<Any>
A mapping of tags to assign to the resource.
- termination
Grace NumberPeriod Seconds Graceful offline timeout, the default is 30, the unit is seconds. The value range is 1~60. Valid values: [1,60].
- timezone String
Time zone, the default value is Asia/Shanghai.
- tomcat
Config 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
.- update
Strategy String The update strategy.
- version
Id String Application version id.
- vpc
Id String The vpc id.
- vswitch
Id String The vswitch id.
- war
Start StringOptions WAR package launch application option. Application default startup command: java $JAVA_OPTS $CATALINA_OPTS [-Options] org.apache.catalina.startup.Bootstrap "$@" start.
- web
Container String The version of tomcat that the deployment package depends on. Image type applications are not supported.
Import
Serverless App Engine (SAE) Application can be imported using the id, e.g.
$ pulumi import alicloud:sae/application:Application example <id>
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.