Creating an Application

Function

An application is a service system with complete functions and consists of one or more components related to features.

This API is used to create an application.

URI

POST /v2/{project_id}/cas/applications

Table 1 Path parameters

Parameter

Type

Mandatory

Description

project_id

String

Yes

Tenant's project ID.

Request Parameters

Request parameters

Table 2 Request parameters

Parameter

Type

Mandatory

Description

name

String

Yes

Application name.

description

String

No

Application description.

enterprise_project_id

String

No

Enterprise project ID. Default value: 0.

Response Parameters

Response parameters

Table 3 Response 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.

Example

Example request

{
    "name": "application_name", 
    "description": "application_description", 
    "enterprise_project_id": "0"
}

Example response

{
    "id": "06cf2fda-af45-44b4-9e22-6294c4804515", 
    "name": "TestApp", 
    "description": null, 
    "creator": "string", 
    "project_id": "bf8523d898b64e4eb956e3be3555ca16", 
    "enterprise_project_id": "0", 
    "create_time": 1578984171041, 
    "update_time": 1578984171041
}

Status Code

Table 4 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.