1
0
forked from docs/doc-exports
doc-exports/docs/dis/api-ref/CreateApp.html
Xiong, Chen Xiao 83fa2f6615 DIS API 20230116 version
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com>
Co-authored-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
Co-committed-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
2023-06-27 15:26:05 +00:00

7.4 KiB

Creating Consumption Apps

Function

This API is used to create consumption apps.

URI

POST /v2/{project_id}/apps

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token

The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token.

Table 3 Request body parameters

Parameter

Mandatory

Type

Description

app_name

Yes

String

Name of the consumer application to be created

The application name contains 1 to 200 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

Minimum: 1

Maximum: 200

Response Parameters

None

Example Requests

Creating Consumption Apps

POST https://{Endpoint}/v2/{project_id}/apps

{
  "app_name" : "newapp"
}

Example Responses

None

Status Codes

Status Code

Description

201

Normal response.

Error Codes

See Error Codes.