获取容器服务K8s集群或Serverless K8s集群中部署的应用信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
下表是API对应的授权信息,可以在RAM权限策略语句的Action
元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:
- 操作:是指具体的权限点。
- 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。
- 资源类型:是指操作中支持授权的资源类型。具体说明如下:
- 对于必选的资源类型,用背景高亮的方式表示。
- 对于不支持资源级授权的操作,用
全部资源
表示。
- 条件关键字:是指云产品自身定义的条件关键字。
- 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。
操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 |
---|---|---|---|---|
edas:ReadApplication | Read |
|
| 无 |
请求语法
GET /pop/v5/changeorder/co_application
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
AppId | string | 是 | 应用 ID,可通过调用 ListApplication 接口获取,详情请参见 ListApplication 。 | 5a166fbd-****-4f98-a286-781659d9**** |
From | string | 否 | 查询来源:
| deploy |
返回参数
示例
正常返回示例
JSON
格式
{
"Code": 200,
"Message": "success",
"RequestId": "1053-08e4-47a5-b2ab-5c0323de7b5a",
"Applcation": {
"AppId": "a5281053-****-47a5-b2ab-5c0323de****",
"DeployGroups": {
"DeployGroup": [
{
"Components": {
"Components": [
{
"Type": "JDK",
"ComponentKey": "Open JDK 8",
"ComponentId": "5"
}
]
},
"Env": "\"[\"{\\\"name\\\":\\\"test1\\\",\\\"valueFrom\\\":{\\\"configMapKeyRef\\\":{\\\"name\\\":\\\"edas-demo-configmap\\\",\\\"key\\\":\\\"key1\\\"}}}\",\"{\\\"name\\\":\\\"k2\\\",\\\"value\\\":\\\"v2\\\"}\",\"{\\\"name\\\":\\\"s1\\\",\\\"valueFrom\\\":{\\\"secretKeyRef\\\":{\\\"name\\\":\\\"edas-demo-secret\\\",\\\"key\\\":\\\"k1\\\"}}}\"]\"",
"EnvFrom": "[{\"configMapRef\":{\"name\":\"test-cm\"}}]"
}
]
},
"ImageInfo": {
"RepoId": "cn-hangzhou",
"ImageUrl": "registry.cn-beijing.aliyuncs.com/edas-serverless-****/1314839****06888_shared_repo:5a166fbd-9d76-4f98-****-78165****c_1572***282",
"RepoOriginType": "ALI_HUB",
"Tag": "5a166fbd-9d76-4f98-****-781659d9f54c_1572485443282",
"RepoName": "131****067006888_shared_repo",
"RepoNamespace": "edas-server****-user",
"RegionId": "cn-beijing"
},
"App": {
"RequestMem": 1024,
"InstancesBeforeScaling": 10,
"DeployType": "Image",
"ApplicationName": "test",
"ApplicationType": "War",
"Instances": 4,
"LimitMem": 1024,
"Cmd": "ls",
"RegionId": "cn-hangzhou",
"BuildpackId": 57,
"TomcatVersion": "8.5.55",
"CsClusterId": "c383bc813c1974e****451b50c0c8****",
"RequestCpuM": 1000,
"AppId": "00ee517d-dd7d-4d4e-****-****",
"K8sNamespace": "default",
"EdasContainerVersion": "3.60.0",
"LimitCpuM": 1000,
"ClusterId": "c37aec2a-bcca-4ec1-****-****",
"EnvList": {
"Env": [
{
"Name": "CATALINA_OPTS",
"Value": "-Xmx 1024m -Dhsf.default.tid=false $(EDAS_CATALINA_OPTS)"
}
]
},
"CmdArgs": {
"CmdArg": [
"-lh"
]
},
"DevelopType": "General",
"SlbInfo": "[\n {\n \"addressType\": \"intranet\",\n \"externalTrafficPolicy\": \"Local\",\n \"ip\": \"192.168.254.***\",\n \"name\": \"intranet-testapp\",\n \"portMappings\": [\n {\n \"loadBalancerProtocol\": \"TCP\",\n \"servicePort\": {\n \"port\": 8080,\n \"protocol\": \"TCP\",\n \"targetPort\": 18081,\n \"vServerGroupName\": \"k8s/31414/intranet-testapp/default/cc90e0c9508a44667bdae2e83d3******\"\n }\n }\n ],\n \"scheduler\": \"rr\",\n \"serviceType\": \"LoadBalancer\",\n \"slbId\": \"lb-bp1ikoh3nrpgqsm******\",\n \"source\": \"create\",\n \"specification\": \"slb.s3.large\"\n }\n]",
"Annotations": "{\"test-annokey\":\"test-annovalue\"}",
"Labels": "{\"test-labelkey\":\"test-labelvalue\"}",
"LimitEphemeralStorage": "4",
"RequestEphemeralStorage": "2",
"EnableEmptyPushReject": true,
"EnableLosslessRule": true,
"LosslessRuleAligned": true,
"LosslessRuleDelayTime": 120,
"LosslessRuleFuncType": 2,
"LosslessRuleRelated": true,
"LosslessRuleWarmupTime": 120,
"FeatureAnnotations": "base.combination.edas",
"WorkloadType": "Deployment"
},
"Conf": {
"PostStart": "{\\\"exec\\\":{\\\"command\\\":[\\\"ls\\\",\\\"/\\\"]}}\"",
"Readiness": "{\"failureThreshold\": 3,\"initialDelaySeconds\": 5,\"successThreshold\": 1,\"timeoutSeconds\": 1,\"httpGet\": {\"path\": \"/consumer\",\"port\": 8080,\"scheme\": \"HTTP\",\"httpHeaders\": \\[{\"name\": \"test\",\"value\": \"testvalue\"}\\]}}",
"AhasEnabled": true,
"K8sCmdArgs": "-lh",
"Liveness": "{\"failureThreshold\": 3,\"initialDelaySeconds\": 5,\"successThreshold\": 1,\"timeoutSeconds\": 1,\"tcpSocket\":{\"host\":\"\", \"port\":8080}}",
"DeployAcrossNodes": "true",
"K8sCmd": "ls",
"PreStop": "{\\\"exec\\\":{\\\"command\\\":[\\\"ls\\\",\\\"/\\\"]}}\"",
"DeployAcrossZones": "true",
"JarStartArgs": "-lh",
"K8sNasInfo": "[{\"nasPath\":\"/mnt/\",\"mountPath\":\"/mnt/\"}]",
"JarStartOptions": "-h",
"RuntimeClassName": "runc",
"K8sLocalvolumeInfo": "[{\"type\":\"\",\"nodePath\":\"/mnt/\",\"mountPath\":\"/mnt/\"}]",
"K8sVolumeInfo": "\"{\\\"hostPaths\\\":\\\"[]\\\",\\\"emptyDirs\\\":\\\"[]\\\"}\"",
"Affinity": "\"{\\\"nodeAffinity\\\":{\\\"requiredDuringSchedulingIgnoredDuringExecution\\\":{\\\"nodeSelectorTerms\\\":[{\\\"matchExpressions\\\":[{\\\"key\\\":\\\"beta.kubernetes.io/arch\\\",\\\"operator\\\":\\\"NotIn\\\",\\\"values\\\":[\\\"arm64\\\",\\\"arm32\\\"]}]}]},\\\"preferredDuringSchedulingIgnoredDuringExecution\\\":[{\\\"weight\\\":5,\\\"preference\\\":{\\\"matchExpressions\\\":[{\\\"key\\\":\\\"kubernetes.io/os\\\",\\\"operator\\\":\\\"In\\\",\\\"values\\\":[\\\"linux\\\"]}]}}]},\\\"podAffinity\\\":{\\\"requiredDuringSchedulingIgnoredDuringExecution\\\":[{\\\"labelSelector\\\":{\\\"matchExpressions\\\":[{\\\"key\\\":\\\"edas.oam.acname\\\",\\\"operator\\\":\\\"NotIn\\\",\\\"values\\\":[\\\"edas-test-app\\\"]}]},\\\"namespaces\\\":[\\\"default\\\"],\\\"topologyKey\\\":\\\"kubernetes.io/hostname\\\"}]},\\\"podAntiAffinity\\\":{\\\"preferredDuringSchedulingIgnoredDuringExecution\\\":[{\\\"weight\\\":15,\\\"podAffinityTerm\\\":{\\\"labelSelector\\\":{\\\"matchExpressions\\\":[{\\\"key\\\":\\\"edas.oam.acname\\\",\\\"operator\\\":\\\"In\\\",\\\"values\\\":[\\\"edas-test-app-2\\\"]}]},\\\"namespaces\\\":[\\\"default\\\"],\\\"topologyKey\\\":\\\"failure-domain.beta.kubernetes.io/zone\\\"}}]}}\"",
"Tolerations": "\"[{\\\"key\\\":\\\"edas-taint-key2\\\",\\\"operator\\\":\\\"Exists\\\",\\\"effect\\\":\\\"NoExecute\\\",\\\"tolerationSeconds\\\":50},{\\\"key\\\":\\\"edas-taint-key\\\",\\\"operator\\\":\\\"Equal\\\",\\\"value\\\":\\\"edas-taint-value\\\",\\\"effect\\\":\\\"PreferNoSchedule\\\"}]\"",
"UserBaseImageUrl": "openjdk:8u302"
},
"LatestVersion": {
"Url": "https://e***.oss-cn-beijing.aliyuncs.com/s***-1.0-SNAPSHOT-spring-boot.jar",
"WarUrl": "https://e***.oss-cn-beijing.aliyuncs.com/s***-1.0-SNAPSHOT-spring-boot.jar",
"PackageVersion": "20200720"
}
}
}
错误码
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 | ||
---|---|---|---|---|
2023-11-13 | OpenAPI 返回结构发生变更 | 看变更集 | ||
| ||||
2023-03-27 | OpenAPI 返回结构发生变更 | 看变更集 | ||
|