All Products
Search
Document Center

Serverless App Engine:DescribeApplicationConfig

Last Updated:Mar 05, 2026

Retrieves the configuration of an application.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

sae:DescribeApplicationConfig

get

*All Resource

*

None None

Request syntax

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

Request parameters

Parameter

Type

Required

Description

Example

AppId

string

Yes

The ID of the application.

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

VersionId

string

No

The ID of the version.

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

Response elements

Element

Type

Description

Example

object

The returned data.

RequestId

string

The ID of the request.

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

Message

string

The additional information that is returned.

success

TraceId

string

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

ac1a0b2215622246421415014e****

Data

object

The information about the application.

VpcId

string

The ID of the VPC.

vpc-2ze0i263cnn311nvj****

Readiness

string

The readiness probe of the application. A container that fails the health check multiple times is shut down and restarted. A container that fails the health check does not receive traffic from SLB. You can perform the health check using the exec, httpGet, or tcpSocket method. For more information, see the Liveness parameter.

Note

Select only one method for a health check.

{"exec":{"command":["curl http://localhost:8080"]},"initialDelaySeconds":20,"timeoutSeconds":5}

ConfigMapMountDesc

array<object>

The information about the ConfigMap.

object

The information about the ConfigMap.

Key

string

The key-value pair of the ConfigMap.

k1

ConfigMapName

string

The name of the ConfigMap.

test

MountPath

string

The path on which the container is mounted.

/tmp

ConfigMapId

integer

The ID of the ConfigMap.

1

SecurityGroupId

string

The ID of the security group.

sg-wz969ngg2e49q5i4****

BatchWaitTime

integer

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

10

Jdk

string

The version of the JDK on which the deployment package 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 supported if PackageType is set to Image.

Open JDK 8

ImageUrl

string

The address of the image. This parameter is required if PackageType is set to Image.

docker.io/library/nginx:1.14.2

SlsConfigs

string

The configuration of collecting logs to SLS.

  • To use an SLS resource that is automatically created by SAE, specify the configuration in the following format: [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}].

  • To use a custom SLS resource, specify the configuration in the following format: [{"projectName":"test-sls","logType":"stdout","logDir":"","logstoreName":"sae","logtailName":""},{"projectName":"test","logDir":"/tmp/a.log","logstoreName":"sae","logtailName":""}].

The following parameters are included:

  • projectName: The name of the SLS project.

  • logDir: The path of the log.

  • logType: The type of the log. stdout indicates the standard output log of the container. You can specify only one log of this type. If you do not specify this parameter, file logs are collected.

  • logstoreName: The name of the Logstore in SLS.

  • logtailName: The name of the Logtail configuration in SLS. If you do not specify this parameter, a new Logtail configuration is created.

If you do not need to change the log collection configuration during a deployment, you do not need to specify this parameter. In this case, the value of the SlsConfigs parameter is not included in the request. If you no longer need to use the log collection feature, you must specify this parameter and set its value to an empty string in the request. In this case, the value of the SlsConfigs parameter is "".

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

Liveness

string

The liveness probe of the container. A container that fails the health check is shut down and restored. The following methods are supported:

  • exec: example: {"exec":{"command":\["sh","-c","cat/home/admin/start.sh"]},"initialDelaySeconds":30,"periodSeconds":30,"timeoutSeconds":2}

  • httpGet: example: {"httpGet":{"path":"/","port":18091,"scheme":"HTTP","isContainKeyWord":true,"keyWord":"SAE"},"initialDelaySeconds":11,"periodSeconds":10,"timeoutSeconds":1}

  • tcpSocket: example: {"tcpSocket":{"port":18091},"initialDelaySeconds":11,"periodSeconds":10,"timeoutSeconds":1}

Note

Select only one method for a health check.

The following parameters are included:

  • exec.command: The command that is used for the health check.

  • httpGet.path: The request path.

  • httpGet.scheme: HTTP or HTTPS.

  • httpGet.isContainKeyWord: Specifies whether the response contains a keyword. The value true indicates that the response contains a keyword. The value false indicates that the response does not contain a keyword. If you do not specify this parameter, the advanced feature is not used.

  • httpGet.keyWord: The custom keyword. This parameter is required if you set the isContainKeyWord parameter.

  • tcpSocket.port: The port that is used for the TCP connection check.

  • initialDelaySeconds: The delay for the health check. Default value: 10. Unit: seconds.

  • periodSeconds: The interval for the health check. Default value: 30. Unit: seconds.

  • timeoutSeconds: The timeout period for the health check. Default value: 1. Unit: seconds. If you set this parameter to 0 or do not specify this parameter, the default value is used.

