调用GetAppDeployment获取K8s应用的Deployment信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求头

该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。

请求语法

GET /pop/v5/oam/app_deployment HTTP/1.1

请求参数

名称 类型 位置 是否必选 示例值 描述
AppId String Query 93fdd228-*****-ed2ae98de18d

应用ID,可通过调用ListApplication接口获取。

返回数据

名称 类型 示例值 描述
Code Integer 200

接口状态或POP错误码。

Data String {"metadata":{"name":"oambuild-group*","namespace":"default","selfLink":"/apis/apps/v1/namespaces/default/deployments/oambuil*","uid":"*-afc0-436e-9949-fb01994a9b63","resourceVersion":"969614832","generation":2,"creationTimestamp":"2021-04-06T11:38:46Z","labels":{"edas-domain":"edas-admin","edas.aliyun.oam.com/rollout-name":"oambuild-group-1","edas.aliyun.oam.com/rollout-namespace":"default","edas.aliyun.oam.com/rollout-revision":"3","edas.appid":"fc5e0f54-*-4cab-91a0-b7becb1f6174","edas.controlplane":"edas-oam","edas.oam.acname":"oambuild"...

应用Deployment信息,格式为JSON格式字符串。

Message String success

返回信息。

RequestId String 03FD1520-0FD6-436A-****-265318D7****

请求ID。

示例

请求示例

GET /pop/v5/oam/app_deployment HTTP/1.1
公共请求头
{
"AppId": "93fdd228-*****-ed2ae98de18d"
}

正常返回示例

XML格式

<GetAppDeploymentResponse>
  <Message>success</Message>
  <RequestId>03FD1520-0FD6-436A-****-265318D7****</RequestId>
  <Data> {"metadata":{"name":"oambuild-group*","namespace":"default","selfLink":"/apis/apps/v1/namespaces/default/deployments/oambuil*","uid":"*-afc0-436e-9949-fb01994a9b63","resourceVersion":"969614832","generation":2,"creationTimestamp":"2021-04-06T11:38:46Z","labels":{"edas-domain":"edas-admin","edas.aliyun.oam.com/rollout-name":"oambuild-group-1","edas.aliyun.oam.com/rollout-namespace":"default","edas.aliyun.oam.com/rollout-revision":"3","edas.appid":"fc5e0f54-*-4cab-91a0-b7becb1f6174","edas.controlplane":"edas-oam","edas.oam.acname":"oambuild"...</Data>
  <Code>200</Code>
</GetAppDeploymentResponse>

JSON格式

{
    "Message": "success",
    "RequestId": "03FD1520-0FD6-436A-****-265318D7****",
    "Data": "{\"metadata\":{\"name\":\"oambuild-group*\",\"namespace\":\"default\",\"selfLink\":\"/apis/apps/v1/namespaces/default/deployments/oambuil*\",\"uid\":\"*-afc0-436e-9949-fb01994a9b63\",\"resourceVersion\":\"969614832\",\"generation\":2,\"creationTimestamp\":\"2021-04-06T11:38:46Z\",\"labels\":{\"edas-domain\":\"edas-admin\",\"edas.aliyun.oam.com/rollout-name\":\"oambuild-group-1\",\"edas.aliyun.oam.com/rollout-namespace\":\"default\",\"edas.aliyun.oam.com/rollout-revision\":\"3\",\"edas.appid\":\"fc5e0f54-*-4cab-91a0-b7becb1f6174\",\"edas.controlplane\":\"edas-oam\",\"edas.oam.acname\":\"oambuild\"...",
    "Code": 200
}