Queries the deployment information of a Kubernetes application.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request headers

This operation uses only common request headers. For more information, see the topic related to common request parameters.

Request syntax

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

Request parameters

Parameter Type Position Required Example Description
AppId String Query Yes 93fdd228-*****-ed2ae98de18d

The ID of the application. You can call the ListApplication operation to query the application ID.

Response parameters

Parameter Type Example Description
Code Integer 200

The HTTP status code.

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"...

The deployment information of the application. The value is a JSON string.

Message String success

The returned message.

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

The ID of the request.

Examples

Sample requests

GET /pop/v5/oam/app_deployment HTTP/1.1
Common request headers
{
"AppId": "93fdd228-*****-ed2ae98de18d"
}

Sample success responses

XML format

<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 format

{
    "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
}

Error codes

HTTP status code Error code Error message Description
500 Edas.errorcode.InstanceNotExist.Cluster.message The cluster instance does not exist. The error message returned because the cluster instance does not exist.

For a list of error codes, visit the API Error Center.