CreateParam
Creates a parameter. Managing parameters allows you to modify variables read by the service without changing the engine configuration or publishing changes. This increases flexibility.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
pairec:CreateParam |
create |
*All Resource
|
None | None |
Request syntax
POST /api/v1/params HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| SceneId |
string |
No |
The scene ID. Call the ListScenes operation to obtain this ID. |
4 |
| Name |
string |
No |
The name of the parameter. |
home |
| Value |
string |
No |
The value of the parameter. |
house |
| Environment |
string |
No |
The parameter's target environment. ● Daily: The daily environment. ● Pre-release: The pre-release environment. ● Production: The production environment. |
Daily |
| InstanceId |
string |
No |
The instance ID. Call the ListInstances operation to obtain this ID. |
pairec-cn-abcdefg1234 |
| Type |
string |
No |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
F8F613A9-DF1C-551A-88E1-397A3981A785 |
| ParamId |
integer |
The parameter ID. |
4 |
Examples
Success response
JSON format
{
"RequestId": "F8F613A9-DF1C-551A-88E1-397A3981A785",
"ParamId": 4
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.