All Products
Search
Document Center

Serverless App Engine:DescribeApplicationConfig

Last Updated:Dec 17, 2025

Queries the configurations of an application.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
sae:DescribeApplicationConfigget
*All Resources
*
    none
none

Request syntax

GET /pop/v1/sam/app/describeApplicationConfig HTTP/1.1

Request parameters

ParameterTypeRequiredDescriptionExample
AppIdstringYes

The app id.

7171a6ca-d1cd-4928-8642-7d5cfe69****
VersionIdstringNo

The version id.

0026ff7f-2b57-4127-bdd0-9bf202bb****

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request.

01CF26C7-00A3-4AA6-BA76-7E95F2A3****
Messagestring

The returned information.

success
TraceIdstring

The trace ID that is used to query the details of the request.

ac1a0b2215622246421415014e****
Dataobject

The information about the application.

VpcIdstring

The ID of the virtual private cloud (VPC).

vpc-2ze0i263cnn311nvj****
Readinessstring

The details of the health check that was performed on the container. If the container fails this health check multiple times, the system disables and restarts the container. Containers that fail health checks cannot receive traffic from Server Load Balancer (SLB) instances. You can use the exec, httpGet, or tcpSocket method to perform health checks. For more information, see the description of the Liveness parameter.

Note You can use only one method to perform the health check.
{"exec":{"command":["curl http://localhost:8080"]},"initialDelaySeconds":20,"timeoutSeconds":5}
ConfigMapMountDescarray<object>

The details of the ConfigMap.

ConfigMapMountDescobject
Keystring

The key-value pair that is stored in the ConfigMap.

k1
ConfigMapNamestring

The name of the ConfigMap.

test
MountPathstring

The path on which the ConfigMap is mounted.

/tmp
ConfigMapIdlong

The ID of the ConfigMap.

1
SecurityGroupIdstring

The ID of the security group.

sg-wz969ngg2e49q5i4****
BatchWaitTimeinteger

The interval between batches in a phased release. Unit: seconds.

10
Jdkstring

The version of the Java development kit (JDK) on which the deployment package of the application depends. The following versions are supported:

  • Open JDK 8
  • Open JDK 7
  • Dragonwell 11
  • Dragonwell 8
  • openjdk-8u191-jdk-alpine3.9
  • openjdk-7u201-jdk-alpine3.9

This parameter is not returned if the PackageType parameter is set to Image.

Open JDK 8
ImageUrlstring

The URL of the image. This parameter is returned only if the PackageType parameter is set to Image.

docker.io/library/nginx:1.14.2
SlsConfigsstring

