View the list of all your created applications in a container cluster.

Request information

Request line (RequestLine)

GET /projects/ HTTP/1.1

Request line parameter (URI Param)

Name Type Required Description
q string No The application name.
services boolean No Whether or not includes the application service information. The default value is true.
containers boolean No Whether or not includes the service container information. The default value is true.

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

Project 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 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": [