Obtaining All Applications

Function

This API is used to obtain all created applications.

URI

GET /v2/{project_id}/cas/applications

Table 1 Path parameters

Parameter

Type

Mandatory

Description

project_id

String

Yes

Project ID.

Table 2 Query parameters

Parameter

Type

Mandatory

Description

limit

String

No

Number of records. The value ranges from 0 to 100. The default value is 1000, indicating that records are not displayed on multiple pages. A maximum of 1000 records can be queried.

offset

String

No

Offset.

order_by

String

No

Sorting field. By default, query results are sorted by creation time.

The following enumerated values are supported: create_time, name, and update_time.

order

String

No

Descending or ascending order. Default value: desc.

Request Parameters

Request parameters

None

Response Parameters

Response parameters

Table 3 Response parameters

Parameter

Type

Description

count

Integer

Total number of applications.

applications

Array of object

Application information. See Table 4.

Table 4 applications parameters

Parameter

Type

Description

id

String

Application ID.

name

String

Application name.

description

String

Application description.

creator

String

Creator.

project_id

String

Project ID.

enterprise_project_id

String

Enterprise project ID.

create_time

Integer

Creation time.

update_time

Integer

Update time.

component_count

Integer

Number of components.

Example

Example request

None

Example response

{
    "applications": [
        {
            "id": "14356608-381b-4700-9b2b-0a2f115fd5b7", 
            "name": "application_name", 
            "description": "application_description", 
            "creator": "string", 
            "project_id": "4c5fac143bc3459fae56789ead33a78a", 
            "enterprise_project_id": "0", 
            "create_time": 1571110516233, 
            "update_time": 1571110516233, 
            "component_count": 0
        }
    ], 
    "count": 10
}

Status Code

Table 5 Status codes

HTTP Status Code

Description

200

OK

400

Bad Request

404

Not Found

500

Internal Server Error

Error code must be in the format of SVCSTG.00100.[Error_ID]. Example: SVCSTG.00100400. See Error Codes of Application Management APIs.