Querying Details About a Deployment

Function

This API is used to query details about a specified Deployment.

URI

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

Table 1 URI parameters

Parameter

Mandatory

Description

project_id

Yes

Project ID. For details about how to obtain a project ID, see Obtaining a Project ID.

deployment_id

Yes

Deployment ID.

Request

None

Response

Parameter

Type

Description

deployment

Table 18 object

Deployment details.

Example response

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

Error Codes

For details, see Error Codes.