{"exec":{"command":["curl http://localhost:8080"]},"initialDelaySeconds":20,"timeoutSeconds":3}

Tags

array<object>

The information about the tags.

object

The information about the tags.

Key

string

The key of the tag.

k1

Value

string

The value of the tag.

v1

PackageUrl

string

The URL of the deployment package. If you upload the deployment package using SAE, note the following points:

  • You cannot download the package from this URL. You must call the GetPackageVersionAccessableUrl operation to obtain a download URL that is valid for 10 minutes.

  • SAE stores the package for up to 90 days. After 90 days, the URL is not returned and you cannot download the package.

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

PackageType

string

The type of the application package. Valid values:

  • If you deploy the application using Java, valid values are FatJar, War, and Image.

  • If you deploy the application using PHP, valid values are:
    • 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

PreStop

string

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

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

PackageVersion

string

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

1.0

JarStartArgs

string

The startup parameters of the JAR package. The default startup command is $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

start

AppName

string

The name of the application.

demo-app

AppId

string

The ID of the application.

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

JarStartOptions

string

The startup options of the JAR package. The default startup command is $JAVA_HOME/bin/java $JarStartOptions -jar $CATALINA_OPTS "$package_path" $JarStartArgs.

-Dtest=true

Replicas

integer

The number of application instances.

2

UpdateStrategy

string

