文档首页 > > API参考> API> 部署管理 v2> 查询部署详情

查询部署详情

分享
更新时间: 2020/01/16 GMT+08:00

功能介绍

查询部署详情。

URI

GET /v2/{project_id}/edgemgr/deployments/{deployment_id}

表1 参数说明

名称

是否必选

说明

project_id

项目ID,获取方法请参见获取项目ID

deployment_id

应用部署id

请求消息

响应消息

名称

参数类型

说明

deployment

表19 object

部署详细信息

响应样例

{
    "deployment": {
        "description": "a@aaa",
        "created_at": "2018-07-20T15:18:42",
        "updated_at": null,
        "instances": [
            {
                "name": "test17",
                "envs": [],
                "state": "PENDING_CREATE",
                "version": "",
                "image_url": "camerachecker:1.5.31",
                "resources": {
                    "requests": {
                        "gpu": 2,
                        "cpu": 3,
                        "memory": 2
                    },
                    "limits": {
                        "gpu": 2,
                        "cpu": 3,
                        "memory": 2
                    }
                },
                "volumes": [
                    {
                        "read_only": true,
                        "source": "/tmp",
                        "destination": "/tmp0",
                        "type": "hostPath",
                        "name": "test"
                    },
                    {
                        "read_only": true,
                        "source": "/tmp",
                        "destination": "/tmp2",
                        "type": "hostPath",
                        "name": "test1"
                    }
                ],
                "reason": "CrashLoopBackOff ",
                "message": null,
                "configs": {
                    "host_network": true,
                    "restart_policy": "Always",
                    "privileged": false
                },
                "is_ready": "NORMAL",
                "restarts": 0,
                "node_id": "2fac08a3-f1b0-4326-a1e9-77f0f4f6df43",
                "liveness_probe": {
                    "http_get": {
                        "path": "/v1",
                        "port": 8080,
                        "host": "",
                        "scheme": "HTTP"
                    },
                    "initial_delay_seconds": 5,
                    "timeout_seconds": 5
                },
                "readiness_probe": {
                    "http_get": {
                        "path": "/v1",
                        "port": 9090,
                        "host": "",
                        "scheme": "HTTP"
                    },
                    "initial_delay_seconds": 5,
                    "timeout_seconds": 5
                }
            }
        ],
        "project_id": "d16e6eb6cc0d49a0941df2f31285757a",
        "id": "12529bc1-7146-43cc-a24f-9199743d7dc6",
        "name": "test6"
    }
}

状态码

状态码请参见状态码

分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

跳转到云社区