Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com> Co-authored-by: wangdengke2 <wangdengke2@huawei.com> Co-committed-by: wangdengke2 <wangdengke2@huawei.com>
16 KiB
Creating a Parameter Group (a V3 API)
Function
This API is used to create a parameter group.
Constraints
None
URI
POST /v3/{project_id}/configurations
Parameter |
Type |
Mandatory |
Description |
|---|---|---|---|
project_id |
String |
Yes |
Project ID of a tenant in a region |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. |
Content-Type |
Yes |
String |
MIME type of the request body. Value range:
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
name |
Yes |
String |
Parameter group name |
description |
Yes |
String |
Parameter group description If the description contains more than 256 characters, the parameter group can still be created. The first 256 characters will be automatically used. |
Example Request
POST https://ddm.eu-de.otc.t-systems.com/v3/74f57817ca8f42e19318eb0e0ad41d18/configurations
{
"name": "param1688972688",
"description": "test"
}
Response
- Normal response
Table 4 Response body parameters Parameter
Type
Description
id
String
Parameter group ID
name
String
Parameter group name
- Normal response example
{ "id": "404f3bbb8a724f7697e7fb15a1b09370pr09", "name": "param1688972688" } - Abnormal response
For details, see Abnormal Request Results.
Status Codes
- Normal
- Abnormal
For details, see Status Codes.
Error Codes
For details, see Error Codes.