The logging configurations of Log Service.

  • To use Log Service resources that are automatically created by SAE, set this parameter to [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].
  • To use custom Log Service resources, set this parameter to [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

The following parameters are involved:

  • projectName: the name of the Log Service project.
  • logDir: the path in which logs are stored.
  • logType: the log type. stdout: the standard output log of the container. You can specify only one stdout value for this parameter. If you leave this parameter empty, file logs are collected.
  • logstoreName: the name of the Logstore in Log Service.
  • logtailName: the name of the Logtail configuration in Log Service. If you do not configure this parameter, a new Logtail configuration is created.

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.

[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]
Livenessstring

The details of the availability check that was performed on the container. If the container fails this health check multiple times, the system disables and restarts the container. You can use one of the following methods to perform the health check:

  • Sample code of the exec method: {"exec":{"command":["sh","-c","cat/home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}
  • Sample code of the httpGet method: {"httpGet":{"path":"/","port":18091,"scheme":"HTTP","isContainKeyWord":true,"keyWord":"SAE"},"initialDelaySeconds":11,"periodSeconds":10,"timeoutSeconds":1}
  • Sample code of the tcpSocket method: {"tcpSocket":{"port":18091},"initialDelaySeconds":11,"periodSeconds":10,"timeoutSeconds":1}
Note You can use only one method to perform the health check.

The following parameters are involved:

  • exec.command: the health check command.
  • httpGet.path: the request path.
  • httpGet.scheme: the protocol that is used to perform the health check. Valid values: HTTP and HTTPS.
  • httpGet.isContainKeyWord: indicates whether the response contains keywords. Valid values: true and false. If this field is not returned, the advanced settings are not used.
  • httpGet.keyWord: the custom keyword. This parameter is available only if the isContainKeyWord field is returned.
  • tcpSocket.port: the port that is used to check the status of TCP connections.
  • initialDelaySeconds: the delay of the health check. Default value: 10. Unit: seconds.
  • periodSeconds: the interval at which health checks are performed. Default value: 30. Unit: seconds.
  • timeoutSeconds: the timeout period of the health check. Default value: 1. Unit: seconds. If you set this parameter to 0 or leave this parameter empty, the timeout period is automatically set to 1 second.
{"exec":{"command":["curl http://localhost:8080"]},"initialDelaySeconds":20,"timeoutSeconds":3}
Tagsarray<object>

The details of the tags.

Tagobject
Keystring

The key of the tag.

k1
Valuestring

The value of the tag.

v1
PackageUrlstring

The URL of the deployment package. This parameter is returned only if the PackageType parameter is set to FatJar or War.

https://edas-bj.oss-cn-beijing.aliyuncs.com/apps/K8s_APP_ID/d4c97c37-aba3-403e-ae1e-6f7d8742****/hello-sae.war
PackageTypestring

The type of the deployment package. Valid values:

  • If you deploy the application by using a Java Archive (JAR) package, you can set this parameter to FatJar, War, or Image.

  • If you deploy the application by using a PHP package, you can set this parameter to one of the following values:

    • 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
War
PreStopstring

The script that is run before the container is stopped. Example: {"exec":{"command":["cat","/etc/group"]}}

{"exec":{"command":["cat","/etc/group"]}}
PackageVersionstring

The version of the deployment package. This parameter is returned only if the PackageType parameter is set to FatJar or War.

1.0
JarStartArgsstring

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.

start
AppNamestring

The name of the application.

demo-app
AppIdstring

The ID of the application.

7171a6ca-d1cd-4928-8642-7d5cfe69****
JarStartOptionsstring

The option settings in the JAR package. The settings are used to start the application container. The default startup command is $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

-Dtest=true
Replicasinteger

The number of application instances.

2
UpdateStrategystring

The deployment policy. If the minimum number of available instances is 1, the value of the UpdateStrategy parameter is an empty string (""). If the minimum number of available instances is greater than 1, the following strategies can be configured:

  • The application is deployed on an instance. The remaining instances are automatically classified into two release batches whose interval is set to 1. In this case, the parameter is set to {"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}.
  • The application is deployed on an instance. The remaining instances are manually classified into two release batches. In this case, the parameter is set to {"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"manual"},"grayUpdate":{"gray":1}}.
  • All instances are automatically classified into two release batches. The application is deployed on the instances of the two batches in parallel. In this case, the parameter is set to {"type":"BatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":0}}

The following parameters are involved:

  • type: the type of the release policy. Valid values: GrayBatchUpdate and BatchUpdate.

  • batchUpdate: the phased release policy.

    • batch: the number of release batches.
    • releaseType: the processing method for the batches. Valid values: auto and manual.
    • batchWaitTime: the interval between release batches. Unit: seconds.
  • grayUpdate: the number of release batches in the phased release after a canary release. This parameter is returned only if the type parameter is set to GrayBatchUpdate.

{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}
MinReadyInstancesinteger

The minimum number of available instances. Valid values:

  • If you set the value to 0, business interruptions occur when the application is updated.
  • If you set the value to -1, the minimum number of available instances is automatically set to a system-recommended value. The value is the nearest integer to which the calculated result of the following formula is rounded up: Current number of instances × 25%. For example, if five instances are available, the minimum number of available instances is calculated by using the following formula: 5 × 25% = 1.25. In this case, the minimum number of available instances is 2.
Note Make sure that at least one instance is available during application deployment and rollback to prevent business interruptions.
1
MinReadyInstanceRatiointeger

The percentage of the minimum number of available instances. Valid values:

  • -1: the default value. This value indicates that the minimum number of available instances is not measured by percentage. If you do not configure this parameter, the default value -1 is used.
  • 0 to 100: indicates that the minimum number of available instances is calculated by using the following formula: Current number of instances × (Value of MinReadyInstanceRatio × 100%). If the calculated result is not an integer, the result is rounded up to the nearest integer. For example, if the percentage is set to 50% and five instances are available, the minimum number of available instances is 3.
Note If the MinReadyInstance and MinReadyInstanceRatio parameters are returned and the value of the MinReadyInstanceRatio parameter is not -1, the value of the MinReadyInstanceRatio parameter takes effect. If the MinReadyInstances parameter is set to 5 and the MinReadyInstanceRatio parameter is set to 50, the value of the MinReadyInstanceRatio parameter determines the minimum number of available instances.
-1
Memoryinteger

The size of memory required by each instance. Unit: MB. You cannot set this parameter to 0. The values of this parameter correspond to the values of the Cpu parameter:

  • This parameter is set to 1024 if the Cpu parameter is set to 500 or 1000.
  • This parameter is set to 2048 if the Cpu parameter is set to 500, 1000, or 1000.
  • This parameter is set to 4096 if the Cpu parameter is set to 1000, 2000, or 4000.
  • This parameter is set to 8192 if the Cpu parameter is set to 2000, 4000, or 8000.
  • This parameter is set to 12288 if the Cpu parameter is set to 12000.
  • This parameter is set to 16384 if the Cpu parameter is set to 4000, 8000, or 16000.
  • This parameter is set to 24567 if the Cpu parameter is set to 12000.
  • This parameter is set to 32768 if the Cpu parameter is set to 16000.
  • This parameter is set to 65536 if the Cpu parameter is set to 8000, 16000, or 32000.
  • This parameter is set to 131072 if the Cpu parameter is set to 32000.
2048
Phpstring

The version of PHP supporting PHP deployment packages. Image is not supported.

PHP-FPM 7.0
PhpConfigstring

The details of the PHP configuration file.

k1=v1
PhpConfigLocationstring

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.

/usr/local/etc/php/php.ini
PostStartstring

The script that is run immediately after the container is started. Example: {"exec":{"command":["cat","/etc/group"]}}

{"exec":{"command":["cat","/etc/group"]}}
TerminationGracePeriodSecondsinteger

The timeout period for a graceful shutdown. Default value: 30. Unit: seconds. Valid values: 1 to 300.

10
CommandArgsstring

The parameters of the image startup command. The CommandArgs parameter contains the parameters that are required for the Command parameter. Format:

["a","b"]

In the preceding Command 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. You do not need to configure this parameter if it does not exist in the Command parameter.

["a","b"]
NamespaceIdstring

The ID of the namespace.

cn-beijing:test
MountHoststring

The mount target of the NAS file system in the VPC where the application is deployed. If you do not need to modify this configuration during the deployment, configure the MountHost parameter only in the first request. You do not need to include this parameter in subsequent requests. If you need to remove this configuration, leave the MountHost parameter empty in the request.

example.com
TomcatConfigstring

The Tomcat configuration. If you want to delete the configuration, set this parameter to {} or leave this parameter empty. The following parameters are involved:

  • port: the port number. Valid values: 1024 to 65535. The root permissions are required to perform operations on ports whose number is smaller than 1024. Enter a value that ranges from 1025 to 65535 because the container has only the admin permissions. If you do not configure this parameter, the default port number 8080 is used.
  • contextPath: the path. Default value: /. This value indicates the root directory.
  • maxThreads: the maximum number of connections in the connection pool. Default value: 400.
  • uriEncoding: the URI encoding scheme in the Tomcat container. Valid values: UTF-8, ISO-8859-1, GBK, and GB2312. If you do not configure this parameter, the default value ISO-8859-1 is used.
  • useBodyEncoding: indicates whether to use the encoding scheme that is specified by BodyEncoding for URL. Default value: true.
{"port":8080,"contextPath":"/","maxThreads":400,"uriEncoding":"ISO-8859-1","useBodyEncodingForUri":true}
RegionIdstring

The ID of the region.

cn-beijing
VSwitchIdstring

The ID of the vSwitch.

vsw-2ze559r1z1bpwqxwp****
Cpuinteger

The CPU specifications that are required for each instance. Unit: millicores. You cannot set this parameter to 0. Valid values:

  • 500
  • 1000
  • 2000
  • 4000
  • 8000
  • 16000
  • 32000
1000
Envsstring

The environment variables. Variable description:

  • name: the name of the environment variable.
  • value: the value or reference of the environment variable.
[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}]
MountDescarray<object>

The details of the mounted NAS file system.

MountDescobject
MountPathstring

The path on which the NAS file system is mounted.

/tmp
NasPathstring

The directory in the NAS file system.

/
EnableAhasstring

Indicates whether access to Application High Availability Service (AHAS) is enabled. Valid values:

  • true: Access to AHAS is enabled.
  • false: Access to AHAS is disabled.
true
CustomHostAliasstring

The custom mappings between hostnames and IP addresses in the container. Valid values:

  • hostName: the domain name or hostname.
  • ip: the IP address.
[{"hostName":"test.host.name","ip":"0.0.0.0"}]
WebContainerstring

The version of the Tomcat container on which the deployment package depends. Valid values:

  • apache-tomcat-7.0.91
  • apache-tomcat-8.5.42

This parameter is not returned if the PackageType parameter is set to Image.

apache-tomcat-7.0.91
Commandstring

The command that is used to start the image. The command must be an existing executable object in the container. Example:


command:
      - echo
      - abc
      - >
      - file0

In this example, the Command parameter is set to Command="echo", CommandArgs=["abc", ">", "file0"].

echo
WarStartOptionsstring

The option settings in the WAR package. The settings are used to start the application container. The default startup command is java $JAVA_OPTS $CATALINA_OPTS -Options org.apache.catalina.startup.Bootstrap "$@" start.

custom-option
PhpArmsConfigLocationstring

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.

/usr/local/etc/php/conf.d/arms.ini
NasIdstring

The ID of the NAS file system.

AKSN89**
OssAkIdstring

The AccessKey ID that is used to read data from and write data to Object Storage Service (OSS) buckets.

xxxxxx
OssAkSecretstring

The AccessKey secret that is used to read data from and write data to OSS buckets.

xxxxxx
OssMountDescsarray<object>

The description of the mounted OSS bucket.

ossMountDescobject
bucketNamestring

The name of the OSS bucket.

oss-bucket
bucketPathstring

The directory or object in OSS. If the specified directory or object does not exist, an error is returned.

data/user.data
mountPathstring

The path of the container in SAE. The parameter value that you specified overwrites the original value. If the specified path does not exist, SAE automatically creates the path.

/usr/data/user.data
readOnlyboolean

Indicates whether the application can use the container path to read data from or write data to resources in the directory of the OSS bucket. Valid values:

  • true: The application has the read-only permissions.
  • false: The application has the read and write permissions.
true
EdasContainerVersionstring

The version of the container, such as Ali-Tomcat, in which an application developed based on High-speed Service Framework (HSF) is deployed.

3.5.3
Timezonestring

The time zone. Default value: Asia/Shanghai.

Asia/Shanghai
AppDescriptionstring

The description of the application.

The application description.
EnableGreyTagRouteboolean

Indicates whether canary release rules are enabled. Canary release rules apply only to applications in Spring Cloud and Dubbo frameworks. Valid values:

  • true: The canary release rules are enabled.
  • false: The canary release rules are disabled.
false
MseApplicationIdstring

The ID of the microservice application.

xxxxxxx@xxxxx
AcrInstanceIdstring

The ID of the Container Registry Enterprise Edition instance.

cri-xxxxxx
AcrAssumeRoleArnstring

The Alibaba Cloud Resource Name (ARN) of the RAM role that is used to pull images across accounts. For more information, see Pull images across Alibaba Cloud accounts and Grant permissions across Alibaba Cloud accounts by using a RAM role.

acs:ram::123456789012****:role/adminrole
ImagePullSecretsstring

The ID of the corresponding secret dictionary.

10
AssociateEipboolean

Indicates whether an elastic IP address (EIP) is associated with the application instance. Valid values:

  • true: The EIP is associated with the application instance.
  • false: The EIP is not associated with the application instance.
true
KafkaConfigsstring

The logging configurations of Message Queue for Apache Kafka. The following parameters are involved:

  • KafkaConfigs: the configurations of Message Queue for Apache Kafka.

  • createTime: the time when the Message Queue for Apache Kafka instance was created.

  • kafkaTopic: the message topic that is used to classify messages.

  • logDir: the path in which logs are stored.

  • logType: the type of collected logs. Valid values:

    • file_log: the file log that is stored in the container. The path of the file logs in the container is returned.
    • stdout: the standard output log of the container. You can specify only one stdout value.
  • kafkaEndpoint: the endpoint of the Message Queue for Apache Kafka service.

  • kafkaInstanceId: the ID of the Message Queue for Apache Kafka instance.

  • region: the region where the Message Queue for Apache Kafka instance resides.

[{"createTime":1646304855512,"kafkaTopic":"test","logDir":"/tmp/a.log","logType":"file_log"},{"createTime":1646304855512,"kafkaTopic":"test2","logDir":"/sae-stdlog/kafka-jar*/*","logType":"stdout"}],"kafkaEndpoint":"10.0.X.XXX:XXXX,10.0.X.XXX:XXXX,10.0.X.XXX:XXXX","kafkaInstanceId":"alikafka_pre-cn-7pp2l8kr****","region":"cn-beijing"}]
ProgrammingLanguagestring

The programming language that is used to create the application. Valid values:

  • java: Java
  • php: PHP
  • other: Other programming languages, such as Python, C++, Go, .NET, and Node.js.
java
PvtzDiscoverystring

Enable K8s Service discovery and registration.

{"serviceName":"bwm-poc-sc-gateway-cn-beijing-front","namespaceId":"cn-beijing:front","portAndProtocol":{"18012":"TCP"},"enable":true}
SwimlanePvtzDiscoverystring

Configuration of K8s Service discovery and registration, and full-chain gray-release feature.

{\"enable\":\"false\",\"namespaceId\":\"cn-beijing:test\",\"portAndProtocol\":{\"2000:TCP\":\"18081\"},\"portProtocols\":[{\"port\":2000,\"protocol\":\"TCP\",\"targetPort\":18081}],\"pvtzDiscoveryName\":\"cn-beijing-1421801774382676\",\"serviceId\":\"3513\",\"serviceName\":\"demo-gray.test\"}
MicroRegistrationstring

The Nacos registry. Valid values:

  • 0: SAE built-in Nacos registry
  • 1: self-managed Nacos registry
  • 2 : MSE Nacos registry
"0"
NasConfigsstring

The configurations for mounting the NAS file system.

[{"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"}]
Pythonstring

The Python environment. PYTHON 3.9.15 is supported.

PYTHON 3.9.15
PythonModulesstring

The configurations for installing custom module dependencies. By default, the dependencies defined by the requirements.txt file in the root directory are installed. If no software package is configured, you can specify dependencies based on your business requirements.

Flask==2.0
MseApplicationNamestring

The application name of SAE service registered in MSE.

cn-shenzhen-alb-demo-5c****
AppSourcestring

The SAE application type.

  • micro_service
  • web
  • job
micro_service
ServiceTagsobject

The canary tag configured for the application.

string

The canary tag

tag1
Dotnetstring

The version of .NET.

  • .NET 3.1
  • .NET 5.0
  • .NET 6.0
  • .NET 7.0
  • .NET 8.0
.NET 8.0
MicroRegistrationConfigstring

The configuration of registration center. Takes effect only the type of registration center is MSE enterprise Nacos.

{\"instanceId\":\"mse-cn-1ls43******\",\"namespace\":\"62ee12fb-c279-4da4-be96-21**********\"}
EnableIdleboolean

Enable idle mode.

  • true: enable

  • false: disable

false
EnableNewArmsboolean

Enable new ARMS feature.

  • true: enable

  • false: disable

false
EnableCpuBurststring

Enable CPU Burst.

  • true: enable

  • false: disable

true
OidcRoleNamestring

The name of the RAM role used to authenticate the user identity.

Note 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
SecretMountDescarray<object>

Secret mount description.

SecretMountDescobject

Secret mount description.

Keystring

The key to Base64 encode values.

task-center
SecretNamestring

The name of the secret.

dummy-name-opaque-894
MountPathstring

The mount path.

/opt/www/runtime/logs
SecretIdlong

The secret ID of the instance.

520
SidecarContainersConfigarray<object>

The configuration of the Sidecar container.

SidecarContainerobject

The configuration of the Sidecar container.

Namestring

The container name.

test
Cpuinteger

Set the CPU resource limit of the primary container that can be used by Sidecar container.

500
Memoryinteger

Set the memory limit of the primary container that can be used by Sidecar container.

1024
ImageUrlstring

The URL of the image.

registry.cn-beijing.aliyuncs.com/sae-dev-test/nginx:stable
AcrInstanceIdstring

The ID of Container Registry Enterprise Edition instance. This parameter is required when the ImageUrl parameter is set to the URL of an image in an ACR Enterprise Edition instance.

cri-fhzlneorxala66ip
Commandstring

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"].

/bin/sh
CommandArgsstring

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.

[\"-c\",\"echo \\\"test\\\" > /home/nas/test.log && sleep 10000000s\"]
Envsstring

The environment variables. You can configure custom environment variables or reference a ConfigMap. If you want to reference a ConfigMap, you must first create a ConfigMap. For more information, see CreateConfigMap . Take note of the following rules:

  • Customize

    • name: the name of the environment variable.
    • value: the value of the environment variable.
  • Reference ConfigMap

    • name: the name of the environment variable. You can reference one or all keys. If you want to reference all keys, specify sae-sys-configmap-all-<ConfigMap name>. Example: sae-sys-configmap-all-test1.
    • valueFrom: the reference of the environment variable. Set the value to configMapRef.
    • configMapId: the ConfigMap ID.
    • key: the key. If you want to reference all keys, do not configure this parameter.
[{\"name\":\"k1\",\"value\":\"c8e3a815-e5d3-4adf-abb3-98b106a607c4\"}]
ConfigMapMountDescarray<object>

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.

  • congfigMapId: the ID of the ConfigMap instance. You can call the ListNamespacedConfigMaps operation to obtain the ID.
  • key: the key.
Note You can use the sae-sys-configmap-all key to mount all keys.
  • mountPath: the mount path in the container.
ConfigMapMountDescobject

The description of the ConfigMap instance mounted to the application.

Keystring

The ConfigMap key

key
ConfigMapNamestring

The ConfigMap name.

ConfigMap-test
MountPathstring

The mount path.

/mnt/test
ConfigMapIdlong

The ConfigMap ID.

7361
EmptyDirDescarray<object>

Shared temporary storage mounted to the primary container and the Sidecar container.

EmptyDirDescobject

Shared temporary storage.

Namestring

The name of the shared temporary storage.

sidecar-container
MountPathstring

Mount path of the data volume within the container.

/mnt/cache
InitContainersConfigarray<object>

Initialize container configuration.

InitContainerobject

Initialize container configuration.

Namestring

The name of the initialized container.

init-container
ImageUrlstring

The image URL of the initialized container.

registry.cn-shenzhen.aliyuncs.com/sae-serverless-demo/sae-demo:microservice-java-provider-v1.0
Commandstring

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"].

/bin/sh
CommandArgsstring

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"]
Envsstring

The environment variables. You can configure custom environment variables or reference a ConfigMap. If you want to reference a ConfigMap, you must first create a ConfigMap. For more information, see CreateConfigMap . Take note of the following rules:

  • Customize

    • name: the name of the environment variable.
    • value: the value of the environment variable.
  • Reference ConfigMap

    • name: the name of the environment variable. You can reference one or all keys. If you want to reference all keys, specify sae-sys-configmap-all-<ConfigMap name>. Example: sae-sys-configmap-all-test1.
    • valueFrom: the reference of the environment variable. Set the value to configMapRef.
    • configMapId: the ConfigMap ID.
    • key: the key. If you want to reference all keys, do not configure this parameter.
[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}]
ConfigMapMountDescarray<object>

The information of ConfigMap.

ConfigMapMountDescobject

The key-value pair of ConfigMap.

Keystring

The key.

k1
ConfigMapNamestring

The name of the ConfigMap.

test
MountPathstring

The mount path.

/tmp
ConfigMapIdlong

ConfigMap ID。

1
CustomImageNetworkTypestring

The type of custom image. Set to empty string if using pre-built image.

  • internet: public network image.

  • intranet: private network image.

internet
ResourceTypestring

The type of the resource. Set the value to application.

application
BaseAppIdstring

The base app ID.

8c573618-8d72-4407-baf4-f7b64b******
MicroserviceEngineConfigstring

Configure microservices governance

enable: Whether to enable microservices governance

  • true: Enable
  • false: Disable

mseLosslessRule: Configure lossless online/offline deployment

  • delayTime: Delay duration (unit: seconds)
  • enable: Whether to enable lossless deployment. Set to "true" to enable; set to "false" to disable.
  • notice: Whether to enable notifications. Set to "true" to enable; set to "false" to disable.
  • warmupTime: Small-traffic warm-up duration (unit: seconds)
{\"Enable\":true,\"MseLosslessRule\":{\"enable\":true,\"notice\":true,\"delayTime\":10,\"warmupTime\":120,\"funcType\":2,\"aligned\":false,\"related\":false,\"lossLessDetail\":false}}
NewSaeVersionstring

The SAE application edition.

  • lite: The lightweight edition.
  • std: The standard edition.
  • pro: The professional edition.
pro
ClusterIdstring

The cluster ID.

495fc79c-ae61-4600-866d-a09d68******
DiskSizeinteger

The disk size. Unit: GB.

20
StartupProbestring

Enable startup probe.

{\"exec\":{\"command\":[\"/bin/sh\",\"-c\",\"#!Note: If microservice config is enabled, the application will be automatically injected with the prestop configuration for lossless offline. If you delete this prestop configuration, lossless offline will not be effective.\\n echo stop > /tmp/prestop; /home/admin/.tools/curl http://127.0.0.1:54199/offline; sleep 30\"]}}
ErrorCodestring

The returned error code. Valid values:

  • If the call is successful, the ErrorCode parameter is not returned.
  • If the call fails, the ErrorCode parameter is returned. For more information, see the "Error codes" section of this topic.
Null
Codestring

The HTTP status code. Valid values:

  • 2xx: The call was successful.
  • 3xx: The call was redirected.
  • 4xx: The call failed.
  • 5xx: A server error occurred.
200
Successboolean

Indicates whether the configurations of an application were obtained. Valid values:

  • true: The configurations were obtained.
  • false: The configurations failed to be obtained.
true

Examples

Sample success responses

JSONformat

{
  "RequestId": "01CF26C7-00A3-4AA6-BA76-7E95F2A3****",
  "Message": "success",
  "TraceId": "ac1a0b2215622246421415014e****",
  "Data": {
    "VpcId": "vpc-2ze0i263cnn311nvj****",
    "Readiness": {
      "exec": {
        "command": [
          "curl http://localhost:8080"
        ]
      },
      "initialDelaySeconds": 20,
      "timeoutSeconds": 5
    },
    "ConfigMapMountDesc": [
      {
        "Key": "k1",
        "ConfigMapName": "test",
        "MountPath": "/tmp",
        "ConfigMapId": 1
      }
    ],
    "SecurityGroupId": "sg-wz969ngg2e49q5i4****",
    "BatchWaitTime": 10,
    "Jdk": "Open JDK 8",
    "ImageUrl": "docker.io/library/nginx:1.14.2",
    "SlsConfigs": [
      {
        "logDir": "",
        "logType": "stdout"
      },
      {
        "logDir": "/tmp/a.log"
      }
    ],
    "Liveness": {
      "exec": {
        "command": [
          "curl http://localhost:8080"
        ]
      },
      "initialDelaySeconds": 20,
      "timeoutSeconds": 3
    },
    "Tags": [
      {
        "Key": "k1",
        "Value": "v1"
      }
    ],
    "PackageUrl": "https://edas-bj.oss-cn-beijing.aliyuncs.com/apps/K8s_APP_ID/d4c97c37-aba3-403e-ae1e-6f7d8742****/hello-sae.war",
    "PackageType": "War",
    "PreStop": {
      "exec": {
        "command": [
          "cat",
          "/etc/group"
        ]
      }
    },
    "PackageVersion": 1,
    "JarStartArgs": "start",
    "AppName": "demo-app",
    "AppId": "7171a6ca-d1cd-4928-8642-7d5cfe69****",
    "JarStartOptions": "-Dtest=true",
    "Replicas": 2,
    "UpdateStrategy": {
      "type": "GrayBatchUpdate",
      "batchUpdate": {
        "batch": 2,
        "releaseType": "auto",
        "batchWaitTime": 1
      },
      "grayUpdate": {
        "gray": 1
      }
    },
    "MinReadyInstances": 1,
    "MinReadyInstanceRatio": -1,
    "Memory": 2048,
    "Php": "PHP-FPM 7.0",
    "PhpConfig": "k1=v1",
    "PhpConfigLocation": "/usr/local/etc/php/php.ini",
    "PostStart": {
      "exec": {
        "command": [
          "cat",
          "/etc/group"
        ]
      }
    },
    "TerminationGracePeriodSeconds": 10,
    "CommandArgs": [
      "a",
      "b"
    ],
    "NamespaceId": "cn-beijing:test",
    "MountHost": "example.com",
    "TomcatConfig": {
      "port": 8080,
      "contextPath": "/",
      "maxThreads": 400,
      "uriEncoding": "ISO-8859-1",
      "useBodyEncodingForUri": true
    },
    "RegionId": "cn-beijing",
    "VSwitchId": "vsw-2ze559r1z1bpwqxwp****",
    "Cpu": 1000,
    "Envs": [
      {
        "name": "TEST_ENV_KEY",
        "value": "TEST_ENV_VAR"
      }
    ],
    "MountDesc": [
      {
        "MountPath": "/tmp",
        "NasPath": "/"
      }
    ],
    "EnableAhas": true,
    "CustomHostAlias": [
      {
        "hostName": "test.host.name",
        "ip": "0.0.0.0"
      }
    ],
    "WebContainer": "apache-tomcat-7.0.91",
    "Command": "echo",
    "WarStartOptions": "custom-option",
    "PhpArmsConfigLocation": "/usr/local/etc/php/conf.d/arms.ini",
    "NasId": "AKSN89**",
    "OssAkId": "xxxxxx",
    "OssAkSecret": "xxxxxx",
    "OssMountDescs": [
      {
        "bucketName": "oss-bucket",
        "bucketPath": "data/user.data",
        "mountPath": "/usr/data/user.data",
        "readOnly": true
      }
    ],
    "EdasContainerVersion": "3.5.3",
    "Timezone": "Asia/Shanghai",
    "AppDescription": "The application description.",
    "EnableGreyTagRoute": false,
    "MseApplicationId": "xxxxxxx@xxxxx",
    "AcrInstanceId": "cri-xxxxxx",
    "AcrAssumeRoleArn": "acs:ram::123456789012****:role/adminrole",
    "ImagePullSecrets": 10,
    "AssociateEip": true,
    "KafkaConfigs": "[{\"createTime\":1646304855512,\"kafkaTopic\":\"test\",\"logDir\":\"/tmp/a.log\",\"logType\":\"file_log\"},{\"createTime\":1646304855512,\"kafkaTopic\":\"test2\",\"logDir\":\"/sae-stdlog/kafka-jar*/*\",\"logType\":\"stdout\"}],\"kafkaEndpoint\":\"10.0.X.XXX:XXXX,10.0.X.XXX:XXXX,10.0.X.XXX:XXXX\",\"kafkaInstanceId\":\"alikafka_pre-cn-7pp2l8kr****\",\"region\":\"cn-beijing\"}]",
    "ProgrammingLanguage": "java",
    "PvtzDiscovery": {
      "serviceName": "bwm-poc-sc-gateway-cn-beijing-front",
      "namespaceId": "cn-beijing:front",
      "portAndProtocol": {
        "18012": "TCP"
      },
      "enable": true
    },
    "SwimlanePvtzDiscovery": "{\\\"enable\\\":\\\"false\\\",\\\"namespaceId\\\":\\\"cn-beijing:test\\\",\\\"portAndProtocol\\\":{\\\"2000:TCP\\\":\\\"18081\\\"},\\\"portProtocols\\\":[{\\\"port\\\":2000,\\\"protocol\\\":\\\"TCP\\\",\\\"targetPort\\\":18081}],\\\"pvtzDiscoveryName\\\":\\\"cn-beijing-1421801774382676\\\",\\\"serviceId\\\":\\\"3513\\\",\\\"serviceName\\\":\\\"demo-gray.test\\\"}",
    "MicroRegistration": 0,
    "NasConfigs": [
      {
        "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"
      }
    ],
    "Python": "PYTHON 3.9.15",
    "PythonModules": "Flask==2.0",
    "MseApplicationName": "cn-shenzhen-alb-demo-5c****",
    "AppSource": "micro_service",
    "ServiceTags": {
      "key": "tag1"
    },
    "Dotnet": ".NET 8.0",
    "MicroRegistrationConfig": "{\\\"instanceId\\\":\\\"mse-cn-1ls43******\\\",\\\"namespace\\\":\\\"62ee12fb-c279-4da4-be96-21**********\\\"}",
    "EnableIdle": false,
    "EnableNewArms": false,
    "EnableCpuBurst": true,
    "OidcRoleName": "sae-test",
    "SecretMountDesc": [
      {
        "Key": "task-center",
        "SecretName": "dummy-name-opaque-894",
        "MountPath": "/opt/www/runtime/logs",
        "SecretId": 520
      }
    ],
    "SidecarContainersConfig": [
      {
        "Name": "test",
        "Cpu": 500,
        "Memory": 1024,
        "ImageUrl": "registry.cn-beijing.aliyuncs.com/sae-dev-test/nginx:stable",
        "AcrInstanceId": "cri-fhzlneorxala66ip",
        "Command": "/bin/sh",
        "CommandArgs": "[\\\"-c\\\",\\\"echo \\\\\\\"test\\\\\\\" > /home/nas/test.log && sleep 10000000s\\\"]",
        "Envs": "[{\\\"name\\\":\\\"k1\\\",\\\"value\\\":\\\"c8e3a815-e5d3-4adf-abb3-98b106a607c4\\\"}]",
        "ConfigMapMountDesc": [
          {
            "Key": "key",
            "ConfigMapName": "ConfigMap-test",
            "MountPath": "/mnt/test",
            "ConfigMapId": 7361
          }
        ],
        "EmptyDirDesc": [
          {
            "Name": "sidecar-container",
            "MountPath": "/mnt/cache"
          }
        ]
      }
    ],
    "InitContainersConfig": [
      {
        "Name": "init-container",
        "ImageUrl": "registry.cn-shenzhen.aliyuncs.com/sae-serverless-demo/sae-demo:microservice-java-provider-v1.0",
        "Command": "/bin/sh",
        "CommandArgs": [
          "a",
          "b"
        ],
        "Envs": [
          {
            "name": "TEST_ENV_KEY",
            "value": "TEST_ENV_VAR"
          }
        ],
        "ConfigMapMountDesc": [
          {
            "Key": "k1\n",
            "ConfigMapName": "test\n",
            "MountPath": "/tmp\n",
            "ConfigMapId": 1
          }
        ]
      }
    ],
    "CustomImageNetworkType": "internet",
    "ResourceType": "application",
    "BaseAppId": "8c573618-8d72-4407-baf4-f7b64b******",
    "MicroserviceEngineConfig": "{\\\"Enable\\\":true,\\\"MseLosslessRule\\\":{\\\"enable\\\":true,\\\"notice\\\":true,\\\"delayTime\\\":10,\\\"warmupTime\\\":120,\\\"funcType\\\":2,\\\"aligned\\\":false,\\\"related\\\":false,\\\"lossLessDetail\\\":false}}",
    "NewSaeVersion": "pro",
    "ClusterId": "495fc79c-ae61-4600-866d-a09d68******",
    "DiskSize": 20,
    "StartupProbe": "{\\\"exec\\\":{\\\"command\\\":[\\\"/bin/sh\\\",\\\"-c\\\",\\\"#!Note: If microservice config is enabled, the application will be automatically injected with the prestop configuration for lossless offline. If you delete this prestop configuration, lossless offline will not be effective.\\\\n echo stop > /tmp/prestop; /home/admin/.tools/curl http://127.0.0.1:54199/offline; sleep 30\\\"]}}",
    "GpuCount": "",
    "GpuType": "",
    "EnablePrometheus": true,
    "IsStateful": true
  },
  "ErrorCode": "Null",
  "Code": 200,
  "Success": true
}

Error codes

HTTP status codeError codeError message
400InvalidApplication.NotFoundThe current application does not exist.
404InvalidAppId.NotFoundThe specified AppId does not exist.

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2025-11-27The Error code has changed. The response structure of the API has changedView Change Details
2025-11-04The Error code has changed. The response structure of the API has changedView Change Details
2025-10-24The Error code has changed. The response structure of the API has changedView Change Details
2025-10-13The Error code has changed. The response structure of the API has changedView Change Details
2025-09-29The Error code has changed. The response structure of the API has changedView Change Details
2025-09-18The Error code has changed. The response structure of the API has changedView Change Details
2025-07-30The Error code has changed. The response structure of the API has changedView Change Details
2025-07-29The Error code has changed. The response structure of the API has changedView Change Details
2025-07-04The Error code has changed. The response structure of the API has changedView Change Details
2025-05-29The Error code has changed. The response structure of the API has changedView Change Details
2025-05-26The Error code has changed. The response structure of the API has changedView Change Details
2025-04-25The Error code has changed. The response structure of the API has changedView Change Details
2025-04-07The Error code has changed. The response structure of the API has changedView Change Details
2025-02-26The Error code has changed. The response structure of the API has changedView Change Details
2025-02-13The Error code has changed. The response structure of the API has changedView Change Details
2025-01-20The Error code has changed. The response structure of the API has changedView Change Details
2025-01-13The Error code has changed. The response structure of the API has changedView Change Details
2025-01-02The Error code has changed. The response structure of the API has changedView Change Details
2024-12-26The Error code has changed. The response structure of the API has changedView Change Details
2024-12-17The Error code has changed. The response structure of the API has changedView Change Details