The release policy. If the minimum number of ready instances is 1, the value of the UpdateStrategy parameter is "". If the minimum number of ready instances is greater than 1, see the following examples:

  • Canary release of one instance, phased release in two batches, automatic batching, and a 1-minute interval between batches: {"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}

  • Canary release of one instance and phased release in two batches with manual batching: {"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"manual"},"grayUpdate":{"gray":1}}

  • Phased release in two batches, automatic batching, and a 0-minute interval between batches: {"type":"BatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":0}}

The following parameters are included:

  • type: The type of the release policy. Valid values: GrayBatchUpdate (canary release) and BatchUpdate (phased release).

  • batchUpdate: The phased release policy.
    • batch: The number of release batches.

    • releaseType: The processing method for batches. Valid values: auto and manual.

    • batchWaitTime: The interval between batches. Unit: seconds.

  • grayUpdate: The number of batches for the remaining instances after the canary release. This parameter is required if type is set to GrayBatchUpdate.

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

MinReadyInstances

integer

The minimum number of ready instances. Valid values:

  • If you set this parameter to 0, the application may be interrupted during an upgrade.

  • If you set this parameter to -1, the system uses a recommended value, which is 25% of the total number of instances. For example, if you have five instances, the minimum number of ready instances is 2 after rounding up.

Note

We recommend that you set the minimum number of ready instances to a value greater than or equal to 1 to ensure that the application is not interrupted during a rolling update.

1

MinReadyInstanceRatio

integer

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

  • -1: The default value. This value indicates that the percentage is not used. If you do not specify this parameter, the system uses the default value -1.

  • 0 to 100: The percentage of the minimum number of ready instances. The value is rounded up. For example, if you set this parameter to 50% and you have five instances, the minimum number of ready instances is 3.

Note

If you specify both MinReadyInstance and MinReadyInstanceRatio, and the value of MinReadyInstanceRatio is not -1, the value of MinReadyInstanceRatio takes precedence. For example, if MinReadyInstances is set to 5 and MinReadyInstanceRatio is set to 50, the minimum number of ready instances is calculated based on the value of MinReadyInstanceRatio.

-1

Memory

integer

The amount of memory that is required by each instance. Unit: MB. The value cannot be 0. This parameter is specified in a one-to-one correspondence with the CPU parameter. Only the following defined specifications are supported:

  • 1024: corresponds to 500 millicores and 1,000 millicores.

  • 2048: corresponds to 500, 1,000, and 2,000 millicores.

  • 4096: corresponds to 1,000, 2,000, and 4,000 millicores.

  • 8192: corresponds to 2,000, 4,000, and 8,000 millicores.

  • 12288: corresponds to 12,000 millicores.

  • 16384: corresponds to 4,000, 8,000, and 16,000 millicores.

  • 24576: corresponds to 12,000 millicores.

  • 32768: corresponds to 16,000 millicores.

  • 65536: corresponds to 8,000, 16,000, and 32,000 millicores.

  • 131072: corresponds to 32,000 millicores.

2048

Php

string

The version of PHP that is used for the deployment package. This parameter is not supported for images.

PHP-FPM 7.0

PhpConfig

string

The content of the PHP configuration file.

k1=v1

PhpConfigLocation

string

The path on which the startup configuration file of the PHP application is mounted. Make sure that the PHP server uses this configuration file to start.

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

PostStart

string

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

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

TerminationGracePeriodSeconds

integer

The timeout period for a graceful shutdown. Default value: 30. Unit: seconds. The value can range from 1 to 300.

10

CommandArgs

string

The parameters of the image startup command. The parameters are specified in the following format:

["a","b"]

In the example of the Command parameter, CommandArgs=["abc", ">", "file0"]. The value ["abc", ">", "file0"] must be converted into a string. The format of the string is a JSON array. If you do not specify this parameter, this parameter is not required.

["a","b"]

NamespaceId

string

The ID of the namespace.

cn-beijing:test

MountHost

string

The mount target of the NAS file system in the VPC. If you do not need to change the NAS configuration during a deployment, you do not need to specify this parameter. In this case, the value of the MountHost parameter is not included in the request. If you want to remove the NAS configuration, you must specify this parameter and set its value to an empty string in the request. In this case, the value of the MountHost parameter is "".

example.com

TomcatConfig

string

The configuration of the Tomcat file. To delete the configuration, set this parameter to "" or "{}".

  • port: The port number. The port number can range from 1024 to 65535. A port number smaller than 1024 requires the root permission to be operated. Because the container is configured with the admin permission, specify a port number that is greater than 1024. If you do not specify this parameter, the default port 8080 is used.

  • contextPath: The access path. The default value is the root directory "/".

  • maxThreads: The maximum number of connections in the connection pool. Default value: 400.

  • uriEncoding: The encoding format of Tomcat. Valid values: UTF-8, ISO-8859-1, GBK, and GB2312. If you do not specify this parameter, the default value ISO-8859-1 is used.

  • useBodyEncoding: Specifies whether to use BodyEncoding for URL. Default value: true.

{"port":8080,"contextPath":"/","maxThreads":400,"uriEncoding":"ISO-8859-1","useBodyEncodingForUri":true}

RegionId

string

The ID of the region.

cn-beijing

VSwitchId

string

The ID of the vSwitch.

vsw-2ze559r1z1bpwqxwp****

Cpu

integer

The number of CPU cores that are required by each instance. Unit: millicores. The value cannot be 0. Only the following defined specifications are supported:

  • 500

  • 1000

  • 2000

  • 4000

  • 8000

  • 16000

  • 32000

1000

Envs

string

The environment variables of the container. You can customize environment variables or reference ConfigMaps. To reference a ConfigMap, you must first create a ConfigMap instance. For more information, see CreateConfigMap. Valid values:

  • Custom configuration
    • name: The name of the environment variable.

    • value: The value of the environment variable.

  • Reference a configuration item
    • name: The name of the environment variable. You can reference a single key or all keys. To reference all keys, enter sae-sys-configmap-all-<ConfigMap name>, for example, sae-sys-configmap-all-test1.

    • valueFrom: The reference of the environment variable. Set the value to configMapRef.

    • configMapId: The ID of the ConfigMap.

    • key: The key. If you want to reference all keys, do not specify this parameter.

[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}]

MountDesc

array<object>

The description of the mount.

object

The description of the mount.

MountPath

string

The path on which the container is mounted.

/tmp

NasPath

string

The directory of the NAS file system.

/

EnableAhas

string

Specifies whether to enable access to AHAS. Valid values:

  • true: Enable access to AHAS.

  • false: Do not enable access to AHAS.

true

CustomHostAlias

string

