Retrieves basic information about an application.
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 |
The ID of the application. |
017f39b8-dfa4-4e16-a84b-1dcee4b1**** |
| AppName |
string |
No |
The name of the application. |
test |
| NamespaceId |
string |
No |
The ID of the namespace. |
cn-shenzhen |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| RequestId |
string |
The request ID. |
01CF26C7-00A3-4AA6-BA76-7E95F2A3**** |
| Message |
string |
The response message.
|
success |
| TraceId |
string |
The trace ID used to query the details of the request. |
ac1a0b2215622920113732501e**** |
| Application |
object |
The details of the application. |
|
| AppId |
string |
The application ID. |
443d638a-ef76-47c4-b707-61197d****** |
| AppName |
string |
The application name. |
test |
| AppDescription |
string |
The application description. |
for testing |
| NamespaceId |
string |
The namespace ID. |
cn-shenzhen |
| ScaleRuleType |
string |
The type of the auto scaling policy. Valid values:
|
timing |
| ScaleRuleEnabled |
string |
Indicates whether the auto scaling policy is enabled. Valid values:
|
true |
| RunningInstances |
integer |
The number of running instances. |
6 |
| Instances |
integer |
The total number of application instances. |
6 |
| Cpu |
integer |
The CPU required for each instance, in millicores. This value cannot be 0. Valid values:
|
2000 |
| Mem |
integer |
The memory required for each instance, in MB. This value cannot be 0. The memory specification is coupled with the CPU specification. The following configurations are supported:
|
4096 |
| MseEnabled |
boolean |
Indicates whether WebAssemblyFilter is enabled. Valid values:
|
true |
| MseNamespaceId |
string |
The namespace ID of the MSE instance. |
test |
| ProgrammingLanguage |
string |
The programming language of the application. Valid values:
|
java |
| BaseAppId |
string |
The base application ID. |
ee99cce6-1c8e-4bfa-96c3-3e2fa9****** |
| IsStateful |
boolean |
Indicates whether the application is stateful. |
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": "for testing",
"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.