Creates a configuration template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
edas:CreateConfigTemplate |
create |
*All Resource
|
None | None |
Request syntax
POST /pop/v5/config_template HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
No |
The name of the configuration template. The name can contain any characters and must be up to 64 characters in length. |
my-template |
| Format |
string |
No |
The data format of the template. Valid values:
|
JSON |
| Description |
string |
No |
The description of the template. The description can contain any characters and must be up to 255 characters in length. |
My configuration template |
| Content |
string |
No |
The content of the template. The content must match the format specified by the Format parameter. |
[{"Key":"name","Value":"william"},{"Key":"age","Value":"12"}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
D16979DC-4D42-**************** |
| Code |
integer |
The status code of the API operation or the POP error code. |
200 |
| Message |
string |
The additional information. |
success |
| Data |
object |
The response data. |
|
| Id |
integer |
The template ID. |
125122 |
Examples
Success response
JSON format
{
"RequestId": "D16979DC-4D42-****************",
"Code": 200,
"Message": "success",
"Data": {
"Id": 125122
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | Edas.errorcode.PermissionDenied.message | You are not authorized to perform the operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.