View the application details according to the application name.

Request information

Request line (RequestLine)

GET /projects/{name} HTTP/1.1

Request line parameter (URI Param)

Name Type Required Description
name string Yes Application name

Special request header (RequestHead)

None.

Request body (RequestBody)

None.

Response information

Response line (ResponseLine)

HTTP/1.1 200 OK

Special response header (ResponseHead)

None.

Response body (ResponseBody)


    "name": "string",
    "description": "string",
    "template": "string",
    "version": "string",
    "created": "datetime",
    "updated": "datetime",
    "desired_state": "string",
    "current_state": "string",
    "environment": {
       "key": "value",
       
    
    "services": [
      
    

Response body explanation

Application format

Name Type Description
name string The application name.
description string The application description.
template string The application Compose template.
version string The application version.
created datetime The created time of the application.
updated datetime The updated time of the application.
desired_state string The expected status (if the current status is the intermediate status, the expected status indicates the final status of the change).
current_state string The current status.
environment map The environment variable key/value.
services array The service list.

Example

Request example

GET /projects/test HTTP/1.1

Response example

HTTP/1.1 200 Ok
Content-Type:application/json;charset=UTF-8

  "name": "test",
  "description": "This is a test application",
  "template": "...",
  "version": "1.0",
  "environment": {
    "COMPOSE_PROJECT_NAME": "test"
  
  "created": "2016-02-02T07:45:13.113833319Z",
  "updated": "2016-02-02T07:45:16.03142154Z",
  "desired_state": "running",
  "current_state": "running",
  "services": [