Queries information about an application that is deployed in a Container Service Kubernetes or serverless Kubernetes cluster.
Debugging
Request headers
This operation uses only the common request header. For more information, see Common request parameters.
Request syntax
GET /pop/v5/changeorder/co_application HTTPS|HTTP
Request parameters
Parameter | Type | Position | Required | Example | Description |
---|---|---|---|---|---|
AppId | String | Query | Yes | 5a166fbd-****-4f98-a286-781659d9**** |
The ID of the application. You can call the ListApplication operation to query application IDs. For more information, see ListApplication. |
From | String | Query | No | deploy |
The source from which data is queried.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Applcation | Struct |
The information about the application. |
|
App | Struct |
The basic information about the application. |
|
AppId | String | 00ee517d-dd7d-4d4e-****-**** |
The ID of the application. You can call the ListApplication operation to query application IDs. For more information, see ListApplication. |
ApplicationName | String | test |
The name of the application. |
ApplicationType | String | War |
The type of the application. |
BuildpackId | Integer | 57 |
The build package number of EDAS Container. |
ClusterId | String | c37aec2a-bcca-4ec1-****-**** |
The ID of the cluster. |
Cmd | String | ls |
The startup command. |
CmdArgs | List | -lh |
The startup parameters. |
CsClusterId | String | c383bc813c1974e****451b50c0c8**** |
The ID of the Kubernetes cluster. |
DeployType | String | Image |
The deployment type of the application, for example, Image. |
EdasContainerVersion | String | 3.60.0 |
The version of EDAS Container. |
EnvList | Array of Env |
A list of environment variables. |
|
Env | |||
Name | String | CATALINA_OPTS |
The name of the environment variable. |
Value | String | -Xmx 1024m -Dhsf.default.tid=false $(EDAS_CATALINA_OPTS) |
The value of the environment variable. |
Instances | Integer | 4 |
The number of application instances. |
InstancesBeforeScaling | Integer | 10 |
The number of application instances before the last operation of auto scaling is performed. |
TomcatVersion | String | 8.5.55 |
The version of Apache Tomcat. |
AppId | String | a5281053-****-47a5-b2ab-5c0323de**** |
The ID of the application. You can call the ListApplication operation to query application IDs. For more information, see ListApplication. |
Conf | Struct |
The configuration of the application. |
|
AhasEnabled | Boolean | true |
Indicates whether the application is connected to Application High Availability Service (AHAS). |
DeployAcrossNodes | String | true |
Indicates whether the application instances are deployed across nodes.
|
DeployAcrossZones | String | true |
Indicates whether the application instances are deployed across zones.
|
JarStartArgs | String | -lh |
The startup parameters for the JAR package. This parameter is obsolete. |
JarStartOptions | String | -h |
The startup options for the JAR package. This parameter is obsolete. |
K8sCmd | String | ls |
The startup command. |
K8sCmdArgs | String | -lh |
The startup parameters. |
K8sLocalvolumeInfo | String | [{"type":"","nodePath":"/mnt/","mountPath":"/mnt/"}] |
The information about the local storage. |
K8sNasInfo | String | [{"nasPath":"/mnt/","mountPath":"/mnt/"}] |
The information about the Apsara File Storage NAS (NAS) storage. |
K8sVolumeInfo | String | "{\"hostPaths\":\"[]\",\"emptyDirs\":\"[]\"}" |
The information about the storage. |
Liveness | String | {"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"tcpSocket":{"host":"", "port":8080}} |
The monitoring information about the container liveness in the Kubernetes cluster. |
PostStart | String | {\"exec\":{\"command\":[\"ls\",\"/\"]}}" |
The running status of the container in the Kubernetes cluster after the container is started. |
PreStop | String | {\"exec\":{\"command\":[\"ls\",\"/\"]}}" |
The running status of the container in the Kubernetes cluster before the container is stopped. |
Readiness | String | {"failureThreshold": 3,"initialDelaySeconds": 5,"successThreshold": 1,"timeoutSeconds": 1,"httpGet": {"path": "/consumer","port": 8080,"scheme": "HTTP","httpHeaders": \[{"name": "test","value": "testvalue"}\]}} |
The running status of the application in the Kubernetes cluster. |
RuntimeClassName | String | runc |
The type of the container runtime. This parameter is applicable only to clusters that run sandboxed containers. |
DeployGroups | Array of DeployGroup |
A list of application instance groups. |
|
DeployGroup | |||
Components | Array of Components |
A list of components. |
|
Components | |||
ComponentId | String | 5 |
The ID of the component. |
ComponentKey | String | Open JDK 8 |
The keyword that is included in the component name. |
ImageInfo | Struct |
The information about the image. |
|
ImageUrl | String | registry.cn-beijing.aliyuncs.com/edas-serverless-****/1314839****06888_shared_repo:5a166fbd-9d76-4f98-****-78165****c_1572***282 |
The URL of the image. |
RegionId | String | cn-beijing |
The ID of the region where the image is deployed. |
RepoId | String | cn-hangzhou |
The ID of the image repository. |
RepoName | String | 131****067006888_shared_repo |
The name of the image repository. |
RepoNamespace | String | edas-server****-user |
The namespace in which the image repository is deployed. |
RepoOriginType | String | ALI_HUB |
The type of the image repository. |
Tag | String | 5a166fbd-9d76-4f98-****-781659d9f54c_1572485443282 |
The tag of the image. |
Code | Integer | 200 |
The HTTP status code. |
Message | String | success |
The additional information. |
RequestId | String | 1053-08e4-47a5-b2ab-5c0323de7b5a |
The ID of the request. |
Examples
Sample requests
GET /pop/v5/changeorder/co_application HTTP/1.1
Common request parameters
{
"AppId": "5a166fbd-****-4f98-a286-781659d9f54c"
}
Sample success responses
XML
format
<Message>success</Message>
<RequestId>1053-08e4-47a5-b2ab-5c0323de7b5a</RequestId>
<Applcation>
<App>
<DeployType>Image</DeployType>
<Liveness>""</Liveness>
<BuildpackId>57</BuildpackId>
<K8sLocalvolumeInfo>{\"emptyDirs\":[],\"hostPaths\":[]}</K8sLocalvolumeInfo>
<AhasEnabled>true</AhasEnabled>
<K8sNasInfo>""</K8sNasInfo>
<JarStartArgs>""</JarStartArgs>
<K8sCmd>""</K8sCmd>
<RepoOriginType>ALI_HUB</RepoOriginType>
<K8sCmdArgs>""</K8sCmdArgs>
<PreStop>""</PreStop>
<Readiness>""</Readiness>
<Cmd>""</Cmd>
<RepoNamespace>edas-server****-user</RepoNamespace>
<RepoName>131****067006888_shared_repo</RepoName>
<ImageUrl>registry.cn-beijing.aliyuncs.com/edas-serverless-****/1314839****06888_shared_repo:5a166fbd-9d76-4f98-****-78165****c_1572***282</ImageUrl>
<PostStart>""</PostStart>
<DeployAcrossZones>true</DeployAcrossZones>
<JarStartOptions>""</JarStartOptions>
<InstancesBeforeScaling>1</InstancesBeforeScaling>
<EnvList>
<Env>
<Value>""</Value>
<Name>""</Name>
</Env>
</EnvList>
<ApplicationType>War</ApplicationType>
<K8sVolumeInfo>""</K8sVolumeInfo>
<CmdArgs>""</CmdArgs>
<EdasContainerVersion>""</EdasContainerVersion>
<RuntimeClassName>""</RuntimeClassName>
<RegionId>cn-beijing</RegionId>
<Tag>5a166fbd-9d76-4f98-****-781659d9f54c_1572485443282</Tag>
<TomcatVersion>""</TomcatVersion>
<RepoId>""</RepoId>
</App>
<AppId>a5281053-****-47a5-b2ab-5c0323de****</AppId>
<Conf>
<DeployType>Image</DeployType>
<Liveness>""</Liveness>
<BuildpackId>57</BuildpackId>
<K8sLocalvolumeInfo>{\"emptyDirs\":[],\"hostPaths\":[]}</K8sLocalvolumeInfo>
<AhasEnabled>true</AhasEnabled>
<K8sNasInfo>""</K8sNasInfo>
<JarStartArgs>""</JarStartArgs>
<K8sCmd>""</K8sCmd>
<RepoOriginType>ALI_HUB</RepoOriginType>
<K8sCmdArgs>""</K8sCmdArgs>
<PreStop>""</PreStop>
<Readiness>""</Readiness>
<Cmd>""</Cmd>
<RepoNamespace>edas-server****-user</RepoNamespace>
<RepoName>131****067006888_shared_repo</RepoName>
<ImageUrl>registry.cn-beijing.aliyuncs.com/edas-serverless-****/1314839****06888_shared_repo:5a166fbd-9d76-4f98-****-78165****c_1572***282</ImageUrl>
<PostStart>""</PostStart>
<DeployAcrossZones>true</DeployAcrossZones>
<JarStartOptions>""</JarStartOptions>
<InstancesBeforeScaling>1</InstancesBeforeScaling>
<EnvList>
<Env>
<Value>""</Value>
<Name>""</Name>
</Env>
</EnvList>
<ApplicationType>War</ApplicationType>
<K8sVolumeInfo>""</K8sVolumeInfo>
<CmdArgs>""</CmdArgs>
<EdasContainerVersion>""</EdasContainerVersion>
<RuntimeClassName>""</RuntimeClassName>
<RegionId>cn-beijing</RegionId>
<Tag>5a166fbd-9d76-4f98-****-781659d9f54c_1572485443282</Tag>
<TomcatVersion>""</TomcatVersion>
<RepoId>""</RepoId>
</Conf>
<ImageInfo>
<DeployType>Image</DeployType>
<Liveness>""</Liveness>
<BuildpackId>57</BuildpackId>
<K8sLocalvolumeInfo>{\"emptyDirs\":[],\"hostPaths\":[]}</K8sLocalvolumeInfo>
<AhasEnabled>true</AhasEnabled>
<K8sNasInfo>""</K8sNasInfo>
<JarStartArgs>""</JarStartArgs>
<K8sCmd>""</K8sCmd>
<RepoOriginType>ALI_HUB</RepoOriginType>
<K8sCmdArgs>""</K8sCmdArgs>
<PreStop>""</PreStop>
<Readiness>""</Readiness>
<Cmd>""</Cmd>
<RepoNamespace>edas-server****-user</RepoNamespace>
<RepoName>131****067006888_shared_repo</RepoName>
<ImageUrl>registry.cn-beijing.aliyuncs.com/edas-serverless-****/1314839****06888_shared_repo:5a166fbd-9d76-4f98-****-78165****c_1572***282</ImageUrl>
<PostStart>""</PostStart>
<DeployAcrossZones>true</DeployAcrossZones>
<JarStartOptions>""</JarStartOptions>
<InstancesBeforeScaling>1</InstancesBeforeScaling>
<EnvList>
<Env>
<Value>""</Value>
<Name>""</Name>
</Env>
</EnvList>
<ApplicationType>War</ApplicationType>
<K8sVolumeInfo>""</K8sVolumeInfo>
<CmdArgs>""</CmdArgs>
<EdasContainerVersion>""</EdasContainerVersion>
<RuntimeClassName>""</RuntimeClassName>
<RegionId>cn-beijing</RegionId>
<Tag>5a166fbd-9d76-4f98-****-781659d9f54c_1572485443282</Tag>
<TomcatVersion>""</TomcatVersion>
<RepoId>""</RepoId>
</ImageInfo>
</Applcation>
<Code>200</Code>
JSON
format
{
"Message": "success",
"RequestId": "1053-08e4-47a5-b2ab-5c0323de7b5a",
"Applcation": {
"App": {
"DeployType": "Image",
"Liveness": """",
"BuildpackId": 57,
"K8sLocalvolumeInfo": "{\\\"emptyDirs\\\":[],\\\"hostPaths\\\":[]}",
"AhasEnabled": true,
"K8sNasInfo": """",
"JarStartArgs": """",
"K8sCmd": """",
"RepoOriginType": "ALI_HUB",
"K8sCmdArgs": """",
"PreStop": """",
"Readiness": """",
"Cmd": """",
"RepoNamespace": "edas-server****-user",
"RepoName": "131****067006888_shared_repo",
"ImageUrl": "registry.cn-beijing.aliyuncs.com/edas-serverless-****/1314839****06888_shared_repo:5a166fbd-9d76-4f98-****-78165****c_1572***282",
"PostStart": """",
"DeployAcrossZones": true,
"JarStartOptions": """",
"InstancesBeforeScaling": 1,
"EnvList": {
"Env": {
"Value": """",
"Name": """"
}
},
"ApplicationType": "War",
"K8sVolumeInfo": """",
"CmdArgs": """",
"EdasContainerVersion": """",
"RuntimeClassName": "\"\"",
"RegionId": "cn-beijing",
"Tag": "5a166fbd-9d76-4f98-****-781659d9f54c_1572485443282",
"TomcatVersion": """",
"RepoId": """"
},
"AppId": "a5281053-****-47a5-b2ab-5c0323de****",
"Conf": {
"DeployType": "Image",
"Liveness": """",
"BuildpackId": 57,
"K8sLocalvolumeInfo": "{\\\"emptyDirs\\\":[],\\\"hostPaths\\\":[]}",
"AhasEnabled": true,
"K8sNasInfo": """",
"JarStartArgs": """",
"K8sCmd": """",
"RepoOriginType": "ALI_HUB",
"K8sCmdArgs": """",
"PreStop": """",
"Readiness": """",
"Cmd": """",
"RepoNamespace": "edas-server****-user",
"RepoName": "131****067006888_shared_repo",
"ImageUrl": "registry.cn-beijing.aliyuncs.com/edas-serverless-****/1314839****06888_shared_repo:5a166fbd-9d76-4f98-****-78165****c_1572***282",
"PostStart": """",
"DeployAcrossZones": true,
"JarStartOptions": """",
"InstancesBeforeScaling": 1,
"EnvList": {
"Env": {
"Value": """",
"Name": """"
}
},
"ApplicationType": "War",
"K8sVolumeInfo": """",
"CmdArgs": """",
"EdasContainerVersion": """",
"RuntimeClassName": "\"\"",
"RegionId": "cn-beijing",
"Tag": "5a166fbd-9d76-4f98-****-781659d9f54c_1572485443282",
"TomcatVersion": """",
"RepoId": """"
},
"ImageInfo": {
"DeployType": "Image",
"Liveness": """",
"BuildpackId": 57,
"K8sLocalvolumeInfo": "{\\\"emptyDirs\\\":[],\\\"hostPaths\\\":[]}",
"AhasEnabled": true,
"K8sNasInfo": """",
"JarStartArgs": """",
"K8sCmd": """",
"RepoOriginType": "ALI_HUB",
"K8sCmdArgs": """",
"PreStop": """",
"Readiness": """",
"Cmd": """",
"RepoNamespace": "edas-server****-user",
"RepoName": "131****067006888_shared_repo",
"ImageUrl": "registry.cn-beijing.aliyuncs.com/edas-serverless-****/1314839****06888_shared_repo:5a166fbd-9d76-4f98-****-78165****c_1572***282",
"PostStart": """",
"DeployAcrossZones": true,
"JarStartOptions": """",
"InstancesBeforeScaling": 1,
"EnvList": {
"Env": {
"Value": """",
"Name": """"
}
},
"ApplicationType": "War",
"K8sVolumeInfo": """",
"CmdArgs": """",
"EdasContainerVersion": """",
"RuntimeClassName": "\"\"",
"RegionId": "cn-beijing",
"Tag": "5a166fbd-9d76-4f98-****-781659d9f54c_1572485443282",
"TomcatVersion": """",
"RepoId": """"
}
},
"Code": 200
}
Error codes
For a list of error codes, visit the API Error Center.