Obtient la liste des applications.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
sae:ListApplications |
get |
*All Resource
|
Aucune | Aucune |
Syntaxe de la requête
GET /pop/v1/sam/app/listApplications HTTP/1.1
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| CurrentPage |
integer |
Non |
Le numéro de la page actuelle. |
1 |
| PageSize |
integer |
Non |
Le nombre d'entrées par page dans une requête paginée. Valeurs valides : [0,10000]. |
20 |
| AppName |
string |
Non |
Le nom de l'application. |
demo-app |
| NamespaceId |
string |
Non |
L'identifiant de l'espace de noms. |
cn-beijing:demo |
| Tags |
string |
Non |
Les paires clé-valeur des balises. Valeurs valides :
Les balises sont sensibles à la casse. Si vous spécifiez plusieurs balises, toutes les balises spécifiées sont créées et attachées à la ressource. Chaque clé de balise d'une même ressource ne peut avoir qu'une seule valeur de balise. Si vous ajoutez une clé de balise qui existe déjà, la valeur de balise correspondante est mise à jour avec la nouvelle valeur. Les balises ne peuvent pas commencer par |
[{"key":"clé","value":"valeur"}] |
| OrderBy |
string |
Non |
Le champ selon lequel trier les applications. Valeurs valides :
|
runnings |
| Reverse |
boolean |
Non |
Indique si les instances d'application doivent être triées par état d'exécution. Si des instances ont le même état, elles sont triées par identifiant d'instance. Valeurs valides :
L'ordre croissant des instances est le suivant :
|
true |
| FieldType |
string |
Non |
La dimension selon laquelle filtrer les applications. Valeurs valides :
|
appName |
| FieldValue |
string |
Non |
Le nom de l'application, l'identifiant de l'application, l'adresse IP du SLB ou l'adresse IP de l'instance de l'application cible. |
demo-app |
| AppSource |
string |
Non |
Le type d'application Serverless App Engine (SAE).
|
micro_service |
| IsStateful |
string |
Non |
Indique si l'application est avec état. |
|
| NewSaeVersion |
string |
Non |
La version de l'application. Valeurs valides :
|
|
| ProgrammingLanguage |
string |
Non |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Les données de réponse. |
||
| Message |
string |
Les informations supplémentaires sur le résultat de l'appel. |
success |
| RequestId |
string |
L'identifiant de la requête. |
B4D805CA-926D-41B1-8E63-7AD0C1ED**** |
| Data |
object |
La liste des applications. |
|
| CurrentPage |
integer |
Le numéro de la page actuelle. |
1 |
| TotalSize |
integer |
Le nombre total d'applications. |
2 |
| PageSize |
integer |
La taille de la page. |
20 |
| Applications |
array<object> |
La liste des applications. |
|
|
array<object> |
Les informations de la liste des applications. |
||
| AppName |
string |
The application name. |
demo-app |
| NamespaceId |
string |
The namespace ID. |
cn-beijing:demo |
| AppDeletingStatus |
boolean |
Indicates whether the application is being deleted. Valid values:
|
false |
| AppId |
string |
The application ID. |
f7730764-d88f-4b9a-8d8e-cd8efbfe**** |
| Tags |
array<object> |
The application tags. |
|
|
object |
The application tag information. |
||
| Key |
string |
The tag key. |
key |
| Value |
string |
The tag value. |
value |
| RunningInstances |
integer |
The number of running instances. |
2 |
| Instances |
integer |
The number of application instances. |
2 |
| RegionId |
string |
The region ID. |
cn-beijing |
| AppDescription |
string |
The application description. |
description |
| Cpu |
integer |
The CPU required for each instance, in millicores. This value cannot be 0. Only the following defined specifications are supported:
|
1000 |
| Mem |
integer |
The memory required for each instance, in MB. This value cannot be 0. The memory has a one-to-one mapping with CPU. Only the following defined specifications are supported:
|
1024 |
| MseEnabled |
boolean |
Indicates whether MSE microservice governance is enabled for the application. |
true |
| MseNamespaceId |
string |
The MSE microservice governance namespace.
|
sae-ent |
| BaseAppId |
string |
The base application ID. This property exists only for canary release applications. |
xxx-xxx-xx-xxx |
| ProgrammingLanguage |
string |
The programming language of the application. |
java |
| Children |
array<object> |
The list of canary release applications for this application. |
|
|
array<object> |
The detailed information. |
||
| AppName |
string |
The application name. |
app1 |
| NamespaceId |
string |
The namespace ID. |
cn-beijing:demo |
| AppDeletingStatus |
boolean |
Indicates whether the application is being deleted. |
false |
| AppId |
string |
The application ID. |
xxx-xxx-xxx-xxx |
| ScaleRuleEnabled |
boolean |
Indicates whether the elastic scaling policy is enabled. |
false |
| ScaleRuleType |
string |
The type of the elastic scaling rule. |
timing |
| Tags |
array<object> |
The application tags. |
|
|
object |
The application tags. |
||
| Key |
string |
The tag key. |
key |
| Value |
string |
The tag value. |
value |
| RunningInstances |
integer |
The number of running instances. |
2 |
| Instances |
integer |
The number of instances. |
2 |
| RegionId |
string |
The region ID. |
cn-beijing |
| AppDescription |
string |
The application description. |
Test application |
| Cpu |
integer |
The CPU size. |
2000 |
| Mem |
integer |
The memory size. |
2048 |
| MseEnabled |
boolean |
Indicates whether MSE microservice governance is enabled for the application. |
true |
| BaseAppId |
string |
The base application ID. |
ee99cce6-1c8e-4bfa-96c3-3e2fa9****** |
| ProgrammingLanguage |
string |
The programming language of the application. |
java |
| AppType |
string |
The deployment type of the application. |
Image |
| NamespaceName |
string |
The namespace name. |
demo |
| IsStateful |
boolean |
Specifies whether the application is stateful. |
|
| NewSaeVersion |
string |
The application version. Valid values:
|
pro |
| ResourceType |
string |
The resource type. |
|
| EnableIdle |
string |
Indicates whether idle mode is enabled. |
|
| ImageUrl |
string |
The image URL. |
registry.cn-hangzhou.aliyuncs.com/sae-serverless-demo/sae-demo:microservice-java-provider-v1.0 |
| PackageUrl |
string |
The deployment package URL. |
https://sae-oss-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/apps/K8S_APP_ID/1421801774382676/adf2624a-66fd-4a2b-8caa-6921da******/hello-sae.jar |
| AppType |
string |
The deployment type of the application. |
Image |
| NamespaceName |
string |
The namespace name. |
demo |
| IsStateful |
boolean |
Specifies whether the application is stateful. |
|
| NewSaeVersion |
string |
The application version. Valid values:
|
pro |
| EnableIdle |
string |
Indicates whether idle mode is enabled. |
false |
| DiskSize |
integer |
The disk storage size, in GB. |
20 |
| VpcId |
string |
VPC ID。 |
|
| ResourceType |
string |
The resource type. |
|
| Labels |
object |
The labels. |
|
|
string |
|||
| RaspEnabled |
boolean |
||
| ErrorCode |
string |
Le code d'erreur. Valeurs valides :
|
|
| Code |
string |
Le statut de l'API ou le code d'erreur POP. Valeurs valides :
|
200 |
| Success |
boolean |
Indique si la liste des applications est récupérée. Valeurs valides :
|
true |
| CurrentPage |
integer |
Le numéro de la page actuelle. |
1 |
| TotalSize |
integer |
Le nombre total d'applications. |
2 |
| PageSize |
integer |
La taille de la page. |
20 |
Exemples
JSON format
{
"Message": "success",
"RequestId": "B4D805CA-926D-41B1-8E63-7AD0C1ED****",
"Data": {
"CurrentPage": 1,
"TotalSize": 2,
"PageSize": 20,
"Applications": [
{
"AppName": "demo-app",
"NamespaceId": "cn-beijing:demo",
"AppDeletingStatus": false,
"AppId": "f7730764-d88f-4b9a-8d8e-cd8efbfe****",
"Tags": [
{
"Key": "key",
"Value": "value"
}
],
"RunningInstances": 2,
"Instances": 2,
"RegionId": "cn-beijing",
"AppDescription": "description",
"Cpu": 1000,
"Mem": 1024,
"MseEnabled": true,
"MseNamespaceId": "sae-ent",
"BaseAppId": "xxx-xxx-xx-xxx",
"ProgrammingLanguage": "java",
"Children": [
{
"AppName": "app1",
"NamespaceId": "cn-beijing:demo",
"AppDeletingStatus": false,
"AppId": "xxx-xxx-xxx-xxx",
"ScaleRuleEnabled": false,
"ScaleRuleType": "timing",
"Tags": [
{
"Key": "key",
"Value": "value"
}
],
"RunningInstances": 2,
"Instances": 2,
"RegionId": "cn-beijing",
"AppDescription": "Test application",
"Cpu": 2000,
"Mem": 2048,
"MseEnabled": true,
"BaseAppId": " ee99cce6-1c8e-4bfa-96c3-3e2fa9******",
"ProgrammingLanguage": "java",
"AppType": "Image",
"NamespaceName": "demo",
"IsStateful": false,
"NewSaeVersion": "pro",
"ResourceType": "",
"EnableIdle": ""
}
],
"ImageUrl": "registry.cn-hangzhou.aliyuncs.com/sae-serverless-demo/sae-demo:microservice-java-provider-v1.0",
"PackageUrl": "https://sae-oss-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/apps/K8S_APP_ID/1421801774382676/adf2624a-66fd-4a2b-8caa-6921da******/hello-sae.jar",
"AppType": "Image",
"NamespaceName": "demo",
"IsStateful": false,
"NewSaeVersion": "pro",
"EnableIdle": "false",
"DiskSize": 20,
"VpcId": "",
"ResourceType": "",
"Labels": {
"key": ""
},
"RaspEnabled": false
}
]
},
"ErrorCode": "",
"Code": "200",
"Success": true,
"CurrentPage": 1,
"TotalSize": 2,
"PageSize": 20
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | Illegal.argument | Illegal argument |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.