forked from docs/doc-exports
Reviewed-by: Kacur, Michal <michal.kacur@t-systems.com> Co-authored-by: chenxiaoxiong <chenxiaoxiong@huawei.com> Co-committed-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
5.7 KiB
5.7 KiB
Creating a Consumption App
Function
This API is used to create a consumption app.
Calling Method
For details, see Calling APIs.
URI
POST /v2/{project_id}/apps
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
User token It 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. |
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 a Consumption App
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.
Parent topic: App Management