The custom mapping between a domain name and an IP address in the container. Valid values:

  • hostName: The domain name or hostname.

  • ip: The IP address.

[{"hostName":"test.host.name","ip":"0.0.0.0"}]

WebContainer

string

The version of Tomcat on which the deployment package depends. The following versions are supported:

  • apache-tomcat-7.0.91

  • apache-tomcat-8.5.42

This parameter is not supported if PackageType is set to Image.

apache-tomcat-7.0.91

Command

string

The image startup command. The command must be an executable object that exists in the container. Example:

command:
      - echo
      - abc
      - >
      - file0

Based on the preceding example, Command="echo", CommandArgs=["abc", ">", "file0"].

echo

WarStartOptions

string

The startup options of the WAR package. The default startup command is java $JAVA_OPTS $CATALINA_OPTS -Options org.apache.catalina.startup.Bootstrap "$@" start.

custom-option

PhpArmsConfigLocation

string

The path on which the configuration file for application monitoring of a PHP application is mounted. Make sure that the PHP server loads the configuration file from this path.

SAE automatically renders the correct configuration file. You do not need to pay attention to the content of the configuration file.

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

NasId

string

The ID of the NAS file system.

AKSN****

OssAkId

string

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

xxxxxx

OssAkSecret

string

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

xxxxxx

OssMountDescs

array<object>

The description of the OSS mount.

object

The description of the OSS mount.

bucketName

string

The name of the bucket.

oss-bucket

bucketPath

string

The directory or object that you created in OSS. An error is reported if the mount directory does not exist.

data/user.data

mountPath

string

The path of the container in SAE. If the path exists, the path is overwritten. If the path does not exist, a new path is created.

/usr/data/user.data

readOnly

boolean

Specifies whether the container has the read permission on the mount directory. Valid values:

  • true: The container has only the read-only permission.

  • false: The container has the read and write permissions.

true

EdasContainerVersion

string

The version of the application runtime environment in the HSF framework, such as the Ali-Tomcat container.

3.5.3

Timezone

string

The time zone. Default value: Asia/Shanghai.

Asia/Shanghai

AppDescription

string

The description of the application.

示例应用

EnableGreyTagRoute

boolean

Specifies whether to enable the canary release rule. This rule is applicable only to applications that run in Spring Cloud and Dubbo. Valid values:

  • true: Enable the canary release rule.

  • false: Disable the canary release rule.

false

MseApplicationId

string

The ID of the application in MSE.

xxxxxxx@xxxxx

AcrInstanceId

string

The ID of the ACR Enterprise Edition instance.

cri-xxxxxx

AcrAssumeRoleArn

string

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

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

ImagePullSecrets

string

The ID of the secret.

10

AssociateEip

boolean

Specifies whether to bind an EIP to the application. Valid values:

  • true: Bind an EIP to the application.

  • false: Do not bind an EIP to the application.

true

KafkaConfigs

string

The summary of the configurations of collecting logs to Kafka. Valid values:

  • kafkaEndpoint: The endpoint of the Kafka API.

  • kafkaInstanceId: The ID of the Kafka instance.

  • kafkaConfigs: The summary of the configurations of one or more logs. For more information about the example and parameters, see the kafkaConfigs request parameter in this topic.

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

ProgrammingLanguage

string

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

  • java: Java

  • php: PHP

  • other: other languages, such as Python, C++, Go, and Node.js.

java

PvtzDiscovery

string

Enables service registration and discovery for a Kubernetes Service.

{ "serviceName": "bwm-poc-sc-gateway-cn-beijing-front", "namespaceId": "cn-beijing:front", "portAndProtocol": { "18012": "TCP" }, "portProtocols": [ { "port": "18012", "protocol": "TCP" } ], "enable": true }

SwimlanePvtzDiscovery

string

The configuration for service registration and discovery based on Kubernetes Service and for end-to-end canary release.

