Retrieves basic application information.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sae:GetApplication |
get |
*All Resource
|
None | None |
Request syntax
GET /pop/v1/sam/app/getApplication HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AppId |
string |
No |
Application ID. |
017f39b8-dfa4-4e16-a84b-1dcee4b1**** |
| AppName |
string |
No |
Application name. |
test |
| NamespaceId |
string |
No |
Namespace ID. |
cn-shenzhen |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response result. |
||
| RequestId |
string |
Request ID. |
01CF26C7-00A3-4AA6-BA76-7E95F2A3**** |
| Message |
string |
Additional information. Possible values:
|
success |
| TraceId |
string |
Trace ID used for precise query of call information. |
ac1a0b2215622920113732501e**** |
| Application |
object |
Detailed application information. |
|
| AppId |
string |
Application ID. |
443d638a-ef76-47c4-b707-61197d****** |
| AppName |
string |
Application name. |
test |
| AppDescription |
string |
Application description. |
测试 |
| NamespaceId |
string |
Namespace ID. |
cn-shenzhen |
| ScaleRuleType |
string |
Auto Scaling policy type. Possible values:
|
timing |
| ScaleRuleEnabled |
string |
Whether Auto Scaling is enabled. Possible values:
|
true |
| RunningInstances |
integer |
Number of running instances. |
6 |
| Instances |
integer |
Number of application instances. |
6 |
| Cpu |
integer |
CPU required per instance, in milli-cores. This value cannot be 0. The following defined specifications are currently supported:
|
2000 |
| Mem |
integer |
Memory required per instance, in MB. This value cannot be 0. Memory and CPU have a one-to-one mapping. The following defined specifications are currently supported:
|
4096 |
| MseEnabled |
boolean |
Whether WebAssemblyFilter is enabled. Values:
|
true |
| MseNamespaceId |
string |
Namespace ID of the MSE instance. |
test |
| ProgrammingLanguage |
string |
Technology stack language used to create the application. Possible values:
|
java |
| BaseAppId |
string |
Base application ID. |
ee99cce6-1c8e-4bfa-96c3-3e2fa9****** |
| IsStateful |
boolean |
Examples
Success response
JSON format
{
"RequestId": "01CF26C7-00A3-4AA6-BA76-7E95F2A3****",
"Message": "success",
"TraceId": "ac1a0b2215622920113732501e****",
"Application": {
"AppId": "443d638a-ef76-47c4-b707-61197d******",
"AppName": "test",
"AppDescription": "测试",
"NamespaceId": "cn-shenzhen",
"ScaleRuleType": "timing",
"ScaleRuleEnabled": "true",
"RunningInstances": 6,
"Instances": 6,
"Cpu": 2000,
"Mem": 4096,
"MseEnabled": true,
"MseNamespaceId": "test",
"ProgrammingLanguage": "java",
"BaseAppId": "ee99cce6-1c8e-4bfa-96c3-3e2fa9******",
"IsStateful": false
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidApplication.NotFound | The current application does not exist. | |
| 400 | InvalidParameter.WithMessage | The parameter is invalid {%s}: %s | |
| 400 | InvalidParameter.Obviously | The specified parameter is invalid {%s}. | |
| 400 | InvalidParameter.NotEmpty | You must specify the parameter %s. | |
| 400 | InvalidParameter.NoPermission | Resource no permission | |
| 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.