public static final class CreateApplicationRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateApplicationRequest.Builder |
acrAssumeRoleArn(String acrAssumeRoleArn)
The Alibaba Cloud Resource Name (ARN) required for a RAM role to obtain images across accounts.
|
CreateApplicationRequest.Builder |
acrInstanceId(String acrInstanceId)
The ID of Container Registry Enterprise Edition instance N.
|
CreateApplicationRequest.Builder |
agentVersion(String agentVersion)
AgentVersion.
|
CreateApplicationRequest.Builder |
appDescription(String appDescription)
The description of the template.
|
CreateApplicationRequest.Builder |
appName(String appName)
The name of the application.
|
CreateApplicationRequest.Builder |
appSource(String appSource)
Select micro_service, which is the application.
|
CreateApplicationRequest.Builder |
associateEip(Boolean associateEip)
Specifies whether to associate an EIP with the node pool.
|
CreateApplicationRequest.Builder |
autoConfig(Boolean autoConfig)
Specifies whether to automatically configure the network environment.
|
CreateApplicationRequest.Builder |
baseAppId(String baseAppId)
The ID of the basic application.
|
CreateApplicationRequest |
build() |
CreateApplicationRequest.Builder |
command(String command)
The command that is used to start the image.
|
CreateApplicationRequest.Builder |
commandArgs(String commandArgs)
The parameters of the image startup command.
|
CreateApplicationRequest.Builder |
configMapMountDesc(String configMapMountDesc)
The description of the ConfigMap instance mounted to the application.
|
CreateApplicationRequest.Builder |
cpu(Integer cpu)
The CPU specifications that are required for each instance.
|
CreateApplicationRequest.Builder |
customHostAlias(String customHostAlias)
The custom mappings between hostnames and IP addresses in the container.
|
CreateApplicationRequest.Builder |
customImageNetworkType(String customImageNetworkType)
Custom image type.
|
CreateApplicationRequest.Builder |
deploy(Boolean deploy)
Whether to deploy now.
|
CreateApplicationRequest.Builder |
diskSize(Integer diskSize)
The disk size.
|
CreateApplicationRequest.Builder |
dotnet(String dotnet)
.
|
CreateApplicationRequest.Builder |
edasContainerVersion(String edasContainerVersion)
The version of the container in HSF.
|
CreateApplicationRequest.Builder |
emptyDirDesc(String emptyDirDesc)
EmptyDirDesc.
|
CreateApplicationRequest.Builder |
enableCpuBurst(Boolean enableCpuBurst)
Enable CPU Burst.
|
CreateApplicationRequest.Builder |
enableEbpf(String enableEbpf)
Enable application monitoring for non-Java applications based on eBPF technology.
|
CreateApplicationRequest.Builder |
enableNamespaceAgentVersion(Boolean enableNamespaceAgentVersion)
EnableNamespaceAgentVersion.
|
CreateApplicationRequest.Builder |
enableNamespaceSlsConfig(Boolean enableNamespaceSlsConfig)
EnableNamespaceSlsConfig.
|
CreateApplicationRequest.Builder |
enableNewArms(Boolean enableNewArms)
Indicates whether to enable the new ARMS feature:
true: enables this parameter.
|
CreateApplicationRequest.Builder |
enablePrometheus(Boolean enablePrometheus)
EnablePrometheus.
|
CreateApplicationRequest.Builder |
enableSidecarResourceIsolated(Boolean enableSidecarResourceIsolated)
Enable Sidecar resource isolation.
|
CreateApplicationRequest.Builder |
envs(String envs)
The environment variables.
|
CreateApplicationRequest.Builder |
gpuConfig(String gpuConfig)
GpuConfig.
|
CreateApplicationRequest.Builder |
headlessPvtzDiscoverySvc(String headlessPvtzDiscoverySvc)
HeadlessPvtzDiscoverySvc.
|
CreateApplicationRequest.Builder |
html(String html)
Html.
|
CreateApplicationRequest.Builder |
imagePullSecrets(String imagePullSecrets)
The ID of the corresponding Secret.
|
CreateApplicationRequest.Builder |
imageUrl(String imageUrl)
The URL of the image.
|
CreateApplicationRequest.Builder |
initContainersConfig(List<InitContainerConfig> initContainersConfig)
Initialize container configuration.
|
CreateApplicationRequest.Builder |
isStateful(Boolean isStateful)
IsStateful.
|
CreateApplicationRequest.Builder |
jarStartArgs(String jarStartArgs)
The arguments in the JAR package.
|
CreateApplicationRequest.Builder |
jarStartOptions(String jarStartOptions)
The option settings in the JAR package.
|
CreateApplicationRequest.Builder |
jdk(String jdk)
The version of the Java development kit (JDK) on which the deployment package of the application depends.
|
CreateApplicationRequest.Builder |
kafkaConfigs(String kafkaConfigs)
The logging configurations of Message Queue for Apache Kafka.
|
CreateApplicationRequest.Builder |
labels(Map<String,String> labels)
Labels.
|
CreateApplicationRequest.Builder |
liveness(String liveness)
Container health check.
|
CreateApplicationRequest.Builder |
lokiConfigs(String lokiConfigs)
LokiConfigs.
|
CreateApplicationRequest.Builder |
memory(Integer memory)
The memory size that is required by each instance.
|
CreateApplicationRequest.Builder |
microRegistration(String microRegistration)
The Nacos registry.
|
CreateApplicationRequest.Builder |
microRegistrationConfig(String microRegistrationConfig)
The Registry configurations.
|
CreateApplicationRequest.Builder |
microserviceEngineConfig(String microserviceEngineConfig)
Configure microservices governance
Whether to enable microservices governance (enable):
true: Enable
false: Disable
Configure lossless online/offline deployment (mseLosslessRule):
delayTime: Delay duration (unit: seconds)
enable: Whether to enable lossless deployment
true: Enable
false: Disable
notice: Whether to enable notifications
true: Enable
false: Disable
warmupTime: Small-traffic warm-up duration (unit: seconds)
example:
{"enable": true,"mseLosslessRule": {"delayTime": 0,"enable": false,"notice": false,"warmupTime": 120}}
|
CreateApplicationRequest.Builder |
mountDesc(String mountDesc)
It is not recommended to configure this field; configuring NasConfigs instead.
|
CreateApplicationRequest.Builder |
mountHost(String mountHost)
It is not recommended to configure this field; configuring NasConfigs instead.
|
CreateApplicationRequest.Builder |
namespaceId(String namespaceId)
SAE namespace ID.
|
CreateApplicationRequest.Builder |
nasConfigs(String nasConfigs)
The configurations of mounting the NAS file system.
|
CreateApplicationRequest.Builder |
nasId(String nasId)
It is not recommended to configure this field; configuring NasConfigs instead.
|
CreateApplicationRequest.Builder |
newSaeVersion(String newSaeVersion)
SAE edition.
|
CreateApplicationRequest.Builder |
oidcRoleName(String oidcRoleName)
The name of the RAM role used to authenticate the user identity.
|
CreateApplicationRequest.Builder |
ossAkId(String ossAkId)
The Accesskey ID that the OSS reads and writes from.
|
CreateApplicationRequest.Builder |
ossAkSecret(String ossAkSecret)
The AccessKey Secret that the OSS reads and writes from.
|
CreateApplicationRequest.Builder |
ossMountDescs(String ossMountDescs)
Information of the Object Storage Service (OSS) bucket mounted to the application.
|
CreateApplicationRequest.Builder |
packageType(String packageType)
The type of the deployment package.
|
CreateApplicationRequest.Builder |
packageUrl(String packageUrl)
The address of the deployment package.
|
CreateApplicationRequest.Builder |
packageVersion(String packageVersion)
The version of the deployment package.
|
CreateApplicationRequest.Builder |
php(String php)
The dependent PHP version of PHP package.
|
CreateApplicationRequest.Builder |
phpArmsConfigLocation(String phpArmsConfigLocation)
The path on which the PHP configuration file for application monitoring is mounted.
|
CreateApplicationRequest.Builder |
phpConfig(String phpConfig)
The details of the PHP configuration file.
|
CreateApplicationRequest.Builder |
phpConfigLocation(String phpConfigLocation)
The path on which the PHP configuration file for application startup is mounted.
|
CreateApplicationRequest.Builder |
postStart(String postStart)
Control whether to run a script after the container is initialized.
|
CreateApplicationRequest.Builder |
preStop(String preStop)
To controle whether to run a script before the container stops.
|
CreateApplicationRequest.Builder |
programmingLanguage(String programmingLanguage)
The programming language for the application’s technology stack.
|
CreateApplicationRequest.Builder |
pvtzDiscoverySvc(String pvtzDiscoverySvc)
The configurations of Kubernetes Service-based service registration and discovery.
|
CreateApplicationRequest.Builder |
python(String python)
The Python environment.
|
CreateApplicationRequest.Builder |
pythonModules(String pythonModules)
The configurations for installing custom module dependencies.
|
CreateApplicationRequest.Builder |
readiness(String readiness)
Check the launch status of the container.
|
CreateApplicationRequest.Builder |
replicas(Integer replicas)
The number of instances when initialized.
|
CreateApplicationRequest.Builder |
resourceType(String resourceType)
The resource type.
|
CreateApplicationRequest.Builder |
saeVersion(String saeVersion)
The SAE version.
|
CreateApplicationRequest.Builder |
secretMountDesc(String secretMountDesc)
Secret Mount Description
Use the secret dictionaries created in the Namespace Secret Dictionary page to inject information into containers.
|
CreateApplicationRequest.Builder |
securityGroupId(String securityGroupId)
Security group ID.
|
CreateApplicationRequest.Builder |
serviceTags(String serviceTags)
The canary tag configured for the application.
|
CreateApplicationRequest.Builder |
sidecarContainersConfig(List<SidecarContainerConfig> sidecarContainersConfig)
The configuration of the container.
|
CreateApplicationRequest.Builder |
slsConfigs(String slsConfigs)
The logging configurations of Log Service.
|
CreateApplicationRequest.Builder |
slsLogEnvTags(String slsLogEnvTags)
SlsLogEnvTags.
|
CreateApplicationRequest.Builder |
startupProbe(String startupProbe)
Enable application startup probe.
|
CreateApplicationRequest.Builder |
terminationGracePeriodSeconds(Integer terminationGracePeriodSeconds)
The timeout period for a graceful shutdown.
|
CreateApplicationRequest.Builder |
timezone(String timezone)
Time zone.
|
CreateApplicationRequest.Builder |
tomcatConfig(String tomcatConfig)
The Tomcat configuration.
|
CreateApplicationRequest.Builder |
vpcId(String vpcId)
The ID of the virtual private cloud (VPC) that corresponds to the SAE namespace.
|
CreateApplicationRequest.Builder |
vSwitchId(String vSwitchId)
The vSwitch to which the elastic network interface (ENI) of the application instance is connected.
|
CreateApplicationRequest.Builder |
warStartOptions(String warStartOptions)
The startup command of the WAR package.
|
CreateApplicationRequest.Builder |
webContainer(String webContainer)
The version of the Tomcat container on which the deployment package depends.
|
public CreateApplicationRequest.Builder acrAssumeRoleArn(String acrAssumeRoleArn)
The Alibaba Cloud Resource Name (ARN) required for a RAM role to obtain images across accounts. For more information, see Grant permissions across Alibaba Cloud accounts by using a RAM role.
example:acs:ram::123456789012****:role/adminrole
public CreateApplicationRequest.Builder acrInstanceId(String acrInstanceId)
The ID of Container Registry Enterprise Edition instance N. This parameter is required when the ImageUrl parameter is set to the URL of an image in an ACR Enterprise Edition instance.
example:cri-xxxxxx
public CreateApplicationRequest.Builder agentVersion(String agentVersion)
public CreateApplicationRequest.Builder appDescription(String appDescription)
The description of the template. The description cannot exceed 1,024 characters in length.
example:This is a test description.
public CreateApplicationRequest.Builder appName(String appName)
The name of the application. The name can contain digits, letters, and hyphens (-). The name must start with a letter and cannot end with a hyphen (-). It cannot exceed 36 characters in length.
This parameter is required.
example:test
public CreateApplicationRequest.Builder appSource(String appSource)
Select micro_service, which is the application.
example:micro_service
public CreateApplicationRequest.Builder associateEip(Boolean associateEip)
Specifies whether to associate an EIP with the node pool. Take note of the following rules:
true
public CreateApplicationRequest.Builder autoConfig(Boolean autoConfig)
Specifies whether to automatically configure the network environment. Valid values:
example:If you select true, other NamespaceId will be ignored.
true
public CreateApplicationRequest.Builder baseAppId(String baseAppId)
The ID of the basic application.
example:ee99cce6-1c8e-4bfa-96c3-3e2fa9de8a41
public CreateApplicationRequest.Builder command(String command)
The command that is used to start the image. The command must be an existing executable object in the container. Sample statements:
command:
- echo
- abc
- >
- file0
In this example, the Command parameter is set to Command="echo", CommandArgs=["abc", ">", "file0"].
echo
public CreateApplicationRequest.Builder commandArgs(String commandArgs)
The parameters of the image startup command. The CommandArgs parameter specifies the parameters that are required for the Command parameter. You can specify the name in one of the following formats:
["a","b"]
In the preceding example, the CommandArgs parameter is set to CommandArgs=["abc", ">", "file0"]. The data type of ["abc", ">", "file0"] must be an array of strings in the JSON format. This parameter is optional.
["a","b"]
public CreateApplicationRequest.Builder configMapMountDesc(String configMapMountDesc)
The description of the ConfigMap instance mounted to the application. Use configurations created on the Configuration Items page to configure containers. The following table describes the parameters that are used in the preceding statements.
You can use
sae-sys-configmap-allto mount all keys.
[{"configMapId":16,"key":"test","mountPath":"/tmp"}]
public CreateApplicationRequest.Builder cpu(Integer cpu)
The CPU specifications that are required for each instance. Unit: millicores. This parameter cannot be set to 0. Valid values:
1000
public CreateApplicationRequest.Builder customHostAlias(String customHostAlias)
The custom mappings between hostnames and IP addresses in the container. Take note of the following rules:
[{"hostName":"samplehost","ip":"127.0.0.1"}]
public CreateApplicationRequest.Builder customImageNetworkType(String customImageNetworkType)
Custom image type. To it to empty string to use pre-built image.
internet: Public network image
intranet: Private network image
internet
public CreateApplicationRequest.Builder deploy(Boolean deploy)
Whether to deploy now.
true
public CreateApplicationRequest.Builder diskSize(Integer diskSize)
The disk size. Unit: GB.
example:50
public CreateApplicationRequest.Builder dotnet(String dotnet)
. NET Framework version number:
.NET 3.1
public CreateApplicationRequest.Builder edasContainerVersion(String edasContainerVersion)
The version of the container in HSF.
example:3.5.3
public CreateApplicationRequest.Builder emptyDirDesc(String emptyDirDesc)
public CreateApplicationRequest.Builder enableCpuBurst(Boolean enableCpuBurst)
Enable CPU Burst.
true
public CreateApplicationRequest.Builder enableEbpf(String enableEbpf)
Enable application monitoring for non-Java applications based on eBPF technology. The value options are as follows:
false
public CreateApplicationRequest.Builder enableNamespaceAgentVersion(Boolean enableNamespaceAgentVersion)
public CreateApplicationRequest.Builder enableNamespaceSlsConfig(Boolean enableNamespaceSlsConfig)
public CreateApplicationRequest.Builder enableNewArms(Boolean enableNewArms)
Indicates whether to enable the new ARMS feature:
false
public CreateApplicationRequest.Builder enablePrometheus(Boolean enablePrometheus)
public CreateApplicationRequest.Builder enableSidecarResourceIsolated(Boolean enableSidecarResourceIsolated)
Enable Sidecar resource isolation.
true
public CreateApplicationRequest.Builder envs(String envs)
The environment variables. You can configure custom environment variables or reference a ConfigMap. Before you can reference a ConfigMap, you must create a ConfigMap. For more information, see CreateConfigMap. Valid values:
Custom configuration
Reference a ConfigMap (valueFrom)
sae-sys-configmap-all-<ConfigMap name>. Example: sae-sys-configmap-all-test1.configMapRef.[{"name":"envtmp","value":"0"}]
public CreateApplicationRequest.Builder gpuConfig(String gpuConfig)
public CreateApplicationRequest.Builder headlessPvtzDiscoverySvc(String headlessPvtzDiscoverySvc)
public CreateApplicationRequest.Builder html(String html)
public CreateApplicationRequest.Builder imagePullSecrets(String imagePullSecrets)
The ID of the corresponding Secret.
example:10
public CreateApplicationRequest.Builder imageUrl(String imageUrl)
The URL of the image. This parameter is required if you set the PackageType parameter to Image.
registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1
public CreateApplicationRequest.Builder initContainersConfig(List<InitContainerConfig> initContainersConfig)
Initialize container configuration.
public CreateApplicationRequest.Builder isStateful(Boolean isStateful)
public CreateApplicationRequest.Builder jarStartArgs(String jarStartArgs)
The arguments in the JAR package. The arguments are used to start the application container. The default startup command is $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
custom-args
public CreateApplicationRequest.Builder jarStartOptions(String jarStartOptions)
The option settings in the JAR package. The settings are used to start the application container. The default startup command for application deployment is $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.
-Xms4G -Xmx4G
public CreateApplicationRequest.Builder jdk(String jdk)
The version of the Java development kit (JDK) on which the deployment package of the application depends. The following versions are supported:
This parameter is not returned if the PackageType parameter is set to Image.
example:Open JDK 8
public CreateApplicationRequest.Builder kafkaConfigs(String kafkaConfigs)
The logging configurations of Message Queue for Apache Kafka. Take note of the following rules:
{"kafkaEndpoint":"10.0.X.XXX:XXXX,10.0.X.XXX:XXXX,10.0.X.XXX:XXXX","kafkaInstanceId":"alikafka_pre-cn-7pp2l8kr****","kafkaConfigs":[{"logType":"file_log","logDir":"/tmp/a.log","kafkaTopic":"test2"},{"logType":"stdout","logDir":"","kafkaTopic":"test"}]}
public CreateApplicationRequest.Builder labels(Map<String,String> labels)
public CreateApplicationRequest.Builder liveness(String liveness)
Container health check. If the container fails this check, it will be revoked and relaunch again. Use one of the following methods to perform the health check:
{"exec":{"command":["sh","-c","cat/home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}{"httpGet":{"path":"/","port":18091,"scheme":"HTTP","isContainKeyWord":true,"keyWord":"SAE"},"initialDelaySeconds":11,"periodSeconds":10,"timeoutSeconds":1}{"tcpSocket":{"port":18091},"initialDelaySeconds":11,"periodSeconds":10,"timeoutSeconds":1}You can use only one method to perform the health check.
The following table describes the parameters that are used in the preceding statements.
{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}
public CreateApplicationRequest.Builder lokiConfigs(String lokiConfigs)
public CreateApplicationRequest.Builder memory(Integer memory)
The memory size that is required by each instance. Unit: MB. This parameter cannot be set to 0. The values of this parameter correspond to the values of the Cpu parameter:
1024
public CreateApplicationRequest.Builder microRegistration(String microRegistration)
The Nacos registry. Valid values:
"0"
public CreateApplicationRequest.Builder microRegistrationConfig(String microRegistrationConfig)
The Registry configurations.
example:{"instanceId":"mse-cn-zvp2bh6h70r","namespace":"4c0aa74f-57cb-423c-b6af-5d9f2d0e3dbd"}
public CreateApplicationRequest.Builder microserviceEngineConfig(String microserviceEngineConfig)
Configure microservices governance
Whether to enable microservices governance (enable):
Configure lossless online/offline deployment (mseLosslessRule):
delayTime: Delay duration (unit: seconds)
enable: Whether to enable lossless deployment
true: Enable
false: Disable
notice: Whether to enable notifications
true: Enable
false: Disable
warmupTime: Small-traffic warm-up duration (unit: seconds)
example:{"enable": true,"mseLosslessRule": {"delayTime": 0,"enable": false,"notice": false,"warmupTime": 120}}
public CreateApplicationRequest.Builder mountDesc(String mountDesc)
It is not recommended to configure this field; configuring NasConfigs instead. This field specifies the NAS mount description. When deploying, if the configuration has not changed, you do not need to set this parameter (i.e., the MountDesc field does not need to be included in the request). If you need to clear the NAS configuration, set the value of this field to an empty string in the request (i.e., set the value of the MountDesc field to "").
example:[{mountPath: "/tmp", nasPath: "/"}]
public CreateApplicationRequest.Builder mountHost(String mountHost)
It is not recommended to configure this field; configuring NasConfigs instead. This field specifies the NAS mount point within the application"s VPC. When deploying, if the configuration has not changed, you do not need to set this parameter (i.e., the MountHost field does not need to be included in the request). If you need to clear the NAS configuration, set the value of this field to an empty string in the request (i.e., set the value of the MountHost field to "").
example:example.com
public CreateApplicationRequest.Builder namespaceId(String namespaceId)
SAE namespace ID. Only namespaces consisting of lowercase letters and hyphens (-) are supported, and the name must start with a letter.
example:cn-beijing:test
public CreateApplicationRequest.Builder nasConfigs(String nasConfigs)
The configurations of mounting the NAS file system. Take note of the following rules:
[{"mountPath":"/test1","readOnly":false,"nasId":"nasId1","mountDomain":"nasId1.cn-shenzhen.nas.aliyuncs.com","nasPath":"/test1"},{"nasId":"nasId2","mountDomain":"nasId2.cn-shenzhen.nas.aliyuncs.com","readOnly":false,"nasPath":"/test2","mountPath":"/test2"}]
public CreateApplicationRequest.Builder nasId(String nasId)
It is not recommended to configure this field; configuring NasConfigs instead. The ID of the mounted NAS must be in the same region as the cluster. The NAS must have available mount point quota or its mount point must already be on a switch within the VPC. If this field is not specified and the mountDescs field exists, a NAS will be automatically purchased and mounted to a switch within the VPC by default.
When deploying, if the configuration has not changed, you do not need to set this parameter (i.e., the NASId field does not need to be included in the request). If you need to clear the NAS configuration, set the value of this field to an empty string in the request (i.e., set the value of the NASId field to "").
example:KSAK****
public CreateApplicationRequest.Builder newSaeVersion(String newSaeVersion)
SAE edition.
lite: the lightweight edition.
std: the standard edition.
pro: the professional edition.
pro
public CreateApplicationRequest.Builder oidcRoleName(String oidcRoleName)
The name of the RAM role used to authenticate the user identity.
example:You need to create an OpenID Connect (OIDC) identity provider (IdP) and an identity provider (IdP) for role-based single sign-on (SSO) in advance. For more information, see Creates an OpenID Connect (OIDC) identity provider (IdP) and Creates an identity provider (IdP) for role-based single sign-on (SSO).
sae-test
public CreateApplicationRequest.Builder ossAkId(String ossAkId)
The Accesskey ID that the OSS reads and writes from.
example:xxxxxx
public CreateApplicationRequest.Builder ossAkSecret(String ossAkSecret)
The AccessKey Secret that the OSS reads and writes from.
example:xxxxxx
public CreateApplicationRequest.Builder ossMountDescs(String ossMountDescs)
Information of the Object Storage Service (OSS) bucket mounted to the application. The following table describes the parameters that are used in the preceding statements.
bucketName: the name of the OSS bucket.
bucketPath: the directory or object in OSS. If the specified directory or object does not exist, an error is returned.
mountPath: the directory of the container in SAE. If the path already exists, the newly specified path overwrites the previous one. If the path does not exist, it is created.
readOnly: specifies whether to only allow the container path to read data from the OSS directory. Valid values:
[{"bucketName": "oss-bucket", "bucketPath": "data/user.data", "mountPath": "/usr/data/user.data", "readOnly": true}]
public CreateApplicationRequest.Builder packageType(String packageType)
The type of the deployment package. Take note of the following rules:
PhpZip IMAGE_PHP_5_4 IMAGE_PHP_5_4_ALPINE IMAGE_PHP_5_5 IMAGE_PHP_5_5_ALPINE IMAGE_PHP_5_6 IMAGE_PHP_5_6_ALPINE IMAGE_PHP_7_0 IMAGE_PHP_7_0_ALPINE IMAGE_PHP_7_1 IMAGE_PHP_7_1_ALPINE IMAGE_PHP_7_2 IMAGE_PHP_7_2_ALPINE IMAGE_PHP_7_3 IMAGE_PHP_7_3_ALPINE
This parameter is required.
example:FatJar
public CreateApplicationRequest.Builder packageUrl(String packageUrl)
The address of the deployment package. This parameter is required if you set PackageType to FatJar, War, or PythonZip.
example:http://myoss.oss-cn-****.aliyuncs.com/my-buc/2019-06-30/****.jar
public CreateApplicationRequest.Builder packageVersion(String packageVersion)
The version of the deployment package. This parameter is required when the PackageType parameter is set to FatJar, War, or PythonZip.
example:1.0.0
public CreateApplicationRequest.Builder php(String php)
The dependent PHP version of PHP package. Image is not supported.
example:PHP-FPM 7.0
public CreateApplicationRequest.Builder phpArmsConfigLocation(String phpArmsConfigLocation)
The path on which the PHP configuration file for application monitoring is mounted. Make sure that the PHP server loads the configuration file. SAE automatically generates the corresponding configuration file. No manual operations are required.
example:/usr/local/etc/php/conf.d/arms.ini
public CreateApplicationRequest.Builder phpConfig(String phpConfig)
The details of the PHP configuration file.
example:k1=v1
public CreateApplicationRequest.Builder phpConfigLocation(String phpConfigLocation)
The path on which the PHP configuration file for application startup is mounted. Make sure that the PHP server uses this configuration file during the startup.
example:/usr/local/etc/php/php.ini
public CreateApplicationRequest.Builder postStart(String postStart)
Control whether to run a script after the container is initialized. Example: {"exec":{"command":["cat","/etc/group"]}}
example:{"exec":{"command":["cat","/etc/group"]}}
public CreateApplicationRequest.Builder preStop(String preStop)
To controle whether to run a script before the container stops. Example: {"exec":{"command":["cat","/etc/group"]}}
example:{"exec":{"command":["cat","/etc/group"]}}
public CreateApplicationRequest.Builder programmingLanguage(String programmingLanguage)
The programming language for the application’s technology stack. The value options are as follows:
java
public CreateApplicationRequest.Builder pvtzDiscoverySvc(String pvtzDiscoverySvc)
The configurations of Kubernetes Service-based service registration and discovery. Take note of the following rules:
<Custom content>-<Namespace ID>. -<Namespace ID> is automatically specified based on the namespace in which an application resides and cannot be changed. For example, if you select the default namespace in the China (Beijing) region, -cn-beijing-default is automatically specified.{"serviceName":"bwm-poc-sc-gateway-cn-beijing-front","namespaceId":"cn-beijing:front","portAndProtocol":{"18012":"TCP"},"enable":true}
public CreateApplicationRequest.Builder python(String python)
The Python environment. Set the value to PYTHON 3.9.15.
example:PYTHON 3.9.15
public CreateApplicationRequest.Builder pythonModules(String pythonModules)
The configurations for installing custom module dependencies. By default, the dependencies defined by the requirements.txt file in the root directory are installed. If the package does not contain this file and you do not configure custom dependencies in the package, specify the dependencies that you want to install in the text box.
example:Flask==2.0
public CreateApplicationRequest.Builder readiness(String readiness)
Check the launch status of the container. Containers that fail health checks more than once will not receive traffic from Server Load Balancer (SLB) instances any loner. You can use the exec, httpGet, or tcpSocket method to perform health checks. For more information, see the description of the Liveness parameter.
example:You can use only one method to perform the health check.
{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}
public CreateApplicationRequest.Builder replicas(Integer replicas)
The number of instances when initialized.
This parameter is required.
example:1
public CreateApplicationRequest.Builder resourceType(String resourceType)
The resource type. Supports NULL (default) and haiguang (haiguang server).
example:UNLL
public CreateApplicationRequest.Builder saeVersion(String saeVersion)
The SAE version. Supported versions:
v1
public CreateApplicationRequest.Builder secretMountDesc(String secretMountDesc)
Secret Mount Description Use the secret dictionaries created in the Namespace Secret Dictionary page to inject information into containers. Parameter descriptions are as follows:
secretId: Secret instance ID. Obtain via the ListSecrets interface.
key: Key-value pair. Note: Set the parameter sae-sys-secret-all to mount all keys.
mountPath: Mount path.
[{“secretId":10,”key":"test","mountPath":"/tmp"}]
public CreateApplicationRequest.Builder securityGroupId(String securityGroupId)
Security group ID.
example:sg-wz969ngg2e49q5i4****
public CreateApplicationRequest.Builder serviceTags(String serviceTags)
The canary tag configured for the application.
example:{"alicloud.service.tag":"g1"}
public CreateApplicationRequest.Builder sidecarContainersConfig(List<SidecarContainerConfig> sidecarContainersConfig)
The configuration of the container.
public CreateApplicationRequest.Builder slsConfigs(String slsConfigs)
The logging configurations of Log Service.
[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].[{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].The following table describes the parameters that are used in the preceding statements.
If you do not need to modify the logging configurations when you deploy the application, configure the SlsConfigs parameter only in the first request. You do not need to include this parameter in subsequent requests. If you no longer need to use Log Service, leave the SlsConfigs parameter empty in the request.
example:A Log Service project that is automatically created by SAE when you create an application is deleted when the application is deleted. Therefore, when you create an application, you cannot select a Log Service project that is automatically created by SAE for log collection.
[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]
public CreateApplicationRequest.Builder slsLogEnvTags(String slsLogEnvTags)
public CreateApplicationRequest.Builder startupProbe(String startupProbe)
Enable application startup probe.
Check succeeded: Indicates that the application has started successfully. If you have configured Liveness and Readiness checks, they will be performed after the application startup is successful. Check failed: Indicates that the application failed to start; an exception will be reported and the application will be automatically restarted.
example:
- exec, httpGet, and tcpSocket methods are supported. For specific examples, see the Liveness parameter documentation.
- Only one health check method can be selected.
{"exec":{"command":["sh","-c","cat /home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}
public CreateApplicationRequest.Builder terminationGracePeriodSeconds(Integer terminationGracePeriodSeconds)
The timeout period for a graceful shutdown. Default value: 30. Unit: seconds. Valid values: 1 to 300.
example:30
public CreateApplicationRequest.Builder timezone(String timezone)
Time zone. Default to time zone of Asia/Shanghai.
example:Asia/Shanghai
public CreateApplicationRequest.Builder tomcatConfig(String tomcatConfig)
The Tomcat configuration. If you want to cancel this configuration, set this parameter to "" or "{}". The following variables are included in the configuration: Take note of the following rules:
{"port":8080,"contextPath":"/","maxThreads":400,"uriEncoding":"ISO-8859-1","useBodyEncodingForUri":true}
public CreateApplicationRequest.Builder vSwitchId(String vSwitchId)
The vSwitch to which the elastic network interface (ENI) of the application instance is connected. The vSwitch must be located in the VPC specified by the VpcId parameter. The SAE namespace is bound with this vSwitch. The default value is the ID of the vSwitch that is bound to the namespace.
example:vsw-bp12mw1f8k3jgygk9****
public CreateApplicationRequest.Builder vpcId(String vpcId)
The ID of the virtual private cloud (VPC) that corresponds to the SAE namespace. In SAE, once correspondence is configured between a namespace and a VPC, the namespace cannot correspond to other VPCs. When the SAE application is created within the namespace, the application is bound with the VPC. Multiple namespaces can correspond to the same VPC. The default value is the ID of the VPC that is bound to the namespace.
example:vpc-bp1aevy8sofi8mh1q****
public CreateApplicationRequest.Builder warStartOptions(String warStartOptions)
The startup command of the WAR package. For information about how to configure the startup command, see Configure startup commands.
example:CATALINA_OPTS="$CATALINA_OPTS $Options" catalina.sh run
public CreateApplicationRequest.Builder webContainer(String webContainer)
The version of the Tomcat container on which the deployment package depends. Valid values:
This parameter is not returned if the PackageType parameter is set to Image.
example:apache-tomcat-7.0.91
public CreateApplicationRequest build()
Copyright © 2026. All rights reserved.