{\"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

string

The Nacos registry. Valid values:

  • 0: SAE built-in Nacos.

  • 1: User-created Nacos.

  • 2: MSE Nacos.

"0"

NasConfigs

string

The configuration of mounting a 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"}]

Python

string

The Python environment. PYTHON 3.9.15 is supported.

PYTHON 3.9.15

PythonModules

string

The dependencies for custom installation modules. By default, the dependencies defined by requirements.txt in the root directory are installed. If no software package is configured or a custom software package is used, you can specify the dependencies to be installed.

Flask==2.0

MseApplicationName

string

The name of the application after the SAE service is registered with MSE.

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

AppSource

string

The type of the SAE application.

  • micro_service.

  • web.

  • job.

micro_service

ServiceTags

object

The canary release tag of the application configuration.

string

The value of the canary release tag.

tag1

Dotnet

string

The version number of the .NET framework:

  • .NET 3.1

  • .NET 5.0

  • .NET 6.0

  • .NET 7.0

  • .NET 8.0

.NET 8.0

MicroRegistrationConfig

string

The configuration of the registry. This parameter takes effect only when the registry type is MSE Nacos.

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

EnableIdle

boolean

Specifies whether to enable idle mode:

  • Enable: true

  • Disable: false

false

EnableNewArms

boolean

Specifies whether to enable the new ARMS feature:

  • true: Enable

  • false: Do not enable

false

EnableCpuBurst

string

Specifies whether to enable the CPU burst feature:

  • true: Enable

  • false: Do not enable

true

OidcRoleName

string

Sets the RAM role for identity authentication.

Note

You must create an OIDC identity provider and an identity provider role in the same region in advance. For more information, see Create an OIDC IdP and Create a RAM role for a trusted IdP.

sae-test

SecretMountDesc

array<object>

The description of the secret that you want to mount.

object

The description of the secret that you want to mount.

Key

string

The key of the data value that is encoded in Base64.

task-center

SecretName

string

The name of the secret instance.

dummy-name-opaque-894

MountPath

string

The mount path.

/opt/www/runtime/logs

SecretId

integer

The ID of the queried secret instance.

520

SidecarContainersConfig

array<object>

The configuration of the sidecar container.

array<object>

The configuration of the sidecar container.

Name

string

The name of the container.

test

Cpu

integer

The maximum CPU resources that the sidecar container can use from the main container.

500

Memory

integer

The maximum memory resources that the sidecar container can use from the main container.

1024

ImageUrl

string

The address of the image.

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

AcrInstanceId

string

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

cri-fhzlneorxala66ip

Command

string

The image startup command. The command must be an executable object that exists in the container. Example:

command:
      - echo
      - abc
      - >
      - file0

Based on the preceding example, Command="echo", CommandArgs=["abc", ">", "file0"].

/bin/sh

CommandArgs

string

The parameters of the image startup command. The parameters are required by the preceding startup command Command. The parameters are specified in the following format:

["a","b"]

In the preceding example, CommandArgs=["abc", ">", "file0"]. The value ["abc", ">", "file0"] must be converted into a string. The format of the string is a JSON array. If you do not specify this parameter, this parameter is not required.

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

Envs

string

The environment variables of the container. You can customize environment variables or reference ConfigMaps. To reference a ConfigMap, you must first create a ConfigMap instance. For more information, see CreateConfigMap. Valid values:

  • Custom configuration
    • name: The name of the environment variable.

    • value: The value of the environment variable. This parameter takes precedence over valueFrom.

  • Reference a configuration item (valueFrom)
    • name: The name of the environment variable. You can reference a single key or all keys. To reference all keys, enter sae-sys-configmap-all-<ConfigMap name>, for example, sae-sys-configmap-all-test1.

    • valueFrom: The reference of the environment variable. Set the value to configMapRef.
      • configMapId: The ID of the ConfigMap.

      • key: The key. If you want to reference all keys, do not specify this parameter.

[{\"name\":\"k1\",\"value\":\"c8e3a815-e5d3-4adf-abb3-98b106a607c4\"}]

ConfigMapMountDesc

array<object>

The description of the ConfigMap that you want to mount. Use the configuration item that you created on the Namespace Configuration Items page to inject configuration information into the container. The following parameters are included:

  • configMapId: The ID of the ConfigMap instance. You can call the ListNamespacedConfigMaps operation to obtain the ID.

  • key: The key.

Note

You can pass the sae-sys-configmap-all parameter to mount all keys.

  • mountPath: The mount path.

  • ConfigMapName: The name of the ConfigMap.

object

The description of the ConfigMap that you want to mount.

Key

string

The key of the ConfigMap.

key

ConfigMapName

string

The name of the ConfigMap.

ConfigMap-test

MountPath

string

The path on which the container is mounted.

/mnt/test

ConfigMapId

integer

The ID of the ConfigMap instance.

7361

EmptyDirDesc

array<object>

The shared temporary storage. Set a temporary storage directory and mount it to the main container and the sidecar container.

object

The shared temporary storage.

Name

string

The name of the temporary storage.

sidecar-container

MountPath

string

The path on which the volume is mounted in the container.

/mnt/cache

SecretMountDesc

array<object>

object

Key

string

SecretName

string

MountPath

string

SecretId

integer

Liveness

string

Readiness

string

InitContainersConfig

array<object>

The configuration of the init container.

array<object>

The configuration of the init container.

Name

string

The name of the init container.

init-container

ImageUrl

string

The address of the image that is used by the init container.

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

Command

string

The image startup command. The command must be an executable object that exists in the container. Example:

command:
      - echo
      - abc
      - >
      - file0

Based on the preceding example, Command="echo", CommandArgs=["abc", ">", "file0"].

/bin/sh

CommandArgs

string

The parameters of the image startup command. The parameters are required by the preceding startup command Command. The parameters are specified in the following format:

["a","b"]

In the preceding example, CommandArgs=["abc", ">", "file0"]. The value ["abc", ">", "file0"] must be converted into a string. The format of the string is a JSON array. If you do not specify this parameter, this parameter is not required.

["a","b"]

Envs

string

The environment variables of the container. You can customize environment variables or reference ConfigMaps. To reference a ConfigMap, you must first create a ConfigMap instance. For more information, see CreateConfigMap. Valid values:

  • Custom configuration
    • name: The name of the environment variable.

    • value: The value of the environment variable. This parameter takes precedence over valueFrom.

  • Reference a configuration item (valueFrom)
    • name: The name of the environment variable. You can reference a single key or all keys. To reference all keys, enter sae-sys-configmap-all-<ConfigMap name>, for example, sae-sys-configmap-all-test1.

    • valueFrom: The reference of the environment variable. Set the value to configMapRef.

    • configMapId: The ID of the ConfigMap.

    • key: The key. If you want to reference all keys, do not specify this parameter.

  • Reference a secret (valueFrom)
    • name: The name of the environment variable. You can reference a single key or all keys. To reference all keys, enter sae-sys-secret-all-<Secret name>, for example, sae-sys-secret-all-test1.

    • valueFrom: The reference of the environment variable. Set the value to secretRef.

    • secretId: The ID of the secret.

    • key: The key. If you want to reference all keys, do not specify this parameter.

[{"name":"TEST_ENV_KEY","value":"TEST_ENV_VAR"}]

ConfigMapMountDesc

array<object>

The information about the ConfigMap.

object

The key-value pair of the ConfigMap.

Key

string

The key-value pair of the ConfigMap.

k1

ConfigMapName

string

The name of the ConfigMap.

test

MountPath

string

The path on which the container is mounted.

/tmp

ConfigMapId

integer

The ID of the ConfigMap.

1

EmptyDirDesc

array<object>

object

Name

string

MountPath

string

SecretMountDesc

array<object>

object

Key

string

SecretName

string

MountPath

string

SecretId

integer

CustomImageNetworkType

string

The type of the custom image. If you do not use a custom image, set this parameter to an empty string:

  • internet: public network image

  • intranet: private network image

internet

ResourceType

string

The resource type. Only application is supported.

application

BaseAppId

string

The ID of the baseline application.

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

MicroserviceEngineConfig

string

The configurations of microservice governance.

  • Specifies whether to enable microservice governance (enable):

    • true: Enable

    • false: Do not enable

  • The configuration of graceful start and shutdown (mseLosslessRule):

    • delayTime: The delay time.

    • enable: Specifies whether to enable graceful start. true indicates that graceful start is enabled. false indicates that graceful start is not enabled.

    • notice: Specifies whether to enable notifications. true indicates that notifications are enabled. false indicates that notifications are not enabled.

    • warmupTime: The warm-up duration of a small amount of traffic. Unit: seconds.

{\"Enable\":true,\"MseLosslessRule\":{\"enable\":true,\"notice\":true,\"delayTime\":10,\"warmupTime\":120,\"funcType\":2,\"aligned\":false,\"related\":false,\"lossLessDetail\":false}}

NewSaeVersion

string

The version of the application:

  • lite: Lightweight Edition

  • std: Standard Edition

  • pro: Professional Edition

pro

ClusterId

string

The ID of the cluster.

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

DiskSize

integer

The size of the disk. Unit: GB.

20

StartupProbe

string

The startup probe of the application.

{\"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

string

GpuType

string

EnablePrometheus

boolean

IsStateful

boolean

CmsServiceId

string

HeadlessPvtzDiscovery

string

Html

string

EmptyDirDesc

array<object>

object

Name

string

MountPath

string

DeploymentName

string

AlbIngressReadinessGate

string

MaxSurgeInstances

integer

MaxSurgeInstanceRatio

integer

AgentVersion

string

EnableNamespaceAgentVersion

boolean

SlsLogEnvTags

string

SLS log environment tags

LokiConfigs

string

IdleHour

string

Labels

object

string

ErrorCode

string

The error code. Possible values are as follows:

  • If the request succeeds, the ErrorCode field is not returned.

  • If the request fails, the ErrorCode field is returned. For details, see the error codes list in this topic.

Code

string

The API status or POP error code. Valid values:

  • 2xx: Success.

  • 3xx: Redirection.

  • 4xx: Request error.

  • 5xx: Server error.

200

Success

boolean

Indicates whether the application configuration information was retrieved successfully. Valid values:

  • true: The retrieval succeeded.

  • false: The retrieval failed.

true

Examples

Success response

JSON format

{
  "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.0",
    "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": "AKSN****",
    "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": "示例应用",
    "EnableGreyTagRoute": false,
    "MseApplicationId": "xxxxxxx@xxxxx",
    "AcrInstanceId": "cri-xxxxxx",
    "AcrAssumeRoleArn": "acs:ram::123456789012****:role/adminrole",
    "ImagePullSecrets": "10",
    "AssociateEip": true,
    "KafkaConfigs": "{\"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\"}]}",
    "ProgrammingLanguage": "java",
    "PvtzDiscovery": "{     \"serviceName\": \"bwm-poc-sc-gateway-cn-beijing-front\",     \"namespaceId\": \"cn-beijing:front\",     \"portAndProtocol\": {         \"18012\": \"TCP\"     },     \"portProtocols\": [         {             \"port\": \"18012\",             \"protocol\": \"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"
          }
        ],
        "SecretMountDesc": [
          {
            "Key": "",
            "SecretName": "",
            "MountPath": "",
            "SecretId": 0
          }
        ],
        "Liveness": "",
        "Readiness": ""
      }
    ],
    "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\"]\n",
        "Envs": "[{\"name\":\"TEST_ENV_KEY\",\"value\":\"TEST_ENV_VAR\"}]\n",
        "ConfigMapMountDesc": [
          {
            "Key": "k1\n",
            "ConfigMapName": "test\n",
            "MountPath": "/tmp\n",
            "ConfigMapId": 1
          }
        ],
        "EmptyDirDesc": [
          {
            "Name": "",
            "MountPath": ""
          }
        ],
        "SecretMountDesc": [
          {
            "Key": "",
            "SecretName": "",
            "MountPath": "",
            "SecretId": 0
          }
        ]
      }
    ],
    "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": false,
    "IsStateful": false,
    "CmsServiceId": "",
    "HeadlessPvtzDiscovery": "",
    "Html": "",
    "EmptyDirDesc": [
      {
        "Name": "",
        "MountPath": ""
      }
    ],
    "DeploymentName": "",
    "AlbIngressReadinessGate": "",
    "MaxSurgeInstances": 0,
    "MaxSurgeInstanceRatio": 0,
    "AgentVersion": "",
    "EnableNamespaceAgentVersion": false,
    "SlsLogEnvTags": "",
    "LokiConfigs": "",
    "IdleHour": "",
    "Labels": {
      "key": ""
    }
  },
  "ErrorCode": "空",
  "Code": "200",
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidApplication.NotFound The current application does not exist.
404 InvalidAppId.NotFound The specified AppId does not exist.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.