Deploys an application.
Debugging
Request headers
This operation uses only common request headers and does not have operation-specific request headers. For more information, see Common request and response headers.
Request syntax
POST /pop/v1/sam/app/deployApplication HTTP/1.1
Request parameters
Parameter | Type | Position | Required | Example | Description |
AppId | String | Query | Yes | 7171a6ca-d1cd-4928-8642-7d5cfe69**** | The ID of the application that you want to deploy. |
Jdk | String | Query | No | Open JDK 8 | The version of the JDK on which the deployment package of the application depends. Valid values:
This parameter is unavailable if the PackageType parameter is set to Image. |
WebContainer | String | Query | No | apache-tomcat-7.0.91 | The version of the Tomcat container on which the deployment package depends. Valid values:
This parameter is unavailable if the PackageType parameter is set to Image. |
PackageVersion | String | Query | No | 1.0.1 | The version of the deployment package. This parameter is required if the PackageType parameter is set to FatJar, War, or PythonZip. |
PackageUrl | String | Query | No | http://myoss.oss-cn-hangzhou.aliyuncs.com/my-buc/2019-06-30/****.jar | The URL of the deployment package. This parameter is required if the PackageType parameter is set to FatJar, War, or PythonZip. |
ImageUrl | String | Query | No | registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1 | The URL of the image. This parameter is required if the PackageType parameter is set to Image. |
Command | String | Query | No | echo | The command that is used to start the image. The command must be an existing executable object in the container. Example:
In this example, the Command parameter is set to |
CommandArgs | String | Query | No | ["a","b"] | The parameters of the image startup command. The CommandArgs parameter specifies the parameters that are required for the Command parameter. Format:
In the preceding example, the CommandArgs parameter is set to |
Envs | String | Query | No | [ { "name": "sae-sys-configmap-all-hello", "valueFrom": { "configMapRef": { "configMapId": 100, "key": "" } } }, { "name": "hello", "valueFrom": { "configMapRef": { "configMapId": 101, "key": "php-fpm" } } }, { "name": "envtmp", "value": "newenv" } ] | 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. The following parameters are involved:
|
CustomHostAlias | String | Query | No | [{"hostName":"samplehost","ip":"127.0.0.1"}] | The custom mapping between the hostname and IP address in the container. The following parameters are involved:
|
JarStartOptions | String | Query | No | custom-option | The option settings in the JAR package. The settings are used to start the application container. The default startup command is |
JarStartArgs | String | Query | No | -Xms4G -Xmx4G | The arguments in the JAR package. The arguments are used to start the application container. The default startup command is |
Liveness | String | Query | No | {"exec":{"command":["sleep","5s"]},"initialDelaySeconds":10,"timeoutSeconds":11} | The liveness check settings of the container. If a container fails this health check, the container is stopped and then restarted. Supported methods:
Note You can use only one method to perform the health check. The following parameters are involved:
|
Readiness | String | Query | No | {"exec":{"command":["sleep","6s"]},"initialDelaySeconds":15,"timeoutSeconds":12} | The readiness check settings of the container. If a container fails this health check multiple times, the container is stopped and then restarted. Containers that fail this health check cannot receive traffic from Server Load Balancer (SLB) instances. You can use the exec, httpGet, or tcpSocket method to perform the health check. For more information, see the Liveness parameter. Note You can use only one method to perform the health check. |
MinReadyInstances | Integer | Query | No | 1 | The minimum number of available instances. Valid values:
Note To ensure business continuity, make sure that at least one instance is available during application deployment and rollback. |
MinReadyInstanceRatio | Integer | Query | No | -1 | The ratio of the minimum number of available instances to the current number of instances. Valid values:
Note If the MinReadyInstance and MinReadyInstanceRatio parameters are configured and the MinReadyInstanceRatio parameter is set to a number from 0 to 100, the value of the MinReadyInstanceRatio parameter takes precedence. For example, if the MinReadyInstances parameter is set to 5, and the MinReadyInstanceRatio parameter is set to 50, the minimum number of available instances is set to the nearest integer rounded up from the calculated result of the following formula: Current number of instances × 50%. |
BatchWaitTime | Integer | Query | No | 10 | The interval between release batches. Unit: seconds. |
EdasContainerVersion | String | Query | No | 3.5.3 | The version of the container, such as Ali-Tomcat, in which an application that is developed based on High-speed Service Framework (HSF) is deployed. |
UpdateStrategy | String | Query | No | {"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}} | The release 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 policies can be configured:
The following parameters are involved:
|
SlsConfigs | String | Query | No | [{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}] | The logging configurations of Simple Log Service.
The following parameters are involved:
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 Simple Log Service, leave the SlsConfigs parameter empty in the request. Note The projects that are automatically created by SAE when you create applications are deleted when you delete the corresponding applications. Therefore, when you create an application, we recommend that you do not select an existing project that is automatically created by SAE for log collection. |
Timezone | String | Query | No | Asia/Shanghai | The time zone. Default value: Asia/Shanghai. |
NasId | String | Query | No | 10d3b4**** | We recommend that you configure NasConfigs instead of this parameter. The ID of the Apsara File Storage NAS (NAS) file system. If you do not need to modify the NAS configurations when you deploy the application, configure the NasId parameter only in the first request. You do not need to include this parameter in subsequent requests. If you no longer need to use NAS, leave the NasId parameter empty in the request. |
MountHost | String | Query | No | 10d3b4bc9****.com | We recommend that you configure NasConfigs instead of this parameter. The mount target of the NAS file system in the virtual private cloud (VPC) where the application is deployed. If you do not need to modify the NAS configurations when you deploy the application, configure the MountHost parameter only in the first request. You do not need to include this parameter in subsequent requests. If you no longer need to use NAS, leave the MountHost parameter empty in the request. |
MountDesc | String | Query | No | [{mountPath: "/tmp", nasPath: "/"}] | We recommend that you configure NasConfigs instead of this parameter. The description of the mounted NAS file system. If you do not need to modify the NAS configurations when you deploy the application, configure the MountDesc parameter only in the first request. You do not need to include this parameter in subsequent requests. If you no longer need to use NAS, leave the MountDesc parameter empty in the request. |
PostStart | String | Query | No | {"exec":{"command":["sh","-c","echo hello"]}} | The script that is run immediately after the container is started. Example: |
PreStop | String | Query | No | {"exec":{"command":["sh","-c","echo hello"]}} | The script that is run before the container is stopped. Example: |
ChangeOrderDesc | String | Query | No | Start Application | The description of the change order. |
WarStartOptions | String | Query | No | CATALINA_OPTS=\"$CATALINA_OPTS $Options\" catalina.sh run | The startup command of the WAR package. For information about how to configure the startup command, see Configure startup commands. |
AutoEnableApplicationScalingRule | Boolean | Query | No | true | Specifies whether to automatically enable an auto scaling policy for the application. Valid values:
|
ConfigMapMountDesc | String | FormData | No | [{"configMapId":16,"key":"test","mountPath":"/tmp"}] | The description of the ConfigMap that is mounted to the application. A ConfigMap that is created on the ConfigMaps page of a namespace is used to inject configurations into containers. The following parameters are involved:
Note You can specify
|
TerminationGracePeriodSeconds | Integer | Query | No | 10 | The timeout period for a graceful shutdown. Default value: 30. Unit: seconds. Valid values: 1 to 300. |
EnableAhas | String | Query | No | false | Specifies whether to enable access to Application High Availability Service (AHAS). Valid values:
|
PhpArmsConfigLocation | String | Query | No | /usr/local/etc/php/conf.d/arms.ini | 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. |
PhpConfigLocation | String | Query | No | /usr/local/etc/php/php.ini | 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. |
PhpConfig | String | FormData | No | k1=v1 | The details of the PHP configuration file. |
TomcatConfig | String | Query | No | {"port":8080,"contextPath":"/","maxThreads":400,"uriEncoding":"ISO-8859-1","useBodyEncodingForUri":true} | The Tomcat configuration. If you want to delete the configuration, set this parameter to {} or leave this parameter empty. The following parameters are involved:
|
OssMountDescs | String | FormData | No | [{"bucketName": "oss-bucket", "bucketPath": "data/user.data", "mountPath": "/usr/data/user.data", "readOnly": true}] | The description of the mounted Object Storage Service (OSS) bucket. The following parameters are involved:
|
OssAkId | String | FormData | No | xxxxxx | The AccessKey ID that is used to read data from and write data to OSS. |
OssAkSecret | String | FormData | No | xxxxxx | The AccessKey secret that is used to read data from and write data to OSS. |
EnableGreyTagRoute | Boolean | Query | No | false | Specifies whether to enable the traffic canary rule. Traffic canary release rules apply only to applications in Spring Cloud and Dubbo frameworks. Valid values:
|
Php | String | FormData | No | PHP-FPM 7.0 | The PHP version on which the PHP deployment package depends. This parameter is unavailable if you deploy applications by using images. |
AcrInstanceId | String | FormData | No | cri-xxxxxx | The ID of the Container Registry Enterprise Edition instance. This parameter is required if the ImageUrl parameter is set to the URL of an image in a Container Registry Enterprise Edition instance. |
AcrAssumeRoleArn | String | Query | No | acs:ram::123456789012****:role/adminrole | The Alibaba Cloud Resource Name (ARN) of the RAM role that is used to pull images across accounts. For more information, see Grant permissions across Alibaba Cloud accounts by using a RAM role. |
ImagePullSecrets | String | Query | No | 10 | The ID of the corresponding Secret. |
AssociateEip | Boolean | FormData | No | true | Specifies whether to associate an elastic IP address (EIP) with the application. Valid values:
|
KafkaConfigs | String | Query | No | {"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"}]} | The logging configurations of ApsaraMQ for Kafka. The following parameters are involved:
|
PvtzDiscoverySvc | String | Query | No | {"portProtocols":[{"port":18012,"protocol":"TCP"}],"portAndProtocol":{"18012":"TCP"},"enable":true} | The configurations of Kubernetes Service-based service registration and discovery. The following parameters are involved:
|
MicroRegistration | String | Query | No | "0" | The Nacos registry. Valid values:
|
NasConfigs | String | Query | No | [{"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"}] | The configurations for mounting the NAS file system. The following parameters are involved:
|
Python | String | Query | No | PYTHON 3.9.15 | The Python environment. Valid value: PYTHON 3.9.15. |
PythonModules | String | Query | No | Flask==2.0 | 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 or customized, you can specify dependencies based on your business requirements. |
Deploy | String | Query | No | true | This parameter takes effect only for applications that are in the Stopped state. If you call the DeployApplication operation to manage a running application, the application is immediately redeployed.
|
PackageType | String | Query | No | FatJar | The type of the deployment package. Valid values:
|
Cpu | Integer | Query | No | 1000 | The CPU specifications that are required for each instance. Unit: millicores. You cannot set this parameter to 0. Valid values:
|
Memory | Integer | Query | No | 1024 | The size of memory that is 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:
|
Replicas | Integer | Query | No | 1 | The number of instances. |
SecurityGroupId | String | Query | No | sg-wz969ngg2e49q5i4**** | The ID of the security group. |
VSwitchId | String | Query | No | vsw-bp12mw1f8k3jgygk9**** | The ID of the vSwitch to which the elastic network interface (ENI) of an application instance is connected. You can specify only a vSwitch that resides in the VPC specified by the VpcId parameter. |
Response parameters
Parameter | Type | Example | Description |
RequestId | String | 01CF26C7-00A3-4AA6-BA76-7E95F2A3*** | The request ID. |
Message | String | success | The returned message. Valid values:
|
TraceId | String | ac1a0b2215622246421415014e**** | The trace ID that is used to query the details of the request. |
Data | Object | The returned result. | |
ChangeOrderId | String | 01db03d3-3ee9-48b3-b3d0-dfce2d88**** | The ID of the change order. The ID can be used to query the status of the change task. |
AppId | String | 7171a6ca-d1cd-4928-8642-7d5cfe69**** | The ID of the application. |
IsNeedApproval | Boolean | true | Indicates whether approval is required when you release a change order as a RAM user. Valid values:
|
ErrorCode | String | Null | The error code. Valid values:
|
Code | String | 200 | The HTTP status code. Valid values:
|
Success | Boolean | true | Indicates whether the application was deployed. Valid values:
|
Examples
Sample requests
POST /pop/v1/sam/app/deployApplication?AppId=7171a6ca-d1cd-4928-8642-7d5cfe69****&Jdk=Open JDK 8&WebContainer=apache-tomcat-7.0.91&PackageVersion=1.0.1&PackageUrl=http://myoss.oss-cn-hangzhou.aliyuncs.com/my-buc/2019-06-30/****.jar&ImageUrl=registry.cn-hangzhou.aliyuncs.com/sae_test/ali_sae_test:0.0.1&Command=echo&CommandArgs=["a","b"]&Envs=[ { "name": "sae-sys-configmap-all-hello", "valueFrom": { "configMapRef": { "configMapId": 100, "key": "" } } }, { "name": "hello", "valueFrom": { "configMapRef": { "configMapId": 101, "key": "php-fpm" } } }, { "name": "envtmp", "value": "newenv" } ]&CustomHostAlias=[{"hostName":"samplehost","ip":"127.0.0.1"}]&JarStartOptions=custom-option&JarStartArgs=-Xms4G -Xmx4G&Liveness={"exec":{"command":["sleep","5s"]},"initialDelaySeconds":10,"timeoutSeconds":11}&Readiness={"exec":{"command":["sleep","6s"]},"initialDelaySeconds":15,"timeoutSeconds":12}&MinReadyInstances=1&MinReadyInstanceRatio=-1&BatchWaitTime=10&EdasContainerVersion=3.5.3&UpdateStrategy={"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}&SlsConfigs=[{"logDir":"","logType":"stdout"},{"logDir":"/tmp/a.log"}]&Timezone=Asia/Shanghai&NasId=10d3b4****&MountHost=10d3b4bc9****.com&MountDesc=[{mountPath: "/tmp", nasPath: "/"}]&PostStart={"exec":{"command":["sh","-c","echo hello"]}}&PreStop={"exec":{"command":["sh","-c","echo hello"]}}&ChangeOrderDesc=Start Application&WarStartOptions=CATALINA_OPTS=\"$CATALINA_OPTS $Options\" catalina.sh run&AutoEnableApplicationScalingRule=true&TerminationGracePeriodSeconds=10&EnableAhas=false&PhpArmsConfigLocation=/usr/local/etc/php/conf.d/arms.ini&PhpConfigLocation=/usr/local/etc/php/php.ini&TomcatConfig={"port":8080,"contextPath":"/","maxThreads":400,"uriEncoding":"ISO-8859-1","useBodyEncodingForUri":true}&EnableGreyTagRoute=false&AcrAssumeRoleArn=acs:ram::123456789012****:role/adminrole&ImagePullSecrets=10&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"}]}&PvtzDiscoverySvc={"portProtocols":[{"port":18012,"protocol":"TCP"}],"portAndProtocol":{"18012":"TCP"},"enable":true}&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&Deploy=true&PackageType=FatJar&Cpu=1000&Memory=1024&Replicas=1&SecurityGroupId=sg-wz969ngg2e49q5i4****&VSwitchId=vsw-bp12mw1f8k3jgygk9**** HTTP/1.1
Host:sae.aliyuncs.com
Content-Type:application/json
ConfigMapMountDesc=[{"configMapId":16,"key":"test","mountPath":"/tmp"}]&PhpConfig=k1=v1&OssMountDescs=[{"bucketName": "oss-bucket", "bucketPath": "data/user.data", "mountPath": "/usr/data/user.data", "readOnly": true}]&OssAkId=xxxxxx&OssAkSecret=xxxxxx&Php=PHP-FPM 7.0&AcrInstanceId=cri-xxxxxx&AssociateEip=true
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeployApplicationResponse>
<RequestId>01CF26C7-00A3-4AA6-BA76-7E95F2A3***</RequestId>
<Message>success</Message>
<TraceId>ac1a0b2215622246421415014e****</TraceId>
<Data>
<ChangeOrderId>01db03d3-3ee9-48b3-b3d0-dfce2d88****</ChangeOrderId>
<AppId>7171a6ca-d1cd-4928-8642-7d5cfe69****</AppId>
<IsNeedApproval>true</IsNeedApproval>
</Data>
<Code>200</Code>
<Success>true</Success>
</DeployApplicationResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "01CF26C7-00A3-4AA6-BA76-7E95F2A3***",
"Message" : "success",
"TraceId" : "ac1a0b2215622246421415014e****",
"Data" : {
"ChangeOrderId" : "01db03d3-3ee9-48b3-b3d0-dfce2d88****",
"AppId" : "7171a6ca-d1cd-4928-8642-7d5cfe69****",
"IsNeedApproval" : true
},
"Code" : "200",
"Success" : true
}
Error codes
HttpCode | Error code | Error message | Description |
400 | Application.MissingJdk | Your application must at least contain a JDK component. | No JDK component is specified. |
400 | InvalidApplication.NotFound | The current application does not exist. | The specified application is not found. |
400 | InvalidComponent.NotFound | The current component (such as JDK, Tomcat, or EDASWebContainer) does not exist. | The specified component (JDK, Tomcat, or EDASWebContainer) is not found. |
400 | InvalidHostnameIp.Invalid | The hostname and/or IP is invalid: Hostname [%s], IP [%s]. | The hostname [%s] or the IP address [%s] is invalid. |
400 | InvalidInstanceSpecification.Unsupported | The instance specification is not supported: CPU [%s], memory [%s]. | The following instance type is not supported: CPU[%s], Memory[%s]. |
400 | InvalidPackageType.NotFound | The package type must be War, FatJar, or Image. | The PackageType parameter is not set to War, FatJar, or Image. |
400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | The value of the %s parameter is invalid. This parameter cannot be left empty. |
400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | The value of the {%s} parameter is invalid. |
400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | The value %s of the {%s} parameter is invalid. |
400 | JarApplication.MissingJdk | A FatJar application must contain JDK. | No JDK is specified for the application whose package type is FatJar. |
400 | PandoraApplication.MissingJdk | The Pandora application is missing a JDK component. | No JDK is found for the Pandora application. |
400 | PandoraApplication.OnlyJdk | A Pandora application only requires JDK component. | Components other than JDK were specified for the Pandora application. |
400 | WarApplication.MissingJdkWebcontainer | A War application must contain JDK and Tomcat. | No JDK or Tomcat is specified for the WAR application. You must specify both JDK and Tomcat. |
400 | LogService.ConfigQuotaExceed | The maximum number of Log Service configs is exceeded. | The number of logging configurations of Simple Log Service exceeds the limit. Join the DingTalk group 32874633 for technical support. |
400 | LogService.InternalError | An exception occurred while calling Log Service. Please submit a ticket to solve the problem. | Simple Log Service failed to be called. Join the DingTalk group 32874633 for technical support. |
400 | LogService.LogDirInvalid | The log collection path is invalid. | The path for log collection is invalid. |
400 | LogService.NotAvailable | Log Service is unavailable. Please activate Log Service first. | Simple Log Service is unavailable. Activate Simple Log Service. |
400 | LogService.ProjectNumQuotaExceed | The maximum number of Log Service projects is exceeded. | The number of Simple Log Service projects exceeds the limit. Join the DingTalk group 32874633 for technical support. |
400 | user.indebt | The user has an outstanding payment. | The current user has overdue payments. |
400 | NoComputeResourceQuota.App.Exceed | You can create %s instances for each application. Please submit a ticket to raise the quota. | A maximum of %s instances can be created for each application. Join the DingTalk group 32874633 for technical support. |
400 | NoComputeResourceQuota.User.Exceed | Your account is limited to create %s instances. Please submit a ticket to raise the quota. | A maximum of %s instances can be created within your account. Join the DingTalk group 32874633 for technical support. |
400 | System.Upgrading | The system is being upgraded. Please try again later. | The system is being upgraded. Try again later. |
400 | VolumnPath.Conflict | Conflict between log collection directory and persistent storage directory. | The log collection directory conflicts with the persistent storage directory. |
400 | Application.ChangerOrderRunning | An application change process is in progress. Please try again later. | An application change is in progress. Try again later. |
400 | Application.InvalidStatus | The application status is abnormal. Please try again later. | The application is in an abnormal state. Try again later. |
400 | MountConflict.ConfigMap | Conflict detected for ConfigMap path %s. | The %s path on which you want to mount the ConfigMap is occupied. |
400 | NotFound.ConfigMap | The ConfigMap object (ID: %s) does not exist. | The specified ConfigMap whose ID is %s does not exist. |
400 | NotFound.ConfigMapKey | The key %s of ConfigMap object (ID: %s) does not exist. | The %s key of the ConfigMap whose ID is %s does not exist. |
400 | Package.Version.Too.Long | The maximum length of package version is exceeded. | The length of the version number of the deployment package exceeds the limit. |
400 | App.Package.Version.Exists | The package version of application already exists. | The version number of the deployment package already exists. |
400 | Slb.Occupied | The SLB instance is occupied. | The SLB instance is occupied. |
400 | Slb.Tag.Not.Qualified | The current SLB instance cannot be reused because it may have been occupied by %s. | The SLB instance is being used by %s. We recommend that you choose another SLB instance. |
400 | MinReadyInstances.Not.Smaller.Replicas | The minimum number of available instances must be less than the number of application instances. | The minimum number of available instances is larger than or equal to the total number of instances. |
400 | MinReadyInstanceRatio.Invalid | The ratio of minimum available instances must be between 0 and 100. | The value of the MinReadyInstanceRatio parameter is invalid. The parameter value must be an integer from 0 to 100. |
400 | BatchWaitTime.Not.Smaller.Zero | BatchWaitTime must not be smaller than zero. | The value of the BatchWaitTime parameter is smaller than or equal to 0. |
400 | Sls.Config.Mixed.Multi.Project | The specified Config contains multiple projects. | Multiple projects are specified in the SlsConfigs parameter. |
400 | Sls.Config.User.Defined.Missing.Logstore.Info | The specified Config is invalid. Both Project and Logstore must be specified. | The logstoreName parameter is not specified in the custom configurations of the SlsConfigs parameter. |
400 | Sls.Config.User.Defined.Missing.Project.Info | The specified Config is invalid. Both Project and Logstore must be specified. | The projectName parameter is not specified in the custom configurations of the SlsConfigs parameter. |
400 | Sls.Logstore.Name.Invalid | The specified name of Logstore is invalid. The Logstore name must not contain the prefix "sae-". | The specified Logstore name is prefixed by "sae-". This prefix can only be used for the Logstores automatically created by SAE. |
400 | Sls.Logstore.User.Defined.Not.Exist | The user defined Logstore does not exist. | The specified Logstore does not exist. |
400 | Sls.Project.Name.Invalid | The specified project name is invalid. The project name must not contain the prefix "sae-". | The specified project name is prefixed by "sae-". This prefix can only be used for the projects automatically created by SAE. |
400 | Sls.Project.User.Defined.Not.Exist | The user defined project does not exist. | The specified project does not exist. |
400 | Sae.Errorcode.Ahas.Create.Error.Message | Failed to create AHAS. | Access to AHAS failed to be enabled. |
400 | InvalidImageUrl.AcrInstanceId.Domain.NotMatch | The specified domain of ImageUrl does not match AcrInstanceId domains. | The domain name in the value of the ImageURL parameter does not match the domain name in the value of the AcrInstanceId parameter. |
400 | PhpApplication.MissingPhpRuntime | A PHP application must contain PHP Runtime. | The PHP runtime is not specified for the PHP application. |
400 | InvalidParameter.FileName | The application deployment package name is invalid. This name can contain only alphanumeric characters, hyphens (-), and underscores (_). For deploying java package, you can upload JAR files only if the selected deployment version supports JAR file. Otherwise, upload WAR files only. For deploying php package, you can upload ZIP files only if the selected deployment version supports ZIP file. | The name of the application package is invalid. The name can contain only letters, digits, hyphens (-), and underscores (_). To use JAR packages, make sure that the specified version supports JAR packages. Otherwise, you can only use WAR packages to deploy Java applications. To use zip files to deploy PHP packages, make sure that the specified version supports using zip files. |
400 | Sls.Logtail.Name.Invalid | The specified name of Logtail is invalid. The Logtail name must not contain the prefix sae-. | The specified Logtail configuration name is prefixed by "sae-". This prefix can only be used for the Logtail configurations automatically created by SAE. |
400 | InvalidImageUrl.MissingAcrInstanceId | The specified domain of ImageUrl is from ACREE, but you are not specified AcrInstanceId. | The domain name in the value of the ImageUrl parameter is the domain name of a Container Registry Enterprise Edition instance, but the AcrInstanceId parameter is not configured. |
404 | InvalidNamespaceId.NotFound | The specified NamespaceId does not exist. | The specified namespace ID does not exist. |
404 | InvalidAcrInstanceId.NotFound | The specified AcrInstanceId does not exist. | The specified Container Registry instance ID does not exist. |
404 | Associate.Eip.Not.Enough | No sufficient EIPs are available. | No EIP is available to be associated with the application. Purchase EIPs. |
For a list of error codes, see Service error codes.